diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index dc69370..ddf5d95 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: b9c55a23-7b11-48d6-bac6-dda09d2e50ba management: docChecksum: 0682067efdca9ba12599ed6f5b2b37ce docVersion: 1.0.0 - speakeasyVersion: 1.631.0 - generationVersion: 2.716.10 - releaseVersion: 0.2.0 - configChecksum: 81c5602d013ec69c15b4200630e1f641 + speakeasyVersion: 1.656.2 + generationVersion: 2.753.6 + releaseVersion: 0.3.0 + configChecksum: c256e56caba544bdd776b978013c0469 repoURL: https://github.com/charliedevelops/dokploy-sdk-ts.git installationURL: https://github.com/charliedevelops/dokploy-sdk-ts published: true @@ -14,7 +14,7 @@ features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.21.25 + core: 3.26.6 defaultEnabledRetries: 0.1.0 devContainers: 2.90.1 enumUnions: 0.1.0 @@ -22,15 +22,15 @@ features: globalSecurity: 2.82.14 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 - globalServerURLs: 2.82.5 - groups: 2.81.2 + globalServerURLs: 2.83.0 + groups: 2.81.3 methodArguments: 0.1.2 nameOverrides: 2.81.2 nullables: 0.1.1 responseFormat: 0.2.3 retries: 2.83.0 sdkHooks: 0.3.0 - unions: 2.85.12 + unions: 2.86.0 generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json @@ -2716,7 +2716,6 @@ generatedFiles: - docs/sdks/destination/README.md - docs/sdks/docker/README.md - docs/sdks/dockerget/README.md - - docs/sdks/dokploy/README.md - docs/sdks/domain/README.md - docs/sdks/domains/README.md - docs/sdks/environment/README.md @@ -6427,3 +6426,753 @@ examples: default: application/json: {"code": "", "message": ""} examplesVersion: 1.0.2 +releaseNotes: | + ## Typescript SDK Changes Detected: + * `dokploy.admin.setupMonitoring()`: **Added** + * `dokploy.ai.create()`: **Added** + * `dokploy.ai.delete()`: **Added** + * `dokploy.ai.deploy()`: **Added** + * `dokploy.ai.get()`: **Added** + * `dokploy.ai.getAll()`: **Added** + * `dokploy.ai.getModels()`: **Added** + * `dokploy.ai.getOne()`: **Added** + * `dokploy.ai.suggest()`: **Added** + * `dokploy.ai.update()`: **Added** + * `dokploy.application.cancelDeployment()`: **Added** + * `dokploy.application.cleanQueues()`: **Added** + * `dokploy.application.create()`: **Added** + * `dokploy.application.delete()`: **Added** + * `dokploy.application.deploy()`: **Added** + * `dokploy.application.disconnectGitProvider()`: **Added** + * `dokploy.application.markRunning()`: **Added** + * `dokploy.application.get()`: **Added** + * `dokploy.application.readAppMonitoring()`: **Added** + * `dokploy.application.redeploy()`: **Added** + * `dokploy.application.reload()`: **Added** + * `dokploy.application.saveBitbucketProvider()`: **Added** + * `dokploy.application.saveBuildType()`: **Added** + * `dokploy.application.saveDockerProvider()`: **Added** + * `dokploy.application.saveEnvironment()`: **Added** + * `dokploy.application.saveGitProdiver()`: **Added** + * `dokploy.application.saveGiteaProvider()`: **Added** + * `dokploy.application.saveGitlabProvider()`: **Added** + * `dokploy.application.stop()`: **Added** + * `dokploy.application.update()`: **Added** + * `dokploy.application.updateTraefikConfig()`: **Added** + * `dokploy.applications.move()`: **Added** + * `dokploy.applications.readTraefikConfig()`: **Added** + * `dokploy.applications.refreshToken()`: **Added** + * `dokploy.applications.saveGithubProvider()`: **Added** + * `dokploy.applications.start()`: **Added** + * `dokploy.backup.create()`: **Added** + * `dokploy.backup.listFiles()`: **Added** + * `dokploy.backup.manualBackupCompose()`: **Added** + * `dokploy.backup.manualBackupMariadb()`: **Added** + * `dokploy.backup.manualBackupMongo()`: **Added** + * `dokploy.backup.manualBackupMySql()`: **Added** + * `dokploy.backup.manualBackupPostgres()`: **Added** + * `dokploy.backup.manualBackupWebServer()`: **Added** + * `dokploy.backup.one()`: **Added** + * `dokploy.backup.remove()`: **Added** + * `dokploy.backup.update()`: **Added** + * `dokploy.bitbucket.create()`: **Added** + * `dokploy.bitbucket.getBranches()`: **Added** + * `dokploy.bitbucket.getRepositories()`: **Added** + * `dokploy.bitbucket.getOne()`: **Added** + * `dokploy.bitbucket.testConnection()`: **Added** + * `dokploy.bitbucket.update()`: **Added** + * `dokploy.bitbucket.get.providers()`: **Added** + * `dokploy.certificates.getAll()`: **Added** + * `dokploy.certificates.create()`: **Added** + * `dokploy.certificates.get()`: **Added** + * `dokploy.certificates.remove()`: **Added** + * `dokploy.cluster.addManager()`: **Added** + * `dokploy.cluster.addWorker()`: **Added** + * `dokploy.cluster.getNodes()`: **Added** + * `dokploy.cluster.removeWorker()`: **Added** + * `dokploy.compose.cancelDeployment()`: **Added** + * `dokploy.compose.cleanQueues()`: **Added** + * `dokploy.compose.create()`: **Added** + * `dokploy.compose.delete()`: **Added** + * `dokploy.compose.deploy()`: **Added** + * `dokploy.compose.deployTemplate()`: **Added** + * `dokploy.compose.disconnectGitprovider()`: **Added** + * `dokploy.compose.fetchSourceType()`: **Added** + * `dokploy.compose.getConvertedCompose()`: **Added** + * `dokploy.compose.getDefaultCommand()`: **Added** + * `dokploy.compose.getTags()`: **Added** + * `dokploy.compose.import()`: **Added** + * `dokploy.compose.isolatedDeployment()`: **Added** + * `dokploy.compose.loadMountsByService()`: **Added** + * `dokploy.compose.move()`: **Added** + * `dokploy.compose.one()`: **Added** + * `dokploy.compose.processTemplate()`: **Added** + * `dokploy.compose.randomizeCompose()`: **Added** + * `dokploy.compose.redeploy()`: **Added** + * `dokploy.compose.refreshToken()`: **Added** + * `dokploy.compose.start()`: **Added** + * `dokploy.compose.stop()`: **Added** + * `dokploy.compose.getTemplates()`: **Added** + * `dokploy.compose.update()`: **Added** + * `dokploy.deployment.all()`: **Added** + * `dokploy.deployment.getAllByCompose()`: **Added** + * `dokploy.deployment.allByServer()`: **Added** + * `dokploy.deployment.getAllByType()`: **Added** + * `dokploy.deployment.killProcess()`: **Added** + * `dokploy.destination.getAll()`: **Added** + * `dokploy.destination.create()`: **Added** + * `dokploy.destination.get()`: **Added** + * `dokploy.destination.remove()`: **Added** + * `dokploy.destination.testConnection()`: **Added** + * `dokploy.destination.update()`: **Added** + * `dokploy.docker.getConfig()`: **Added** + * `dokploy.docker.getContainers()`: **Added** + * `dokploy.docker.getContainersByAppLabel()`: **Added** + * `dokploy.docker.getContainersByAppNameMatch()`: **Added** + * `dokploy.docker.restartContainer()`: **Added** + * `dokploy.docker.get.serviceContainersByAppName()`: **Added** + * `dokploy.docker.get.stackContainersByAppName()`: **Added** + * `dokploy.domain.byApplicationId()`: **Added** + * `dokploy.domain.getByComposeId()`: **Added** + * `dokploy.domain.canGenerateTraefikDomains()`: **Added** + * `dokploy.domain.create()`: **Added** + * `dokploy.domain.delete()`: **Added** + * `dokploy.domain.generateDomain()`: **Added** + * `dokploy.domain.update()`: **Added** + * `dokploy.domain.validateDomain()`: **Added** + * `dokploy.domains.get()`: **Added** + * `dokploy.environment.byProjectId()`: **Added** + * `dokploy.environment.create()`: **Added** + * `dokploy.environment.duplicate()`: **Added** + * `dokploy.environment.get()`: **Added** + * `dokploy.environment.remove()`: **Added** + * `dokploy.environment.update()`: **Added** + * `dokploy.gitProviders.getAll()`: **Added** + * `dokploy.gitprovider.remove()`: **Added** + * `dokploy.gitea.create()`: **Added** + * `dokploy.gitea.getBranches()`: **Added** + * `dokploy.gitea.getRepositories()`: **Added** + * `dokploy.gitea.getUrl()`: **Added** + * `dokploy.gitea.getProviders()`: **Added** + * `dokploy.gitea.get()`: **Added** + * `dokploy.gitea.testConnection()`: **Added** + * `dokploy.gitea.update()`: **Added** + * `dokploy.github.getGithubRepositories()`: **Added** + * `dokploy.github.getProviders()`: **Added** + * `dokploy.github.one()`: **Added** + * `dokploy.github.testConnection()`: **Added** + * `dokploy.github.update()`: **Added** + * `dokploy.github.get.branches()`: **Added** + * `dokploy.gitlab.create()`: **Added** + * `dokploy.gitlab.getBranches()`: **Added** + * `dokploy.gitlab.getGitlabRepositories()`: **Added** + * `dokploy.gitlab.getProviders()`: **Added** + * `dokploy.gitlab.one()`: **Added** + * `dokploy.gitlab.testConnection()`: **Added** + * `dokploy.gitlab.update()`: **Added** + * `dokploy.mariadb.changeStatus()`: **Added** + * `dokploy.mariadb.create()`: **Added** + * `dokploy.mariadb.deploy()`: **Added** + * `dokploy.mariadb.move()`: **Added** + * `dokploy.mariadb.get()`: **Added** + * `dokploy.mariadb.rebuild()`: **Added** + * `dokploy.mariadb.reload()`: **Added** + * `dokploy.mariadb.remove()`: **Added** + * `dokploy.mariadb.saveEnvironment()`: **Added** + * `dokploy.mariadb.saveExternalPort()`: **Added** + * `dokploy.mariadb.start()`: **Added** + * `dokploy.mariadb.stop()`: **Added** + * `dokploy.mariadb.update()`: **Added** + * `dokploy.mongo.changeStatus()`: **Added** + * `dokploy.mongo.create()`: **Added** + * `dokploy.mongo.deploy()`: **Added** + * `dokploy.mongo.move()`: **Added** + * `dokploy.mongo.getOne()`: **Added** + * `dokploy.mongo.rebuild()`: **Added** + * `dokploy.mongo.reload()`: **Added** + * `dokploy.mongo.remove()`: **Added** + * `dokploy.mongo.saveEnvironment()`: **Added** + * `dokploy.mongo.saveExternalPort()`: **Added** + * `dokploy.mongo.start()`: **Added** + * `dokploy.mongo.stop()`: **Added** + * `dokploy.mongo.update()`: **Added** + * `dokploy.mounts.allNamedByApplicationId()`: **Added** + * `dokploy.mounts.create()`: **Added** + * `dokploy.mounts.get()`: **Added** + * `dokploy.mounts.remove()`: **Added** + * `dokploy.mounts.update()`: **Added** + * `dokploy.mysql.changeStatus()`: **Added** + * `dokploy.mysql.create()`: **Added** + * `dokploy.mysql.deploy()`: **Added** + * `dokploy.mysql.move()`: **Added** + * `dokploy.mysql.get()`: **Added** + * `dokploy.mysql.rebuild()`: **Added** + * `dokploy.mysql.reload()`: **Added** + * `dokploy.mysql.remove()`: **Added** + * `dokploy.mysql.saveEnvironment()`: **Added** + * `dokploy.mysql.saveExternalPort()`: **Added** + * `dokploy.mysql.start()`: **Added** + * `dokploy.mysql.stop()`: **Added** + * `dokploy.mysql.update()`: **Added** + * `dokploy.notifications.getAll()`: **Added** + * `dokploy.notification.createDiscord()`: **Added** + * `dokploy.notification.createEmail()`: **Added** + * `dokploy.notification.createGotify()`: **Added** + * `dokploy.notification.createNtfy()`: **Added** + * `dokploy.notification.createSlack()`: **Added** + * `dokploy.notification.createTelegram()`: **Added** + * `dokploy.notification.getEmailProviders()`: **Added** + * `dokploy.notification.get()`: **Added** + * `dokploy.notification.receiveNotification()`: **Added** + * `dokploy.notification.remove()`: **Added** + * `dokploy.notification.testDiscordConnection()`: **Added** + * `dokploy.notification.testEmailConnection()`: **Added** + * `dokploy.notification.testGotifyConnection()`: **Added** + * `dokploy.notification.testNtfyConnection()`: **Added** + * `dokploy.notification.testSlackConnection()`: **Added** + * `dokploy.notification.testTelegramConnection()`: **Added** + * `dokploy.notification.updateDiscord()`: **Added** + * `dokploy.notification.updateEmail()`: **Added** + * `dokploy.notification.updateGotify()`: **Added** + * `dokploy.notification.updateNtfy()`: **Added** + * `dokploy.notification.updateSlack()`: **Added** + * `dokploy.notification.updateTelegram()`: **Added** + * `dokploy.organization.getAll()`: **Added** + * `dokploy.organization.allInvitations()`: **Added** + * `dokploy.organization.create()`: **Added** + * `dokploy.organization.delete()`: **Added** + * `dokploy.organization.get()`: **Added** + * `dokploy.organization.removeInvitation()`: **Added** + * `dokploy.organization.update()`: **Added** + * `dokploy.port.create()`: **Added** + * `dokploy.port.delete()`: **Added** + * `dokploy.port.get()`: **Added** + * `dokploy.port.update()`: **Added** + * `dokploy.postgres.changeStatus()`: **Added** + * `dokploy.postgres.create()`: **Added** + * `dokploy.postgres.deploy()`: **Added** + * `dokploy.postgres.move()`: **Added** + * `dokploy.postgres.get()`: **Added** + * `dokploy.postgres.rebuild()`: **Added** + * `dokploy.postgres.reload()`: **Added** + * `dokploy.postgres.remove()`: **Added** + * `dokploy.postgres.saveEnvironment()`: **Added** + * `dokploy.postgres.saveExternalPort()`: **Added** + * `dokploy.postgres.start()`: **Added** + * `dokploy.postgres.stop()`: **Added** + * `dokploy.postgres.update()`: **Added** + * `dokploy.previewDeployment.getAll()`: **Added** + * `dokploy.previewDeployment.delete()`: **Added** + * `dokploy.previewDeployment.get()`: **Added** + * `dokploy.project.getAll()`: **Added** + * `dokploy.project.create()`: **Added** + * `dokploy.project.duplicate()`: **Added** + * `dokploy.project.get()`: **Added** + * `dokploy.project.update()`: **Added** + * `dokploy.projects.remove()`: **Added** + * `dokploy.redirects.create()`: **Added** + * `dokploy.redirects.delete()`: **Added** + * `dokploy.redirects.get()`: **Added** + * `dokploy.redirects.update()`: **Added** + * `dokploy.redis.changeStatus()`: **Added** + * `dokploy.redis.create()`: **Added** + * `dokploy.redis.deploy()`: **Added** + * `dokploy.redis.move()`: **Added** + * `dokploy.redis.getOne()`: **Added** + * `dokploy.redis.rebuild()`: **Added** + * `dokploy.redis.reload()`: **Added** + * `dokploy.redis.remove()`: **Added** + * `dokploy.redis.saveEnvironment()`: **Added** + * `dokploy.redis.saveExternalPort()`: **Added** + * `dokploy.redis.start()`: **Added** + * `dokploy.redis.stop()`: **Added** + * `dokploy.redis.update()`: **Added** + * `dokploy.registry.getAll()`: **Added** + * `dokploy.registry.create()`: **Added** + * `dokploy.registry.one()`: **Added** + * `dokploy.registry.remove()`: **Added** + * `dokploy.registry.testRegistry()`: **Added** + * `dokploy.registry.update()`: **Added** + * `dokploy.rollback.delete()`: **Added** + * `dokploy.rollback.execute()`: **Added** + * `dokploy.schedule.create()`: **Added** + * `dokploy.schedule.delete()`: **Added** + * `dokploy.schedule.list()`: **Added** + * `dokploy.schedule.get()`: **Added** + * `dokploy.schedule.runManually()`: **Added** + * `dokploy.schedule.update()`: **Added** + * `dokploy.security.create()`: **Added** + * `dokploy.security.delete()`: **Added** + * `dokploy.security.get()`: **Added** + * `dokploy.security.update()`: **Added** + * `dokploy.server.getAll()`: **Added** + * `dokploy.server.count()`: **Added** + * `dokploy.server.create()`: **Added** + * `dokploy.server.getDefaultCommand()`: **Added** + * `dokploy.server.getServerMetrics()`: **Added** + * `dokploy.server.get()`: **Added** + * `dokploy.server.publicIp()`: **Added** + * `dokploy.server.remove()`: **Added** + * `dokploy.server.getSecurity()`: **Added** + * `dokploy.server.setup()`: **Added** + * `dokploy.server.setupMonitoring()`: **Added** + * `dokploy.server.update()`: **Added** + * `dokploy.server.validate()`: **Added** + * `dokploy.servers.getWithSshKey()`: **Added** + * `dokploy.settings.assignDomainServer()`: **Added** + * `dokploy.settings.checkGpuStatus()`: **Added** + * `dokploy.settings.cleanAll()`: **Added** + * `dokploy.settings.cleanDockerBuilder()`: **Added** + * `dokploy.settings.cleanDockerPrune()`: **Added** + * `dokploy.settings.cleanMonitoring()`: **Added** + * `dokploy.settings.cleanRedis()`: **Added** + * `dokploy.settings.cleanSshPrivateKey()`: **Added** + * `dokploy.settings.cleanStoppedContainers()`: **Added** + * `dokploy.settings.cleanUnusedImages()`: **Added** + * `dokploy.settings.cleanUnusedVolumes()`: **Added** + * `dokploy.settings.getDokployCloudIps()`: **Added** + * `dokploy.settings.getDokployVersion()`: **Added** + * `dokploy.settings.getIp()`: **Added** + * `dokploy.settings.getLogCleanupStatus()`: **Added** + * `dokploy.settings.getOpenApiDocument()`: **Added** + * `dokploy.settings.getReleaseTag()`: **Added** + * `dokploy.settings.getTraefikPorts()`: **Added** + * `dokploy.settings.getUpdateData()`: **Added** + * `dokploy.settings.haveActivateRequests()`: **Added** + * `dokploy.settings.haveTraefikDashboardPortEnabled()`: **Added** + * `dokploy.settings.get()`: **Added** + * `dokploy.settings.isCloud()`: **Added** + * `dokploy.settings.isUserSubscribed()`: **Added** + * `dokploy.settings.readDirectories()`: **Added** + * `dokploy.settings.readMiddlewareTraefikConfig()`: **Added** + * `dokploy.settings.readTraefikConfig()`: **Added** + * `dokploy.settings.readTraefikEnv()`: **Added** + * `dokploy.settings.readTraefikFile()`: **Added** + * `dokploy.settings.readWebserverTraefikConfig()`: **Added** + * `dokploy.settings.reloadRedis()`: **Added** + * `dokploy.settings.reloadServer()`: **Added** + * `dokploy.settings.reloadTraefik()`: **Added** + * `dokploy.settings.saveSshPrivateKey()`: **Added** + * `dokploy.settings.setupGpu()`: **Added** + * `dokploy.settings.toggleDashboard()`: **Added** + * `dokploy.settings.toggleRequests()`: **Added** + * `dokploy.settings.updateDockerCleanup()`: **Added** + * `dokploy.settings.updateLogCleanup()`: **Added** + * `dokploy.settings.updateMiddlewareTraefikConfig()`: **Added** + * `dokploy.settings.updateServer()`: **Added** + * `dokploy.settings.updateTraefikConfig()`: **Added** + * `dokploy.settings.updateTraefikFile()`: **Added** + * `dokploy.settings.updateTraefikPorts()`: **Added** + * `dokploy.settings.updateWebServerTraefikConfig()`: **Added** + * `dokploy.settings.writeTraefikEnv()`: **Added** + * `dokploy.sshKey.all()`: **Added** + * `dokploy.sshKey.create()`: **Added** + * `dokploy.sshKey.get()`: **Added** + * `dokploy.sshKey.remove()`: **Added** + * `dokploy.sshKey.update()`: **Added** + * `dokploy.sshKeys.generate()`: **Added** + * `dokploy.stripe.canCreateMoreServers()`: **Added** + * `dokploy.stripe.createCheckoutSession()`: **Added** + * `dokploy.stripe.createCustomerPortalSession()`: **Added** + * `dokploy.stripe.getProducts()`: **Added** + * `dokploy.swarm.getNodeApps()`: **Added** + * `dokploy.swarm.getNodeInfo()`: **Added** + * `dokploy.swarm.getNodes()`: **Added** + * `dokploy.user.getAll()`: **Added** + * `dokploy.user.assignPermissions()`: **Added** + * `dokploy.user.checkUserOrganizations()`: **Added** + * `dokploy.user.createApiKey()`: **Added** + * `dokploy.user.deleteApiKey()`: **Added** + * `dokploy.user.generateToken()`: **Added** + * `dokploy.user.get()`: **Added** + * `dokploy.user.getBackups()`: **Added** + * `dokploy.user.getContainerMetrics()`: **Added** + * `dokploy.user.getInvitations()`: **Added** + * `dokploy.user.getMetricsToken()`: **Added** + * `dokploy.user.getServerMetrics()`: **Added** + * `dokploy.user.getUserByToken()`: **Added** + * `dokploy.user.haveRootAccess()`: **Added** + * `dokploy.user.getOne()`: **Added** + * `dokploy.user.sendInvitation()`: **Added** + * `dokploy.user.update()`: **Added** + * `dokploy.users.remove()`: **Added** + * `dokploy.volumeBackups.create()`: **Added** + * `dokploy.volumeBackups.delete()`: **Added** + * `dokploy.volumeBackups.list()`: **Added** + * `dokploy.volumeBackups.runManually()`: **Added** + * `dokploy.volumeBackups.update()`: **Added** + * `dokploy.volumeBackups.get()`: **Added** + * `dokploy.admin.adminSetupMonitoring()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiDeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiGet()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiGetAll()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiGetModels()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiOne()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiSuggest()`: **Deleted** **Breaking** :warning: + * `dokploy.ai.aiUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationCancelDeployment()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationCleanQueues()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationDeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationDisconnectGitProvider()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationMarkRunning()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationMove()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationOne()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationReadAppMonitoring()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationReadTraefikConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationRedeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationRefreshToken()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationReload()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationSaveBitbucketProvider()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationSaveBuildType()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationSaveDockerProvider()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationSaveEnvironment()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationSaveGitProdiver()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationSaveGiteaProvider()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationSaveGithubProvider()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationSaveGitlabProvider()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationStart()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationStop()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.application.applicationUpdateTraefikConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupListBackupFiles()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupManualBackupCompose()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupManualBackupMariadb()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupManualBackupMongo()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupManualBackupMySql()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupManualBackupPostgres()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupManualBackupWebServer()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupOne()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.backup.backupUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.bitbucket.bitbucketBitbucketProviders()`: **Deleted** **Breaking** :warning: + * `dokploy.bitbucket.bitbucketCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.bitbucket.bitbucketGetBitbucketBranches()`: **Deleted** **Breaking** :warning: + * `dokploy.bitbucket.bitbucketGetBitbucketRepositories()`: **Deleted** **Breaking** :warning: + * `dokploy.bitbucket.bitbucketOne()`: **Deleted** **Breaking** :warning: + * `dokploy.bitbucket.bitbucketTestConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.bitbucket.bitbucketUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.certificates.certificatesAll()`: **Deleted** **Breaking** :warning: + * `dokploy.certificates.certificatesCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.certificates.certificatesOne()`: **Deleted** **Breaking** :warning: + * `dokploy.certificates.certificatesRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.cluster.clusterAddManager()`: **Deleted** **Breaking** :warning: + * `dokploy.cluster.clusterAddWorker()`: **Deleted** **Breaking** :warning: + * `dokploy.cluster.clusterGetNodes()`: **Deleted** **Breaking** :warning: + * `dokploy.cluster.clusterRemoveWorker()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeCancelDeployment()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeCleanQueues()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeDeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeDeployTemplate()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeDisconnectGitProvider()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeFetchSourceType()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeGetConvertedCompose()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeGetDefaultCommand()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeGetTags()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeImport()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeIsolatedDeployment()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeLoadMountsByService()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeMove()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeOne()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeProcessTemplate()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeRandomizeCompose()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeRedeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeRefreshToken()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeStart()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeStop()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeTemplates()`: **Deleted** **Breaking** :warning: + * `dokploy.compose.composeUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.deployment.deploymentAll()`: **Deleted** **Breaking** :warning: + * `dokploy.deployment.deploymentAllByCompose()`: **Deleted** **Breaking** :warning: + * `dokploy.deployment.deploymentAllByServer()`: **Deleted** **Breaking** :warning: + * `dokploy.deployment.deploymentAllByType()`: **Deleted** **Breaking** :warning: + * `dokploy.deployment.deploymentKillProcess()`: **Deleted** **Breaking** :warning: + * `dokploy.destination.destinationAll()`: **Deleted** **Breaking** :warning: + * `dokploy.destination.destinationCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.destination.destinationOne()`: **Deleted** **Breaking** :warning: + * `dokploy.destination.destinationRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.destination.destinationTestConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.destination.destinationUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.docker.dockerGetConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.docker.dockerGetContainers()`: **Deleted** **Breaking** :warning: + * `dokploy.docker.dockerGetContainersByAppLabel()`: **Deleted** **Breaking** :warning: + * `dokploy.docker.dockerGetContainersByAppNameMatch()`: **Deleted** **Breaking** :warning: + * `dokploy.docker.dockerGetServiceContainersByAppName()`: **Deleted** **Breaking** :warning: + * `dokploy.docker.dockerGetStackContainersByAppName()`: **Deleted** **Breaking** :warning: + * `dokploy.docker.dockerRestartContainer()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainByApplicationId()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainByComposeId()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainCanGenerateTraefikMeDomains()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainGenerateDomain()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainOne()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.domain.domainValidateDomain()`: **Deleted** **Breaking** :warning: + * `dokploy.environment.environmentByProjectId()`: **Deleted** **Breaking** :warning: + * `dokploy.environment.environmentCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.environment.environmentDuplicate()`: **Deleted** **Breaking** :warning: + * `dokploy.environment.environmentOne()`: **Deleted** **Breaking** :warning: + * `dokploy.environment.environmentRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.environment.environmentUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.gitProvider.gitProviderGetAll()`: **Deleted** **Breaking** :warning: + * `dokploy.gitProvider.gitProviderRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.gitea.giteaCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.gitea.giteaGetGiteaBranches()`: **Deleted** **Breaking** :warning: + * `dokploy.gitea.giteaGetGiteaRepositories()`: **Deleted** **Breaking** :warning: + * `dokploy.gitea.giteaGetGiteaUrl()`: **Deleted** **Breaking** :warning: + * `dokploy.gitea.giteaGiteaProviders()`: **Deleted** **Breaking** :warning: + * `dokploy.gitea.giteaOne()`: **Deleted** **Breaking** :warning: + * `dokploy.gitea.giteaTestConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.gitea.giteaUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.github.githubGetGithubBranches()`: **Deleted** **Breaking** :warning: + * `dokploy.github.githubGetGithubRepositories()`: **Deleted** **Breaking** :warning: + * `dokploy.github.githubGithubProviders()`: **Deleted** **Breaking** :warning: + * `dokploy.github.githubOne()`: **Deleted** **Breaking** :warning: + * `dokploy.github.githubTestConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.github.githubUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.gitlab.gitlabCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.gitlab.gitlabGetGitlabBranches()`: **Deleted** **Breaking** :warning: + * `dokploy.gitlab.gitlabGetGitlabRepositories()`: **Deleted** **Breaking** :warning: + * `dokploy.gitlab.gitlabGitlabProviders()`: **Deleted** **Breaking** :warning: + * `dokploy.gitlab.gitlabOne()`: **Deleted** **Breaking** :warning: + * `dokploy.gitlab.gitlabTestConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.gitlab.gitlabUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbChangeStatus()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbDeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbMove()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbOne()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbRebuild()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbReload()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbSaveEnvironment()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbSaveExternalPort()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbStart()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbStop()`: **Deleted** **Breaking** :warning: + * `dokploy.mariadb.mariadbUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoChangeStatus()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoDeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoMove()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoOne()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoRebuild()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoReload()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoSaveEnvironment()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoSaveExternalPort()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoStart()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoStop()`: **Deleted** **Breaking** :warning: + * `dokploy.mongo.mongoUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.mounts.mountsAllNamedByApplicationId()`: **Deleted** **Breaking** :warning: + * `dokploy.mounts.mountsCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.mounts.mountsOne()`: **Deleted** **Breaking** :warning: + * `dokploy.mounts.mountsRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.mounts.mountsUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlChangeStatus()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlDeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlMove()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlOne()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlRebuild()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlReload()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlSaveEnvironment()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlSaveExternalPort()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlStart()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlStop()`: **Deleted** **Breaking** :warning: + * `dokploy.mysql.mysqlUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationAll()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationCreateDiscord()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationCreateEmail()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationCreateGotify()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationCreateNtfy()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationCreateSlack()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationCreateTelegram()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationGetEmailProviders()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationOne()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationReceiveNotification()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationTestDiscordConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationTestEmailConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationTestGotifyConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationTestNtfyConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationTestSlackConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationTestTelegramConnection()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationUpdateDiscord()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationUpdateEmail()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationUpdateGotify()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationUpdateNtfy()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationUpdateSlack()`: **Deleted** **Breaking** :warning: + * `dokploy.notification.notificationUpdateTelegram()`: **Deleted** **Breaking** :warning: + * `dokploy.organization.organizationAll()`: **Deleted** **Breaking** :warning: + * `dokploy.organization.organizationAllInvitations()`: **Deleted** **Breaking** :warning: + * `dokploy.organization.organizationCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.organization.organizationDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.organization.organizationOne()`: **Deleted** **Breaking** :warning: + * `dokploy.organization.organizationRemoveInvitation()`: **Deleted** **Breaking** :warning: + * `dokploy.organization.organizationUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.port.portCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.port.portDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.port.portOne()`: **Deleted** **Breaking** :warning: + * `dokploy.port.portUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresChangeStatus()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresDeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresMove()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresOne()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresRebuild()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresReload()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresSaveEnvironment()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresSaveExternalPort()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresStart()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresStop()`: **Deleted** **Breaking** :warning: + * `dokploy.postgres.postgresUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.previewDeployment.previewDeploymentAll()`: **Deleted** **Breaking** :warning: + * `dokploy.previewDeployment.previewDeploymentDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.previewDeployment.previewDeploymentOne()`: **Deleted** **Breaking** :warning: + * `dokploy.project.projectAll()`: **Deleted** **Breaking** :warning: + * `dokploy.project.projectCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.project.projectDuplicate()`: **Deleted** **Breaking** :warning: + * `dokploy.project.projectOne()`: **Deleted** **Breaking** :warning: + * `dokploy.project.projectRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.project.projectUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.redirects.redirectsCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.redirects.redirectsDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.redirects.redirectsOne()`: **Deleted** **Breaking** :warning: + * `dokploy.redirects.redirectsUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisChangeStatus()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisDeploy()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisMove()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisOne()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisRebuild()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisReload()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisSaveEnvironment()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisSaveExternalPort()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisStart()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisStop()`: **Deleted** **Breaking** :warning: + * `dokploy.redis.redisUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.registry.registryAll()`: **Deleted** **Breaking** :warning: + * `dokploy.registry.registryCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.registry.registryOne()`: **Deleted** **Breaking** :warning: + * `dokploy.registry.registryRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.registry.registryTestRegistry()`: **Deleted** **Breaking** :warning: + * `dokploy.registry.registryUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.rollback.rollbackDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.rollback.rollbackRollback()`: **Deleted** **Breaking** :warning: + * `dokploy.schedule.scheduleCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.schedule.scheduleDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.schedule.scheduleList()`: **Deleted** **Breaking** :warning: + * `dokploy.schedule.scheduleOne()`: **Deleted** **Breaking** :warning: + * `dokploy.schedule.scheduleRunManually()`: **Deleted** **Breaking** :warning: + * `dokploy.schedule.scheduleUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.security.securityCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.security.securityDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.security.securityOne()`: **Deleted** **Breaking** :warning: + * `dokploy.security.securityUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverAll()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverCount()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverGetDefaultCommand()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverGetServerMetrics()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverOne()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverPublicIp()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverSecurity()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverSetup()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverSetupMonitoring()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverValidate()`: **Deleted** **Breaking** :warning: + * `dokploy.server.serverWithSshKey()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsAssignDomainServer()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCheckGpuStatus()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanAll()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanDockerBuilder()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanDockerPrune()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanMonitoring()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanRedis()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanSshPrivateKey()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanStoppedContainers()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanUnusedImages()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsCleanUnusedVolumes()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsGetDokployCloudIps()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsGetDokployVersion()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsGetIp()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsGetLogCleanupStatus()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsGetOpenApiDocument()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsGetReleaseTag()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsGetTraefikPorts()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsGetUpdateData()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsHaveActivateRequests()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsHaveTraefikDashboardPortEnabled()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsHealth()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsIsCloud()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsIsUserSubscribed()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReadDirectories()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReadMiddlewareTraefikConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReadTraefikConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReadTraefikEnv()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReadTraefikFile()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReadWebServerTraefikConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReloadRedis()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReloadServer()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsReloadTraefik()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsSaveSshPrivateKey()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsSetupGpu()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsToggleDashboard()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsToggleRequests()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsUpdateDockerCleanup()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsUpdateLogCleanup()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsUpdateMiddlewareTraefikConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsUpdateServer()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsUpdateTraefikConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsUpdateTraefikFile()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsUpdateTraefikPorts()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsUpdateWebServerTraefikConfig()`: **Deleted** **Breaking** :warning: + * `dokploy.settings.settingsWriteTraefikEnv()`: **Deleted** **Breaking** :warning: + * `dokploy.sshKey.sshKeyAll()`: **Deleted** **Breaking** :warning: + * `dokploy.sshKey.sshKeyCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.sshKey.sshKeyGenerate()`: **Deleted** **Breaking** :warning: + * `dokploy.sshKey.sshKeyOne()`: **Deleted** **Breaking** :warning: + * `dokploy.sshKey.sshKeyRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.sshKey.sshKeyUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.stripe.stripeCanCreateMoreServers()`: **Deleted** **Breaking** :warning: + * `dokploy.stripe.stripeCreateCheckoutSession()`: **Deleted** **Breaking** :warning: + * `dokploy.stripe.stripeCreateCustomerPortalSession()`: **Deleted** **Breaking** :warning: + * `dokploy.stripe.stripeGetProducts()`: **Deleted** **Breaking** :warning: + * `dokploy.swarm.swarmGetNodeApps()`: **Deleted** **Breaking** :warning: + * `dokploy.swarm.swarmGetNodeInfo()`: **Deleted** **Breaking** :warning: + * `dokploy.swarm.swarmGetNodes()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userAll()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userAssignPermissions()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userCheckUserOrganizations()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userCreateApiKey()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userDeleteApiKey()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userGenerateToken()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userGet()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userGetBackups()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userGetContainerMetrics()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userGetInvitations()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userGetMetricsToken()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userGetServerMetrics()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userGetUserByToken()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userHaveRootAccess()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userOne()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userRemove()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userSendInvitation()`: **Deleted** **Breaking** :warning: + * `dokploy.user.userUpdate()`: **Deleted** **Breaking** :warning: + * `dokploy.volumeBackups.volumeBackupsCreate()`: **Deleted** **Breaking** :warning: + * `dokploy.volumeBackups.volumeBackupsDelete()`: **Deleted** **Breaking** :warning: + * `dokploy.volumeBackups.volumeBackupsList()`: **Deleted** **Breaking** :warning: + * `dokploy.volumeBackups.volumeBackupsOne()`: **Deleted** **Breaking** :warning: + * `dokploy.volumeBackups.volumeBackupsRunManually()`: **Deleted** **Breaking** :warning: + * `dokploy.volumeBackups.volumeBackupsUpdate()`: **Deleted** **Breaking** :warning: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 769e9cc..d6456ab 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -22,17 +22,23 @@ generation: hoistGlobalSecurity: true inferSSEOverload: true sdkHooksConfigAccess: true + schemas: + allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" tests: generateTests: false generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.2.0 + version: 0.3.0 + acceptHeaderEnum: true additionalDependencies: dependencies: {} devDependencies: {} peerDependencies: {} additionalPackageJSON: {} + additionalScripts: {} + alwaysIncludeInboundAndOutbound: false author: Speakeasy baseErrorName: DokployError clientServerStatusCodesAsErrors: true @@ -43,6 +49,7 @@ typescript: enableReactQuery: false enumFormat: union envVarPrefix: DOKPLOY + exportZodModelNamespace: false flattenGlobalSecurity: true flatteningOrder: parameters-first generateExamples: true @@ -65,5 +72,7 @@ typescript: responseFormat: flat sseFlatResponse: true templateVersion: v2 + unionStrategy: left-to-right usageSDKInitImports: [] useIndexModules: true + zodVersion: v3 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8fe1e34..9b7139f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,11 +1,12 @@ -speakeasyVersion: 1.631.0 +speakeasyVersion: 1.656.2 sources: Dokploy API: sourceNamespace: dokploy-api - sourceRevisionDigest: sha256:4dc175c5fd273b53ce03d25702db7fe5d3fdc5cb6bcb3c02c1ace80a17bfb7d0 - sourceBlobDigest: sha256:2bdb7d3656fe40f5635dd040ec7db89ecb2869e95326e57445f5b9407bbaf408 + sourceRevisionDigest: sha256:70bdeef8a1f34be2a1dfaee80ac39a3ee3beca04b3aedb77fb7cac92dac0bc78 + sourceBlobDigest: sha256:6ddbe3a5b887c1183e1b964d3534994effc3156bc0a3e287777fd9d6459e0d56 tags: - latest + - speakeasy-sdk-regen-1759020931 - 1.0.0 targets: dokploy: @@ -18,10 +19,10 @@ targets: typescript: source: Dokploy API sourceNamespace: dokploy-api - sourceRevisionDigest: sha256:4dc175c5fd273b53ce03d25702db7fe5d3fdc5cb6bcb3c02c1ace80a17bfb7d0 - sourceBlobDigest: sha256:2bdb7d3656fe40f5635dd040ec7db89ecb2869e95326e57445f5b9407bbaf408 + sourceRevisionDigest: sha256:70bdeef8a1f34be2a1dfaee80ac39a3ee3beca04b3aedb77fb7cac92dac0bc78 + sourceBlobDigest: sha256:6ddbe3a5b887c1183e1b964d3534994effc3156bc0a3e287777fd9d6459e0d56 codeSamplesNamespace: dokploy-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:b59cdd4647b296b849104f6590a3e07a1f93381cab47e474b42418fa2e0ae12d + codeSamplesRevisionDigest: sha256:48cbd782290e13b34cacedffd7f99164bbb6818ae7360ae47bfd941203e637ff workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 2f79ea9..4c46ac7 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage * Dokploy API: Endpoints for dokploy -More information about the API can be found at https://docs.dokploy.com/docs/api or you local swagger instance at https://yourDokployInstance.com/swagger +More information about the API can be found at http://localhost:3000/api/settings.getOpenApiDocument @@ -320,7 +320,6 @@ run(); * [serviceContainersByAppName](docs/sdks/dockerget/README.md#servicecontainersbyappname) * [stackContainersByAppName](docs/sdks/dockerget/README.md#stackcontainersbyappname) - ### [domain](docs/sdks/domain/README.md) * [byApplicationId](docs/sdks/domain/README.md#byapplicationid) diff --git a/RELEASES.md b/RELEASES.md index 5d80152..f152125 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -6,4 +6,14 @@ Based on: - OpenAPI Doc - Speakeasy CLI 1.615.2 (2.698.4) https://github.com/speakeasy-api/speakeasy ### Generated -- [typescript v0.0.2] . \ No newline at end of file +- [typescript v0.0.2] . + +## 2025-11-14 00:53:53 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.656.2 (2.753.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.3.0] . +### Releases +- [NPM v0.3.0] https://www.npmjs.com/package/dokploy-sdk/v/0.3.0 - . \ No newline at end of file diff --git a/RUNTIMES.md b/RUNTIMES.md index db7ea94..27731c3 100644 --- a/RUNTIMES.md +++ b/RUNTIMES.md @@ -2,9 +2,9 @@ This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` +- [Web Fetch API][web-fetch] +- [Web Streams API][web-streams] and in particular `ReadableStream` +- [Async iterables][async-iter] using `Symbol.asyncIterator` [web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API [web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are: The following `tsconfig.json` options are recommended for projects using this SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], +streams and `fetch`-related APIs ([`for await...of`][for-await-of], [`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and so on): @@ -38,11 +38,11 @@ so on): { "compilerOptions": { "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], + "lib": ["es2020", "dom", "dom.iterable"] } } ``` While `target` can be set to older ECMAScript versions, it may result in extra, unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file +runtimes. diff --git a/docs/sdks/dokploy/README.md b/docs/sdks/dokploy/README.md deleted file mode 100644 index d74295b..0000000 --- a/docs/sdks/dokploy/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Dokploy SDK - -## Overview - -Dokploy API: Endpoints for dokploy - - -### Available Operations diff --git a/examples/package-lock.json b/examples/package-lock.json index 756048b..34c7f88 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,9 +18,9 @@ }, "..": { "name": "dokploy-sdk", - "version": "0.2.0", + "version": "0.3.0", "dependencies": { - "zod": "^3.20.0" + "zod": "^3.25.0 || ^4.0.0" }, "devDependencies": { "@eslint/js": "^9.19.0", diff --git a/jsr.json b/jsr.json index 1467502..44d6e92 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "dokploy-sdk", - "version": "0.2.0", + "version": "0.3.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 5302898..265bcc3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,14 @@ { "name": "dokploy-sdk", - "version": "0.2.0", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dokploy-sdk", - "version": "0.2.0", + "version": "0.3.0", "dependencies": { - "zod": "^3.20.0" + "zod": "^3.25.0 || ^4.0.0" }, "devDependencies": { "@eslint/js": "^9.19.0", diff --git a/package.json b/package.json index 4f6328c..a03d95c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dokploy-sdk", - "version": "0.2.0", + "version": "0.3.0", "author": "Speakeasy", "type": "module", "tshy": { @@ -38,7 +38,7 @@ "typescript-eslint": "^8.26.0" }, "dependencies": { - "zod": "^3.20.0" + "zod": "^3.25.0 || ^4.0.0" }, "exports": { ".": { diff --git a/src/funcs/adminSetupMonitoring.ts b/src/funcs/adminSetupMonitoring.ts index 0d65614..95b07bb 100644 --- a/src/funcs/adminSetupMonitoring.ts +++ b/src/funcs/adminSetupMonitoring.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "admin-setupMonitoring", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiCreate.ts b/src/funcs/aiCreate.ts index 949a03a..fe33707 100644 --- a/src/funcs/aiCreate.ts +++ b/src/funcs/aiCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiDelete.ts b/src/funcs/aiDelete.ts index cda589c..0224f07 100644 --- a/src/funcs/aiDelete.ts +++ b/src/funcs/aiDelete.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiDeploy.ts b/src/funcs/aiDeploy.ts index 0a53e38..89ae692 100644 --- a/src/funcs/aiDeploy.ts +++ b/src/funcs/aiDeploy.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-deploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiGet.ts b/src/funcs/aiGet.ts index df6693a..480c6b0 100644 --- a/src/funcs/aiGet.ts +++ b/src/funcs/aiGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-get", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiGetAll.ts b/src/funcs/aiGetAll.ts index a5709cc..f33b763 100644 --- a/src/funcs/aiGetAll.ts +++ b/src/funcs/aiGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-getAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiGetModels.ts b/src/funcs/aiGetModels.ts index cbd108f..e7c2625 100644 --- a/src/funcs/aiGetModels.ts +++ b/src/funcs/aiGetModels.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-getModels", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiGetOne.ts b/src/funcs/aiGetOne.ts index 1c32e3c..67b9b17 100644 --- a/src/funcs/aiGetOne.ts +++ b/src/funcs/aiGetOne.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiSuggest.ts b/src/funcs/aiSuggest.ts index 0a84113..452d715 100644 --- a/src/funcs/aiSuggest.ts +++ b/src/funcs/aiSuggest.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-suggest", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/aiUpdate.ts b/src/funcs/aiUpdate.ts index 59950b9..311ae5c 100644 --- a/src/funcs/aiUpdate.ts +++ b/src/funcs/aiUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ai-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationCancelDeployment.ts b/src/funcs/applicationCancelDeployment.ts index 58cf76b..917adce 100644 --- a/src/funcs/applicationCancelDeployment.ts +++ b/src/funcs/applicationCancelDeployment.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-cancelDeployment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationCleanQueues.ts b/src/funcs/applicationCleanQueues.ts index 3971164..d9c8725 100644 --- a/src/funcs/applicationCleanQueues.ts +++ b/src/funcs/applicationCleanQueues.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-cleanQueues", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationCreate.ts b/src/funcs/applicationCreate.ts index c234b94..42100c3 100644 --- a/src/funcs/applicationCreate.ts +++ b/src/funcs/applicationCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationDelete.ts b/src/funcs/applicationDelete.ts index 6a7ddc9..f7b5a7f 100644 --- a/src/funcs/applicationDelete.ts +++ b/src/funcs/applicationDelete.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationDeploy.ts b/src/funcs/applicationDeploy.ts index bed4995..81e6a67 100644 --- a/src/funcs/applicationDeploy.ts +++ b/src/funcs/applicationDeploy.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-deploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationDisconnectGitProvider.ts b/src/funcs/applicationDisconnectGitProvider.ts index 3285b16..e9d4007 100644 --- a/src/funcs/applicationDisconnectGitProvider.ts +++ b/src/funcs/applicationDisconnectGitProvider.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-disconnectGitProvider", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationGet.ts b/src/funcs/applicationGet.ts index 43edcf9..e0b4ea1 100644 --- a/src/funcs/applicationGet.ts +++ b/src/funcs/applicationGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationMarkRunning.ts b/src/funcs/applicationMarkRunning.ts index 913f701..e43ca7a 100644 --- a/src/funcs/applicationMarkRunning.ts +++ b/src/funcs/applicationMarkRunning.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-markRunning", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationReadAppMonitoring.ts b/src/funcs/applicationReadAppMonitoring.ts index 90aefa4..d3c6d26 100644 --- a/src/funcs/applicationReadAppMonitoring.ts +++ b/src/funcs/applicationReadAppMonitoring.ts @@ -100,7 +100,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-readAppMonitoring", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationRedeploy.ts b/src/funcs/applicationRedeploy.ts index fc44380..d1036de 100644 --- a/src/funcs/applicationRedeploy.ts +++ b/src/funcs/applicationRedeploy.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-redeploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationReload.ts b/src/funcs/applicationReload.ts index 2857cba..d7603bc 100644 --- a/src/funcs/applicationReload.ts +++ b/src/funcs/applicationReload.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-reload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationSaveBitbucketProvider.ts b/src/funcs/applicationSaveBitbucketProvider.ts index e8c4be5..4502aac 100644 --- a/src/funcs/applicationSaveBitbucketProvider.ts +++ b/src/funcs/applicationSaveBitbucketProvider.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-saveBitbucketProvider", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationSaveBuildType.ts b/src/funcs/applicationSaveBuildType.ts index 2af3029..1639ec7 100644 --- a/src/funcs/applicationSaveBuildType.ts +++ b/src/funcs/applicationSaveBuildType.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-saveBuildType", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationSaveDockerProvider.ts b/src/funcs/applicationSaveDockerProvider.ts index 1ac4b2b..95ee766 100644 --- a/src/funcs/applicationSaveDockerProvider.ts +++ b/src/funcs/applicationSaveDockerProvider.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-saveDockerProvider", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationSaveEnvironment.ts b/src/funcs/applicationSaveEnvironment.ts index 656b512..879e509 100644 --- a/src/funcs/applicationSaveEnvironment.ts +++ b/src/funcs/applicationSaveEnvironment.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-saveEnvironment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationSaveGitProdiver.ts b/src/funcs/applicationSaveGitProdiver.ts index 6bdde44..63203b7 100644 --- a/src/funcs/applicationSaveGitProdiver.ts +++ b/src/funcs/applicationSaveGitProdiver.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-saveGitProdiver", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationSaveGiteaProvider.ts b/src/funcs/applicationSaveGiteaProvider.ts index 41e42eb..9d3cfb1 100644 --- a/src/funcs/applicationSaveGiteaProvider.ts +++ b/src/funcs/applicationSaveGiteaProvider.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-saveGiteaProvider", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationSaveGitlabProvider.ts b/src/funcs/applicationSaveGitlabProvider.ts index c4fd4b7..ed9745f 100644 --- a/src/funcs/applicationSaveGitlabProvider.ts +++ b/src/funcs/applicationSaveGitlabProvider.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-saveGitlabProvider", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationStop.ts b/src/funcs/applicationStop.ts index 161bfa3..19723f4 100644 --- a/src/funcs/applicationStop.ts +++ b/src/funcs/applicationStop.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-stop", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationUpdate.ts b/src/funcs/applicationUpdate.ts index e3aa5cf..f57c581 100644 --- a/src/funcs/applicationUpdate.ts +++ b/src/funcs/applicationUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationUpdateTraefikConfig.ts b/src/funcs/applicationUpdateTraefikConfig.ts index c62928c..84fa2d4 100644 --- a/src/funcs/applicationUpdateTraefikConfig.ts +++ b/src/funcs/applicationUpdateTraefikConfig.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-updateTraefikConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationsMove.ts b/src/funcs/applicationsMove.ts index 90923ed..6e97e83 100644 --- a/src/funcs/applicationsMove.ts +++ b/src/funcs/applicationsMove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-move", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationsReadTraefikConfig.ts b/src/funcs/applicationsReadTraefikConfig.ts index 7aedff8..cced4d9 100644 --- a/src/funcs/applicationsReadTraefikConfig.ts +++ b/src/funcs/applicationsReadTraefikConfig.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-readTraefikConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationsRefreshToken.ts b/src/funcs/applicationsRefreshToken.ts index cc0811e..949f08a 100644 --- a/src/funcs/applicationsRefreshToken.ts +++ b/src/funcs/applicationsRefreshToken.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-refreshToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationsSaveGithubProvider.ts b/src/funcs/applicationsSaveGithubProvider.ts index 2f33777..d845259 100644 --- a/src/funcs/applicationsSaveGithubProvider.ts +++ b/src/funcs/applicationsSaveGithubProvider.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-saveGithubProvider", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/applicationsStart.ts b/src/funcs/applicationsStart.ts index 990f8cc..e5a6590 100644 --- a/src/funcs/applicationsStart.ts +++ b/src/funcs/applicationsStart.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "application-start", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupCreate.ts b/src/funcs/backupCreate.ts index c9415fc..2a01826 100644 --- a/src/funcs/backupCreate.ts +++ b/src/funcs/backupCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupListFiles.ts b/src/funcs/backupListFiles.ts index 9721998..0d38a3e 100644 --- a/src/funcs/backupListFiles.ts +++ b/src/funcs/backupListFiles.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-listBackupFiles", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupManualBackupCompose.ts b/src/funcs/backupManualBackupCompose.ts index 8a91c15..23487d5 100644 --- a/src/funcs/backupManualBackupCompose.ts +++ b/src/funcs/backupManualBackupCompose.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-manualBackupCompose", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupManualBackupMariadb.ts b/src/funcs/backupManualBackupMariadb.ts index 58a01ac..46d3f2f 100644 --- a/src/funcs/backupManualBackupMariadb.ts +++ b/src/funcs/backupManualBackupMariadb.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-manualBackupMariadb", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupManualBackupMongo.ts b/src/funcs/backupManualBackupMongo.ts index 33b8392..cfb8ccf 100644 --- a/src/funcs/backupManualBackupMongo.ts +++ b/src/funcs/backupManualBackupMongo.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-manualBackupMongo", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupManualBackupMySql.ts b/src/funcs/backupManualBackupMySql.ts index 9ec507c..f7d9534 100644 --- a/src/funcs/backupManualBackupMySql.ts +++ b/src/funcs/backupManualBackupMySql.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-manualBackupMySql", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupManualBackupPostgres.ts b/src/funcs/backupManualBackupPostgres.ts index 3476f10..969293e 100644 --- a/src/funcs/backupManualBackupPostgres.ts +++ b/src/funcs/backupManualBackupPostgres.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-manualBackupPostgres", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupManualBackupWebServer.ts b/src/funcs/backupManualBackupWebServer.ts index 616addc..6972308 100644 --- a/src/funcs/backupManualBackupWebServer.ts +++ b/src/funcs/backupManualBackupWebServer.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-manualBackupWebServer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupOne.ts b/src/funcs/backupOne.ts index fde7885..133b7cd 100644 --- a/src/funcs/backupOne.ts +++ b/src/funcs/backupOne.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupRemove.ts b/src/funcs/backupRemove.ts index c1eeedd..ad78c39 100644 --- a/src/funcs/backupRemove.ts +++ b/src/funcs/backupRemove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/backupUpdate.ts b/src/funcs/backupUpdate.ts index 8b40622..c34a5d5 100644 --- a/src/funcs/backupUpdate.ts +++ b/src/funcs/backupUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "backup-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bitbucketCreate.ts b/src/funcs/bitbucketCreate.ts index 8091cb6..e4683d4 100644 --- a/src/funcs/bitbucketCreate.ts +++ b/src/funcs/bitbucketCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "bitbucket-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bitbucketGetBranches.ts b/src/funcs/bitbucketGetBranches.ts index b02506f..7bb9935 100644 --- a/src/funcs/bitbucketGetBranches.ts +++ b/src/funcs/bitbucketGetBranches.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "bitbucket-getBitbucketBranches", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bitbucketGetOne.ts b/src/funcs/bitbucketGetOne.ts index a2eb69f..b5ce914 100644 --- a/src/funcs/bitbucketGetOne.ts +++ b/src/funcs/bitbucketGetOne.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "bitbucket-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bitbucketGetProviders.ts b/src/funcs/bitbucketGetProviders.ts index bd6bd37..ea9e58c 100644 --- a/src/funcs/bitbucketGetProviders.ts +++ b/src/funcs/bitbucketGetProviders.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "bitbucket-bitbucketProviders", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bitbucketGetRepositories.ts b/src/funcs/bitbucketGetRepositories.ts index ab77d3d..3d5506f 100644 --- a/src/funcs/bitbucketGetRepositories.ts +++ b/src/funcs/bitbucketGetRepositories.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "bitbucket-getBitbucketRepositories", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bitbucketTestConnection.ts b/src/funcs/bitbucketTestConnection.ts index 58a61d2..6d1d7fa 100644 --- a/src/funcs/bitbucketTestConnection.ts +++ b/src/funcs/bitbucketTestConnection.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "bitbucket-testConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bitbucketUpdate.ts b/src/funcs/bitbucketUpdate.ts index 5a7fd83..b141715 100644 --- a/src/funcs/bitbucketUpdate.ts +++ b/src/funcs/bitbucketUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "bitbucket-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/certificatesCreate.ts b/src/funcs/certificatesCreate.ts index ac4c958..45f3d46 100644 --- a/src/funcs/certificatesCreate.ts +++ b/src/funcs/certificatesCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "certificates-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/certificatesGet.ts b/src/funcs/certificatesGet.ts index 349180b..c2e7911 100644 --- a/src/funcs/certificatesGet.ts +++ b/src/funcs/certificatesGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "certificates-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/certificatesGetAll.ts b/src/funcs/certificatesGetAll.ts index 117f039..a7dc83a 100644 --- a/src/funcs/certificatesGetAll.ts +++ b/src/funcs/certificatesGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "certificates-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/certificatesRemove.ts b/src/funcs/certificatesRemove.ts index c6a2535..2aaef75 100644 --- a/src/funcs/certificatesRemove.ts +++ b/src/funcs/certificatesRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "certificates-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/clusterAddManager.ts b/src/funcs/clusterAddManager.ts index c6f99a0..10a2a7d 100644 --- a/src/funcs/clusterAddManager.ts +++ b/src/funcs/clusterAddManager.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "cluster-addManager", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/clusterAddWorker.ts b/src/funcs/clusterAddWorker.ts index c301e0a..abc18e0 100644 --- a/src/funcs/clusterAddWorker.ts +++ b/src/funcs/clusterAddWorker.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "cluster-addWorker", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/clusterGetNodes.ts b/src/funcs/clusterGetNodes.ts index 58ee209..39bfa7b 100644 --- a/src/funcs/clusterGetNodes.ts +++ b/src/funcs/clusterGetNodes.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "cluster-getNodes", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/clusterRemoveWorker.ts b/src/funcs/clusterRemoveWorker.ts index edfd9de..c6f824a 100644 --- a/src/funcs/clusterRemoveWorker.ts +++ b/src/funcs/clusterRemoveWorker.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "cluster-removeWorker", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeCancelDeployment.ts b/src/funcs/composeCancelDeployment.ts index 06dacc5..e833285 100644 --- a/src/funcs/composeCancelDeployment.ts +++ b/src/funcs/composeCancelDeployment.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-cancelDeployment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeCleanQueues.ts b/src/funcs/composeCleanQueues.ts index 1e85786..63d4030 100644 --- a/src/funcs/composeCleanQueues.ts +++ b/src/funcs/composeCleanQueues.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-cleanQueues", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeCreate.ts b/src/funcs/composeCreate.ts index 3095715..be0d26c 100644 --- a/src/funcs/composeCreate.ts +++ b/src/funcs/composeCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeDelete.ts b/src/funcs/composeDelete.ts index d590fbf..f241122 100644 --- a/src/funcs/composeDelete.ts +++ b/src/funcs/composeDelete.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeDeploy.ts b/src/funcs/composeDeploy.ts index e61fe50..4a8a2f2 100644 --- a/src/funcs/composeDeploy.ts +++ b/src/funcs/composeDeploy.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-deploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeDeployTemplate.ts b/src/funcs/composeDeployTemplate.ts index b0e25c6..487835b 100644 --- a/src/funcs/composeDeployTemplate.ts +++ b/src/funcs/composeDeployTemplate.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-deployTemplate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeDisconnectGitprovider.ts b/src/funcs/composeDisconnectGitprovider.ts index e46b580..770f600 100644 --- a/src/funcs/composeDisconnectGitprovider.ts +++ b/src/funcs/composeDisconnectGitprovider.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-disconnectGitProvider", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeFetchSourceType.ts b/src/funcs/composeFetchSourceType.ts index 8133417..e649fd4 100644 --- a/src/funcs/composeFetchSourceType.ts +++ b/src/funcs/composeFetchSourceType.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-fetchSourceType", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeGetConvertedCompose.ts b/src/funcs/composeGetConvertedCompose.ts index b518e43..1d78739 100644 --- a/src/funcs/composeGetConvertedCompose.ts +++ b/src/funcs/composeGetConvertedCompose.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-getConvertedCompose", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeGetDefaultCommand.ts b/src/funcs/composeGetDefaultCommand.ts index e0c391f..45c7562 100644 --- a/src/funcs/composeGetDefaultCommand.ts +++ b/src/funcs/composeGetDefaultCommand.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-getDefaultCommand", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeGetTags.ts b/src/funcs/composeGetTags.ts index bdbc78a..1f26c76 100644 --- a/src/funcs/composeGetTags.ts +++ b/src/funcs/composeGetTags.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-getTags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeGetTemplates.ts b/src/funcs/composeGetTemplates.ts index 2fd164a..b151e8e 100644 --- a/src/funcs/composeGetTemplates.ts +++ b/src/funcs/composeGetTemplates.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-templates", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeImport.ts b/src/funcs/composeImport.ts index a222385..37cfbd1 100644 --- a/src/funcs/composeImport.ts +++ b/src/funcs/composeImport.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-import", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeIsolatedDeployment.ts b/src/funcs/composeIsolatedDeployment.ts index f00a2ae..5a97f73 100644 --- a/src/funcs/composeIsolatedDeployment.ts +++ b/src/funcs/composeIsolatedDeployment.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-isolatedDeployment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeLoadMountsByService.ts b/src/funcs/composeLoadMountsByService.ts index 62018ca..d8d96a3 100644 --- a/src/funcs/composeLoadMountsByService.ts +++ b/src/funcs/composeLoadMountsByService.ts @@ -100,7 +100,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-loadMountsByService", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeMove.ts b/src/funcs/composeMove.ts index 8829158..ad7e63d 100644 --- a/src/funcs/composeMove.ts +++ b/src/funcs/composeMove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-move", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeOne.ts b/src/funcs/composeOne.ts index af124ec..6519c9b 100644 --- a/src/funcs/composeOne.ts +++ b/src/funcs/composeOne.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeProcessTemplate.ts b/src/funcs/composeProcessTemplate.ts index 767de64..27bf4cb 100644 --- a/src/funcs/composeProcessTemplate.ts +++ b/src/funcs/composeProcessTemplate.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-processTemplate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeRandomizeCompose.ts b/src/funcs/composeRandomizeCompose.ts index 6b0c9f4..a781a19 100644 --- a/src/funcs/composeRandomizeCompose.ts +++ b/src/funcs/composeRandomizeCompose.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-randomizeCompose", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeRedeploy.ts b/src/funcs/composeRedeploy.ts index de0ffca..0c49103 100644 --- a/src/funcs/composeRedeploy.ts +++ b/src/funcs/composeRedeploy.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-redeploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeRefreshToken.ts b/src/funcs/composeRefreshToken.ts index 309a99f..dc5e948 100644 --- a/src/funcs/composeRefreshToken.ts +++ b/src/funcs/composeRefreshToken.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-refreshToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeStart.ts b/src/funcs/composeStart.ts index a695d91..0ede9d5 100644 --- a/src/funcs/composeStart.ts +++ b/src/funcs/composeStart.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-start", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeStop.ts b/src/funcs/composeStop.ts index 950e49b..e1e3011 100644 --- a/src/funcs/composeStop.ts +++ b/src/funcs/composeStop.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-stop", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/composeUpdate.ts b/src/funcs/composeUpdate.ts index 8c9e123..ae0f986 100644 --- a/src/funcs/composeUpdate.ts +++ b/src/funcs/composeUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "compose-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/deploymentAll.ts b/src/funcs/deploymentAll.ts index 7bd0fc4..e0b0684 100644 --- a/src/funcs/deploymentAll.ts +++ b/src/funcs/deploymentAll.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deployment-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/deploymentAllByServer.ts b/src/funcs/deploymentAllByServer.ts index 1d86d85..151fca1 100644 --- a/src/funcs/deploymentAllByServer.ts +++ b/src/funcs/deploymentAllByServer.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deployment-allByServer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/deploymentGetAllByCompose.ts b/src/funcs/deploymentGetAllByCompose.ts index 7c44899..56e35c0 100644 --- a/src/funcs/deploymentGetAllByCompose.ts +++ b/src/funcs/deploymentGetAllByCompose.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deployment-allByCompose", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/deploymentGetAllByType.ts b/src/funcs/deploymentGetAllByType.ts index 43d44d7..002ff97 100644 --- a/src/funcs/deploymentGetAllByType.ts +++ b/src/funcs/deploymentGetAllByType.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deployment-allByType", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/deploymentKillProcess.ts b/src/funcs/deploymentKillProcess.ts index bd57887..9313f04 100644 --- a/src/funcs/deploymentKillProcess.ts +++ b/src/funcs/deploymentKillProcess.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deployment-killProcess", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/destinationCreate.ts b/src/funcs/destinationCreate.ts index cbba4b9..99532b0 100644 --- a/src/funcs/destinationCreate.ts +++ b/src/funcs/destinationCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "destination-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/destinationGet.ts b/src/funcs/destinationGet.ts index e8266e7..f93a45c 100644 --- a/src/funcs/destinationGet.ts +++ b/src/funcs/destinationGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "destination-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/destinationGetAll.ts b/src/funcs/destinationGetAll.ts index c8b960c..a8294fb 100644 --- a/src/funcs/destinationGetAll.ts +++ b/src/funcs/destinationGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "destination-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/destinationRemove.ts b/src/funcs/destinationRemove.ts index 470e5a5..3406d67 100644 --- a/src/funcs/destinationRemove.ts +++ b/src/funcs/destinationRemove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "destination-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/destinationTestConnection.ts b/src/funcs/destinationTestConnection.ts index 7575f38..155b300 100644 --- a/src/funcs/destinationTestConnection.ts +++ b/src/funcs/destinationTestConnection.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "destination-testConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/destinationUpdate.ts b/src/funcs/destinationUpdate.ts index 94d4c3e..cc4e071 100644 --- a/src/funcs/destinationUpdate.ts +++ b/src/funcs/destinationUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "destination-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/dockerGetConfig.ts b/src/funcs/dockerGetConfig.ts index 1a5262f..383155b 100644 --- a/src/funcs/dockerGetConfig.ts +++ b/src/funcs/dockerGetConfig.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "docker-getConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/dockerGetContainers.ts b/src/funcs/dockerGetContainers.ts index 41987f4..15591f5 100644 --- a/src/funcs/dockerGetContainers.ts +++ b/src/funcs/dockerGetContainers.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "docker-getContainers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/dockerGetContainersByAppLabel.ts b/src/funcs/dockerGetContainersByAppLabel.ts index 46d6093..e36ca2b 100644 --- a/src/funcs/dockerGetContainersByAppLabel.ts +++ b/src/funcs/dockerGetContainersByAppLabel.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "docker-getContainersByAppLabel", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/dockerGetContainersByAppNameMatch.ts b/src/funcs/dockerGetContainersByAppNameMatch.ts index 9c09bd2..95cb660 100644 --- a/src/funcs/dockerGetContainersByAppNameMatch.ts +++ b/src/funcs/dockerGetContainersByAppNameMatch.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "docker-getContainersByAppNameMatch", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/dockerGetServiceContainersByAppName.ts b/src/funcs/dockerGetServiceContainersByAppName.ts index c9156b0..794a91e 100644 --- a/src/funcs/dockerGetServiceContainersByAppName.ts +++ b/src/funcs/dockerGetServiceContainersByAppName.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "docker-getServiceContainersByAppName", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/dockerGetStackContainersByAppName.ts b/src/funcs/dockerGetStackContainersByAppName.ts index 11a08f6..0a88d76 100644 --- a/src/funcs/dockerGetStackContainersByAppName.ts +++ b/src/funcs/dockerGetStackContainersByAppName.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "docker-getStackContainersByAppName", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/dockerRestartContainer.ts b/src/funcs/dockerRestartContainer.ts index 8c85ac2..8454887 100644 --- a/src/funcs/dockerRestartContainer.ts +++ b/src/funcs/dockerRestartContainer.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "docker-restartContainer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainByApplicationId.ts b/src/funcs/domainByApplicationId.ts index cb92d67..6441b89 100644 --- a/src/funcs/domainByApplicationId.ts +++ b/src/funcs/domainByApplicationId.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-byApplicationId", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainCanGenerateTraefikDomains.ts b/src/funcs/domainCanGenerateTraefikDomains.ts index 17275d4..5e7486b 100644 --- a/src/funcs/domainCanGenerateTraefikDomains.ts +++ b/src/funcs/domainCanGenerateTraefikDomains.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-canGenerateTraefikMeDomains", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainCreate.ts b/src/funcs/domainCreate.ts index 0a31a17..7f966f1 100644 --- a/src/funcs/domainCreate.ts +++ b/src/funcs/domainCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainDelete.ts b/src/funcs/domainDelete.ts index 595acdd..9adc1ee 100644 --- a/src/funcs/domainDelete.ts +++ b/src/funcs/domainDelete.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainGenerateDomain.ts b/src/funcs/domainGenerateDomain.ts index eca343f..8e972cf 100644 --- a/src/funcs/domainGenerateDomain.ts +++ b/src/funcs/domainGenerateDomain.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-generateDomain", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainGetByComposeId.ts b/src/funcs/domainGetByComposeId.ts index 6b9dd0b..4a3db15 100644 --- a/src/funcs/domainGetByComposeId.ts +++ b/src/funcs/domainGetByComposeId.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-byComposeId", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainUpdate.ts b/src/funcs/domainUpdate.ts index 1c58273..aeb5778 100644 --- a/src/funcs/domainUpdate.ts +++ b/src/funcs/domainUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainValidateDomain.ts b/src/funcs/domainValidateDomain.ts index 78c4387..bb63d83 100644 --- a/src/funcs/domainValidateDomain.ts +++ b/src/funcs/domainValidateDomain.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-validateDomain", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/domainsGet.ts b/src/funcs/domainsGet.ts index 5a1162a..a3835d3 100644 --- a/src/funcs/domainsGet.ts +++ b/src/funcs/domainsGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "domain-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/environmentByProjectId.ts b/src/funcs/environmentByProjectId.ts index 6778b1e..9761a41 100644 --- a/src/funcs/environmentByProjectId.ts +++ b/src/funcs/environmentByProjectId.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "environment-byProjectId", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/environmentCreate.ts b/src/funcs/environmentCreate.ts index 7a99f50..f9c15ca 100644 --- a/src/funcs/environmentCreate.ts +++ b/src/funcs/environmentCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "environment-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/environmentDuplicate.ts b/src/funcs/environmentDuplicate.ts index 8b1afbf..ac62294 100644 --- a/src/funcs/environmentDuplicate.ts +++ b/src/funcs/environmentDuplicate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "environment-duplicate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/environmentGet.ts b/src/funcs/environmentGet.ts index 5052dc6..bc7b385 100644 --- a/src/funcs/environmentGet.ts +++ b/src/funcs/environmentGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "environment-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/environmentRemove.ts b/src/funcs/environmentRemove.ts index 2f540d5..88c102a 100644 --- a/src/funcs/environmentRemove.ts +++ b/src/funcs/environmentRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "environment-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/environmentUpdate.ts b/src/funcs/environmentUpdate.ts index e10f3b6..ca0de91 100644 --- a/src/funcs/environmentUpdate.ts +++ b/src/funcs/environmentUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "environment-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitProvidersGetAll.ts b/src/funcs/gitProvidersGetAll.ts index 8778742..3ca1c46 100644 --- a/src/funcs/gitProvidersGetAll.ts +++ b/src/funcs/gitProvidersGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitProvider-getAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/giteaCreate.ts b/src/funcs/giteaCreate.ts index 0daa3a9..196e3b1 100644 --- a/src/funcs/giteaCreate.ts +++ b/src/funcs/giteaCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitea-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/giteaGet.ts b/src/funcs/giteaGet.ts index d1aaa8f..419bd93 100644 --- a/src/funcs/giteaGet.ts +++ b/src/funcs/giteaGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitea-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/giteaGetBranches.ts b/src/funcs/giteaGetBranches.ts index 50f695a..7095721 100644 --- a/src/funcs/giteaGetBranches.ts +++ b/src/funcs/giteaGetBranches.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitea-getGiteaBranches", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/giteaGetProviders.ts b/src/funcs/giteaGetProviders.ts index 16e56dd..5988b82 100644 --- a/src/funcs/giteaGetProviders.ts +++ b/src/funcs/giteaGetProviders.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitea-giteaProviders", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/giteaGetRepositories.ts b/src/funcs/giteaGetRepositories.ts index 1641395..b88ece8 100644 --- a/src/funcs/giteaGetRepositories.ts +++ b/src/funcs/giteaGetRepositories.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitea-getGiteaRepositories", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/giteaGetUrl.ts b/src/funcs/giteaGetUrl.ts index bb8fc14..779a9cc 100644 --- a/src/funcs/giteaGetUrl.ts +++ b/src/funcs/giteaGetUrl.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitea-getGiteaUrl", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/giteaTestConnection.ts b/src/funcs/giteaTestConnection.ts index a099a3e..ac1ff20 100644 --- a/src/funcs/giteaTestConnection.ts +++ b/src/funcs/giteaTestConnection.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitea-testConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/giteaUpdate.ts b/src/funcs/giteaUpdate.ts index b90366a..0ea96e1 100644 --- a/src/funcs/giteaUpdate.ts +++ b/src/funcs/giteaUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitea-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubGetBranches.ts b/src/funcs/githubGetBranches.ts index 6606555..7eda9c2 100644 --- a/src/funcs/githubGetBranches.ts +++ b/src/funcs/githubGetBranches.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "github-getGithubBranches", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubGetGithubRepositories.ts b/src/funcs/githubGetGithubRepositories.ts index 0c59f9b..714dfe4 100644 --- a/src/funcs/githubGetGithubRepositories.ts +++ b/src/funcs/githubGetGithubRepositories.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "github-getGithubRepositories", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubGetProviders.ts b/src/funcs/githubGetProviders.ts index e5105c4..711e949 100644 --- a/src/funcs/githubGetProviders.ts +++ b/src/funcs/githubGetProviders.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "github-githubProviders", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubOne.ts b/src/funcs/githubOne.ts index ce3e16e..5bf944f 100644 --- a/src/funcs/githubOne.ts +++ b/src/funcs/githubOne.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "github-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubTestConnection.ts b/src/funcs/githubTestConnection.ts index eb2e338..4cc12cd 100644 --- a/src/funcs/githubTestConnection.ts +++ b/src/funcs/githubTestConnection.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "github-testConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubUpdate.ts b/src/funcs/githubUpdate.ts index 00444d7..b27eabd 100644 --- a/src/funcs/githubUpdate.ts +++ b/src/funcs/githubUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "github-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitlabCreate.ts b/src/funcs/gitlabCreate.ts index 9c6771d..f9f6a25 100644 --- a/src/funcs/gitlabCreate.ts +++ b/src/funcs/gitlabCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitlab-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitlabGetBranches.ts b/src/funcs/gitlabGetBranches.ts index 440d229..05a9694 100644 --- a/src/funcs/gitlabGetBranches.ts +++ b/src/funcs/gitlabGetBranches.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitlab-getGitlabBranches", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitlabGetGitlabRepositories.ts b/src/funcs/gitlabGetGitlabRepositories.ts index 65c6563..3c39375 100644 --- a/src/funcs/gitlabGetGitlabRepositories.ts +++ b/src/funcs/gitlabGetGitlabRepositories.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitlab-getGitlabRepositories", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitlabGetProviders.ts b/src/funcs/gitlabGetProviders.ts index 6edec4c..81f584d 100644 --- a/src/funcs/gitlabGetProviders.ts +++ b/src/funcs/gitlabGetProviders.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitlab-gitlabProviders", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitlabOne.ts b/src/funcs/gitlabOne.ts index 1b3b912..04f23d2 100644 --- a/src/funcs/gitlabOne.ts +++ b/src/funcs/gitlabOne.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitlab-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitlabTestConnection.ts b/src/funcs/gitlabTestConnection.ts index 9757365..755f394 100644 --- a/src/funcs/gitlabTestConnection.ts +++ b/src/funcs/gitlabTestConnection.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitlab-testConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitlabUpdate.ts b/src/funcs/gitlabUpdate.ts index 67f77d2..9c03692 100644 --- a/src/funcs/gitlabUpdate.ts +++ b/src/funcs/gitlabUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitlab-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/gitproviderRemove.ts b/src/funcs/gitproviderRemove.ts index 9852122..f0ff7b9 100644 --- a/src/funcs/gitproviderRemove.ts +++ b/src/funcs/gitproviderRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "gitProvider-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbChangeStatus.ts b/src/funcs/mariadbChangeStatus.ts index 9235fa5..12000c6 100644 --- a/src/funcs/mariadbChangeStatus.ts +++ b/src/funcs/mariadbChangeStatus.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-changeStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbCreate.ts b/src/funcs/mariadbCreate.ts index 331213a..53816d1 100644 --- a/src/funcs/mariadbCreate.ts +++ b/src/funcs/mariadbCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbDeploy.ts b/src/funcs/mariadbDeploy.ts index 4f2215c..7197994 100644 --- a/src/funcs/mariadbDeploy.ts +++ b/src/funcs/mariadbDeploy.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-deploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbGet.ts b/src/funcs/mariadbGet.ts index c5ab484..5913f2a 100644 --- a/src/funcs/mariadbGet.ts +++ b/src/funcs/mariadbGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbMove.ts b/src/funcs/mariadbMove.ts index 460afcd..78f693b 100644 --- a/src/funcs/mariadbMove.ts +++ b/src/funcs/mariadbMove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-move", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbRebuild.ts b/src/funcs/mariadbRebuild.ts index a4cbb2c..0d2f84f 100644 --- a/src/funcs/mariadbRebuild.ts +++ b/src/funcs/mariadbRebuild.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-rebuild", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbReload.ts b/src/funcs/mariadbReload.ts index 64094f9..741cb61 100644 --- a/src/funcs/mariadbReload.ts +++ b/src/funcs/mariadbReload.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-reload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbRemove.ts b/src/funcs/mariadbRemove.ts index 1f8d3e7..22f8ee8 100644 --- a/src/funcs/mariadbRemove.ts +++ b/src/funcs/mariadbRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbSaveEnvironment.ts b/src/funcs/mariadbSaveEnvironment.ts index ed20044..318f88e 100644 --- a/src/funcs/mariadbSaveEnvironment.ts +++ b/src/funcs/mariadbSaveEnvironment.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-saveEnvironment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbSaveExternalPort.ts b/src/funcs/mariadbSaveExternalPort.ts index ef9fe14..184e653 100644 --- a/src/funcs/mariadbSaveExternalPort.ts +++ b/src/funcs/mariadbSaveExternalPort.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-saveExternalPort", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbStart.ts b/src/funcs/mariadbStart.ts index 77194e5..3f2981f 100644 --- a/src/funcs/mariadbStart.ts +++ b/src/funcs/mariadbStart.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-start", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbStop.ts b/src/funcs/mariadbStop.ts index 921ed98..1cb9375 100644 --- a/src/funcs/mariadbStop.ts +++ b/src/funcs/mariadbStop.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-stop", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mariadbUpdate.ts b/src/funcs/mariadbUpdate.ts index dea19a8..4fc00d0 100644 --- a/src/funcs/mariadbUpdate.ts +++ b/src/funcs/mariadbUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mariadb-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoChangeStatus.ts b/src/funcs/mongoChangeStatus.ts index 6b0f5ea..331fe3e 100644 --- a/src/funcs/mongoChangeStatus.ts +++ b/src/funcs/mongoChangeStatus.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-changeStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoCreate.ts b/src/funcs/mongoCreate.ts index e019922..fa5ccc8 100644 --- a/src/funcs/mongoCreate.ts +++ b/src/funcs/mongoCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoDeploy.ts b/src/funcs/mongoDeploy.ts index 01d4f2c..637d7b4 100644 --- a/src/funcs/mongoDeploy.ts +++ b/src/funcs/mongoDeploy.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-deploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoGetOne.ts b/src/funcs/mongoGetOne.ts index c895e71..e086326 100644 --- a/src/funcs/mongoGetOne.ts +++ b/src/funcs/mongoGetOne.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoMove.ts b/src/funcs/mongoMove.ts index 1df2776..bbcb500 100644 --- a/src/funcs/mongoMove.ts +++ b/src/funcs/mongoMove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-move", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoRebuild.ts b/src/funcs/mongoRebuild.ts index b17bc0f..fa76456 100644 --- a/src/funcs/mongoRebuild.ts +++ b/src/funcs/mongoRebuild.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-rebuild", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoReload.ts b/src/funcs/mongoReload.ts index 51fda02..5fc0a1a 100644 --- a/src/funcs/mongoReload.ts +++ b/src/funcs/mongoReload.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-reload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoRemove.ts b/src/funcs/mongoRemove.ts index b670b87..7a4942f 100644 --- a/src/funcs/mongoRemove.ts +++ b/src/funcs/mongoRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoSaveEnvironment.ts b/src/funcs/mongoSaveEnvironment.ts index 5fd3cb9..7347170 100644 --- a/src/funcs/mongoSaveEnvironment.ts +++ b/src/funcs/mongoSaveEnvironment.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-saveEnvironment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoSaveExternalPort.ts b/src/funcs/mongoSaveExternalPort.ts index 011bfca..7fcaf9e 100644 --- a/src/funcs/mongoSaveExternalPort.ts +++ b/src/funcs/mongoSaveExternalPort.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-saveExternalPort", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoStart.ts b/src/funcs/mongoStart.ts index e4a917e..c159cbc 100644 --- a/src/funcs/mongoStart.ts +++ b/src/funcs/mongoStart.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-start", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoStop.ts b/src/funcs/mongoStop.ts index c96cac4..70f46c3 100644 --- a/src/funcs/mongoStop.ts +++ b/src/funcs/mongoStop.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-stop", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mongoUpdate.ts b/src/funcs/mongoUpdate.ts index 4fe2869..a5b6a7b 100644 --- a/src/funcs/mongoUpdate.ts +++ b/src/funcs/mongoUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mongo-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mountsAllNamedByApplicationId.ts b/src/funcs/mountsAllNamedByApplicationId.ts index df6f1a3..fa7308b 100644 --- a/src/funcs/mountsAllNamedByApplicationId.ts +++ b/src/funcs/mountsAllNamedByApplicationId.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mounts-allNamedByApplicationId", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mountsCreate.ts b/src/funcs/mountsCreate.ts index 640a00a..379cade 100644 --- a/src/funcs/mountsCreate.ts +++ b/src/funcs/mountsCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mounts-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mountsGet.ts b/src/funcs/mountsGet.ts index 4af51d7..1d014df 100644 --- a/src/funcs/mountsGet.ts +++ b/src/funcs/mountsGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mounts-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mountsRemove.ts b/src/funcs/mountsRemove.ts index c7577ea..df9981d 100644 --- a/src/funcs/mountsRemove.ts +++ b/src/funcs/mountsRemove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mounts-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mountsUpdate.ts b/src/funcs/mountsUpdate.ts index 457b046..ab93843 100644 --- a/src/funcs/mountsUpdate.ts +++ b/src/funcs/mountsUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mounts-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlChangeStatus.ts b/src/funcs/mysqlChangeStatus.ts index 6e4a9dd..75acd91 100644 --- a/src/funcs/mysqlChangeStatus.ts +++ b/src/funcs/mysqlChangeStatus.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-changeStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlCreate.ts b/src/funcs/mysqlCreate.ts index 4630684..1226a20 100644 --- a/src/funcs/mysqlCreate.ts +++ b/src/funcs/mysqlCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlDeploy.ts b/src/funcs/mysqlDeploy.ts index 9a1a956..e6d0ad7 100644 --- a/src/funcs/mysqlDeploy.ts +++ b/src/funcs/mysqlDeploy.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-deploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlGet.ts b/src/funcs/mysqlGet.ts index 629bc22..a288697 100644 --- a/src/funcs/mysqlGet.ts +++ b/src/funcs/mysqlGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlMove.ts b/src/funcs/mysqlMove.ts index fd34e0e..89108ee 100644 --- a/src/funcs/mysqlMove.ts +++ b/src/funcs/mysqlMove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-move", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlRebuild.ts b/src/funcs/mysqlRebuild.ts index e73797b..6651475 100644 --- a/src/funcs/mysqlRebuild.ts +++ b/src/funcs/mysqlRebuild.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-rebuild", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlReload.ts b/src/funcs/mysqlReload.ts index 8455299..6bdfeda 100644 --- a/src/funcs/mysqlReload.ts +++ b/src/funcs/mysqlReload.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-reload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlRemove.ts b/src/funcs/mysqlRemove.ts index ccd0d7b..95b5dd7 100644 --- a/src/funcs/mysqlRemove.ts +++ b/src/funcs/mysqlRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlSaveEnvironment.ts b/src/funcs/mysqlSaveEnvironment.ts index bf78594..00f5bc1 100644 --- a/src/funcs/mysqlSaveEnvironment.ts +++ b/src/funcs/mysqlSaveEnvironment.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-saveEnvironment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlSaveExternalPort.ts b/src/funcs/mysqlSaveExternalPort.ts index 51c6fab..caf75a1 100644 --- a/src/funcs/mysqlSaveExternalPort.ts +++ b/src/funcs/mysqlSaveExternalPort.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-saveExternalPort", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlStart.ts b/src/funcs/mysqlStart.ts index ead2f8c..bab82c4 100644 --- a/src/funcs/mysqlStart.ts +++ b/src/funcs/mysqlStart.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-start", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlStop.ts b/src/funcs/mysqlStop.ts index 033b986..d21e26d 100644 --- a/src/funcs/mysqlStop.ts +++ b/src/funcs/mysqlStop.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-stop", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/mysqlUpdate.ts b/src/funcs/mysqlUpdate.ts index df657cf..723a164 100644 --- a/src/funcs/mysqlUpdate.ts +++ b/src/funcs/mysqlUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "mysql-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationCreateDiscord.ts b/src/funcs/notificationCreateDiscord.ts index 2f5b8ee..9593621 100644 --- a/src/funcs/notificationCreateDiscord.ts +++ b/src/funcs/notificationCreateDiscord.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-createDiscord", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationCreateEmail.ts b/src/funcs/notificationCreateEmail.ts index 4a4b5ec..8251eb8 100644 --- a/src/funcs/notificationCreateEmail.ts +++ b/src/funcs/notificationCreateEmail.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-createEmail", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationCreateGotify.ts b/src/funcs/notificationCreateGotify.ts index 5499479..44131e1 100644 --- a/src/funcs/notificationCreateGotify.ts +++ b/src/funcs/notificationCreateGotify.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-createGotify", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationCreateNtfy.ts b/src/funcs/notificationCreateNtfy.ts index aba403e..ee0eaa9 100644 --- a/src/funcs/notificationCreateNtfy.ts +++ b/src/funcs/notificationCreateNtfy.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-createNtfy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationCreateSlack.ts b/src/funcs/notificationCreateSlack.ts index 1f5bd9f..4561737 100644 --- a/src/funcs/notificationCreateSlack.ts +++ b/src/funcs/notificationCreateSlack.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-createSlack", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationCreateTelegram.ts b/src/funcs/notificationCreateTelegram.ts index 997e6e1..455f737 100644 --- a/src/funcs/notificationCreateTelegram.ts +++ b/src/funcs/notificationCreateTelegram.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-createTelegram", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationGet.ts b/src/funcs/notificationGet.ts index 988729f..15e689b 100644 --- a/src/funcs/notificationGet.ts +++ b/src/funcs/notificationGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationGetEmailProviders.ts b/src/funcs/notificationGetEmailProviders.ts index e109014..3d4cc5a 100644 --- a/src/funcs/notificationGetEmailProviders.ts +++ b/src/funcs/notificationGetEmailProviders.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-getEmailProviders", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationReceiveNotification.ts b/src/funcs/notificationReceiveNotification.ts index b1d9858..88ef46f 100644 --- a/src/funcs/notificationReceiveNotification.ts +++ b/src/funcs/notificationReceiveNotification.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-receiveNotification", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationRemove.ts b/src/funcs/notificationRemove.ts index 937ac20..5f71a24 100644 --- a/src/funcs/notificationRemove.ts +++ b/src/funcs/notificationRemove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationTestDiscordConnection.ts b/src/funcs/notificationTestDiscordConnection.ts index 8b0ccc5..ae34909 100644 --- a/src/funcs/notificationTestDiscordConnection.ts +++ b/src/funcs/notificationTestDiscordConnection.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-testDiscordConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationTestEmailConnection.ts b/src/funcs/notificationTestEmailConnection.ts index 9985a7d..7479437 100644 --- a/src/funcs/notificationTestEmailConnection.ts +++ b/src/funcs/notificationTestEmailConnection.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-testEmailConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationTestGotifyConnection.ts b/src/funcs/notificationTestGotifyConnection.ts index efdfded..538d42a 100644 --- a/src/funcs/notificationTestGotifyConnection.ts +++ b/src/funcs/notificationTestGotifyConnection.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-testGotifyConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationTestNtfyConnection.ts b/src/funcs/notificationTestNtfyConnection.ts index 0f0c0e3..b9aaf8e 100644 --- a/src/funcs/notificationTestNtfyConnection.ts +++ b/src/funcs/notificationTestNtfyConnection.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-testNtfyConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationTestSlackConnection.ts b/src/funcs/notificationTestSlackConnection.ts index 6248c9e..2276322 100644 --- a/src/funcs/notificationTestSlackConnection.ts +++ b/src/funcs/notificationTestSlackConnection.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-testSlackConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationTestTelegramConnection.ts b/src/funcs/notificationTestTelegramConnection.ts index 4676bdc..373dfb4 100644 --- a/src/funcs/notificationTestTelegramConnection.ts +++ b/src/funcs/notificationTestTelegramConnection.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-testTelegramConnection", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationUpdateDiscord.ts b/src/funcs/notificationUpdateDiscord.ts index 7aabdb8..e3df682 100644 --- a/src/funcs/notificationUpdateDiscord.ts +++ b/src/funcs/notificationUpdateDiscord.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-updateDiscord", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationUpdateEmail.ts b/src/funcs/notificationUpdateEmail.ts index 5f26003..4377071 100644 --- a/src/funcs/notificationUpdateEmail.ts +++ b/src/funcs/notificationUpdateEmail.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-updateEmail", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationUpdateGotify.ts b/src/funcs/notificationUpdateGotify.ts index 92122a9..eab2090 100644 --- a/src/funcs/notificationUpdateGotify.ts +++ b/src/funcs/notificationUpdateGotify.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-updateGotify", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationUpdateNtfy.ts b/src/funcs/notificationUpdateNtfy.ts index 09b1ae8..346f5e9 100644 --- a/src/funcs/notificationUpdateNtfy.ts +++ b/src/funcs/notificationUpdateNtfy.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-updateNtfy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationUpdateSlack.ts b/src/funcs/notificationUpdateSlack.ts index 7debccd..fc20cbf 100644 --- a/src/funcs/notificationUpdateSlack.ts +++ b/src/funcs/notificationUpdateSlack.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-updateSlack", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationUpdateTelegram.ts b/src/funcs/notificationUpdateTelegram.ts index ee72228..7130aa2 100644 --- a/src/funcs/notificationUpdateTelegram.ts +++ b/src/funcs/notificationUpdateTelegram.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-updateTelegram", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationsGetAll.ts b/src/funcs/notificationsGetAll.ts index 348a314..f05e3b0 100644 --- a/src/funcs/notificationsGetAll.ts +++ b/src/funcs/notificationsGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "notification-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationAllInvitations.ts b/src/funcs/organizationAllInvitations.ts index 7cd73f7..5ce1123 100644 --- a/src/funcs/organizationAllInvitations.ts +++ b/src/funcs/organizationAllInvitations.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "organization-allInvitations", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationCreate.ts b/src/funcs/organizationCreate.ts index fda5bfc..9474099 100644 --- a/src/funcs/organizationCreate.ts +++ b/src/funcs/organizationCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "organization-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationDelete.ts b/src/funcs/organizationDelete.ts index febfd8f..d55e1f1 100644 --- a/src/funcs/organizationDelete.ts +++ b/src/funcs/organizationDelete.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "organization-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationGet.ts b/src/funcs/organizationGet.ts index e7364db..6e46305 100644 --- a/src/funcs/organizationGet.ts +++ b/src/funcs/organizationGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "organization-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationGetAll.ts b/src/funcs/organizationGetAll.ts index 3fcb7e0..04c2880 100644 --- a/src/funcs/organizationGetAll.ts +++ b/src/funcs/organizationGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "organization-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationRemoveInvitation.ts b/src/funcs/organizationRemoveInvitation.ts index c63ad8e..7eec898 100644 --- a/src/funcs/organizationRemoveInvitation.ts +++ b/src/funcs/organizationRemoveInvitation.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "organization-removeInvitation", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationUpdate.ts b/src/funcs/organizationUpdate.ts index e3bafff..c8cb013 100644 --- a/src/funcs/organizationUpdate.ts +++ b/src/funcs/organizationUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "organization-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/portCreate.ts b/src/funcs/portCreate.ts index 02adc4f..c74006f 100644 --- a/src/funcs/portCreate.ts +++ b/src/funcs/portCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "port-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/portDelete.ts b/src/funcs/portDelete.ts index b3f4ced..67a992c 100644 --- a/src/funcs/portDelete.ts +++ b/src/funcs/portDelete.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "port-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/portGet.ts b/src/funcs/portGet.ts index a7d5e44..77dcd77 100644 --- a/src/funcs/portGet.ts +++ b/src/funcs/portGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "port-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/portUpdate.ts b/src/funcs/portUpdate.ts index 6e22368..b7cc05e 100644 --- a/src/funcs/portUpdate.ts +++ b/src/funcs/portUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "port-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresChangeStatus.ts b/src/funcs/postgresChangeStatus.ts index cd5c582..396af99 100644 --- a/src/funcs/postgresChangeStatus.ts +++ b/src/funcs/postgresChangeStatus.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-changeStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresCreate.ts b/src/funcs/postgresCreate.ts index 90d52b6..6a33473 100644 --- a/src/funcs/postgresCreate.ts +++ b/src/funcs/postgresCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresDeploy.ts b/src/funcs/postgresDeploy.ts index 1761376..2e9e812 100644 --- a/src/funcs/postgresDeploy.ts +++ b/src/funcs/postgresDeploy.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-deploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresGet.ts b/src/funcs/postgresGet.ts index 12aac1b..be7bb3d 100644 --- a/src/funcs/postgresGet.ts +++ b/src/funcs/postgresGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresMove.ts b/src/funcs/postgresMove.ts index 0132cf8..d6e06a4 100644 --- a/src/funcs/postgresMove.ts +++ b/src/funcs/postgresMove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-move", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresRebuild.ts b/src/funcs/postgresRebuild.ts index c5d82ce..9cb08bd 100644 --- a/src/funcs/postgresRebuild.ts +++ b/src/funcs/postgresRebuild.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-rebuild", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresReload.ts b/src/funcs/postgresReload.ts index 87ccf30..dbbbb11 100644 --- a/src/funcs/postgresReload.ts +++ b/src/funcs/postgresReload.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-reload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresRemove.ts b/src/funcs/postgresRemove.ts index 7c1608f..ad75895 100644 --- a/src/funcs/postgresRemove.ts +++ b/src/funcs/postgresRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresSaveEnvironment.ts b/src/funcs/postgresSaveEnvironment.ts index 52b30b4..74f6cd2 100644 --- a/src/funcs/postgresSaveEnvironment.ts +++ b/src/funcs/postgresSaveEnvironment.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-saveEnvironment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresSaveExternalPort.ts b/src/funcs/postgresSaveExternalPort.ts index 9eb9556..8b582cf 100644 --- a/src/funcs/postgresSaveExternalPort.ts +++ b/src/funcs/postgresSaveExternalPort.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-saveExternalPort", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresStart.ts b/src/funcs/postgresStart.ts index 7380b03..05e66d0 100644 --- a/src/funcs/postgresStart.ts +++ b/src/funcs/postgresStart.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-start", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresStop.ts b/src/funcs/postgresStop.ts index e406862..2b18522 100644 --- a/src/funcs/postgresStop.ts +++ b/src/funcs/postgresStop.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-stop", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/postgresUpdate.ts b/src/funcs/postgresUpdate.ts index bddaf81..29a5076 100644 --- a/src/funcs/postgresUpdate.ts +++ b/src/funcs/postgresUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postgres-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/previewDeploymentDelete.ts b/src/funcs/previewDeploymentDelete.ts index 70afed0..8e6a1e1 100644 --- a/src/funcs/previewDeploymentDelete.ts +++ b/src/funcs/previewDeploymentDelete.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "previewDeployment-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/previewDeploymentGet.ts b/src/funcs/previewDeploymentGet.ts index e4e9570..cfbbf7a 100644 --- a/src/funcs/previewDeploymentGet.ts +++ b/src/funcs/previewDeploymentGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "previewDeployment-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/previewDeploymentGetAll.ts b/src/funcs/previewDeploymentGetAll.ts index cdd0f1a..73c6408 100644 --- a/src/funcs/previewDeploymentGetAll.ts +++ b/src/funcs/previewDeploymentGetAll.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "previewDeployment-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/projectCreate.ts b/src/funcs/projectCreate.ts index 42e9471..d95ccbc 100644 --- a/src/funcs/projectCreate.ts +++ b/src/funcs/projectCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "project-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/projectDuplicate.ts b/src/funcs/projectDuplicate.ts index 7d1b40a..6db8395 100644 --- a/src/funcs/projectDuplicate.ts +++ b/src/funcs/projectDuplicate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "project-duplicate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/projectGet.ts b/src/funcs/projectGet.ts index 4312677..44e82d2 100644 --- a/src/funcs/projectGet.ts +++ b/src/funcs/projectGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "project-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/projectGetAll.ts b/src/funcs/projectGetAll.ts index b37a900..5b9f93c 100644 --- a/src/funcs/projectGetAll.ts +++ b/src/funcs/projectGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "project-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/projectUpdate.ts b/src/funcs/projectUpdate.ts index 2a514f7..504b719 100644 --- a/src/funcs/projectUpdate.ts +++ b/src/funcs/projectUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "project-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/projectsRemove.ts b/src/funcs/projectsRemove.ts index b46b5e6..47cd654 100644 --- a/src/funcs/projectsRemove.ts +++ b/src/funcs/projectsRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "project-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redirectsCreate.ts b/src/funcs/redirectsCreate.ts index 5d0e05a..9b3d51e 100644 --- a/src/funcs/redirectsCreate.ts +++ b/src/funcs/redirectsCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redirects-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redirectsDelete.ts b/src/funcs/redirectsDelete.ts index 6f44b73..858a121 100644 --- a/src/funcs/redirectsDelete.ts +++ b/src/funcs/redirectsDelete.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redirects-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redirectsGet.ts b/src/funcs/redirectsGet.ts index 6356cde..ec2ae5b 100644 --- a/src/funcs/redirectsGet.ts +++ b/src/funcs/redirectsGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redirects-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redirectsUpdate.ts b/src/funcs/redirectsUpdate.ts index be8830a..0b5b3eb 100644 --- a/src/funcs/redirectsUpdate.ts +++ b/src/funcs/redirectsUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redirects-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisChangeStatus.ts b/src/funcs/redisChangeStatus.ts index d78d8d2..79ca145 100644 --- a/src/funcs/redisChangeStatus.ts +++ b/src/funcs/redisChangeStatus.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-changeStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisCreate.ts b/src/funcs/redisCreate.ts index fc90ff7..e4a3f15 100644 --- a/src/funcs/redisCreate.ts +++ b/src/funcs/redisCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisDeploy.ts b/src/funcs/redisDeploy.ts index 7a80ffa..8437fd9 100644 --- a/src/funcs/redisDeploy.ts +++ b/src/funcs/redisDeploy.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-deploy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisGetOne.ts b/src/funcs/redisGetOne.ts index e6be374..0dfcfc2 100644 --- a/src/funcs/redisGetOne.ts +++ b/src/funcs/redisGetOne.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisMove.ts b/src/funcs/redisMove.ts index 7b9e639..0c4a679 100644 --- a/src/funcs/redisMove.ts +++ b/src/funcs/redisMove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-move", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisRebuild.ts b/src/funcs/redisRebuild.ts index f97fc4a..412b4b0 100644 --- a/src/funcs/redisRebuild.ts +++ b/src/funcs/redisRebuild.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-rebuild", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisReload.ts b/src/funcs/redisReload.ts index a4ed9e1..07e6a56 100644 --- a/src/funcs/redisReload.ts +++ b/src/funcs/redisReload.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-reload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisRemove.ts b/src/funcs/redisRemove.ts index f422ede..4487f0a 100644 --- a/src/funcs/redisRemove.ts +++ b/src/funcs/redisRemove.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisSaveEnvironment.ts b/src/funcs/redisSaveEnvironment.ts index d70e15a..fda2c06 100644 --- a/src/funcs/redisSaveEnvironment.ts +++ b/src/funcs/redisSaveEnvironment.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-saveEnvironment", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisSaveExternalPort.ts b/src/funcs/redisSaveExternalPort.ts index 15a4ba1..9037be5 100644 --- a/src/funcs/redisSaveExternalPort.ts +++ b/src/funcs/redisSaveExternalPort.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-saveExternalPort", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisStart.ts b/src/funcs/redisStart.ts index 0bb5b2f..6095ae5 100644 --- a/src/funcs/redisStart.ts +++ b/src/funcs/redisStart.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-start", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisStop.ts b/src/funcs/redisStop.ts index 75f08ce..9947a1b 100644 --- a/src/funcs/redisStop.ts +++ b/src/funcs/redisStop.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-stop", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/redisUpdate.ts b/src/funcs/redisUpdate.ts index 21aaf8e..2fe5568 100644 --- a/src/funcs/redisUpdate.ts +++ b/src/funcs/redisUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redis-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/registryCreate.ts b/src/funcs/registryCreate.ts index c976764..77504a6 100644 --- a/src/funcs/registryCreate.ts +++ b/src/funcs/registryCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "registry-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/registryGetAll.ts b/src/funcs/registryGetAll.ts index 431ca82..34668b2 100644 --- a/src/funcs/registryGetAll.ts +++ b/src/funcs/registryGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "registry-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/registryOne.ts b/src/funcs/registryOne.ts index 1447e90..8038ef8 100644 --- a/src/funcs/registryOne.ts +++ b/src/funcs/registryOne.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "registry-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/registryRemove.ts b/src/funcs/registryRemove.ts index e6e7eff..4579da6 100644 --- a/src/funcs/registryRemove.ts +++ b/src/funcs/registryRemove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "registry-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/registryTestRegistry.ts b/src/funcs/registryTestRegistry.ts index 4da2198..7a29de1 100644 --- a/src/funcs/registryTestRegistry.ts +++ b/src/funcs/registryTestRegistry.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "registry-testRegistry", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/registryUpdate.ts b/src/funcs/registryUpdate.ts index 37a275b..6379241 100644 --- a/src/funcs/registryUpdate.ts +++ b/src/funcs/registryUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "registry-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/rollbackDelete.ts b/src/funcs/rollbackDelete.ts index 7bf5acc..a9bffe2 100644 --- a/src/funcs/rollbackDelete.ts +++ b/src/funcs/rollbackDelete.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "rollback-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/rollbackExecute.ts b/src/funcs/rollbackExecute.ts index 0d48750..7f96ccd 100644 --- a/src/funcs/rollbackExecute.ts +++ b/src/funcs/rollbackExecute.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "rollback-rollback", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/scheduleCreate.ts b/src/funcs/scheduleCreate.ts index 4e3c78b..208e7e7 100644 --- a/src/funcs/scheduleCreate.ts +++ b/src/funcs/scheduleCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "schedule-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/scheduleDelete.ts b/src/funcs/scheduleDelete.ts index d9bbd4b..60c6038 100644 --- a/src/funcs/scheduleDelete.ts +++ b/src/funcs/scheduleDelete.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "schedule-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/scheduleGet.ts b/src/funcs/scheduleGet.ts index ec67797..148a9c7 100644 --- a/src/funcs/scheduleGet.ts +++ b/src/funcs/scheduleGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "schedule-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/scheduleList.ts b/src/funcs/scheduleList.ts index 792d04b..d2e276a 100644 --- a/src/funcs/scheduleList.ts +++ b/src/funcs/scheduleList.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "schedule-list", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/scheduleRunManually.ts b/src/funcs/scheduleRunManually.ts index 7df0669..82f2501 100644 --- a/src/funcs/scheduleRunManually.ts +++ b/src/funcs/scheduleRunManually.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "schedule-runManually", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/scheduleUpdate.ts b/src/funcs/scheduleUpdate.ts index 88c69f1..aa9e4a2 100644 --- a/src/funcs/scheduleUpdate.ts +++ b/src/funcs/scheduleUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "schedule-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/securityCreate.ts b/src/funcs/securityCreate.ts index d50ec03..929405c 100644 --- a/src/funcs/securityCreate.ts +++ b/src/funcs/securityCreate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "security-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/securityDelete.ts b/src/funcs/securityDelete.ts index d88d4b6..f7c473f 100644 --- a/src/funcs/securityDelete.ts +++ b/src/funcs/securityDelete.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "security-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/securityGet.ts b/src/funcs/securityGet.ts index e794c93..66a38cb 100644 --- a/src/funcs/securityGet.ts +++ b/src/funcs/securityGet.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "security-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/securityUpdate.ts b/src/funcs/securityUpdate.ts index 62645b8..b4f3e65 100644 --- a/src/funcs/securityUpdate.ts +++ b/src/funcs/securityUpdate.ts @@ -94,7 +94,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "security-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverCount.ts b/src/funcs/serverCount.ts index 3263ffd..3831008 100644 --- a/src/funcs/serverCount.ts +++ b/src/funcs/serverCount.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-count", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverCreate.ts b/src/funcs/serverCreate.ts index 35e5ddb..b9b29de 100644 --- a/src/funcs/serverCreate.ts +++ b/src/funcs/serverCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverGet.ts b/src/funcs/serverGet.ts index 40699c2..17b4131 100644 --- a/src/funcs/serverGet.ts +++ b/src/funcs/serverGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverGetAll.ts b/src/funcs/serverGetAll.ts index 95afa0b..9ee135c 100644 --- a/src/funcs/serverGetAll.ts +++ b/src/funcs/serverGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverGetDefaultCommand.ts b/src/funcs/serverGetDefaultCommand.ts index 1172148..2567bc9 100644 --- a/src/funcs/serverGetDefaultCommand.ts +++ b/src/funcs/serverGetDefaultCommand.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-getDefaultCommand", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverGetSecurity.ts b/src/funcs/serverGetSecurity.ts index a76c55b..f19fb3d 100644 --- a/src/funcs/serverGetSecurity.ts +++ b/src/funcs/serverGetSecurity.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-security", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverGetServerMetrics.ts b/src/funcs/serverGetServerMetrics.ts index 2786cc8..8aa7a7d 100644 --- a/src/funcs/serverGetServerMetrics.ts +++ b/src/funcs/serverGetServerMetrics.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-getServerMetrics", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverPublicIp.ts b/src/funcs/serverPublicIp.ts index 2cd3e0d..69cf241 100644 --- a/src/funcs/serverPublicIp.ts +++ b/src/funcs/serverPublicIp.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-publicIp", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverRemove.ts b/src/funcs/serverRemove.ts index 7b110a6..02a09c4 100644 --- a/src/funcs/serverRemove.ts +++ b/src/funcs/serverRemove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverSetup.ts b/src/funcs/serverSetup.ts index adef058..d331371 100644 --- a/src/funcs/serverSetup.ts +++ b/src/funcs/serverSetup.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-setup", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverSetupMonitoring.ts b/src/funcs/serverSetupMonitoring.ts index 98228ed..343eb21 100644 --- a/src/funcs/serverSetupMonitoring.ts +++ b/src/funcs/serverSetupMonitoring.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-setupMonitoring", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverUpdate.ts b/src/funcs/serverUpdate.ts index 1030180..5e689c9 100644 --- a/src/funcs/serverUpdate.ts +++ b/src/funcs/serverUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serverValidate.ts b/src/funcs/serverValidate.ts index 0ea7190..9959d19 100644 --- a/src/funcs/serverValidate.ts +++ b/src/funcs/serverValidate.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-validate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/serversGetWithSshKey.ts b/src/funcs/serversGetWithSshKey.ts index 22d38f4..9b4461a 100644 --- a/src/funcs/serversGetWithSshKey.ts +++ b/src/funcs/serversGetWithSshKey.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "server-withSSHKey", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsAssignDomainServer.ts b/src/funcs/settingsAssignDomainServer.ts index 3dbec62..cc8c840 100644 --- a/src/funcs/settingsAssignDomainServer.ts +++ b/src/funcs/settingsAssignDomainServer.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-assignDomainServer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCheckGpuStatus.ts b/src/funcs/settingsCheckGpuStatus.ts index e9b241a..3c5ad0a 100644 --- a/src/funcs/settingsCheckGpuStatus.ts +++ b/src/funcs/settingsCheckGpuStatus.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-checkGPUStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanAll.ts b/src/funcs/settingsCleanAll.ts index a721fe7..c787a18 100644 --- a/src/funcs/settingsCleanAll.ts +++ b/src/funcs/settingsCleanAll.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanDockerBuilder.ts b/src/funcs/settingsCleanDockerBuilder.ts index 92f4b8e..aa8820f 100644 --- a/src/funcs/settingsCleanDockerBuilder.ts +++ b/src/funcs/settingsCleanDockerBuilder.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanDockerBuilder", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanDockerPrune.ts b/src/funcs/settingsCleanDockerPrune.ts index 5a27336..b07f68e 100644 --- a/src/funcs/settingsCleanDockerPrune.ts +++ b/src/funcs/settingsCleanDockerPrune.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanDockerPrune", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanMonitoring.ts b/src/funcs/settingsCleanMonitoring.ts index 86fa105..19afe09 100644 --- a/src/funcs/settingsCleanMonitoring.ts +++ b/src/funcs/settingsCleanMonitoring.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanMonitoring", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanRedis.ts b/src/funcs/settingsCleanRedis.ts index a73c794..e7802f5 100644 --- a/src/funcs/settingsCleanRedis.ts +++ b/src/funcs/settingsCleanRedis.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanRedis", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanSshPrivateKey.ts b/src/funcs/settingsCleanSshPrivateKey.ts index b70d89c..5416f54 100644 --- a/src/funcs/settingsCleanSshPrivateKey.ts +++ b/src/funcs/settingsCleanSshPrivateKey.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanSSHPrivateKey", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanStoppedContainers.ts b/src/funcs/settingsCleanStoppedContainers.ts index 9b078a5..56d723b 100644 --- a/src/funcs/settingsCleanStoppedContainers.ts +++ b/src/funcs/settingsCleanStoppedContainers.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanStoppedContainers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanUnusedImages.ts b/src/funcs/settingsCleanUnusedImages.ts index c6803ed..c0bb11a 100644 --- a/src/funcs/settingsCleanUnusedImages.ts +++ b/src/funcs/settingsCleanUnusedImages.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanUnusedImages", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsCleanUnusedVolumes.ts b/src/funcs/settingsCleanUnusedVolumes.ts index df22d05..6b9e203 100644 --- a/src/funcs/settingsCleanUnusedVolumes.ts +++ b/src/funcs/settingsCleanUnusedVolumes.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-cleanUnusedVolumes", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGet.ts b/src/funcs/settingsGet.ts index a4068e6..ab520e3 100644 --- a/src/funcs/settingsGet.ts +++ b/src/funcs/settingsGet.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-health", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGetDokployCloudIps.ts b/src/funcs/settingsGetDokployCloudIps.ts index 6fc4368..c392a4c 100644 --- a/src/funcs/settingsGetDokployCloudIps.ts +++ b/src/funcs/settingsGetDokployCloudIps.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-getDokployCloudIps", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGetDokployVersion.ts b/src/funcs/settingsGetDokployVersion.ts index 6fc997f..a20ace6 100644 --- a/src/funcs/settingsGetDokployVersion.ts +++ b/src/funcs/settingsGetDokployVersion.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-getDokployVersion", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGetIp.ts b/src/funcs/settingsGetIp.ts index 32306d8..594306e 100644 --- a/src/funcs/settingsGetIp.ts +++ b/src/funcs/settingsGetIp.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-getIp", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGetLogCleanupStatus.ts b/src/funcs/settingsGetLogCleanupStatus.ts index 852018c..c7f4595 100644 --- a/src/funcs/settingsGetLogCleanupStatus.ts +++ b/src/funcs/settingsGetLogCleanupStatus.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-getLogCleanupStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGetOpenApiDocument.ts b/src/funcs/settingsGetOpenApiDocument.ts index d9c7a97..457dbb6 100644 --- a/src/funcs/settingsGetOpenApiDocument.ts +++ b/src/funcs/settingsGetOpenApiDocument.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-getOpenApiDocument", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGetReleaseTag.ts b/src/funcs/settingsGetReleaseTag.ts index 0cbc31a..9c4df60 100644 --- a/src/funcs/settingsGetReleaseTag.ts +++ b/src/funcs/settingsGetReleaseTag.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-getReleaseTag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGetTraefikPorts.ts b/src/funcs/settingsGetTraefikPorts.ts index e6b1880..57d2551 100644 --- a/src/funcs/settingsGetTraefikPorts.ts +++ b/src/funcs/settingsGetTraefikPorts.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-getTraefikPorts", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsGetUpdateData.ts b/src/funcs/settingsGetUpdateData.ts index 3015fef..4eacfe9 100644 --- a/src/funcs/settingsGetUpdateData.ts +++ b/src/funcs/settingsGetUpdateData.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-getUpdateData", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsHaveActivateRequests.ts b/src/funcs/settingsHaveActivateRequests.ts index 91f5f4f..b92ff7d 100644 --- a/src/funcs/settingsHaveActivateRequests.ts +++ b/src/funcs/settingsHaveActivateRequests.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-haveActivateRequests", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsHaveTraefikDashboardPortEnabled.ts b/src/funcs/settingsHaveTraefikDashboardPortEnabled.ts index 35d1794..d1f7074 100644 --- a/src/funcs/settingsHaveTraefikDashboardPortEnabled.ts +++ b/src/funcs/settingsHaveTraefikDashboardPortEnabled.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-haveTraefikDashboardPortEnabled", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsIsCloud.ts b/src/funcs/settingsIsCloud.ts index 684ff1c..4e9642d 100644 --- a/src/funcs/settingsIsCloud.ts +++ b/src/funcs/settingsIsCloud.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-isCloud", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsIsUserSubscribed.ts b/src/funcs/settingsIsUserSubscribed.ts index eee1ee4..4ea5288 100644 --- a/src/funcs/settingsIsUserSubscribed.ts +++ b/src/funcs/settingsIsUserSubscribed.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-isUserSubscribed", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReadDirectories.ts b/src/funcs/settingsReadDirectories.ts index e2f1325..bb636ad 100644 --- a/src/funcs/settingsReadDirectories.ts +++ b/src/funcs/settingsReadDirectories.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-readDirectories", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReadMiddlewareTraefikConfig.ts b/src/funcs/settingsReadMiddlewareTraefikConfig.ts index fb18e72..19a0184 100644 --- a/src/funcs/settingsReadMiddlewareTraefikConfig.ts +++ b/src/funcs/settingsReadMiddlewareTraefikConfig.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-readMiddlewareTraefikConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReadTraefikConfig.ts b/src/funcs/settingsReadTraefikConfig.ts index d19b0b5..3178b9b 100644 --- a/src/funcs/settingsReadTraefikConfig.ts +++ b/src/funcs/settingsReadTraefikConfig.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-readTraefikConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReadTraefikEnv.ts b/src/funcs/settingsReadTraefikEnv.ts index 9e79aec..8340fb5 100644 --- a/src/funcs/settingsReadTraefikEnv.ts +++ b/src/funcs/settingsReadTraefikEnv.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-readTraefikEnv", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReadTraefikFile.ts b/src/funcs/settingsReadTraefikFile.ts index 87ce274..3e79b59 100644 --- a/src/funcs/settingsReadTraefikFile.ts +++ b/src/funcs/settingsReadTraefikFile.ts @@ -100,7 +100,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-readTraefikFile", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReadWebserverTraefikConfig.ts b/src/funcs/settingsReadWebserverTraefikConfig.ts index aecd691..29c2bbe 100644 --- a/src/funcs/settingsReadWebserverTraefikConfig.ts +++ b/src/funcs/settingsReadWebserverTraefikConfig.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-readWebServerTraefikConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReloadRedis.ts b/src/funcs/settingsReloadRedis.ts index cee0173..65ff8f2 100644 --- a/src/funcs/settingsReloadRedis.ts +++ b/src/funcs/settingsReloadRedis.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-reloadRedis", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReloadServer.ts b/src/funcs/settingsReloadServer.ts index 0d0329c..41dee73 100644 --- a/src/funcs/settingsReloadServer.ts +++ b/src/funcs/settingsReloadServer.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-reloadServer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsReloadTraefik.ts b/src/funcs/settingsReloadTraefik.ts index ac24cd4..6e78f12 100644 --- a/src/funcs/settingsReloadTraefik.ts +++ b/src/funcs/settingsReloadTraefik.ts @@ -100,7 +100,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-reloadTraefik", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsSaveSshPrivateKey.ts b/src/funcs/settingsSaveSshPrivateKey.ts index dd678a4..23ca391 100644 --- a/src/funcs/settingsSaveSshPrivateKey.ts +++ b/src/funcs/settingsSaveSshPrivateKey.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-saveSSHPrivateKey", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsSetupGpu.ts b/src/funcs/settingsSetupGpu.ts index 3620481..307d9c9 100644 --- a/src/funcs/settingsSetupGpu.ts +++ b/src/funcs/settingsSetupGpu.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-setupGPU", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsToggleDashboard.ts b/src/funcs/settingsToggleDashboard.ts index 9c2915a..0d20e2d 100644 --- a/src/funcs/settingsToggleDashboard.ts +++ b/src/funcs/settingsToggleDashboard.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-toggleDashboard", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsToggleRequests.ts b/src/funcs/settingsToggleRequests.ts index ed68703..4cd2789 100644 --- a/src/funcs/settingsToggleRequests.ts +++ b/src/funcs/settingsToggleRequests.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-toggleRequests", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsUpdateDockerCleanup.ts b/src/funcs/settingsUpdateDockerCleanup.ts index 31a10b3..a0e26d3 100644 --- a/src/funcs/settingsUpdateDockerCleanup.ts +++ b/src/funcs/settingsUpdateDockerCleanup.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-updateDockerCleanup", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsUpdateLogCleanup.ts b/src/funcs/settingsUpdateLogCleanup.ts index 93cc7f2..40ed7d4 100644 --- a/src/funcs/settingsUpdateLogCleanup.ts +++ b/src/funcs/settingsUpdateLogCleanup.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-updateLogCleanup", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsUpdateMiddlewareTraefikConfig.ts b/src/funcs/settingsUpdateMiddlewareTraefikConfig.ts index 62e37d7..55b905e 100644 --- a/src/funcs/settingsUpdateMiddlewareTraefikConfig.ts +++ b/src/funcs/settingsUpdateMiddlewareTraefikConfig.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-updateMiddlewareTraefikConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsUpdateServer.ts b/src/funcs/settingsUpdateServer.ts index 0ac5b53..5f0d08f 100644 --- a/src/funcs/settingsUpdateServer.ts +++ b/src/funcs/settingsUpdateServer.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-updateServer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsUpdateTraefikConfig.ts b/src/funcs/settingsUpdateTraefikConfig.ts index 334da64..7e557fd 100644 --- a/src/funcs/settingsUpdateTraefikConfig.ts +++ b/src/funcs/settingsUpdateTraefikConfig.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-updateTraefikConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsUpdateTraefikFile.ts b/src/funcs/settingsUpdateTraefikFile.ts index b6f2b0c..35e3b16 100644 --- a/src/funcs/settingsUpdateTraefikFile.ts +++ b/src/funcs/settingsUpdateTraefikFile.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-updateTraefikFile", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsUpdateTraefikPorts.ts b/src/funcs/settingsUpdateTraefikPorts.ts index b6bbabd..f8b2e8d 100644 --- a/src/funcs/settingsUpdateTraefikPorts.ts +++ b/src/funcs/settingsUpdateTraefikPorts.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-updateTraefikPorts", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsUpdateWebServerTraefikConfig.ts b/src/funcs/settingsUpdateWebServerTraefikConfig.ts index d0b4481..ad15fd7 100644 --- a/src/funcs/settingsUpdateWebServerTraefikConfig.ts +++ b/src/funcs/settingsUpdateWebServerTraefikConfig.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-updateWebServerTraefikConfig", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/settingsWriteTraefikEnv.ts b/src/funcs/settingsWriteTraefikEnv.ts index 357d022..b4cd75b 100644 --- a/src/funcs/settingsWriteTraefikEnv.ts +++ b/src/funcs/settingsWriteTraefikEnv.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "settings-writeTraefikEnv", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/sshKeyAll.ts b/src/funcs/sshKeyAll.ts index 839c924..f95293c 100644 --- a/src/funcs/sshKeyAll.ts +++ b/src/funcs/sshKeyAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sshKey-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/sshKeyCreate.ts b/src/funcs/sshKeyCreate.ts index 085ebdc..acae0f9 100644 --- a/src/funcs/sshKeyCreate.ts +++ b/src/funcs/sshKeyCreate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sshKey-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/sshKeyGet.ts b/src/funcs/sshKeyGet.ts index 440854f..9636240 100644 --- a/src/funcs/sshKeyGet.ts +++ b/src/funcs/sshKeyGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sshKey-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/sshKeyRemove.ts b/src/funcs/sshKeyRemove.ts index b208b9f..d82dc81 100644 --- a/src/funcs/sshKeyRemove.ts +++ b/src/funcs/sshKeyRemove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sshKey-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/sshKeyUpdate.ts b/src/funcs/sshKeyUpdate.ts index 94489db..cde9466 100644 --- a/src/funcs/sshKeyUpdate.ts +++ b/src/funcs/sshKeyUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sshKey-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/sshKeysGenerate.ts b/src/funcs/sshKeysGenerate.ts index 2ffc287..69af08d 100644 --- a/src/funcs/sshKeysGenerate.ts +++ b/src/funcs/sshKeysGenerate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sshKey-generate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/stripeCanCreateMoreServers.ts b/src/funcs/stripeCanCreateMoreServers.ts index f9c7550..008dc80 100644 --- a/src/funcs/stripeCanCreateMoreServers.ts +++ b/src/funcs/stripeCanCreateMoreServers.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "stripe-canCreateMoreServers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/stripeCreateCheckoutSession.ts b/src/funcs/stripeCreateCheckoutSession.ts index 0b160c6..86c0286 100644 --- a/src/funcs/stripeCreateCheckoutSession.ts +++ b/src/funcs/stripeCreateCheckoutSession.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "stripe-createCheckoutSession", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/stripeCreateCustomerPortalSession.ts b/src/funcs/stripeCreateCustomerPortalSession.ts index 19631a0..19f3794 100644 --- a/src/funcs/stripeCreateCustomerPortalSession.ts +++ b/src/funcs/stripeCreateCustomerPortalSession.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "stripe-createCustomerPortalSession", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/stripeGetProducts.ts b/src/funcs/stripeGetProducts.ts index 3ea3c6d..e915bbb 100644 --- a/src/funcs/stripeGetProducts.ts +++ b/src/funcs/stripeGetProducts.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "stripe-getProducts", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/swarmGetNodeApps.ts b/src/funcs/swarmGetNodeApps.ts index 4b5269e..0645a7d 100644 --- a/src/funcs/swarmGetNodeApps.ts +++ b/src/funcs/swarmGetNodeApps.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "swarm-getNodeApps", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/swarmGetNodeInfo.ts b/src/funcs/swarmGetNodeInfo.ts index 4f7d996..b27f212 100644 --- a/src/funcs/swarmGetNodeInfo.ts +++ b/src/funcs/swarmGetNodeInfo.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "swarm-getNodeInfo", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/swarmGetNodes.ts b/src/funcs/swarmGetNodes.ts index 05e0622..9b9d22f 100644 --- a/src/funcs/swarmGetNodes.ts +++ b/src/funcs/swarmGetNodes.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "swarm-getNodes", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userAssignPermissions.ts b/src/funcs/userAssignPermissions.ts index 4f3c226..d34cc43 100644 --- a/src/funcs/userAssignPermissions.ts +++ b/src/funcs/userAssignPermissions.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-assignPermissions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userCheckUserOrganizations.ts b/src/funcs/userCheckUserOrganizations.ts index 17181e4..4f2f604 100644 --- a/src/funcs/userCheckUserOrganizations.ts +++ b/src/funcs/userCheckUserOrganizations.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-checkUserOrganizations", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userCreateApiKey.ts b/src/funcs/userCreateApiKey.ts index 74d6dca..80a2e40 100644 --- a/src/funcs/userCreateApiKey.ts +++ b/src/funcs/userCreateApiKey.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-createApiKey", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userDeleteApiKey.ts b/src/funcs/userDeleteApiKey.ts index 4a2207f..260abb3 100644 --- a/src/funcs/userDeleteApiKey.ts +++ b/src/funcs/userDeleteApiKey.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-deleteApiKey", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGenerateToken.ts b/src/funcs/userGenerateToken.ts index 00c8205..40973b3 100644 --- a/src/funcs/userGenerateToken.ts +++ b/src/funcs/userGenerateToken.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-generateToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGet.ts b/src/funcs/userGet.ts index 941ea2d..95895ca 100644 --- a/src/funcs/userGet.ts +++ b/src/funcs/userGet.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-get", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGetAll.ts b/src/funcs/userGetAll.ts index 347aa11..e85b41f 100644 --- a/src/funcs/userGetAll.ts +++ b/src/funcs/userGetAll.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-all", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGetBackups.ts b/src/funcs/userGetBackups.ts index 6e23446..91c31e6 100644 --- a/src/funcs/userGetBackups.ts +++ b/src/funcs/userGetBackups.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-getBackups", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGetContainerMetrics.ts b/src/funcs/userGetContainerMetrics.ts index d8aa20b..452a846 100644 --- a/src/funcs/userGetContainerMetrics.ts +++ b/src/funcs/userGetContainerMetrics.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-getContainerMetrics", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGetInvitations.ts b/src/funcs/userGetInvitations.ts index 9c3fb96..aa95409 100644 --- a/src/funcs/userGetInvitations.ts +++ b/src/funcs/userGetInvitations.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-getInvitations", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGetMetricsToken.ts b/src/funcs/userGetMetricsToken.ts index 1321ec0..70b0295 100644 --- a/src/funcs/userGetMetricsToken.ts +++ b/src/funcs/userGetMetricsToken.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-getMetricsToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGetOne.ts b/src/funcs/userGetOne.ts index 863953a..1b48a32 100644 --- a/src/funcs/userGetOne.ts +++ b/src/funcs/userGetOne.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGetServerMetrics.ts b/src/funcs/userGetServerMetrics.ts index 7122924..cbc4230 100644 --- a/src/funcs/userGetServerMetrics.ts +++ b/src/funcs/userGetServerMetrics.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-getServerMetrics", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userGetUserByToken.ts b/src/funcs/userGetUserByToken.ts index 5a613b1..18a4998 100644 --- a/src/funcs/userGetUserByToken.ts +++ b/src/funcs/userGetUserByToken.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-getUserByToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userHaveRootAccess.ts b/src/funcs/userHaveRootAccess.ts index b02a5cf..86fba88 100644 --- a/src/funcs/userHaveRootAccess.ts +++ b/src/funcs/userHaveRootAccess.ts @@ -77,7 +77,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-haveRootAccess", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userSendInvitation.ts b/src/funcs/userSendInvitation.ts index 6754550..5126c08 100644 --- a/src/funcs/userSendInvitation.ts +++ b/src/funcs/userSendInvitation.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-sendInvitation", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/userUpdate.ts b/src/funcs/userUpdate.ts index 9f6f89e..ca91f78 100644 --- a/src/funcs/userUpdate.ts +++ b/src/funcs/userUpdate.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/usersRemove.ts b/src/funcs/usersRemove.ts index f1ebd51..b6e2d54 100644 --- a/src/funcs/usersRemove.ts +++ b/src/funcs/usersRemove.ts @@ -95,7 +95,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user-remove", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/volumeBackupsCreate.ts b/src/funcs/volumeBackupsCreate.ts index e8dfcdf..368587b 100644 --- a/src/funcs/volumeBackupsCreate.ts +++ b/src/funcs/volumeBackupsCreate.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "volumeBackups-create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/volumeBackupsDelete.ts b/src/funcs/volumeBackupsDelete.ts index 1576cae..a79b7ca 100644 --- a/src/funcs/volumeBackupsDelete.ts +++ b/src/funcs/volumeBackupsDelete.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "volumeBackups-delete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/volumeBackupsGet.ts b/src/funcs/volumeBackupsGet.ts index 7cfb7e7..8ab2b64 100644 --- a/src/funcs/volumeBackupsGet.ts +++ b/src/funcs/volumeBackupsGet.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "volumeBackups-one", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/volumeBackupsList.ts b/src/funcs/volumeBackupsList.ts index 4cc32c2..82f199f 100644 --- a/src/funcs/volumeBackupsList.ts +++ b/src/funcs/volumeBackupsList.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "volumeBackups-list", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/volumeBackupsRunManually.ts b/src/funcs/volumeBackupsRunManually.ts index e34fc8d..fba8f56 100644 --- a/src/funcs/volumeBackupsRunManually.ts +++ b/src/funcs/volumeBackupsRunManually.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "volumeBackups-runManually", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/volumeBackupsUpdate.ts b/src/funcs/volumeBackupsUpdate.ts index 56a510a..969c2f6 100644 --- a/src/funcs/volumeBackupsUpdate.ts +++ b/src/funcs/volumeBackupsUpdate.ts @@ -96,7 +96,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "volumeBackups-update", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/lib/base64.ts b/src/lib/base64.ts index c2d5b38..0aebd8b 100644 --- a/src/lib/base64.ts +++ b/src/lib/base64.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function bytesToBase64(u8arr: Uint8Array): string { return btoa(String.fromCodePoint(...u8arr)); diff --git a/src/lib/config.ts b/src/lib/config.ts index 83bf4fd..55175cc 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0.0", - sdkVersion: "0.2.0", - genVersion: "2.716.10", - userAgent: "speakeasy-sdk/typescript 0.2.0 2.716.10 1.0.0 dokploy-sdk", + sdkVersion: "0.3.0", + genVersion: "2.753.6", + userAgent: "speakeasy-sdk/typescript 0.3.0 2.753.6 1.0.0 dokploy-sdk", } as const; diff --git a/src/lib/env.ts b/src/lib/env.ts index 02e085d..16621c4 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -2,10 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v3"; import { dlv } from "./dlv.js"; -import * as z from "zod"; - export interface Env { DOKPLOY_API_KEY_AUTH?: string | undefined; @@ -18,6 +17,18 @@ export const envSchema: z.ZodType = z.object({ DOKPLOY_DEBUG: z.coerce.boolean().optional(), }); +/** + * Checks for the existence of the Deno global object to determine the environment. + * @returns {boolean} True if the runtime is Deno, false otherwise. + */ +function isDeno() { + if ("Deno" in globalThis) { + return true; + } + + return false; +} + let envMemo: Env | undefined = undefined; /** * Reads and validates environment variables. @@ -27,9 +38,14 @@ export function env(): Env { return envMemo; } - envMemo = envSchema.parse( - dlv(globalThis, "process.env") ?? dlv(globalThis, "Deno.env") ?? {}, - ); + let envObject: Record = {}; + if (isDeno()) { + envObject = (globalThis as any).Deno?.env?.toObject?.() ?? {}; + } else { + envObject = dlv(globalThis, "process.env") ?? {}; + } + + envMemo = envSchema.parse(envObject); return envMemo; } diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 0e340b7..47edb97 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -9,7 +9,7 @@ import { ZodObject, ZodRawShape, ZodTypeAny, -} from "zod"; +} from "zod/v3"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { ERR, OK, Result } from "../types/fp.js"; diff --git a/src/models/error.ts b/src/models/error.ts index 2aaf95d..f8b184d 100644 --- a/src/models/error.ts +++ b/src/models/error.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -26,37 +26,6 @@ export const Issue$inboundSchema: z.ZodType = z message: z.string(), }); -/** @internal */ -export type Issue$Outbound = { - message: string; -}; - -/** @internal */ -export const Issue$outboundSchema: z.ZodType< - Issue$Outbound, - z.ZodTypeDef, - Issue -> = z.object({ - message: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Issue$ { - /** @deprecated use `Issue$inboundSchema` instead. */ - export const inboundSchema = Issue$inboundSchema; - /** @deprecated use `Issue$outboundSchema` instead. */ - export const outboundSchema = Issue$outboundSchema; - /** @deprecated use `Issue$Outbound` instead. */ - export type Outbound = Issue$Outbound; -} - -export function issueToJSON(issue: Issue): string { - return JSON.stringify(Issue$outboundSchema.parse(issue)); -} - export function issueFromJSON( jsonString: string, ): SafeParseResult { @@ -75,41 +44,6 @@ export const ErrorT$inboundSchema: z.ZodType = z message: z.string(), }); -/** @internal */ -export type ErrorT$Outbound = { - code: string; - issues?: Array | undefined; - message: string; -}; - -/** @internal */ -export const ErrorT$outboundSchema: z.ZodType< - ErrorT$Outbound, - z.ZodTypeDef, - ErrorT -> = z.object({ - code: z.string(), - issues: z.array(z.lazy(() => Issue$outboundSchema)).optional(), - message: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ErrorT$ { - /** @deprecated use `ErrorT$inboundSchema` instead. */ - export const inboundSchema = ErrorT$inboundSchema; - /** @deprecated use `ErrorT$outboundSchema` instead. */ - export const outboundSchema = ErrorT$outboundSchema; - /** @deprecated use `ErrorT$Outbound` instead. */ - export type Outbound = ErrorT$Outbound; -} - -export function errorToJSON(errorT: ErrorT): string { - return JSON.stringify(ErrorT$outboundSchema.parse(errorT)); -} - export function errorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/errors/responsevalidationerror.ts b/src/models/errors/responsevalidationerror.ts index db59762..c937af6 100644 --- a/src/models/errors/responsevalidationerror.ts +++ b/src/models/errors/responsevalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { DokployError } from "./dokployerror.js"; import { formatZodError } from "./sdkvalidationerror.js"; diff --git a/src/models/errors/sdkvalidationerror.ts b/src/models/errors/sdkvalidationerror.ts index 37face8..6826e12 100644 --- a/src/models/errors/sdkvalidationerror.ts +++ b/src/models/errors/sdkvalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export class SDKValidationError extends Error { /** diff --git a/src/models/operations/adminsetupmonitoring.ts b/src/models/operations/adminsetupmonitoring.ts index e9c2bcf..0a4ad16 100644 --- a/src/models/operations/adminsetupmonitoring.ts +++ b/src/models/operations/adminsetupmonitoring.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type AdminSetupMonitoringServices = { exclude?: Array | undefined; @@ -41,16 +38,6 @@ export type AdminSetupMonitoringRequest = { metricsConfig: AdminSetupMonitoringMetricsConfig; }; -/** @internal */ -export const AdminSetupMonitoringServices$inboundSchema: z.ZodType< - AdminSetupMonitoringServices, - z.ZodTypeDef, - unknown -> = z.object({ - exclude: z.array(z.string()).optional(), - include: z.array(z.string()).optional(), -}); - /** @internal */ export type AdminSetupMonitoringServices$Outbound = { exclude?: Array | undefined; @@ -67,19 +54,6 @@ export const AdminSetupMonitoringServices$outboundSchema: z.ZodType< include: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdminSetupMonitoringServices$ { - /** @deprecated use `AdminSetupMonitoringServices$inboundSchema` instead. */ - export const inboundSchema = AdminSetupMonitoringServices$inboundSchema; - /** @deprecated use `AdminSetupMonitoringServices$outboundSchema` instead. */ - export const outboundSchema = AdminSetupMonitoringServices$outboundSchema; - /** @deprecated use `AdminSetupMonitoringServices$Outbound` instead. */ - export type Outbound = AdminSetupMonitoringServices$Outbound; -} - export function adminSetupMonitoringServicesToJSON( adminSetupMonitoringServices: AdminSetupMonitoringServices, ): string { @@ -90,26 +64,6 @@ export function adminSetupMonitoringServicesToJSON( ); } -export function adminSetupMonitoringServicesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AdminSetupMonitoringServices$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AdminSetupMonitoringServices' from JSON`, - ); -} - -/** @internal */ -export const AdminSetupMonitoringContainers$inboundSchema: z.ZodType< - AdminSetupMonitoringContainers, - z.ZodTypeDef, - unknown -> = z.object({ - refreshRate: z.number(), - services: z.lazy(() => AdminSetupMonitoringServices$inboundSchema), -}); - /** @internal */ export type AdminSetupMonitoringContainers$Outbound = { refreshRate: number; @@ -126,19 +80,6 @@ export const AdminSetupMonitoringContainers$outboundSchema: z.ZodType< services: z.lazy(() => AdminSetupMonitoringServices$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdminSetupMonitoringContainers$ { - /** @deprecated use `AdminSetupMonitoringContainers$inboundSchema` instead. */ - export const inboundSchema = AdminSetupMonitoringContainers$inboundSchema; - /** @deprecated use `AdminSetupMonitoringContainers$outboundSchema` instead. */ - export const outboundSchema = AdminSetupMonitoringContainers$outboundSchema; - /** @deprecated use `AdminSetupMonitoringContainers$Outbound` instead. */ - export type Outbound = AdminSetupMonitoringContainers$Outbound; -} - export function adminSetupMonitoringContainersToJSON( adminSetupMonitoringContainers: AdminSetupMonitoringContainers, ): string { @@ -149,26 +90,6 @@ export function adminSetupMonitoringContainersToJSON( ); } -export function adminSetupMonitoringContainersFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AdminSetupMonitoringContainers$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AdminSetupMonitoringContainers' from JSON`, - ); -} - -/** @internal */ -export const AdminSetupMonitoringThresholds$inboundSchema: z.ZodType< - AdminSetupMonitoringThresholds, - z.ZodTypeDef, - unknown -> = z.object({ - cpu: z.number(), - memory: z.number(), -}); - /** @internal */ export type AdminSetupMonitoringThresholds$Outbound = { cpu: number; @@ -185,19 +106,6 @@ export const AdminSetupMonitoringThresholds$outboundSchema: z.ZodType< memory: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdminSetupMonitoringThresholds$ { - /** @deprecated use `AdminSetupMonitoringThresholds$inboundSchema` instead. */ - export const inboundSchema = AdminSetupMonitoringThresholds$inboundSchema; - /** @deprecated use `AdminSetupMonitoringThresholds$outboundSchema` instead. */ - export const outboundSchema = AdminSetupMonitoringThresholds$outboundSchema; - /** @deprecated use `AdminSetupMonitoringThresholds$Outbound` instead. */ - export type Outbound = AdminSetupMonitoringThresholds$Outbound; -} - export function adminSetupMonitoringThresholdsToJSON( adminSetupMonitoringThresholds: AdminSetupMonitoringThresholds, ): string { @@ -208,31 +116,6 @@ export function adminSetupMonitoringThresholdsToJSON( ); } -export function adminSetupMonitoringThresholdsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AdminSetupMonitoringThresholds$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AdminSetupMonitoringThresholds' from JSON`, - ); -} - -/** @internal */ -export const AdminSetupMonitoringServer$inboundSchema: z.ZodType< - AdminSetupMonitoringServer, - z.ZodTypeDef, - unknown -> = z.object({ - cronJob: z.string(), - port: z.number(), - refreshRate: z.number(), - retentionDays: z.number(), - thresholds: z.lazy(() => AdminSetupMonitoringThresholds$inboundSchema), - token: z.string(), - urlCallback: z.string(), -}); - /** @internal */ export type AdminSetupMonitoringServer$Outbound = { cronJob: string; @@ -259,19 +142,6 @@ export const AdminSetupMonitoringServer$outboundSchema: z.ZodType< urlCallback: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdminSetupMonitoringServer$ { - /** @deprecated use `AdminSetupMonitoringServer$inboundSchema` instead. */ - export const inboundSchema = AdminSetupMonitoringServer$inboundSchema; - /** @deprecated use `AdminSetupMonitoringServer$outboundSchema` instead. */ - export const outboundSchema = AdminSetupMonitoringServer$outboundSchema; - /** @deprecated use `AdminSetupMonitoringServer$Outbound` instead. */ - export type Outbound = AdminSetupMonitoringServer$Outbound; -} - export function adminSetupMonitoringServerToJSON( adminSetupMonitoringServer: AdminSetupMonitoringServer, ): string { @@ -280,26 +150,6 @@ export function adminSetupMonitoringServerToJSON( ); } -export function adminSetupMonitoringServerFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AdminSetupMonitoringServer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AdminSetupMonitoringServer' from JSON`, - ); -} - -/** @internal */ -export const AdminSetupMonitoringMetricsConfig$inboundSchema: z.ZodType< - AdminSetupMonitoringMetricsConfig, - z.ZodTypeDef, - unknown -> = z.object({ - containers: z.lazy(() => AdminSetupMonitoringContainers$inboundSchema), - server: z.lazy(() => AdminSetupMonitoringServer$inboundSchema), -}); - /** @internal */ export type AdminSetupMonitoringMetricsConfig$Outbound = { containers: AdminSetupMonitoringContainers$Outbound; @@ -316,20 +166,6 @@ export const AdminSetupMonitoringMetricsConfig$outboundSchema: z.ZodType< server: z.lazy(() => AdminSetupMonitoringServer$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdminSetupMonitoringMetricsConfig$ { - /** @deprecated use `AdminSetupMonitoringMetricsConfig$inboundSchema` instead. */ - export const inboundSchema = AdminSetupMonitoringMetricsConfig$inboundSchema; - /** @deprecated use `AdminSetupMonitoringMetricsConfig$outboundSchema` instead. */ - export const outboundSchema = - AdminSetupMonitoringMetricsConfig$outboundSchema; - /** @deprecated use `AdminSetupMonitoringMetricsConfig$Outbound` instead. */ - export type Outbound = AdminSetupMonitoringMetricsConfig$Outbound; -} - export function adminSetupMonitoringMetricsConfigToJSON( adminSetupMonitoringMetricsConfig: AdminSetupMonitoringMetricsConfig, ): string { @@ -340,25 +176,6 @@ export function adminSetupMonitoringMetricsConfigToJSON( ); } -export function adminSetupMonitoringMetricsConfigFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AdminSetupMonitoringMetricsConfig$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AdminSetupMonitoringMetricsConfig' from JSON`, - ); -} - -/** @internal */ -export const AdminSetupMonitoringRequest$inboundSchema: z.ZodType< - AdminSetupMonitoringRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metricsConfig: z.lazy(() => AdminSetupMonitoringMetricsConfig$inboundSchema), -}); - /** @internal */ export type AdminSetupMonitoringRequest$Outbound = { metricsConfig: AdminSetupMonitoringMetricsConfig$Outbound; @@ -373,19 +190,6 @@ export const AdminSetupMonitoringRequest$outboundSchema: z.ZodType< metricsConfig: z.lazy(() => AdminSetupMonitoringMetricsConfig$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdminSetupMonitoringRequest$ { - /** @deprecated use `AdminSetupMonitoringRequest$inboundSchema` instead. */ - export const inboundSchema = AdminSetupMonitoringRequest$inboundSchema; - /** @deprecated use `AdminSetupMonitoringRequest$outboundSchema` instead. */ - export const outboundSchema = AdminSetupMonitoringRequest$outboundSchema; - /** @deprecated use `AdminSetupMonitoringRequest$Outbound` instead. */ - export type Outbound = AdminSetupMonitoringRequest$Outbound; -} - export function adminSetupMonitoringRequestToJSON( adminSetupMonitoringRequest: AdminSetupMonitoringRequest, ): string { @@ -395,13 +199,3 @@ export function adminSetupMonitoringRequestToJSON( ), ); } - -export function adminSetupMonitoringRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AdminSetupMonitoringRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AdminSetupMonitoringRequest' from JSON`, - ); -} diff --git a/src/models/operations/aicreate.ts b/src/models/operations/aicreate.ts index 39bdc23..0b782ca 100644 --- a/src/models/operations/aicreate.ts +++ b/src/models/operations/aicreate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type AiCreateRequest = { apiKey: string; @@ -15,19 +12,6 @@ export type AiCreateRequest = { name: string; }; -/** @internal */ -export const AiCreateRequest$inboundSchema: z.ZodType< - AiCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - apiKey: z.string(), - apiUrl: z.string(), - isEnabled: z.boolean(), - model: z.string(), - name: z.string(), -}); - /** @internal */ export type AiCreateRequest$Outbound = { apiKey: string; @@ -50,31 +34,8 @@ export const AiCreateRequest$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiCreateRequest$ { - /** @deprecated use `AiCreateRequest$inboundSchema` instead. */ - export const inboundSchema = AiCreateRequest$inboundSchema; - /** @deprecated use `AiCreateRequest$outboundSchema` instead. */ - export const outboundSchema = AiCreateRequest$outboundSchema; - /** @deprecated use `AiCreateRequest$Outbound` instead. */ - export type Outbound = AiCreateRequest$Outbound; -} - export function aiCreateRequestToJSON( aiCreateRequest: AiCreateRequest, ): string { return JSON.stringify(AiCreateRequest$outboundSchema.parse(aiCreateRequest)); } - -export function aiCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/aidelete.ts b/src/models/operations/aidelete.ts index 2eb2b59..c3ac904 100644 --- a/src/models/operations/aidelete.ts +++ b/src/models/operations/aidelete.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type AiDeleteRequest = { aiId: string; }; -/** @internal */ -export const AiDeleteRequest$inboundSchema: z.ZodType< - AiDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - aiId: z.string(), -}); - /** @internal */ export type AiDeleteRequest$Outbound = { aiId: string; @@ -34,31 +22,8 @@ export const AiDeleteRequest$outboundSchema: z.ZodType< aiId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiDeleteRequest$ { - /** @deprecated use `AiDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AiDeleteRequest$inboundSchema; - /** @deprecated use `AiDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AiDeleteRequest$outboundSchema; - /** @deprecated use `AiDeleteRequest$Outbound` instead. */ - export type Outbound = AiDeleteRequest$Outbound; -} - export function aiDeleteRequestToJSON( aiDeleteRequest: AiDeleteRequest, ): string { return JSON.stringify(AiDeleteRequest$outboundSchema.parse(aiDeleteRequest)); } - -export function aiDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiDeleteRequest' from JSON`, - ); -} diff --git a/src/models/operations/aideploy.ts b/src/models/operations/aideploy.ts index cf3ea30..21eab06 100644 --- a/src/models/operations/aideploy.ts +++ b/src/models/operations/aideploy.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ConfigFile = { content: string; @@ -30,16 +27,6 @@ export type AiDeployRequest = { serverId?: string | undefined; }; -/** @internal */ -export const ConfigFile$inboundSchema: z.ZodType< - ConfigFile, - z.ZodTypeDef, - unknown -> = z.object({ - content: z.string(), - filePath: z.string(), -}); - /** @internal */ export type ConfigFile$Outbound = { content: string; @@ -56,44 +43,10 @@ export const ConfigFile$outboundSchema: z.ZodType< filePath: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConfigFile$ { - /** @deprecated use `ConfigFile$inboundSchema` instead. */ - export const inboundSchema = ConfigFile$inboundSchema; - /** @deprecated use `ConfigFile$outboundSchema` instead. */ - export const outboundSchema = ConfigFile$outboundSchema; - /** @deprecated use `ConfigFile$Outbound` instead. */ - export type Outbound = ConfigFile$Outbound; -} - export function configFileToJSON(configFile: ConfigFile): string { return JSON.stringify(ConfigFile$outboundSchema.parse(configFile)); } -export function configFileFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConfigFile$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConfigFile' from JSON`, - ); -} - -/** @internal */ -export const AiDeployDomain$inboundSchema: z.ZodType< - AiDeployDomain, - z.ZodTypeDef, - unknown -> = z.object({ - host: z.string(), - port: z.number(), - serviceName: z.string(), -}); - /** @internal */ export type AiDeployDomain$Outbound = { host: string; @@ -112,50 +65,10 @@ export const AiDeployDomain$outboundSchema: z.ZodType< serviceName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiDeployDomain$ { - /** @deprecated use `AiDeployDomain$inboundSchema` instead. */ - export const inboundSchema = AiDeployDomain$inboundSchema; - /** @deprecated use `AiDeployDomain$outboundSchema` instead. */ - export const outboundSchema = AiDeployDomain$outboundSchema; - /** @deprecated use `AiDeployDomain$Outbound` instead. */ - export type Outbound = AiDeployDomain$Outbound; -} - export function aiDeployDomainToJSON(aiDeployDomain: AiDeployDomain): string { return JSON.stringify(AiDeployDomain$outboundSchema.parse(aiDeployDomain)); } -export function aiDeployDomainFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiDeployDomain$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiDeployDomain' from JSON`, - ); -} - -/** @internal */ -export const AiDeployRequest$inboundSchema: z.ZodType< - AiDeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - configFiles: z.array(z.lazy(() => ConfigFile$inboundSchema)).optional(), - description: z.string(), - dockerCompose: z.string(), - domains: z.array(z.lazy(() => AiDeployDomain$inboundSchema)).optional(), - envVariables: z.string(), - environmentId: z.string(), - id: z.string(), - name: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type AiDeployRequest$Outbound = { configFiles?: Array | undefined; @@ -186,31 +99,8 @@ export const AiDeployRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiDeployRequest$ { - /** @deprecated use `AiDeployRequest$inboundSchema` instead. */ - export const inboundSchema = AiDeployRequest$inboundSchema; - /** @deprecated use `AiDeployRequest$outboundSchema` instead. */ - export const outboundSchema = AiDeployRequest$outboundSchema; - /** @deprecated use `AiDeployRequest$Outbound` instead. */ - export type Outbound = AiDeployRequest$Outbound; -} - export function aiDeployRequestToJSON( aiDeployRequest: AiDeployRequest, ): string { return JSON.stringify(AiDeployRequest$outboundSchema.parse(aiDeployRequest)); } - -export function aiDeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiDeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiDeployRequest' from JSON`, - ); -} diff --git a/src/models/operations/aiget.ts b/src/models/operations/aiget.ts index 0d00fd9..bdb971a 100644 --- a/src/models/operations/aiget.ts +++ b/src/models/operations/aiget.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type AiGetRequest = { aiId: string; }; -/** @internal */ -export const AiGetRequest$inboundSchema: z.ZodType< - AiGetRequest, - z.ZodTypeDef, - unknown -> = z.object({ - aiId: z.string(), -}); - /** @internal */ export type AiGetRequest$Outbound = { aiId: string; @@ -34,29 +22,6 @@ export const AiGetRequest$outboundSchema: z.ZodType< aiId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiGetRequest$ { - /** @deprecated use `AiGetRequest$inboundSchema` instead. */ - export const inboundSchema = AiGetRequest$inboundSchema; - /** @deprecated use `AiGetRequest$outboundSchema` instead. */ - export const outboundSchema = AiGetRequest$outboundSchema; - /** @deprecated use `AiGetRequest$Outbound` instead. */ - export type Outbound = AiGetRequest$Outbound; -} - export function aiGetRequestToJSON(aiGetRequest: AiGetRequest): string { return JSON.stringify(AiGetRequest$outboundSchema.parse(aiGetRequest)); } - -export function aiGetRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiGetRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiGetRequest' from JSON`, - ); -} diff --git a/src/models/operations/aigetmodels.ts b/src/models/operations/aigetmodels.ts index 5674172..6222fac 100644 --- a/src/models/operations/aigetmodels.ts +++ b/src/models/operations/aigetmodels.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type AiGetModelsRequest = { apiUrl: string; apiKey: string; }; -/** @internal */ -export const AiGetModelsRequest$inboundSchema: z.ZodType< - AiGetModelsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - apiUrl: z.string(), - apiKey: z.string(), -}); - /** @internal */ export type AiGetModelsRequest$Outbound = { apiUrl: string; @@ -38,19 +25,6 @@ export const AiGetModelsRequest$outboundSchema: z.ZodType< apiKey: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiGetModelsRequest$ { - /** @deprecated use `AiGetModelsRequest$inboundSchema` instead. */ - export const inboundSchema = AiGetModelsRequest$inboundSchema; - /** @deprecated use `AiGetModelsRequest$outboundSchema` instead. */ - export const outboundSchema = AiGetModelsRequest$outboundSchema; - /** @deprecated use `AiGetModelsRequest$Outbound` instead. */ - export type Outbound = AiGetModelsRequest$Outbound; -} - export function aiGetModelsRequestToJSON( aiGetModelsRequest: AiGetModelsRequest, ): string { @@ -58,13 +32,3 @@ export function aiGetModelsRequestToJSON( AiGetModelsRequest$outboundSchema.parse(aiGetModelsRequest), ); } - -export function aiGetModelsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiGetModelsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiGetModelsRequest' from JSON`, - ); -} diff --git a/src/models/operations/aione.ts b/src/models/operations/aione.ts index 148e2ec..2aeca37 100644 --- a/src/models/operations/aione.ts +++ b/src/models/operations/aione.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type AiOneRequest = { aiId: string; }; -/** @internal */ -export const AiOneRequest$inboundSchema: z.ZodType< - AiOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - aiId: z.string(), -}); - /** @internal */ export type AiOneRequest$Outbound = { aiId: string; @@ -34,29 +22,6 @@ export const AiOneRequest$outboundSchema: z.ZodType< aiId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiOneRequest$ { - /** @deprecated use `AiOneRequest$inboundSchema` instead. */ - export const inboundSchema = AiOneRequest$inboundSchema; - /** @deprecated use `AiOneRequest$outboundSchema` instead. */ - export const outboundSchema = AiOneRequest$outboundSchema; - /** @deprecated use `AiOneRequest$Outbound` instead. */ - export type Outbound = AiOneRequest$Outbound; -} - export function aiOneRequestToJSON(aiOneRequest: AiOneRequest): string { return JSON.stringify(AiOneRequest$outboundSchema.parse(aiOneRequest)); } - -export function aiOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/aisuggest.ts b/src/models/operations/aisuggest.ts index 8c4c59e..803077a 100644 --- a/src/models/operations/aisuggest.ts +++ b/src/models/operations/aisuggest.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type AiSuggestRequest = { aiId: string; @@ -13,17 +10,6 @@ export type AiSuggestRequest = { serverId?: string | undefined; }; -/** @internal */ -export const AiSuggestRequest$inboundSchema: z.ZodType< - AiSuggestRequest, - z.ZodTypeDef, - unknown -> = z.object({ - aiId: z.string(), - input: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type AiSuggestRequest$Outbound = { aiId: string; @@ -42,19 +28,6 @@ export const AiSuggestRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiSuggestRequest$ { - /** @deprecated use `AiSuggestRequest$inboundSchema` instead. */ - export const inboundSchema = AiSuggestRequest$inboundSchema; - /** @deprecated use `AiSuggestRequest$outboundSchema` instead. */ - export const outboundSchema = AiSuggestRequest$outboundSchema; - /** @deprecated use `AiSuggestRequest$Outbound` instead. */ - export type Outbound = AiSuggestRequest$Outbound; -} - export function aiSuggestRequestToJSON( aiSuggestRequest: AiSuggestRequest, ): string { @@ -62,13 +35,3 @@ export function aiSuggestRequestToJSON( AiSuggestRequest$outboundSchema.parse(aiSuggestRequest), ); } - -export function aiSuggestRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiSuggestRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiSuggestRequest' from JSON`, - ); -} diff --git a/src/models/operations/aiupdate.ts b/src/models/operations/aiupdate.ts index 6bd1c07..7e460af 100644 --- a/src/models/operations/aiupdate.ts +++ b/src/models/operations/aiupdate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type AiUpdateRequest = { aiId: string; @@ -17,21 +14,6 @@ export type AiUpdateRequest = { name?: string | undefined; }; -/** @internal */ -export const AiUpdateRequest$inboundSchema: z.ZodType< - AiUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - aiId: z.string(), - apiKey: z.string().optional(), - apiUrl: z.string().optional(), - createdAt: z.string().optional(), - isEnabled: z.boolean().optional(), - model: z.string().optional(), - name: z.string().optional(), -}); - /** @internal */ export type AiUpdateRequest$Outbound = { aiId: string; @@ -58,31 +40,8 @@ export const AiUpdateRequest$outboundSchema: z.ZodType< name: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AiUpdateRequest$ { - /** @deprecated use `AiUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AiUpdateRequest$inboundSchema; - /** @deprecated use `AiUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AiUpdateRequest$outboundSchema; - /** @deprecated use `AiUpdateRequest$Outbound` instead. */ - export type Outbound = AiUpdateRequest$Outbound; -} - export function aiUpdateRequestToJSON( aiUpdateRequest: AiUpdateRequest, ): string { return JSON.stringify(AiUpdateRequest$outboundSchema.parse(aiUpdateRequest)); } - -export function aiUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AiUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AiUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/applicationcanceldeployment.ts b/src/models/operations/applicationcanceldeployment.ts index 41531aa..f377950 100644 --- a/src/models/operations/applicationcanceldeployment.ts +++ b/src/models/operations/applicationcanceldeployment.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ApplicationCancelDeploymentRequest = { applicationId: string; }; -/** @internal */ -export const ApplicationCancelDeploymentRequest$inboundSchema: z.ZodType< - ApplicationCancelDeploymentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationCancelDeploymentRequest$Outbound = { applicationId: string; @@ -34,20 +22,6 @@ export const ApplicationCancelDeploymentRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCancelDeploymentRequest$ { - /** @deprecated use `ApplicationCancelDeploymentRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationCancelDeploymentRequest$inboundSchema; - /** @deprecated use `ApplicationCancelDeploymentRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationCancelDeploymentRequest$outboundSchema; - /** @deprecated use `ApplicationCancelDeploymentRequest$Outbound` instead. */ - export type Outbound = ApplicationCancelDeploymentRequest$Outbound; -} - export function applicationCancelDeploymentRequestToJSON( applicationCancelDeploymentRequest: ApplicationCancelDeploymentRequest, ): string { @@ -57,14 +31,3 @@ export function applicationCancelDeploymentRequestToJSON( ), ); } - -export function applicationCancelDeploymentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationCancelDeploymentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationCancelDeploymentRequest' from JSON`, - ); -} diff --git a/src/models/operations/applicationcleanqueues.ts b/src/models/operations/applicationcleanqueues.ts index edc1d95..2ecfa0a 100644 --- a/src/models/operations/applicationcleanqueues.ts +++ b/src/models/operations/applicationcleanqueues.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ApplicationCleanQueuesRequest = { applicationId: string; }; -/** @internal */ -export const ApplicationCleanQueuesRequest$inboundSchema: z.ZodType< - ApplicationCleanQueuesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationCleanQueuesRequest$Outbound = { applicationId: string; @@ -34,19 +22,6 @@ export const ApplicationCleanQueuesRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCleanQueuesRequest$ { - /** @deprecated use `ApplicationCleanQueuesRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationCleanQueuesRequest$inboundSchema; - /** @deprecated use `ApplicationCleanQueuesRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationCleanQueuesRequest$outboundSchema; - /** @deprecated use `ApplicationCleanQueuesRequest$Outbound` instead. */ - export type Outbound = ApplicationCleanQueuesRequest$Outbound; -} - export function applicationCleanQueuesRequestToJSON( applicationCleanQueuesRequest: ApplicationCleanQueuesRequest, ): string { @@ -56,13 +31,3 @@ export function applicationCleanQueuesRequestToJSON( ), ); } - -export function applicationCleanQueuesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationCleanQueuesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationCleanQueuesRequest' from JSON`, - ); -} diff --git a/src/models/operations/applicationcreate.ts b/src/models/operations/applicationcreate.ts index b2a5065..176601f 100644 --- a/src/models/operations/applicationcreate.ts +++ b/src/models/operations/applicationcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -248,19 +248,6 @@ export type ApplicationCreateResponse = | ApplicationCreateResponseBody | models.ErrorT; -/** @internal */ -export const ApplicationCreateRequest$inboundSchema: z.ZodType< - ApplicationCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - description: z.nullable(z.string()).optional(), - environmentId: z.string(), - name: z.string(), - serverId: z.nullable(z.string()).optional(), -}); - /** @internal */ export type ApplicationCreateRequest$Outbound = { appName?: string | undefined; @@ -283,19 +270,6 @@ export const ApplicationCreateRequest$outboundSchema: z.ZodType< serverId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateRequest$ { - /** @deprecated use `ApplicationCreateRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateRequest$inboundSchema; - /** @deprecated use `ApplicationCreateRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateRequest$outboundSchema; - /** @deprecated use `ApplicationCreateRequest$Outbound` instead. */ - export type Outbound = ApplicationCreateRequest$Outbound; -} - export function applicationCreateRequestToJSON( applicationCreateRequest: ApplicationCreateRequest, ): string { @@ -304,59 +278,16 @@ export function applicationCreateRequestToJSON( ); } -export function applicationCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationCreateRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationCreateApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationCreateApplicationStatus > = z.nativeEnum(ApplicationCreateApplicationStatus); -/** @internal */ -export const ApplicationCreateApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationCreateApplicationStatus -> = ApplicationCreateApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateApplicationStatus$ { - /** @deprecated use `ApplicationCreateApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateApplicationStatus$inboundSchema; - /** @deprecated use `ApplicationCreateApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - ApplicationCreateApplicationStatus$outboundSchema; -} - /** @internal */ export const ApplicationCreateBuildType$inboundSchema: z.ZodNativeEnum< typeof ApplicationCreateBuildType > = z.nativeEnum(ApplicationCreateBuildType); -/** @internal */ -export const ApplicationCreateBuildType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationCreateBuildType -> = ApplicationCreateBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateBuildType$ { - /** @deprecated use `ApplicationCreateBuildType$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateBuildType$inboundSchema; - /** @deprecated use `ApplicationCreateBuildType$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateBuildType$outboundSchema; -} - /** @internal */ export const ApplicationCreateHealthCheckSwarm$inboundSchema: z.ZodType< ApplicationCreateHealthCheckSwarm, @@ -378,60 +309,6 @@ export const ApplicationCreateHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const ApplicationCreateHealthCheckSwarm$outboundSchema: z.ZodType< - ApplicationCreateHealthCheckSwarm$Outbound, - z.ZodTypeDef, - ApplicationCreateHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateHealthCheckSwarm$ { - /** @deprecated use `ApplicationCreateHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateHealthCheckSwarm$inboundSchema; - /** @deprecated use `ApplicationCreateHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationCreateHealthCheckSwarm$outboundSchema; - /** @deprecated use `ApplicationCreateHealthCheckSwarm$Outbound` instead. */ - export type Outbound = ApplicationCreateHealthCheckSwarm$Outbound; -} - -export function applicationCreateHealthCheckSwarmToJSON( - applicationCreateHealthCheckSwarm: ApplicationCreateHealthCheckSwarm, -): string { - return JSON.stringify( - ApplicationCreateHealthCheckSwarm$outboundSchema.parse( - applicationCreateHealthCheckSwarm, - ), - ); -} - export function applicationCreateHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -449,37 +326,6 @@ export const ApplicationCreateGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationCreateGlobal$Outbound = {}; - -/** @internal */ -export const ApplicationCreateGlobal$outboundSchema: z.ZodType< - ApplicationCreateGlobal$Outbound, - z.ZodTypeDef, - ApplicationCreateGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateGlobal$ { - /** @deprecated use `ApplicationCreateGlobal$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateGlobal$inboundSchema; - /** @deprecated use `ApplicationCreateGlobal$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateGlobal$outboundSchema; - /** @deprecated use `ApplicationCreateGlobal$Outbound` instead. */ - export type Outbound = ApplicationCreateGlobal$Outbound; -} - -export function applicationCreateGlobalToJSON( - applicationCreateGlobal: ApplicationCreateGlobal, -): string { - return JSON.stringify( - ApplicationCreateGlobal$outboundSchema.parse(applicationCreateGlobal), - ); -} - export function applicationCreateGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -497,37 +343,6 @@ export const ApplicationCreateGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationCreateGlobalJob$Outbound = {}; - -/** @internal */ -export const ApplicationCreateGlobalJob$outboundSchema: z.ZodType< - ApplicationCreateGlobalJob$Outbound, - z.ZodTypeDef, - ApplicationCreateGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateGlobalJob$ { - /** @deprecated use `ApplicationCreateGlobalJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateGlobalJob$inboundSchema; - /** @deprecated use `ApplicationCreateGlobalJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateGlobalJob$outboundSchema; - /** @deprecated use `ApplicationCreateGlobalJob$Outbound` instead. */ - export type Outbound = ApplicationCreateGlobalJob$Outbound; -} - -export function applicationCreateGlobalJobToJSON( - applicationCreateGlobalJob: ApplicationCreateGlobalJob, -): string { - return JSON.stringify( - ApplicationCreateGlobalJob$outboundSchema.parse(applicationCreateGlobalJob), - ); -} - export function applicationCreateGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -551,47 +366,6 @@ export const ApplicationCreateReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const ApplicationCreateReplicated$outboundSchema: z.ZodType< - ApplicationCreateReplicated$Outbound, - z.ZodTypeDef, - ApplicationCreateReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateReplicated$ { - /** @deprecated use `ApplicationCreateReplicated$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateReplicated$inboundSchema; - /** @deprecated use `ApplicationCreateReplicated$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateReplicated$outboundSchema; - /** @deprecated use `ApplicationCreateReplicated$Outbound` instead. */ - export type Outbound = ApplicationCreateReplicated$Outbound; -} - -export function applicationCreateReplicatedToJSON( - applicationCreateReplicated: ApplicationCreateReplicated, -): string { - return JSON.stringify( - ApplicationCreateReplicated$outboundSchema.parse( - applicationCreateReplicated, - ), - ); -} - export function applicationCreateReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -617,50 +391,6 @@ export const ApplicationCreateReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const ApplicationCreateReplicatedJob$outboundSchema: z.ZodType< - ApplicationCreateReplicatedJob$Outbound, - z.ZodTypeDef, - ApplicationCreateReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateReplicatedJob$ { - /** @deprecated use `ApplicationCreateReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateReplicatedJob$inboundSchema; - /** @deprecated use `ApplicationCreateReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateReplicatedJob$outboundSchema; - /** @deprecated use `ApplicationCreateReplicatedJob$Outbound` instead. */ - export type Outbound = ApplicationCreateReplicatedJob$Outbound; -} - -export function applicationCreateReplicatedJobToJSON( - applicationCreateReplicatedJob: ApplicationCreateReplicatedJob, -): string { - return JSON.stringify( - ApplicationCreateReplicatedJob$outboundSchema.parse( - applicationCreateReplicatedJob, - ), - ); -} - export function applicationCreateReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -692,56 +422,6 @@ export const ApplicationCreateModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateModeSwarm$Outbound = { - Global?: ApplicationCreateGlobal$Outbound | undefined; - GlobalJob?: ApplicationCreateGlobalJob$Outbound | undefined; - Replicated?: ApplicationCreateReplicated$Outbound | undefined; - ReplicatedJob?: ApplicationCreateReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const ApplicationCreateModeSwarm$outboundSchema: z.ZodType< - ApplicationCreateModeSwarm$Outbound, - z.ZodTypeDef, - ApplicationCreateModeSwarm -> = z.object({ - global: z.lazy(() => ApplicationCreateGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => ApplicationCreateGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => ApplicationCreateReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => ApplicationCreateReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateModeSwarm$ { - /** @deprecated use `ApplicationCreateModeSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateModeSwarm$inboundSchema; - /** @deprecated use `ApplicationCreateModeSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateModeSwarm$outboundSchema; - /** @deprecated use `ApplicationCreateModeSwarm$Outbound` instead. */ - export type Outbound = ApplicationCreateModeSwarm$Outbound; -} - -export function applicationCreateModeSwarmToJSON( - applicationCreateModeSwarm: ApplicationCreateModeSwarm, -): string { - return JSON.stringify( - ApplicationCreateModeSwarm$outboundSchema.parse(applicationCreateModeSwarm), - ); -} - export function applicationCreateModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -759,39 +439,6 @@ export const ApplicationCreateDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationCreateDriverOpts$Outbound = {}; - -/** @internal */ -export const ApplicationCreateDriverOpts$outboundSchema: z.ZodType< - ApplicationCreateDriverOpts$Outbound, - z.ZodTypeDef, - ApplicationCreateDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateDriverOpts$ { - /** @deprecated use `ApplicationCreateDriverOpts$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateDriverOpts$inboundSchema; - /** @deprecated use `ApplicationCreateDriverOpts$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateDriverOpts$outboundSchema; - /** @deprecated use `ApplicationCreateDriverOpts$Outbound` instead. */ - export type Outbound = ApplicationCreateDriverOpts$Outbound; -} - -export function applicationCreateDriverOptsToJSON( - applicationCreateDriverOpts: ApplicationCreateDriverOpts, -): string { - return JSON.stringify( - ApplicationCreateDriverOpts$outboundSchema.parse( - applicationCreateDriverOpts, - ), - ); -} - export function applicationCreateDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -820,54 +467,6 @@ export const ApplicationCreateNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: ApplicationCreateDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const ApplicationCreateNetworkSwarm$outboundSchema: z.ZodType< - ApplicationCreateNetworkSwarm$Outbound, - z.ZodTypeDef, - ApplicationCreateNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => ApplicationCreateDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateNetworkSwarm$ { - /** @deprecated use `ApplicationCreateNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateNetworkSwarm$inboundSchema; - /** @deprecated use `ApplicationCreateNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateNetworkSwarm$outboundSchema; - /** @deprecated use `ApplicationCreateNetworkSwarm$Outbound` instead. */ - export type Outbound = ApplicationCreateNetworkSwarm$Outbound; -} - -export function applicationCreateNetworkSwarmToJSON( - applicationCreateNetworkSwarm: ApplicationCreateNetworkSwarm, -): string { - return JSON.stringify( - ApplicationCreateNetworkSwarm$outboundSchema.parse( - applicationCreateNetworkSwarm, - ), - ); -} - export function applicationCreateNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -893,48 +492,6 @@ export const ApplicationCreatePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreatePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const ApplicationCreatePlatform$outboundSchema: z.ZodType< - ApplicationCreatePlatform$Outbound, - z.ZodTypeDef, - ApplicationCreatePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreatePlatform$ { - /** @deprecated use `ApplicationCreatePlatform$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreatePlatform$inboundSchema; - /** @deprecated use `ApplicationCreatePlatform$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreatePlatform$outboundSchema; - /** @deprecated use `ApplicationCreatePlatform$Outbound` instead. */ - export type Outbound = ApplicationCreatePlatform$Outbound; -} - -export function applicationCreatePlatformToJSON( - applicationCreatePlatform: ApplicationCreatePlatform, -): string { - return JSON.stringify( - ApplicationCreatePlatform$outboundSchema.parse(applicationCreatePlatform), - ); -} - export function applicationCreatePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -958,45 +515,6 @@ export const ApplicationCreateSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const ApplicationCreateSpread$outboundSchema: z.ZodType< - ApplicationCreateSpread$Outbound, - z.ZodTypeDef, - ApplicationCreateSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateSpread$ { - /** @deprecated use `ApplicationCreateSpread$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateSpread$inboundSchema; - /** @deprecated use `ApplicationCreateSpread$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateSpread$outboundSchema; - /** @deprecated use `ApplicationCreateSpread$Outbound` instead. */ - export type Outbound = ApplicationCreateSpread$Outbound; -} - -export function applicationCreateSpreadToJSON( - applicationCreateSpread: ApplicationCreateSpread, -): string { - return JSON.stringify( - ApplicationCreateSpread$outboundSchema.parse(applicationCreateSpread), - ); -} - export function applicationCreateSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1020,47 +538,6 @@ export const ApplicationCreatePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreatePreference$Outbound = { - Spread: ApplicationCreateSpread$Outbound; -}; - -/** @internal */ -export const ApplicationCreatePreference$outboundSchema: z.ZodType< - ApplicationCreatePreference$Outbound, - z.ZodTypeDef, - ApplicationCreatePreference -> = z.object({ - spread: z.lazy(() => ApplicationCreateSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreatePreference$ { - /** @deprecated use `ApplicationCreatePreference$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreatePreference$inboundSchema; - /** @deprecated use `ApplicationCreatePreference$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreatePreference$outboundSchema; - /** @deprecated use `ApplicationCreatePreference$Outbound` instead. */ - export type Outbound = ApplicationCreatePreference$Outbound; -} - -export function applicationCreatePreferenceToJSON( - applicationCreatePreference: ApplicationCreatePreference, -): string { - return JSON.stringify( - ApplicationCreatePreference$outboundSchema.parse( - applicationCreatePreference, - ), - ); -} - export function applicationCreatePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1092,91 +569,21 @@ export const ApplicationCreatePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreatePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const ApplicationCreatePlacementSwarm$outboundSchema: z.ZodType< - ApplicationCreatePlacementSwarm$Outbound, - z.ZodTypeDef, - ApplicationCreatePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => ApplicationCreatePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => ApplicationCreatePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreatePlacementSwarm$ { - /** @deprecated use `ApplicationCreatePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreatePlacementSwarm$inboundSchema; - /** @deprecated use `ApplicationCreatePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreatePlacementSwarm$outboundSchema; - /** @deprecated use `ApplicationCreatePlacementSwarm$Outbound` instead. */ - export type Outbound = ApplicationCreatePlacementSwarm$Outbound; -} - -export function applicationCreatePlacementSwarmToJSON( - applicationCreatePlacementSwarm: ApplicationCreatePlacementSwarm, -): string { - return JSON.stringify( - ApplicationCreatePlacementSwarm$outboundSchema.parse( - applicationCreatePlacementSwarm, - ), - ); -} - -export function applicationCreatePlacementSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationCreatePlacementSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationCreatePlacementSwarm' from JSON`, - ); -} +export function applicationCreatePlacementSwarmFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ApplicationCreatePlacementSwarm$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ApplicationCreatePlacementSwarm' from JSON`, + ); +} /** @internal */ export const ApplicationCreatePreviewCertificateType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ApplicationCreatePreviewCertificateType); -/** @internal */ -export const ApplicationCreatePreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - ApplicationCreatePreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreatePreviewCertificateType$ { - /** @deprecated use `ApplicationCreatePreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - ApplicationCreatePreviewCertificateType$inboundSchema; - /** @deprecated use `ApplicationCreatePreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationCreatePreviewCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationCreateRestartPolicySwarm$inboundSchema: z.ZodType< ApplicationCreateRestartPolicySwarm, @@ -1196,58 +603,6 @@ export const ApplicationCreateRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const ApplicationCreateRestartPolicySwarm$outboundSchema: z.ZodType< - ApplicationCreateRestartPolicySwarm$Outbound, - z.ZodTypeDef, - ApplicationCreateRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateRestartPolicySwarm$ { - /** @deprecated use `ApplicationCreateRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - ApplicationCreateRestartPolicySwarm$inboundSchema; - /** @deprecated use `ApplicationCreateRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationCreateRestartPolicySwarm$outboundSchema; - /** @deprecated use `ApplicationCreateRestartPolicySwarm$Outbound` instead. */ - export type Outbound = ApplicationCreateRestartPolicySwarm$Outbound; -} - -export function applicationCreateRestartPolicySwarmToJSON( - applicationCreateRestartPolicySwarm: ApplicationCreateRestartPolicySwarm, -): string { - return JSON.stringify( - ApplicationCreateRestartPolicySwarm$outboundSchema.parse( - applicationCreateRestartPolicySwarm, - ), - ); -} - export function applicationCreateRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1282,64 +637,6 @@ export const ApplicationCreateRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationCreateRollbackConfigSwarm$outboundSchema: z.ZodType< - ApplicationCreateRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationCreateRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateRollbackConfigSwarm$ { - /** @deprecated use `ApplicationCreateRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - ApplicationCreateRollbackConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationCreateRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationCreateRollbackConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationCreateRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationCreateRollbackConfigSwarm$Outbound; -} - -export function applicationCreateRollbackConfigSwarmToJSON( - applicationCreateRollbackConfigSwarm: ApplicationCreateRollbackConfigSwarm, -): string { - return JSON.stringify( - ApplicationCreateRollbackConfigSwarm$outboundSchema.parse( - applicationCreateRollbackConfigSwarm, - ), - ); -} - export function applicationCreateRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1356,43 +653,11 @@ export const ApplicationCreateSourceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationCreateSourceType > = z.nativeEnum(ApplicationCreateSourceType); -/** @internal */ -export const ApplicationCreateSourceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationCreateSourceType -> = ApplicationCreateSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateSourceType$ { - /** @deprecated use `ApplicationCreateSourceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateSourceType$inboundSchema; - /** @deprecated use `ApplicationCreateSourceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateSourceType$outboundSchema; -} - /** @internal */ export const ApplicationCreateTriggerType$inboundSchema: z.ZodNativeEnum< typeof ApplicationCreateTriggerType > = z.nativeEnum(ApplicationCreateTriggerType); -/** @internal */ -export const ApplicationCreateTriggerType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationCreateTriggerType -> = ApplicationCreateTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateTriggerType$ { - /** @deprecated use `ApplicationCreateTriggerType$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateTriggerType$inboundSchema; - /** @deprecated use `ApplicationCreateTriggerType$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateTriggerType$outboundSchema; -} - /** @internal */ export const ApplicationCreateUpdateConfigSwarm$inboundSchema: z.ZodType< ApplicationCreateUpdateConfigSwarm, @@ -1416,63 +681,6 @@ export const ApplicationCreateUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationCreateUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationCreateUpdateConfigSwarm$outboundSchema: z.ZodType< - ApplicationCreateUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationCreateUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateUpdateConfigSwarm$ { - /** @deprecated use `ApplicationCreateUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateUpdateConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationCreateUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationCreateUpdateConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationCreateUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationCreateUpdateConfigSwarm$Outbound; -} - -export function applicationCreateUpdateConfigSwarmToJSON( - applicationCreateUpdateConfigSwarm: ApplicationCreateUpdateConfigSwarm, -): string { - return JSON.stringify( - ApplicationCreateUpdateConfigSwarm$outboundSchema.parse( - applicationCreateUpdateConfigSwarm, - ), - ); -} - export function applicationCreateUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1595,246 +803,6 @@ export const ApplicationCreateResponseBody$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** @internal */ -export type ApplicationCreateResponseBody$Outbound = { - appName?: string | undefined; - applicationId?: string | undefined; - applicationStatus?: string | undefined; - autoDeploy?: boolean | null | undefined; - bitbucketBranch?: string | null | undefined; - bitbucketBuildPath?: string | null | undefined; - bitbucketId?: string | null | undefined; - bitbucketOwner?: string | null | undefined; - bitbucketRepository?: string | null | undefined; - branch?: string | null | undefined; - buildArgs?: string | null | undefined; - buildPath?: string | null | undefined; - buildType?: string | undefined; - cleanCache?: boolean | null | undefined; - command?: string | null | undefined; - cpuLimit?: string | null | undefined; - cpuReservation?: string | null | undefined; - createdAt?: string | undefined; - customGitBranch?: string | null | undefined; - customGitBuildPath?: string | null | undefined; - customGitSSHKeyId?: string | null | undefined; - customGitUrl?: string | null | undefined; - description?: string | null | undefined; - dockerBuildStage?: string | null | undefined; - dockerContextPath?: string | null | undefined; - dockerImage?: string | null | undefined; - dockerfile?: string | null | undefined; - dropBuildPath?: string | null | undefined; - enableSubmodules?: boolean | undefined; - enabled?: boolean | null | undefined; - env?: string | null | undefined; - environmentId: string; - giteaBranch?: string | null | undefined; - giteaBuildPath?: string | null | undefined; - giteaId?: string | null | undefined; - giteaOwner?: string | null | undefined; - giteaRepository?: string | null | undefined; - githubId?: string | null | undefined; - gitlabBranch?: string | null | undefined; - gitlabBuildPath?: string | null | undefined; - gitlabId?: string | null | undefined; - gitlabOwner?: string | null | undefined; - gitlabPathNamespace?: string | null | undefined; - gitlabProjectId?: number | null | undefined; - gitlabRepository?: string | null | undefined; - healthCheckSwarm?: - | ApplicationCreateHealthCheckSwarm$Outbound - | null - | undefined; - herokuVersion?: string | null | undefined; - isPreviewDeploymentsActive?: boolean | null | undefined; - isStaticSpa?: boolean | null | undefined; - labelsSwarm?: { [k: string]: string } | null | undefined; - memoryLimit?: string | null | undefined; - memoryReservation?: string | null | undefined; - modeSwarm?: ApplicationCreateModeSwarm$Outbound | null | undefined; - name: string; - networkSwarm?: - | Array - | null - | undefined; - owner?: string | null | undefined; - password?: string | null | undefined; - placementSwarm?: ApplicationCreatePlacementSwarm$Outbound | null | undefined; - previewBuildArgs?: string | null | undefined; - previewCertificateType?: string | undefined; - previewCustomCertResolver?: string | null | undefined; - previewEnv?: string | null | undefined; - previewHttps?: boolean | undefined; - previewLabels?: Array | null | undefined; - previewLimit?: number | null | undefined; - previewPath?: string | null | undefined; - previewPort?: number | null | undefined; - previewRequireCollaboratorPermissions?: boolean | null | undefined; - previewWildcard?: string | null | undefined; - publishDirectory?: string | null | undefined; - railpackVersion?: string | null | undefined; - refreshToken?: string | null | undefined; - registryId?: string | null | undefined; - registryUrl?: string | null | undefined; - replicas?: number | undefined; - repository?: string | null | undefined; - restartPolicySwarm?: - | ApplicationCreateRestartPolicySwarm$Outbound - | null - | undefined; - rollbackActive?: boolean | null | undefined; - rollbackConfigSwarm?: - | ApplicationCreateRollbackConfigSwarm$Outbound - | null - | undefined; - serverId?: string | null | undefined; - sourceType?: string | undefined; - subtitle?: string | null | undefined; - title?: string | null | undefined; - triggerType?: string | null | undefined; - updateConfigSwarm?: - | ApplicationCreateUpdateConfigSwarm$Outbound - | null - | undefined; - username?: string | null | undefined; - watchPaths?: Array | null | undefined; -}; - -/** @internal */ -export const ApplicationCreateResponseBody$outboundSchema: z.ZodType< - ApplicationCreateResponseBody$Outbound, - z.ZodTypeDef, - ApplicationCreateResponseBody -> = z.object({ - appName: z.string().optional(), - applicationId: z.string().optional(), - applicationStatus: ApplicationCreateApplicationStatus$outboundSchema - .optional(), - autoDeploy: z.nullable(z.boolean()).optional(), - bitbucketBranch: z.nullable(z.string()).optional(), - bitbucketBuildPath: z.nullable(z.string()).optional(), - bitbucketId: z.nullable(z.string()).optional(), - bitbucketOwner: z.nullable(z.string()).optional(), - bitbucketRepository: z.nullable(z.string()).optional(), - branch: z.nullable(z.string()).optional(), - buildArgs: z.nullable(z.string()).optional(), - buildPath: z.nullable(z.string()).optional(), - buildType: ApplicationCreateBuildType$outboundSchema.optional(), - cleanCache: z.nullable(z.boolean()).optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - customGitBranch: z.nullable(z.string()).optional(), - customGitBuildPath: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - dockerBuildStage: z.nullable(z.string()).optional(), - dockerContextPath: z.nullable(z.string()).optional(), - dockerImage: z.nullable(z.string()).optional(), - dockerfile: z.nullable(z.string()).optional(), - dropBuildPath: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean().optional(), - enabled: z.nullable(z.boolean()).optional(), - env: z.nullable(z.string()).optional(), - environmentId: z.string(), - giteaBranch: z.nullable(z.string()).optional(), - giteaBuildPath: z.nullable(z.string()).optional(), - giteaId: z.nullable(z.string()).optional(), - giteaOwner: z.nullable(z.string()).optional(), - giteaRepository: z.nullable(z.string()).optional(), - githubId: z.nullable(z.string()).optional(), - gitlabBranch: z.nullable(z.string()).optional(), - gitlabBuildPath: z.nullable(z.string()).optional(), - gitlabId: z.nullable(z.string()).optional(), - gitlabOwner: z.nullable(z.string()).optional(), - gitlabPathNamespace: z.nullable(z.string()).optional(), - gitlabProjectId: z.nullable(z.number()).optional(), - gitlabRepository: z.nullable(z.string()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => ApplicationCreateHealthCheckSwarm$outboundSchema), - ).optional(), - herokuVersion: z.nullable(z.string()).optional(), - isPreviewDeploymentsActive: z.nullable(z.boolean()).optional(), - isStaticSpa: z.nullable(z.boolean()).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => ApplicationCreateModeSwarm$outboundSchema)) - .optional(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => ApplicationCreateNetworkSwarm$outboundSchema)), - ).optional(), - owner: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - placementSwarm: z.nullable( - z.lazy(() => ApplicationCreatePlacementSwarm$outboundSchema), - ).optional(), - previewBuildArgs: z.nullable(z.string()).optional(), - previewCertificateType: ApplicationCreatePreviewCertificateType$outboundSchema - .optional(), - previewCustomCertResolver: z.nullable(z.string()).optional(), - previewEnv: z.nullable(z.string()).optional(), - previewHttps: z.boolean().optional(), - previewLabels: z.nullable(z.array(z.string())).optional(), - previewLimit: z.nullable(z.number()).optional(), - previewPath: z.nullable(z.string()).optional(), - previewPort: z.nullable(z.number()).optional(), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()).optional(), - previewWildcard: z.nullable(z.string()).optional(), - publishDirectory: z.nullable(z.string()).optional(), - railpackVersion: z.nullable(z.string()).optional(), - refreshToken: z.nullable(z.string()).optional(), - registryId: z.nullable(z.string()).optional(), - registryUrl: z.nullable(z.string()).optional(), - replicas: z.number().optional(), - repository: z.nullable(z.string()).optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => ApplicationCreateRestartPolicySwarm$outboundSchema), - ).optional(), - rollbackActive: z.nullable(z.boolean()).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => ApplicationCreateRollbackConfigSwarm$outboundSchema), - ).optional(), - serverId: z.nullable(z.string()).optional(), - sourceType: ApplicationCreateSourceType$outboundSchema.optional(), - subtitle: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - triggerType: z.nullable(ApplicationCreateTriggerType$outboundSchema) - .optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => ApplicationCreateUpdateConfigSwarm$outboundSchema), - ).optional(), - username: z.nullable(z.string()).optional(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateResponseBody$ { - /** @deprecated use `ApplicationCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateResponseBody$inboundSchema; - /** @deprecated use `ApplicationCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateResponseBody$outboundSchema; - /** @deprecated use `ApplicationCreateResponseBody$Outbound` instead. */ - export type Outbound = ApplicationCreateResponseBody$Outbound; -} - -export function applicationCreateResponseBodyToJSON( - applicationCreateResponseBody: ApplicationCreateResponseBody, -): string { - return JSON.stringify( - ApplicationCreateResponseBody$outboundSchema.parse( - applicationCreateResponseBody, - ), - ); -} - export function applicationCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1855,42 +823,6 @@ export const ApplicationCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ApplicationCreateResponse$Outbound = - | ApplicationCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ApplicationCreateResponse$outboundSchema: z.ZodType< - ApplicationCreateResponse$Outbound, - z.ZodTypeDef, - ApplicationCreateResponse -> = z.union([ - z.lazy(() => ApplicationCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationCreateResponse$ { - /** @deprecated use `ApplicationCreateResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationCreateResponse$inboundSchema; - /** @deprecated use `ApplicationCreateResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationCreateResponse$outboundSchema; - /** @deprecated use `ApplicationCreateResponse$Outbound` instead. */ - export type Outbound = ApplicationCreateResponse$Outbound; -} - -export function applicationCreateResponseToJSON( - applicationCreateResponse: ApplicationCreateResponse, -): string { - return JSON.stringify( - ApplicationCreateResponse$outboundSchema.parse(applicationCreateResponse), - ); -} - export function applicationCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationdelete.ts b/src/models/operations/applicationdelete.ts index b97ce79..312fbe0 100644 --- a/src/models/operations/applicationdelete.ts +++ b/src/models/operations/applicationdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -571,15 +571,6 @@ export type ApplicationDeleteResponse = | ApplicationDeleteResponseBody | models.ErrorT; -/** @internal */ -export const ApplicationDeleteRequest$inboundSchema: z.ZodType< - ApplicationDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationDeleteRequest$Outbound = { applicationId: string; @@ -594,19 +585,6 @@ export const ApplicationDeleteRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteRequest$ { - /** @deprecated use `ApplicationDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteRequest$inboundSchema; - /** @deprecated use `ApplicationDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteRequest$outboundSchema; - /** @deprecated use `ApplicationDeleteRequest$Outbound` instead. */ - export type Outbound = ApplicationDeleteRequest$Outbound; -} - export function applicationDeleteRequestToJSON( applicationDeleteRequest: ApplicationDeleteRequest, ): string { @@ -615,38 +593,11 @@ export function applicationDeleteRequestToJSON( ); } -export function applicationDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationDeleteRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationDeleteApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteApplicationStatus > = z.nativeEnum(ApplicationDeleteApplicationStatus); -/** @internal */ -export const ApplicationDeleteApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteApplicationStatus -> = ApplicationDeleteApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteApplicationStatus$ { - /** @deprecated use `ApplicationDeleteApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteApplicationStatus$inboundSchema; - /** @deprecated use `ApplicationDeleteApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeleteApplicationStatus$outboundSchema; -} - /** @internal */ export const ApplicationDeleteBitbucket$inboundSchema: z.ZodType< ApplicationDeleteBitbucket, @@ -660,49 +611,6 @@ export const ApplicationDeleteBitbucket$inboundSchema: z.ZodType< gitProviderId: z.string(), }); -/** @internal */ -export type ApplicationDeleteBitbucket$Outbound = { - appPassword: string | null; - bitbucketId: string; - bitbucketUsername: string | null; - bitbucketWorkspaceName: string | null; - gitProviderId: string; -}; - -/** @internal */ -export const ApplicationDeleteBitbucket$outboundSchema: z.ZodType< - ApplicationDeleteBitbucket$Outbound, - z.ZodTypeDef, - ApplicationDeleteBitbucket -> = z.object({ - appPassword: z.nullable(z.string()), - bitbucketId: z.string(), - bitbucketUsername: z.nullable(z.string()), - bitbucketWorkspaceName: z.nullable(z.string()), - gitProviderId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteBitbucket$ { - /** @deprecated use `ApplicationDeleteBitbucket$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteBitbucket$inboundSchema; - /** @deprecated use `ApplicationDeleteBitbucket$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteBitbucket$outboundSchema; - /** @deprecated use `ApplicationDeleteBitbucket$Outbound` instead. */ - export type Outbound = ApplicationDeleteBitbucket$Outbound; -} - -export function applicationDeleteBitbucketToJSON( - applicationDeleteBitbucket: ApplicationDeleteBitbucket, -): string { - return JSON.stringify( - ApplicationDeleteBitbucket$outboundSchema.parse(applicationDeleteBitbucket), - ); -} - export function applicationDeleteBitbucketFromJSON( jsonString: string, ): SafeParseResult { @@ -718,43 +626,11 @@ export const ApplicationDeleteBuildType$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteBuildType > = z.nativeEnum(ApplicationDeleteBuildType); -/** @internal */ -export const ApplicationDeleteBuildType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteBuildType -> = ApplicationDeleteBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteBuildType$ { - /** @deprecated use `ApplicationDeleteBuildType$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteBuildType$inboundSchema; - /** @deprecated use `ApplicationDeleteBuildType$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteBuildType$outboundSchema; -} - /** @internal */ export const ApplicationDeleteStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteStatus > = z.nativeEnum(ApplicationDeleteStatus); -/** @internal */ -export const ApplicationDeleteStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteStatus -> = ApplicationDeleteStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteStatus$ { - /** @deprecated use `ApplicationDeleteStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteStatus$inboundSchema; - /** @deprecated use `ApplicationDeleteStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteStatus$outboundSchema; -} - /** @internal */ export const ApplicationDeleteDeployment$inboundSchema: z.ZodType< ApplicationDeleteDeployment, @@ -782,79 +658,6 @@ export const ApplicationDeleteDeployment$inboundSchema: z.ZodType< volumeBackupId: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationDeleteDeployment$Outbound = { - applicationId: string | null; - backupId: string | null; - composeId: string | null; - createdAt: string; - deploymentId: string; - description: string | null; - errorMessage: string | null; - finishedAt: string | null; - isPreviewDeployment: boolean | null; - logPath: string; - pid: string | null; - previewDeploymentId: string | null; - rollbackId: string | null; - scheduleId: string | null; - serverId: string | null; - startedAt: string | null; - status: string | null; - title: string; - volumeBackupId: string | null; -}; - -/** @internal */ -export const ApplicationDeleteDeployment$outboundSchema: z.ZodType< - ApplicationDeleteDeployment$Outbound, - z.ZodTypeDef, - ApplicationDeleteDeployment -> = z.object({ - applicationId: z.nullable(z.string()), - backupId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - createdAt: z.string(), - deploymentId: z.string(), - description: z.nullable(z.string()), - errorMessage: z.nullable(z.string()), - finishedAt: z.nullable(z.string()), - isPreviewDeployment: z.nullable(z.boolean()), - logPath: z.string(), - pid: z.nullable(z.string()), - previewDeploymentId: z.nullable(z.string()), - rollbackId: z.nullable(z.string()), - scheduleId: z.nullable(z.string()), - serverId: z.nullable(z.string()), - startedAt: z.nullable(z.string()), - status: z.nullable(ApplicationDeleteStatus$outboundSchema), - title: z.string(), - volumeBackupId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteDeployment$ { - /** @deprecated use `ApplicationDeleteDeployment$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteDeployment$inboundSchema; - /** @deprecated use `ApplicationDeleteDeployment$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteDeployment$outboundSchema; - /** @deprecated use `ApplicationDeleteDeployment$Outbound` instead. */ - export type Outbound = ApplicationDeleteDeployment$Outbound; -} - -export function applicationDeleteDeploymentToJSON( - applicationDeleteDeployment: ApplicationDeleteDeployment, -): string { - return JSON.stringify( - ApplicationDeleteDeployment$outboundSchema.parse( - applicationDeleteDeployment, - ), - ); -} - export function applicationDeleteDeploymentFromJSON( jsonString: string, ): SafeParseResult { @@ -870,43 +673,11 @@ export const ApplicationDeleteCertificateType$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteCertificateType > = z.nativeEnum(ApplicationDeleteCertificateType); -/** @internal */ -export const ApplicationDeleteCertificateType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteCertificateType -> = ApplicationDeleteCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteCertificateType$ { - /** @deprecated use `ApplicationDeleteCertificateType$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteCertificateType$inboundSchema; - /** @deprecated use `ApplicationDeleteCertificateType$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationDeleteDomainType$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteDomainType > = z.nativeEnum(ApplicationDeleteDomainType); -/** @internal */ -export const ApplicationDeleteDomainType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteDomainType -> = ApplicationDeleteDomainType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteDomainType$ { - /** @deprecated use `ApplicationDeleteDomainType$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteDomainType$inboundSchema; - /** @deprecated use `ApplicationDeleteDomainType$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteDomainType$outboundSchema; -} - /** @internal */ export const ApplicationDeleteDomain$inboundSchema: z.ZodType< ApplicationDeleteDomain, @@ -931,71 +702,6 @@ export const ApplicationDeleteDomain$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type ApplicationDeleteDomain$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const ApplicationDeleteDomain$outboundSchema: z.ZodType< - ApplicationDeleteDomain$Outbound, - z.ZodTypeDef, - ApplicationDeleteDomain -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: ApplicationDeleteCertificateType$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(ApplicationDeleteDomainType$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteDomain$ { - /** @deprecated use `ApplicationDeleteDomain$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteDomain$inboundSchema; - /** @deprecated use `ApplicationDeleteDomain$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteDomain$outboundSchema; - /** @deprecated use `ApplicationDeleteDomain$Outbound` instead. */ - export type Outbound = ApplicationDeleteDomain$Outbound; -} - -export function applicationDeleteDomainToJSON( - applicationDeleteDomain: ApplicationDeleteDomain, -): string { - return JSON.stringify( - ApplicationDeleteDomain$outboundSchema.parse(applicationDeleteDomain), - ); -} - export function applicationDeleteDomainFromJSON( jsonString: string, ): SafeParseResult { @@ -1020,51 +726,6 @@ export const ApplicationDeleteProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ApplicationDeleteProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ApplicationDeleteProject$outboundSchema: z.ZodType< - ApplicationDeleteProject$Outbound, - z.ZodTypeDef, - ApplicationDeleteProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteProject$ { - /** @deprecated use `ApplicationDeleteProject$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteProject$inboundSchema; - /** @deprecated use `ApplicationDeleteProject$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteProject$outboundSchema; - /** @deprecated use `ApplicationDeleteProject$Outbound` instead. */ - export type Outbound = ApplicationDeleteProject$Outbound; -} - -export function applicationDeleteProjectToJSON( - applicationDeleteProject: ApplicationDeleteProject, -): string { - return JSON.stringify( - ApplicationDeleteProject$outboundSchema.parse(applicationDeleteProject), - ); -} - export function applicationDeleteProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1090,55 +751,6 @@ export const ApplicationDeleteEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ApplicationDeleteEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: ApplicationDeleteProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const ApplicationDeleteEnvironment$outboundSchema: z.ZodType< - ApplicationDeleteEnvironment$Outbound, - z.ZodTypeDef, - ApplicationDeleteEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => ApplicationDeleteProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteEnvironment$ { - /** @deprecated use `ApplicationDeleteEnvironment$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteEnvironment$inboundSchema; - /** @deprecated use `ApplicationDeleteEnvironment$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteEnvironment$outboundSchema; - /** @deprecated use `ApplicationDeleteEnvironment$Outbound` instead. */ - export type Outbound = ApplicationDeleteEnvironment$Outbound; -} - -export function applicationDeleteEnvironmentToJSON( - applicationDeleteEnvironment: ApplicationDeleteEnvironment, -): string { - return JSON.stringify( - ApplicationDeleteEnvironment$outboundSchema.parse( - applicationDeleteEnvironment, - ), - ); -} - export function applicationDeleteEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1168,61 +780,6 @@ export const ApplicationDeleteGitea$inboundSchema: z.ZodType< scopes: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationDeleteGitea$Outbound = { - accessToken: string | null; - clientId: string | null; - clientSecret: string | null; - expiresAt: number | null; - gitProviderId: string; - giteaId: string; - giteaUrl: string; - lastAuthenticatedAt: number | null; - redirectUri: string | null; - refreshToken: string | null; - scopes: string | null; -}; - -/** @internal */ -export const ApplicationDeleteGitea$outboundSchema: z.ZodType< - ApplicationDeleteGitea$Outbound, - z.ZodTypeDef, - ApplicationDeleteGitea -> = z.object({ - accessToken: z.nullable(z.string()), - clientId: z.nullable(z.string()), - clientSecret: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - giteaId: z.string(), - giteaUrl: z.string(), - lastAuthenticatedAt: z.nullable(z.number()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - scopes: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteGitea$ { - /** @deprecated use `ApplicationDeleteGitea$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteGitea$inboundSchema; - /** @deprecated use `ApplicationDeleteGitea$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteGitea$outboundSchema; - /** @deprecated use `ApplicationDeleteGitea$Outbound` instead. */ - export type Outbound = ApplicationDeleteGitea$Outbound; -} - -export function applicationDeleteGiteaToJSON( - applicationDeleteGitea: ApplicationDeleteGitea, -): string { - return JSON.stringify( - ApplicationDeleteGitea$outboundSchema.parse(applicationDeleteGitea), - ); -} - export function applicationDeleteGiteaFromJSON( jsonString: string, ): SafeParseResult { @@ -1250,57 +807,6 @@ export const ApplicationDeleteGithub$inboundSchema: z.ZodType< githubWebhookSecret: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationDeleteGithub$Outbound = { - gitProviderId: string; - githubAppId: number | null; - githubAppName: string | null; - githubClientId: string | null; - githubClientSecret: string | null; - githubId: string; - githubInstallationId: string | null; - githubPrivateKey: string | null; - githubWebhookSecret: string | null; -}; - -/** @internal */ -export const ApplicationDeleteGithub$outboundSchema: z.ZodType< - ApplicationDeleteGithub$Outbound, - z.ZodTypeDef, - ApplicationDeleteGithub -> = z.object({ - gitProviderId: z.string(), - githubAppId: z.nullable(z.number()), - githubAppName: z.nullable(z.string()), - githubClientId: z.nullable(z.string()), - githubClientSecret: z.nullable(z.string()), - githubId: z.string(), - githubInstallationId: z.nullable(z.string()), - githubPrivateKey: z.nullable(z.string()), - githubWebhookSecret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteGithub$ { - /** @deprecated use `ApplicationDeleteGithub$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteGithub$inboundSchema; - /** @deprecated use `ApplicationDeleteGithub$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteGithub$outboundSchema; - /** @deprecated use `ApplicationDeleteGithub$Outbound` instead. */ - export type Outbound = ApplicationDeleteGithub$Outbound; -} - -export function applicationDeleteGithubToJSON( - applicationDeleteGithub: ApplicationDeleteGithub, -): string { - return JSON.stringify( - ApplicationDeleteGithub$outboundSchema.parse(applicationDeleteGithub), - ); -} - export function applicationDeleteGithubFromJSON( jsonString: string, ): SafeParseResult { @@ -1329,59 +835,6 @@ export const ApplicationDeleteGitlab$inboundSchema: z.ZodType< secret: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationDeleteGitlab$Outbound = { - accessToken: string | null; - applicationId: string | null; - expiresAt: number | null; - gitProviderId: string; - gitlabId: string; - gitlabUrl: string; - groupName: string | null; - redirectUri: string | null; - refreshToken: string | null; - secret: string | null; -}; - -/** @internal */ -export const ApplicationDeleteGitlab$outboundSchema: z.ZodType< - ApplicationDeleteGitlab$Outbound, - z.ZodTypeDef, - ApplicationDeleteGitlab -> = z.object({ - accessToken: z.nullable(z.string()), - applicationId: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - gitlabId: z.string(), - gitlabUrl: z.string(), - groupName: z.nullable(z.string()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - secret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteGitlab$ { - /** @deprecated use `ApplicationDeleteGitlab$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteGitlab$inboundSchema; - /** @deprecated use `ApplicationDeleteGitlab$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteGitlab$outboundSchema; - /** @deprecated use `ApplicationDeleteGitlab$Outbound` instead. */ - export type Outbound = ApplicationDeleteGitlab$Outbound; -} - -export function applicationDeleteGitlabToJSON( - applicationDeleteGitlab: ApplicationDeleteGitlab, -): string { - return JSON.stringify( - ApplicationDeleteGitlab$outboundSchema.parse(applicationDeleteGitlab), - ); -} - export function applicationDeleteGitlabFromJSON( jsonString: string, ): SafeParseResult { @@ -1413,60 +866,6 @@ export const ApplicationDeleteHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const ApplicationDeleteHealthCheckSwarm$outboundSchema: z.ZodType< - ApplicationDeleteHealthCheckSwarm$Outbound, - z.ZodTypeDef, - ApplicationDeleteHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteHealthCheckSwarm$ { - /** @deprecated use `ApplicationDeleteHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteHealthCheckSwarm$inboundSchema; - /** @deprecated use `ApplicationDeleteHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeleteHealthCheckSwarm$outboundSchema; - /** @deprecated use `ApplicationDeleteHealthCheckSwarm$Outbound` instead. */ - export type Outbound = ApplicationDeleteHealthCheckSwarm$Outbound; -} - -export function applicationDeleteHealthCheckSwarmToJSON( - applicationDeleteHealthCheckSwarm: ApplicationDeleteHealthCheckSwarm, -): string { - return JSON.stringify( - ApplicationDeleteHealthCheckSwarm$outboundSchema.parse( - applicationDeleteHealthCheckSwarm, - ), - ); -} - export function applicationDeleteHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1484,37 +883,6 @@ export const ApplicationDeleteGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationDeleteGlobal$Outbound = {}; - -/** @internal */ -export const ApplicationDeleteGlobal$outboundSchema: z.ZodType< - ApplicationDeleteGlobal$Outbound, - z.ZodTypeDef, - ApplicationDeleteGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteGlobal$ { - /** @deprecated use `ApplicationDeleteGlobal$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteGlobal$inboundSchema; - /** @deprecated use `ApplicationDeleteGlobal$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteGlobal$outboundSchema; - /** @deprecated use `ApplicationDeleteGlobal$Outbound` instead. */ - export type Outbound = ApplicationDeleteGlobal$Outbound; -} - -export function applicationDeleteGlobalToJSON( - applicationDeleteGlobal: ApplicationDeleteGlobal, -): string { - return JSON.stringify( - ApplicationDeleteGlobal$outboundSchema.parse(applicationDeleteGlobal), - ); -} - export function applicationDeleteGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1532,37 +900,6 @@ export const ApplicationDeleteGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationDeleteGlobalJob$Outbound = {}; - -/** @internal */ -export const ApplicationDeleteGlobalJob$outboundSchema: z.ZodType< - ApplicationDeleteGlobalJob$Outbound, - z.ZodTypeDef, - ApplicationDeleteGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteGlobalJob$ { - /** @deprecated use `ApplicationDeleteGlobalJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteGlobalJob$inboundSchema; - /** @deprecated use `ApplicationDeleteGlobalJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteGlobalJob$outboundSchema; - /** @deprecated use `ApplicationDeleteGlobalJob$Outbound` instead. */ - export type Outbound = ApplicationDeleteGlobalJob$Outbound; -} - -export function applicationDeleteGlobalJobToJSON( - applicationDeleteGlobalJob: ApplicationDeleteGlobalJob, -): string { - return JSON.stringify( - ApplicationDeleteGlobalJob$outboundSchema.parse(applicationDeleteGlobalJob), - ); -} - export function applicationDeleteGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1586,47 +923,6 @@ export const ApplicationDeleteReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const ApplicationDeleteReplicated$outboundSchema: z.ZodType< - ApplicationDeleteReplicated$Outbound, - z.ZodTypeDef, - ApplicationDeleteReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteReplicated$ { - /** @deprecated use `ApplicationDeleteReplicated$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteReplicated$inboundSchema; - /** @deprecated use `ApplicationDeleteReplicated$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteReplicated$outboundSchema; - /** @deprecated use `ApplicationDeleteReplicated$Outbound` instead. */ - export type Outbound = ApplicationDeleteReplicated$Outbound; -} - -export function applicationDeleteReplicatedToJSON( - applicationDeleteReplicated: ApplicationDeleteReplicated, -): string { - return JSON.stringify( - ApplicationDeleteReplicated$outboundSchema.parse( - applicationDeleteReplicated, - ), - ); -} - export function applicationDeleteReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1652,50 +948,6 @@ export const ApplicationDeleteReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const ApplicationDeleteReplicatedJob$outboundSchema: z.ZodType< - ApplicationDeleteReplicatedJob$Outbound, - z.ZodTypeDef, - ApplicationDeleteReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteReplicatedJob$ { - /** @deprecated use `ApplicationDeleteReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteReplicatedJob$inboundSchema; - /** @deprecated use `ApplicationDeleteReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteReplicatedJob$outboundSchema; - /** @deprecated use `ApplicationDeleteReplicatedJob$Outbound` instead. */ - export type Outbound = ApplicationDeleteReplicatedJob$Outbound; -} - -export function applicationDeleteReplicatedJobToJSON( - applicationDeleteReplicatedJob: ApplicationDeleteReplicatedJob, -): string { - return JSON.stringify( - ApplicationDeleteReplicatedJob$outboundSchema.parse( - applicationDeleteReplicatedJob, - ), - ); -} - export function applicationDeleteReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1727,56 +979,6 @@ export const ApplicationDeleteModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteModeSwarm$Outbound = { - Global?: ApplicationDeleteGlobal$Outbound | undefined; - GlobalJob?: ApplicationDeleteGlobalJob$Outbound | undefined; - Replicated?: ApplicationDeleteReplicated$Outbound | undefined; - ReplicatedJob?: ApplicationDeleteReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const ApplicationDeleteModeSwarm$outboundSchema: z.ZodType< - ApplicationDeleteModeSwarm$Outbound, - z.ZodTypeDef, - ApplicationDeleteModeSwarm -> = z.object({ - global: z.lazy(() => ApplicationDeleteGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => ApplicationDeleteGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => ApplicationDeleteReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => ApplicationDeleteReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteModeSwarm$ { - /** @deprecated use `ApplicationDeleteModeSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteModeSwarm$inboundSchema; - /** @deprecated use `ApplicationDeleteModeSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteModeSwarm$outboundSchema; - /** @deprecated use `ApplicationDeleteModeSwarm$Outbound` instead. */ - export type Outbound = ApplicationDeleteModeSwarm$Outbound; -} - -export function applicationDeleteModeSwarmToJSON( - applicationDeleteModeSwarm: ApplicationDeleteModeSwarm, -): string { - return JSON.stringify( - ApplicationDeleteModeSwarm$outboundSchema.parse(applicationDeleteModeSwarm), - ); -} - export function applicationDeleteModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1792,43 +994,11 @@ export const ApplicationDeleteServiceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteServiceType > = z.nativeEnum(ApplicationDeleteServiceType); -/** @internal */ -export const ApplicationDeleteServiceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteServiceType -> = ApplicationDeleteServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteServiceType$ { - /** @deprecated use `ApplicationDeleteServiceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteServiceType$inboundSchema; - /** @deprecated use `ApplicationDeleteServiceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteServiceType$outboundSchema; -} - /** @internal */ export const ApplicationDeleteType$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteType > = z.nativeEnum(ApplicationDeleteType); -/** @internal */ -export const ApplicationDeleteType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteType -> = ApplicationDeleteType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteType$ { - /** @deprecated use `ApplicationDeleteType$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteType$inboundSchema; - /** @deprecated use `ApplicationDeleteType$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteType$outboundSchema; -} - /** @internal */ export const ApplicationDeleteMount$inboundSchema: z.ZodType< ApplicationDeleteMount, @@ -1852,69 +1022,6 @@ export const ApplicationDeleteMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationDeleteMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const ApplicationDeleteMount$outboundSchema: z.ZodType< - ApplicationDeleteMount$Outbound, - z.ZodTypeDef, - ApplicationDeleteMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: ApplicationDeleteServiceType$outboundSchema, - type: ApplicationDeleteType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteMount$ { - /** @deprecated use `ApplicationDeleteMount$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteMount$inboundSchema; - /** @deprecated use `ApplicationDeleteMount$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteMount$outboundSchema; - /** @deprecated use `ApplicationDeleteMount$Outbound` instead. */ - export type Outbound = ApplicationDeleteMount$Outbound; -} - -export function applicationDeleteMountToJSON( - applicationDeleteMount: ApplicationDeleteMount, -): string { - return JSON.stringify( - ApplicationDeleteMount$outboundSchema.parse(applicationDeleteMount), - ); -} - export function applicationDeleteMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1932,39 +1039,6 @@ export const ApplicationDeleteDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationDeleteDriverOpts$Outbound = {}; - -/** @internal */ -export const ApplicationDeleteDriverOpts$outboundSchema: z.ZodType< - ApplicationDeleteDriverOpts$Outbound, - z.ZodTypeDef, - ApplicationDeleteDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteDriverOpts$ { - /** @deprecated use `ApplicationDeleteDriverOpts$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteDriverOpts$inboundSchema; - /** @deprecated use `ApplicationDeleteDriverOpts$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteDriverOpts$outboundSchema; - /** @deprecated use `ApplicationDeleteDriverOpts$Outbound` instead. */ - export type Outbound = ApplicationDeleteDriverOpts$Outbound; -} - -export function applicationDeleteDriverOptsToJSON( - applicationDeleteDriverOpts: ApplicationDeleteDriverOpts, -): string { - return JSON.stringify( - ApplicationDeleteDriverOpts$outboundSchema.parse( - applicationDeleteDriverOpts, - ), - ); -} - export function applicationDeleteDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1993,54 +1067,6 @@ export const ApplicationDeleteNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: ApplicationDeleteDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const ApplicationDeleteNetworkSwarm$outboundSchema: z.ZodType< - ApplicationDeleteNetworkSwarm$Outbound, - z.ZodTypeDef, - ApplicationDeleteNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => ApplicationDeleteDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteNetworkSwarm$ { - /** @deprecated use `ApplicationDeleteNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteNetworkSwarm$inboundSchema; - /** @deprecated use `ApplicationDeleteNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteNetworkSwarm$outboundSchema; - /** @deprecated use `ApplicationDeleteNetworkSwarm$Outbound` instead. */ - export type Outbound = ApplicationDeleteNetworkSwarm$Outbound; -} - -export function applicationDeleteNetworkSwarmToJSON( - applicationDeleteNetworkSwarm: ApplicationDeleteNetworkSwarm, -): string { - return JSON.stringify( - ApplicationDeleteNetworkSwarm$outboundSchema.parse( - applicationDeleteNetworkSwarm, - ), - ); -} - export function applicationDeleteNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2066,48 +1092,6 @@ export const ApplicationDeletePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeletePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const ApplicationDeletePlatform$outboundSchema: z.ZodType< - ApplicationDeletePlatform$Outbound, - z.ZodTypeDef, - ApplicationDeletePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeletePlatform$ { - /** @deprecated use `ApplicationDeletePlatform$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeletePlatform$inboundSchema; - /** @deprecated use `ApplicationDeletePlatform$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeletePlatform$outboundSchema; - /** @deprecated use `ApplicationDeletePlatform$Outbound` instead. */ - export type Outbound = ApplicationDeletePlatform$Outbound; -} - -export function applicationDeletePlatformToJSON( - applicationDeletePlatform: ApplicationDeletePlatform, -): string { - return JSON.stringify( - ApplicationDeletePlatform$outboundSchema.parse(applicationDeletePlatform), - ); -} - export function applicationDeletePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -2131,45 +1115,6 @@ export const ApplicationDeleteSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const ApplicationDeleteSpread$outboundSchema: z.ZodType< - ApplicationDeleteSpread$Outbound, - z.ZodTypeDef, - ApplicationDeleteSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteSpread$ { - /** @deprecated use `ApplicationDeleteSpread$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteSpread$inboundSchema; - /** @deprecated use `ApplicationDeleteSpread$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteSpread$outboundSchema; - /** @deprecated use `ApplicationDeleteSpread$Outbound` instead. */ - export type Outbound = ApplicationDeleteSpread$Outbound; -} - -export function applicationDeleteSpreadToJSON( - applicationDeleteSpread: ApplicationDeleteSpread, -): string { - return JSON.stringify( - ApplicationDeleteSpread$outboundSchema.parse(applicationDeleteSpread), - ); -} - export function applicationDeleteSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -2193,47 +1138,6 @@ export const ApplicationDeletePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeletePreference$Outbound = { - Spread: ApplicationDeleteSpread$Outbound; -}; - -/** @internal */ -export const ApplicationDeletePreference$outboundSchema: z.ZodType< - ApplicationDeletePreference$Outbound, - z.ZodTypeDef, - ApplicationDeletePreference -> = z.object({ - spread: z.lazy(() => ApplicationDeleteSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeletePreference$ { - /** @deprecated use `ApplicationDeletePreference$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeletePreference$inboundSchema; - /** @deprecated use `ApplicationDeletePreference$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeletePreference$outboundSchema; - /** @deprecated use `ApplicationDeletePreference$Outbound` instead. */ - export type Outbound = ApplicationDeletePreference$Outbound; -} - -export function applicationDeletePreferenceToJSON( - applicationDeletePreference: ApplicationDeletePreference, -): string { - return JSON.stringify( - ApplicationDeletePreference$outboundSchema.parse( - applicationDeletePreference, - ), - ); -} - export function applicationDeletePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -2265,58 +1169,6 @@ export const ApplicationDeletePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeletePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const ApplicationDeletePlacementSwarm$outboundSchema: z.ZodType< - ApplicationDeletePlacementSwarm$Outbound, - z.ZodTypeDef, - ApplicationDeletePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => ApplicationDeletePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => ApplicationDeletePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeletePlacementSwarm$ { - /** @deprecated use `ApplicationDeletePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeletePlacementSwarm$inboundSchema; - /** @deprecated use `ApplicationDeletePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeletePlacementSwarm$outboundSchema; - /** @deprecated use `ApplicationDeletePlacementSwarm$Outbound` instead. */ - export type Outbound = ApplicationDeletePlacementSwarm$Outbound; -} - -export function applicationDeletePlacementSwarmToJSON( - applicationDeletePlacementSwarm: ApplicationDeletePlacementSwarm, -): string { - return JSON.stringify( - ApplicationDeletePlacementSwarm$outboundSchema.parse( - applicationDeletePlacementSwarm, - ), - ); -} - export function applicationDeletePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2332,43 +1184,11 @@ export const ApplicationDeleteProtocol$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteProtocol > = z.nativeEnum(ApplicationDeleteProtocol); -/** @internal */ -export const ApplicationDeleteProtocol$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteProtocol -> = ApplicationDeleteProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteProtocol$ { - /** @deprecated use `ApplicationDeleteProtocol$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteProtocol$inboundSchema; - /** @deprecated use `ApplicationDeleteProtocol$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteProtocol$outboundSchema; -} - /** @internal */ export const ApplicationDeletePublishMode$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeletePublishMode > = z.nativeEnum(ApplicationDeletePublishMode); -/** @internal */ -export const ApplicationDeletePublishMode$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeletePublishMode -> = ApplicationDeletePublishMode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeletePublishMode$ { - /** @deprecated use `ApplicationDeletePublishMode$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeletePublishMode$inboundSchema; - /** @deprecated use `ApplicationDeletePublishMode$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeletePublishMode$outboundSchema; -} - /** @internal */ export const ApplicationDeletePort$inboundSchema: z.ZodType< ApplicationDeletePort, @@ -2383,51 +1203,6 @@ export const ApplicationDeletePort$inboundSchema: z.ZodType< targetPort: z.number(), }); -/** @internal */ -export type ApplicationDeletePort$Outbound = { - applicationId: string; - portId: string; - protocol: string; - publishMode: string; - publishedPort: number; - targetPort: number; -}; - -/** @internal */ -export const ApplicationDeletePort$outboundSchema: z.ZodType< - ApplicationDeletePort$Outbound, - z.ZodTypeDef, - ApplicationDeletePort -> = z.object({ - applicationId: z.string(), - portId: z.string(), - protocol: ApplicationDeleteProtocol$outboundSchema, - publishMode: ApplicationDeletePublishMode$outboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeletePort$ { - /** @deprecated use `ApplicationDeletePort$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeletePort$inboundSchema; - /** @deprecated use `ApplicationDeletePort$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeletePort$outboundSchema; - /** @deprecated use `ApplicationDeletePort$Outbound` instead. */ - export type Outbound = ApplicationDeletePort$Outbound; -} - -export function applicationDeletePortToJSON( - applicationDeletePort: ApplicationDeletePort, -): string { - return JSON.stringify( - ApplicationDeletePort$outboundSchema.parse(applicationDeletePort), - ); -} - export function applicationDeletePortFromJSON( jsonString: string, ): SafeParseResult { @@ -2443,45 +1218,11 @@ export const ApplicationDeletePreviewCertificateType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ApplicationDeletePreviewCertificateType); -/** @internal */ -export const ApplicationDeletePreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - ApplicationDeletePreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeletePreviewCertificateType$ { - /** @deprecated use `ApplicationDeletePreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - ApplicationDeletePreviewCertificateType$inboundSchema; - /** @deprecated use `ApplicationDeletePreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeletePreviewCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationDeletePreviewStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeletePreviewStatus > = z.nativeEnum(ApplicationDeletePreviewStatus); -/** @internal */ -export const ApplicationDeletePreviewStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeletePreviewStatus -> = ApplicationDeletePreviewStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeletePreviewStatus$ { - /** @deprecated use `ApplicationDeletePreviewStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeletePreviewStatus$inboundSchema; - /** @deprecated use `ApplicationDeletePreviewStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeletePreviewStatus$outboundSchema; -} - /** @internal */ export const ApplicationDeletePreviewDeployment$inboundSchema: z.ZodType< ApplicationDeletePreviewDeployment, @@ -2500,70 +1241,8 @@ export const ApplicationDeletePreviewDeployment$inboundSchema: z.ZodType< pullRequestId: z.string(), pullRequestNumber: z.string(), pullRequestTitle: z.string(), - pullRequestURL: z.string(), -}); - -/** @internal */ -export type ApplicationDeletePreviewDeployment$Outbound = { - appName: string; - applicationId: string; - branch: string; - createdAt: string; - domainId: string | null; - expiresAt: string | null; - previewDeploymentId: string; - previewStatus: string; - pullRequestCommentId: string; - pullRequestId: string; - pullRequestNumber: string; - pullRequestTitle: string; - pullRequestURL: string; -}; - -/** @internal */ -export const ApplicationDeletePreviewDeployment$outboundSchema: z.ZodType< - ApplicationDeletePreviewDeployment$Outbound, - z.ZodTypeDef, - ApplicationDeletePreviewDeployment -> = z.object({ - appName: z.string(), - applicationId: z.string(), - branch: z.string(), - createdAt: z.string(), - domainId: z.nullable(z.string()), - expiresAt: z.nullable(z.string()), - previewDeploymentId: z.string(), - previewStatus: ApplicationDeletePreviewStatus$outboundSchema, - pullRequestCommentId: z.string(), - pullRequestId: z.string(), - pullRequestNumber: z.string(), - pullRequestTitle: z.string(), - pullRequestURL: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeletePreviewDeployment$ { - /** @deprecated use `ApplicationDeletePreviewDeployment$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeletePreviewDeployment$inboundSchema; - /** @deprecated use `ApplicationDeletePreviewDeployment$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeletePreviewDeployment$outboundSchema; - /** @deprecated use `ApplicationDeletePreviewDeployment$Outbound` instead. */ - export type Outbound = ApplicationDeletePreviewDeployment$Outbound; -} - -export function applicationDeletePreviewDeploymentToJSON( - applicationDeletePreviewDeployment: ApplicationDeletePreviewDeployment, -): string { - return JSON.stringify( - ApplicationDeletePreviewDeployment$outboundSchema.parse( - applicationDeletePreviewDeployment, - ), - ); -} + pullRequestURL: z.string(), +}); export function applicationDeletePreviewDeploymentFromJSON( jsonString: string, @@ -2591,53 +1270,6 @@ export const ApplicationDeleteRedirect$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type ApplicationDeleteRedirect$Outbound = { - applicationId: string; - createdAt: string; - permanent: boolean; - redirectId: string; - regex: string; - replacement: string; - uniqueConfigKey: number; -}; - -/** @internal */ -export const ApplicationDeleteRedirect$outboundSchema: z.ZodType< - ApplicationDeleteRedirect$Outbound, - z.ZodTypeDef, - ApplicationDeleteRedirect -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteRedirect$ { - /** @deprecated use `ApplicationDeleteRedirect$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteRedirect$inboundSchema; - /** @deprecated use `ApplicationDeleteRedirect$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteRedirect$outboundSchema; - /** @deprecated use `ApplicationDeleteRedirect$Outbound` instead. */ - export type Outbound = ApplicationDeleteRedirect$Outbound; -} - -export function applicationDeleteRedirectToJSON( - applicationDeleteRedirect: ApplicationDeleteRedirect, -): string { - return JSON.stringify( - ApplicationDeleteRedirect$outboundSchema.parse(applicationDeleteRedirect), - ); -} - export function applicationDeleteRedirectFromJSON( jsonString: string, ): SafeParseResult { @@ -2653,22 +1285,6 @@ export const ApplicationDeleteRegistryType$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteRegistryType > = z.nativeEnum(ApplicationDeleteRegistryType); -/** @internal */ -export const ApplicationDeleteRegistryType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteRegistryType -> = ApplicationDeleteRegistryType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteRegistryType$ { - /** @deprecated use `ApplicationDeleteRegistryType$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteRegistryType$inboundSchema; - /** @deprecated use `ApplicationDeleteRegistryType$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteRegistryType$outboundSchema; -} - /** @internal */ export const ApplicationDeleteRegistry$inboundSchema: z.ZodType< ApplicationDeleteRegistry, @@ -2686,57 +1302,6 @@ export const ApplicationDeleteRegistry$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type ApplicationDeleteRegistry$Outbound = { - createdAt: string; - imagePrefix: string | null; - organizationId: string; - password: string; - registryId: string; - registryName: string; - registryType: string; - registryUrl: string; - username: string; -}; - -/** @internal */ -export const ApplicationDeleteRegistry$outboundSchema: z.ZodType< - ApplicationDeleteRegistry$Outbound, - z.ZodTypeDef, - ApplicationDeleteRegistry -> = z.object({ - createdAt: z.string(), - imagePrefix: z.nullable(z.string()), - organizationId: z.string(), - password: z.string(), - registryId: z.string(), - registryName: z.string(), - registryType: ApplicationDeleteRegistryType$outboundSchema, - registryUrl: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteRegistry$ { - /** @deprecated use `ApplicationDeleteRegistry$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteRegistry$inboundSchema; - /** @deprecated use `ApplicationDeleteRegistry$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteRegistry$outboundSchema; - /** @deprecated use `ApplicationDeleteRegistry$Outbound` instead. */ - export type Outbound = ApplicationDeleteRegistry$Outbound; -} - -export function applicationDeleteRegistryToJSON( - applicationDeleteRegistry: ApplicationDeleteRegistry, -): string { - return JSON.stringify( - ApplicationDeleteRegistry$outboundSchema.parse(applicationDeleteRegistry), - ); -} - export function applicationDeleteRegistryFromJSON( jsonString: string, ): SafeParseResult { @@ -2766,58 +1331,6 @@ export const ApplicationDeleteRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const ApplicationDeleteRestartPolicySwarm$outboundSchema: z.ZodType< - ApplicationDeleteRestartPolicySwarm$Outbound, - z.ZodTypeDef, - ApplicationDeleteRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteRestartPolicySwarm$ { - /** @deprecated use `ApplicationDeleteRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - ApplicationDeleteRestartPolicySwarm$inboundSchema; - /** @deprecated use `ApplicationDeleteRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeleteRestartPolicySwarm$outboundSchema; - /** @deprecated use `ApplicationDeleteRestartPolicySwarm$Outbound` instead. */ - export type Outbound = ApplicationDeleteRestartPolicySwarm$Outbound; -} - -export function applicationDeleteRestartPolicySwarmToJSON( - applicationDeleteRestartPolicySwarm: ApplicationDeleteRestartPolicySwarm, -): string { - return JSON.stringify( - ApplicationDeleteRestartPolicySwarm$outboundSchema.parse( - applicationDeleteRestartPolicySwarm, - ), - ); -} - export function applicationDeleteRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2852,64 +1365,6 @@ export const ApplicationDeleteRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationDeleteRollbackConfigSwarm$outboundSchema: z.ZodType< - ApplicationDeleteRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationDeleteRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteRollbackConfigSwarm$ { - /** @deprecated use `ApplicationDeleteRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - ApplicationDeleteRollbackConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationDeleteRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeleteRollbackConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationDeleteRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationDeleteRollbackConfigSwarm$Outbound; -} - -export function applicationDeleteRollbackConfigSwarmToJSON( - applicationDeleteRollbackConfigSwarm: ApplicationDeleteRollbackConfigSwarm, -): string { - return JSON.stringify( - ApplicationDeleteRollbackConfigSwarm$outboundSchema.parse( - applicationDeleteRollbackConfigSwarm, - ), - ); -} - export function applicationDeleteRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2934,49 +1389,6 @@ export const ApplicationDeleteSecurity$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type ApplicationDeleteSecurity$Outbound = { - applicationId: string; - createdAt: string; - password: string; - securityId: string; - username: string; -}; - -/** @internal */ -export const ApplicationDeleteSecurity$outboundSchema: z.ZodType< - ApplicationDeleteSecurity$Outbound, - z.ZodTypeDef, - ApplicationDeleteSecurity -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteSecurity$ { - /** @deprecated use `ApplicationDeleteSecurity$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteSecurity$inboundSchema; - /** @deprecated use `ApplicationDeleteSecurity$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteSecurity$outboundSchema; - /** @deprecated use `ApplicationDeleteSecurity$Outbound` instead. */ - export type Outbound = ApplicationDeleteSecurity$Outbound; -} - -export function applicationDeleteSecurityToJSON( - applicationDeleteSecurity: ApplicationDeleteSecurity, -): string { - return JSON.stringify( - ApplicationDeleteSecurity$outboundSchema.parse(applicationDeleteSecurity), - ); -} - export function applicationDeleteSecurityFromJSON( jsonString: string, ): SafeParseResult { @@ -2992,23 +1404,6 @@ export const ApplicationDeleteMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteMetricsConfigEnum > = z.nativeEnum(ApplicationDeleteMetricsConfigEnum); -/** @internal */ -export const ApplicationDeleteMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteMetricsConfigEnum -> = ApplicationDeleteMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteMetricsConfigEnum$ { - /** @deprecated use `ApplicationDeleteMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteMetricsConfigEnum$inboundSchema; - /** @deprecated use `ApplicationDeleteMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeleteMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const ApplicationDeleteMetricsConfigUnion1$inboundSchema: z.ZodType< ApplicationDeleteMetricsConfigUnion1, @@ -3021,50 +1416,6 @@ export const ApplicationDeleteMetricsConfigUnion1$inboundSchema: z.ZodType< ApplicationDeleteMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type ApplicationDeleteMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const ApplicationDeleteMetricsConfigUnion1$outboundSchema: z.ZodType< - ApplicationDeleteMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - ApplicationDeleteMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationDeleteMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteMetricsConfigUnion1$ { - /** @deprecated use `ApplicationDeleteMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - ApplicationDeleteMetricsConfigUnion1$inboundSchema; - /** @deprecated use `ApplicationDeleteMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeleteMetricsConfigUnion1$outboundSchema; - /** @deprecated use `ApplicationDeleteMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = ApplicationDeleteMetricsConfigUnion1$Outbound; -} - -export function applicationDeleteMetricsConfigUnion1ToJSON( - applicationDeleteMetricsConfigUnion1: ApplicationDeleteMetricsConfigUnion1, -): string { - return JSON.stringify( - ApplicationDeleteMetricsConfigUnion1$outboundSchema.parse( - applicationDeleteMetricsConfigUnion1, - ), - ); -} - export function applicationDeleteMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -3092,56 +1443,6 @@ export const ApplicationDeleteMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type ApplicationDeleteMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const ApplicationDeleteMetricsConfigUnion2$outboundSchema: z.ZodType< - ApplicationDeleteMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - ApplicationDeleteMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationDeleteMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteMetricsConfigUnion2$ { - /** @deprecated use `ApplicationDeleteMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - ApplicationDeleteMetricsConfigUnion2$inboundSchema; - /** @deprecated use `ApplicationDeleteMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeleteMetricsConfigUnion2$outboundSchema; - /** @deprecated use `ApplicationDeleteMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = ApplicationDeleteMetricsConfigUnion2$Outbound; -} - -export function applicationDeleteMetricsConfigUnion2ToJSON( - applicationDeleteMetricsConfigUnion2: ApplicationDeleteMetricsConfigUnion2, -): string { - return JSON.stringify( - ApplicationDeleteMetricsConfigUnion2$outboundSchema.parse( - applicationDeleteMetricsConfigUnion2, - ), - ); -} - export function applicationDeleteMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -3154,82 +1455,15 @@ export function applicationDeleteMetricsConfigUnion2FromJSON( } /** @internal */ -export const ApplicationDeleteServerStatus$inboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteServerStatus -> = z.nativeEnum(ApplicationDeleteServerStatus); - -/** @internal */ -export const ApplicationDeleteServerStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteServerStatus -> = ApplicationDeleteServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteServerStatus$ { - /** @deprecated use `ApplicationDeleteServerStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteServerStatus$inboundSchema; - /** @deprecated use `ApplicationDeleteServerStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteServerStatus$outboundSchema; -} - -/** @internal */ -export const ApplicationDeleteServer$inboundSchema: z.ZodType< - ApplicationDeleteServer, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationDeleteMetricsConfigEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: ApplicationDeleteServerStatus$inboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** @internal */ -export type ApplicationDeleteServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const ApplicationDeleteServer$outboundSchema: z.ZodType< - ApplicationDeleteServer$Outbound, +export const ApplicationDeleteServerStatus$inboundSchema: z.ZodNativeEnum< + typeof ApplicationDeleteServerStatus +> = z.nativeEnum(ApplicationDeleteServerStatus); + +/** @internal */ +export const ApplicationDeleteServer$inboundSchema: z.ZodType< + ApplicationDeleteServer, z.ZodTypeDef, - ApplicationDeleteServer + unknown > = z.object({ appName: z.string(), command: z.string(), @@ -3242,7 +1476,7 @@ export const ApplicationDeleteServer$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - ApplicationDeleteMetricsConfigEnum$outboundSchema, + ApplicationDeleteMetricsConfigEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -3251,32 +1485,11 @@ export const ApplicationDeleteServer$outboundSchema: z.ZodType< organizationId: z.string(), port: z.number(), serverId: z.string(), - serverStatus: ApplicationDeleteServerStatus$outboundSchema, + serverStatus: ApplicationDeleteServerStatus$inboundSchema, sshKeyId: z.nullable(z.string()), username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteServer$ { - /** @deprecated use `ApplicationDeleteServer$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteServer$inboundSchema; - /** @deprecated use `ApplicationDeleteServer$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteServer$outboundSchema; - /** @deprecated use `ApplicationDeleteServer$Outbound` instead. */ - export type Outbound = ApplicationDeleteServer$Outbound; -} - -export function applicationDeleteServerToJSON( - applicationDeleteServer: ApplicationDeleteServer, -): string { - return JSON.stringify( - ApplicationDeleteServer$outboundSchema.parse(applicationDeleteServer), - ); -} - export function applicationDeleteServerFromJSON( jsonString: string, ): SafeParseResult { @@ -3292,43 +1505,11 @@ export const ApplicationDeleteSourceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteSourceType > = z.nativeEnum(ApplicationDeleteSourceType); -/** @internal */ -export const ApplicationDeleteSourceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteSourceType -> = ApplicationDeleteSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteSourceType$ { - /** @deprecated use `ApplicationDeleteSourceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteSourceType$inboundSchema; - /** @deprecated use `ApplicationDeleteSourceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteSourceType$outboundSchema; -} - /** @internal */ export const ApplicationDeleteTriggerType$inboundSchema: z.ZodNativeEnum< typeof ApplicationDeleteTriggerType > = z.nativeEnum(ApplicationDeleteTriggerType); -/** @internal */ -export const ApplicationDeleteTriggerType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationDeleteTriggerType -> = ApplicationDeleteTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteTriggerType$ { - /** @deprecated use `ApplicationDeleteTriggerType$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteTriggerType$inboundSchema; - /** @deprecated use `ApplicationDeleteTriggerType$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteTriggerType$outboundSchema; -} - /** @internal */ export const ApplicationDeleteUpdateConfigSwarm$inboundSchema: z.ZodType< ApplicationDeleteUpdateConfigSwarm, @@ -3352,63 +1533,6 @@ export const ApplicationDeleteUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationDeleteUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationDeleteUpdateConfigSwarm$outboundSchema: z.ZodType< - ApplicationDeleteUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationDeleteUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteUpdateConfigSwarm$ { - /** @deprecated use `ApplicationDeleteUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteUpdateConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationDeleteUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDeleteUpdateConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationDeleteUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationDeleteUpdateConfigSwarm$Outbound; -} - -export function applicationDeleteUpdateConfigSwarmToJSON( - applicationDeleteUpdateConfigSwarm: ApplicationDeleteUpdateConfigSwarm, -): string { - return JSON.stringify( - ApplicationDeleteUpdateConfigSwarm$outboundSchema.parse( - applicationDeleteUpdateConfigSwarm, - ), - ); -} - export function applicationDeleteUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -3547,280 +1671,6 @@ export const ApplicationDeleteResponseBody$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** @internal */ -export type ApplicationDeleteResponseBody$Outbound = { - appName?: string | undefined; - applicationId?: string | undefined; - applicationStatus?: string | undefined; - autoDeploy?: boolean | null | undefined; - bitbucket: ApplicationDeleteBitbucket$Outbound | null; - bitbucketBranch?: string | null | undefined; - bitbucketBuildPath?: string | null | undefined; - bitbucketId?: string | null | undefined; - bitbucketOwner?: string | null | undefined; - bitbucketRepository?: string | null | undefined; - branch?: string | null | undefined; - buildArgs?: string | null | undefined; - buildPath?: string | null | undefined; - buildType?: string | undefined; - cleanCache?: boolean | null | undefined; - command?: string | null | undefined; - cpuLimit?: string | null | undefined; - cpuReservation?: string | null | undefined; - createdAt?: string | undefined; - customGitBranch?: string | null | undefined; - customGitBuildPath?: string | null | undefined; - customGitSSHKeyId?: string | null | undefined; - customGitUrl?: string | null | undefined; - deployments: Array; - description?: string | null | undefined; - dockerBuildStage?: string | null | undefined; - dockerContextPath?: string | null | undefined; - dockerImage?: string | null | undefined; - dockerfile?: string | null | undefined; - domains: Array; - dropBuildPath?: string | null | undefined; - enableSubmodules?: boolean | undefined; - enabled?: boolean | null | undefined; - env?: string | null | undefined; - environment: ApplicationDeleteEnvironment$Outbound; - environmentId: string; - gitea: ApplicationDeleteGitea$Outbound | null; - giteaBranch?: string | null | undefined; - giteaBuildPath?: string | null | undefined; - giteaId?: string | null | undefined; - giteaOwner?: string | null | undefined; - giteaRepository?: string | null | undefined; - github: ApplicationDeleteGithub$Outbound | null; - githubId?: string | null | undefined; - gitlab: ApplicationDeleteGitlab$Outbound | null; - gitlabBranch?: string | null | undefined; - gitlabBuildPath?: string | null | undefined; - gitlabId?: string | null | undefined; - gitlabOwner?: string | null | undefined; - gitlabPathNamespace?: string | null | undefined; - gitlabProjectId?: number | null | undefined; - gitlabRepository?: string | null | undefined; - healthCheckSwarm?: - | ApplicationDeleteHealthCheckSwarm$Outbound - | null - | undefined; - herokuVersion?: string | null | undefined; - isPreviewDeploymentsActive?: boolean | null | undefined; - isStaticSpa?: boolean | null | undefined; - labelsSwarm?: { [k: string]: string } | null | undefined; - memoryLimit?: string | null | undefined; - memoryReservation?: string | null | undefined; - modeSwarm?: ApplicationDeleteModeSwarm$Outbound | null | undefined; - mounts: Array; - name: string; - networkSwarm?: - | Array - | null - | undefined; - owner?: string | null | undefined; - password?: string | null | undefined; - placementSwarm?: ApplicationDeletePlacementSwarm$Outbound | null | undefined; - ports: Array; - previewBuildArgs?: string | null | undefined; - previewCertificateType?: string | undefined; - previewCustomCertResolver?: string | null | undefined; - previewDeployments: Array; - previewEnv?: string | null | undefined; - previewHttps?: boolean | undefined; - previewLabels?: Array | null | undefined; - previewLimit?: number | null | undefined; - previewPath?: string | null | undefined; - previewPort?: number | null | undefined; - previewRequireCollaboratorPermissions?: boolean | null | undefined; - previewWildcard?: string | null | undefined; - publishDirectory?: string | null | undefined; - railpackVersion?: string | null | undefined; - redirects: Array; - refreshToken?: string | null | undefined; - registry: ApplicationDeleteRegistry$Outbound | null; - registryId?: string | null | undefined; - registryUrl?: string | null | undefined; - replicas?: number | undefined; - repository?: string | null | undefined; - restartPolicySwarm?: - | ApplicationDeleteRestartPolicySwarm$Outbound - | null - | undefined; - rollbackActive?: boolean | null | undefined; - rollbackConfigSwarm?: - | ApplicationDeleteRollbackConfigSwarm$Outbound - | null - | undefined; - security: Array; - server: ApplicationDeleteServer$Outbound | null; - serverId?: string | null | undefined; - sourceType?: string | undefined; - subtitle?: string | null | undefined; - title?: string | null | undefined; - triggerType?: string | null | undefined; - updateConfigSwarm?: - | ApplicationDeleteUpdateConfigSwarm$Outbound - | null - | undefined; - username?: string | null | undefined; - watchPaths?: Array | null | undefined; -}; - -/** @internal */ -export const ApplicationDeleteResponseBody$outboundSchema: z.ZodType< - ApplicationDeleteResponseBody$Outbound, - z.ZodTypeDef, - ApplicationDeleteResponseBody -> = z.object({ - appName: z.string().optional(), - applicationId: z.string().optional(), - applicationStatus: ApplicationDeleteApplicationStatus$outboundSchema - .optional(), - autoDeploy: z.nullable(z.boolean()).optional(), - bitbucket: z.nullable( - z.lazy(() => ApplicationDeleteBitbucket$outboundSchema), - ), - bitbucketBranch: z.nullable(z.string()).optional(), - bitbucketBuildPath: z.nullable(z.string()).optional(), - bitbucketId: z.nullable(z.string()).optional(), - bitbucketOwner: z.nullable(z.string()).optional(), - bitbucketRepository: z.nullable(z.string()).optional(), - branch: z.nullable(z.string()).optional(), - buildArgs: z.nullable(z.string()).optional(), - buildPath: z.nullable(z.string()).optional(), - buildType: ApplicationDeleteBuildType$outboundSchema.optional(), - cleanCache: z.nullable(z.boolean()).optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - customGitBranch: z.nullable(z.string()).optional(), - customGitBuildPath: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - deployments: z.array( - z.lazy(() => ApplicationDeleteDeployment$outboundSchema), - ), - description: z.nullable(z.string()).optional(), - dockerBuildStage: z.nullable(z.string()).optional(), - dockerContextPath: z.nullable(z.string()).optional(), - dockerImage: z.nullable(z.string()).optional(), - dockerfile: z.nullable(z.string()).optional(), - domains: z.array(z.lazy(() => ApplicationDeleteDomain$outboundSchema)), - dropBuildPath: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean().optional(), - enabled: z.nullable(z.boolean()).optional(), - env: z.nullable(z.string()).optional(), - environment: z.lazy(() => ApplicationDeleteEnvironment$outboundSchema), - environmentId: z.string(), - gitea: z.nullable(z.lazy(() => ApplicationDeleteGitea$outboundSchema)), - giteaBranch: z.nullable(z.string()).optional(), - giteaBuildPath: z.nullable(z.string()).optional(), - giteaId: z.nullable(z.string()).optional(), - giteaOwner: z.nullable(z.string()).optional(), - giteaRepository: z.nullable(z.string()).optional(), - github: z.nullable(z.lazy(() => ApplicationDeleteGithub$outboundSchema)), - githubId: z.nullable(z.string()).optional(), - gitlab: z.nullable(z.lazy(() => ApplicationDeleteGitlab$outboundSchema)), - gitlabBranch: z.nullable(z.string()).optional(), - gitlabBuildPath: z.nullable(z.string()).optional(), - gitlabId: z.nullable(z.string()).optional(), - gitlabOwner: z.nullable(z.string()).optional(), - gitlabPathNamespace: z.nullable(z.string()).optional(), - gitlabProjectId: z.nullable(z.number()).optional(), - gitlabRepository: z.nullable(z.string()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => ApplicationDeleteHealthCheckSwarm$outboundSchema), - ).optional(), - herokuVersion: z.nullable(z.string()).optional(), - isPreviewDeploymentsActive: z.nullable(z.boolean()).optional(), - isStaticSpa: z.nullable(z.boolean()).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => ApplicationDeleteModeSwarm$outboundSchema)) - .optional(), - mounts: z.array(z.lazy(() => ApplicationDeleteMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => ApplicationDeleteNetworkSwarm$outboundSchema)), - ).optional(), - owner: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - placementSwarm: z.nullable( - z.lazy(() => ApplicationDeletePlacementSwarm$outboundSchema), - ).optional(), - ports: z.array(z.lazy(() => ApplicationDeletePort$outboundSchema)), - previewBuildArgs: z.nullable(z.string()).optional(), - previewCertificateType: ApplicationDeletePreviewCertificateType$outboundSchema - .optional(), - previewCustomCertResolver: z.nullable(z.string()).optional(), - previewDeployments: z.array( - z.lazy(() => ApplicationDeletePreviewDeployment$outboundSchema), - ), - previewEnv: z.nullable(z.string()).optional(), - previewHttps: z.boolean().optional(), - previewLabels: z.nullable(z.array(z.string())).optional(), - previewLimit: z.nullable(z.number()).optional(), - previewPath: z.nullable(z.string()).optional(), - previewPort: z.nullable(z.number()).optional(), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()).optional(), - previewWildcard: z.nullable(z.string()).optional(), - publishDirectory: z.nullable(z.string()).optional(), - railpackVersion: z.nullable(z.string()).optional(), - redirects: z.array(z.lazy(() => ApplicationDeleteRedirect$outboundSchema)), - refreshToken: z.nullable(z.string()).optional(), - registry: z.nullable(z.lazy(() => ApplicationDeleteRegistry$outboundSchema)), - registryId: z.nullable(z.string()).optional(), - registryUrl: z.nullable(z.string()).optional(), - replicas: z.number().optional(), - repository: z.nullable(z.string()).optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => ApplicationDeleteRestartPolicySwarm$outboundSchema), - ).optional(), - rollbackActive: z.nullable(z.boolean()).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => ApplicationDeleteRollbackConfigSwarm$outboundSchema), - ).optional(), - security: z.array(z.lazy(() => ApplicationDeleteSecurity$outboundSchema)), - server: z.nullable(z.lazy(() => ApplicationDeleteServer$outboundSchema)), - serverId: z.nullable(z.string()).optional(), - sourceType: ApplicationDeleteSourceType$outboundSchema.optional(), - subtitle: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - triggerType: z.nullable(ApplicationDeleteTriggerType$outboundSchema) - .optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => ApplicationDeleteUpdateConfigSwarm$outboundSchema), - ).optional(), - username: z.nullable(z.string()).optional(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteResponseBody$ { - /** @deprecated use `ApplicationDeleteResponseBody$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteResponseBody$inboundSchema; - /** @deprecated use `ApplicationDeleteResponseBody$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteResponseBody$outboundSchema; - /** @deprecated use `ApplicationDeleteResponseBody$Outbound` instead. */ - export type Outbound = ApplicationDeleteResponseBody$Outbound; -} - -export function applicationDeleteResponseBodyToJSON( - applicationDeleteResponseBody: ApplicationDeleteResponseBody, -): string { - return JSON.stringify( - ApplicationDeleteResponseBody$outboundSchema.parse( - applicationDeleteResponseBody, - ), - ); -} - export function applicationDeleteResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -3841,42 +1691,6 @@ export const ApplicationDeleteResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ApplicationDeleteResponse$Outbound = - | ApplicationDeleteResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ApplicationDeleteResponse$outboundSchema: z.ZodType< - ApplicationDeleteResponse$Outbound, - z.ZodTypeDef, - ApplicationDeleteResponse -> = z.union([ - z.lazy(() => ApplicationDeleteResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeleteResponse$ { - /** @deprecated use `ApplicationDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeleteResponse$inboundSchema; - /** @deprecated use `ApplicationDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeleteResponse$outboundSchema; - /** @deprecated use `ApplicationDeleteResponse$Outbound` instead. */ - export type Outbound = ApplicationDeleteResponse$Outbound; -} - -export function applicationDeleteResponseToJSON( - applicationDeleteResponse: ApplicationDeleteResponse, -): string { - return JSON.stringify( - ApplicationDeleteResponse$outboundSchema.parse(applicationDeleteResponse), - ); -} - export function applicationDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationdeploy.ts b/src/models/operations/applicationdeploy.ts index fdf7c72..415d6c3 100644 --- a/src/models/operations/applicationdeploy.ts +++ b/src/models/operations/applicationdeploy.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ApplicationDeployRequest = { applicationId: string; @@ -13,17 +10,6 @@ export type ApplicationDeployRequest = { title?: string | undefined; }; -/** @internal */ -export const ApplicationDeployRequest$inboundSchema: z.ZodType< - ApplicationDeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - description: z.string().optional(), - title: z.string().optional(), -}); - /** @internal */ export type ApplicationDeployRequest$Outbound = { applicationId: string; @@ -42,19 +28,6 @@ export const ApplicationDeployRequest$outboundSchema: z.ZodType< title: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDeployRequest$ { - /** @deprecated use `ApplicationDeployRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationDeployRequest$inboundSchema; - /** @deprecated use `ApplicationDeployRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationDeployRequest$outboundSchema; - /** @deprecated use `ApplicationDeployRequest$Outbound` instead. */ - export type Outbound = ApplicationDeployRequest$Outbound; -} - export function applicationDeployRequestToJSON( applicationDeployRequest: ApplicationDeployRequest, ): string { @@ -62,13 +35,3 @@ export function applicationDeployRequestToJSON( ApplicationDeployRequest$outboundSchema.parse(applicationDeployRequest), ); } - -export function applicationDeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationDeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationDeployRequest' from JSON`, - ); -} diff --git a/src/models/operations/applicationdisconnectgitprovider.ts b/src/models/operations/applicationdisconnectgitprovider.ts index 9e4ff5e..c87cbc7 100644 --- a/src/models/operations/applicationdisconnectgitprovider.ts +++ b/src/models/operations/applicationdisconnectgitprovider.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type ApplicationDisconnectGitProviderRequest = { export type ApplicationDisconnectGitProviderResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationDisconnectGitProviderRequest$inboundSchema: z.ZodType< - ApplicationDisconnectGitProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationDisconnectGitProviderRequest$Outbound = { applicationId: string; @@ -37,21 +28,6 @@ export const ApplicationDisconnectGitProviderRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDisconnectGitProviderRequest$ { - /** @deprecated use `ApplicationDisconnectGitProviderRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationDisconnectGitProviderRequest$inboundSchema; - /** @deprecated use `ApplicationDisconnectGitProviderRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDisconnectGitProviderRequest$outboundSchema; - /** @deprecated use `ApplicationDisconnectGitProviderRequest$Outbound` instead. */ - export type Outbound = ApplicationDisconnectGitProviderRequest$Outbound; -} - export function applicationDisconnectGitProviderRequestToJSON( applicationDisconnectGitProviderRequest: ApplicationDisconnectGitProviderRequest, @@ -63,22 +39,6 @@ export function applicationDisconnectGitProviderRequestToJSON( ); } -export function applicationDisconnectGitProviderRequestFromJSON( - jsonString: string, -): SafeParseResult< - ApplicationDisconnectGitProviderRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ApplicationDisconnectGitProviderRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ApplicationDisconnectGitProviderRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationDisconnectGitProviderResponse$inboundSchema: z.ZodType< ApplicationDisconnectGitProviderResponse, @@ -86,44 +46,6 @@ export const ApplicationDisconnectGitProviderResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationDisconnectGitProviderResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationDisconnectGitProviderResponse$outboundSchema: z.ZodType< - ApplicationDisconnectGitProviderResponse$Outbound, - z.ZodTypeDef, - ApplicationDisconnectGitProviderResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationDisconnectGitProviderResponse$ { - /** @deprecated use `ApplicationDisconnectGitProviderResponse$inboundSchema` instead. */ - export const inboundSchema = - ApplicationDisconnectGitProviderResponse$inboundSchema; - /** @deprecated use `ApplicationDisconnectGitProviderResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationDisconnectGitProviderResponse$outboundSchema; - /** @deprecated use `ApplicationDisconnectGitProviderResponse$Outbound` instead. */ - export type Outbound = ApplicationDisconnectGitProviderResponse$Outbound; -} - -export function applicationDisconnectGitProviderResponseToJSON( - applicationDisconnectGitProviderResponse: - ApplicationDisconnectGitProviderResponse, -): string { - return JSON.stringify( - ApplicationDisconnectGitProviderResponse$outboundSchema.parse( - applicationDisconnectGitProviderResponse, - ), - ); -} - export function applicationDisconnectGitProviderResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/applicationmarkrunning.ts b/src/models/operations/applicationmarkrunning.ts index f0e35fa..4ff5cd3 100644 --- a/src/models/operations/applicationmarkrunning.ts +++ b/src/models/operations/applicationmarkrunning.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ApplicationMarkRunningRequest = { applicationId: string; }; -/** @internal */ -export const ApplicationMarkRunningRequest$inboundSchema: z.ZodType< - ApplicationMarkRunningRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationMarkRunningRequest$Outbound = { applicationId: string; @@ -34,19 +22,6 @@ export const ApplicationMarkRunningRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMarkRunningRequest$ { - /** @deprecated use `ApplicationMarkRunningRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationMarkRunningRequest$inboundSchema; - /** @deprecated use `ApplicationMarkRunningRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationMarkRunningRequest$outboundSchema; - /** @deprecated use `ApplicationMarkRunningRequest$Outbound` instead. */ - export type Outbound = ApplicationMarkRunningRequest$Outbound; -} - export function applicationMarkRunningRequestToJSON( applicationMarkRunningRequest: ApplicationMarkRunningRequest, ): string { @@ -56,13 +31,3 @@ export function applicationMarkRunningRequestToJSON( ), ); } - -export function applicationMarkRunningRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationMarkRunningRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationMarkRunningRequest' from JSON`, - ); -} diff --git a/src/models/operations/applicationmove.ts b/src/models/operations/applicationmove.ts index ddd2835..69d6ad3 100644 --- a/src/models/operations/applicationmove.ts +++ b/src/models/operations/applicationmove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -245,16 +245,6 @@ export type ApplicationMoveResponse = | ApplicationMoveResponseBody | models.ErrorT; -/** @internal */ -export const ApplicationMoveRequest$inboundSchema: z.ZodType< - ApplicationMoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - targetEnvironmentId: z.string(), -}); - /** @internal */ export type ApplicationMoveRequest$Outbound = { applicationId: string; @@ -271,19 +261,6 @@ export const ApplicationMoveRequest$outboundSchema: z.ZodType< targetEnvironmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveRequest$ { - /** @deprecated use `ApplicationMoveRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveRequest$inboundSchema; - /** @deprecated use `ApplicationMoveRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveRequest$outboundSchema; - /** @deprecated use `ApplicationMoveRequest$Outbound` instead. */ - export type Outbound = ApplicationMoveRequest$Outbound; -} - export function applicationMoveRequestToJSON( applicationMoveRequest: ApplicationMoveRequest, ): string { @@ -292,58 +269,16 @@ export function applicationMoveRequestToJSON( ); } -export function applicationMoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationMoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationMoveRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationMoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationMoveApplicationStatus > = z.nativeEnum(ApplicationMoveApplicationStatus); -/** @internal */ -export const ApplicationMoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationMoveApplicationStatus -> = ApplicationMoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveApplicationStatus$ { - /** @deprecated use `ApplicationMoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveApplicationStatus$inboundSchema; - /** @deprecated use `ApplicationMoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveApplicationStatus$outboundSchema; -} - /** @internal */ export const ApplicationMoveBuildType$inboundSchema: z.ZodNativeEnum< typeof ApplicationMoveBuildType > = z.nativeEnum(ApplicationMoveBuildType); -/** @internal */ -export const ApplicationMoveBuildType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationMoveBuildType -> = ApplicationMoveBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveBuildType$ { - /** @deprecated use `ApplicationMoveBuildType$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveBuildType$inboundSchema; - /** @deprecated use `ApplicationMoveBuildType$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveBuildType$outboundSchema; -} - /** @internal */ export const ApplicationMoveHealthCheckSwarm$inboundSchema: z.ZodType< ApplicationMoveHealthCheckSwarm, @@ -365,59 +300,6 @@ export const ApplicationMoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const ApplicationMoveHealthCheckSwarm$outboundSchema: z.ZodType< - ApplicationMoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - ApplicationMoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveHealthCheckSwarm$ { - /** @deprecated use `ApplicationMoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `ApplicationMoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `ApplicationMoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = ApplicationMoveHealthCheckSwarm$Outbound; -} - -export function applicationMoveHealthCheckSwarmToJSON( - applicationMoveHealthCheckSwarm: ApplicationMoveHealthCheckSwarm, -): string { - return JSON.stringify( - ApplicationMoveHealthCheckSwarm$outboundSchema.parse( - applicationMoveHealthCheckSwarm, - ), - ); -} - export function applicationMoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -435,37 +317,6 @@ export const ApplicationMoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationMoveGlobal$Outbound = {}; - -/** @internal */ -export const ApplicationMoveGlobal$outboundSchema: z.ZodType< - ApplicationMoveGlobal$Outbound, - z.ZodTypeDef, - ApplicationMoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveGlobal$ { - /** @deprecated use `ApplicationMoveGlobal$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveGlobal$inboundSchema; - /** @deprecated use `ApplicationMoveGlobal$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveGlobal$outboundSchema; - /** @deprecated use `ApplicationMoveGlobal$Outbound` instead. */ - export type Outbound = ApplicationMoveGlobal$Outbound; -} - -export function applicationMoveGlobalToJSON( - applicationMoveGlobal: ApplicationMoveGlobal, -): string { - return JSON.stringify( - ApplicationMoveGlobal$outboundSchema.parse(applicationMoveGlobal), - ); -} - export function applicationMoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -483,37 +334,6 @@ export const ApplicationMoveGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationMoveGlobalJob$Outbound = {}; - -/** @internal */ -export const ApplicationMoveGlobalJob$outboundSchema: z.ZodType< - ApplicationMoveGlobalJob$Outbound, - z.ZodTypeDef, - ApplicationMoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveGlobalJob$ { - /** @deprecated use `ApplicationMoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveGlobalJob$inboundSchema; - /** @deprecated use `ApplicationMoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveGlobalJob$outboundSchema; - /** @deprecated use `ApplicationMoveGlobalJob$Outbound` instead. */ - export type Outbound = ApplicationMoveGlobalJob$Outbound; -} - -export function applicationMoveGlobalJobToJSON( - applicationMoveGlobalJob: ApplicationMoveGlobalJob, -): string { - return JSON.stringify( - ApplicationMoveGlobalJob$outboundSchema.parse(applicationMoveGlobalJob), - ); -} - export function applicationMoveGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -537,45 +357,6 @@ export const ApplicationMoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const ApplicationMoveReplicated$outboundSchema: z.ZodType< - ApplicationMoveReplicated$Outbound, - z.ZodTypeDef, - ApplicationMoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveReplicated$ { - /** @deprecated use `ApplicationMoveReplicated$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveReplicated$inboundSchema; - /** @deprecated use `ApplicationMoveReplicated$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveReplicated$outboundSchema; - /** @deprecated use `ApplicationMoveReplicated$Outbound` instead. */ - export type Outbound = ApplicationMoveReplicated$Outbound; -} - -export function applicationMoveReplicatedToJSON( - applicationMoveReplicated: ApplicationMoveReplicated, -): string { - return JSON.stringify( - ApplicationMoveReplicated$outboundSchema.parse(applicationMoveReplicated), - ); -} - export function applicationMoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -601,50 +382,6 @@ export const ApplicationMoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const ApplicationMoveReplicatedJob$outboundSchema: z.ZodType< - ApplicationMoveReplicatedJob$Outbound, - z.ZodTypeDef, - ApplicationMoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveReplicatedJob$ { - /** @deprecated use `ApplicationMoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveReplicatedJob$inboundSchema; - /** @deprecated use `ApplicationMoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveReplicatedJob$outboundSchema; - /** @deprecated use `ApplicationMoveReplicatedJob$Outbound` instead. */ - export type Outbound = ApplicationMoveReplicatedJob$Outbound; -} - -export function applicationMoveReplicatedJobToJSON( - applicationMoveReplicatedJob: ApplicationMoveReplicatedJob, -): string { - return JSON.stringify( - ApplicationMoveReplicatedJob$outboundSchema.parse( - applicationMoveReplicatedJob, - ), - ); -} - export function applicationMoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -675,55 +412,6 @@ export const ApplicationMoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveModeSwarm$Outbound = { - Global?: ApplicationMoveGlobal$Outbound | undefined; - GlobalJob?: ApplicationMoveGlobalJob$Outbound | undefined; - Replicated?: ApplicationMoveReplicated$Outbound | undefined; - ReplicatedJob?: ApplicationMoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const ApplicationMoveModeSwarm$outboundSchema: z.ZodType< - ApplicationMoveModeSwarm$Outbound, - z.ZodTypeDef, - ApplicationMoveModeSwarm -> = z.object({ - global: z.lazy(() => ApplicationMoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => ApplicationMoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => ApplicationMoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => ApplicationMoveReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveModeSwarm$ { - /** @deprecated use `ApplicationMoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveModeSwarm$inboundSchema; - /** @deprecated use `ApplicationMoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveModeSwarm$outboundSchema; - /** @deprecated use `ApplicationMoveModeSwarm$Outbound` instead. */ - export type Outbound = ApplicationMoveModeSwarm$Outbound; -} - -export function applicationMoveModeSwarmToJSON( - applicationMoveModeSwarm: ApplicationMoveModeSwarm, -): string { - return JSON.stringify( - ApplicationMoveModeSwarm$outboundSchema.parse(applicationMoveModeSwarm), - ); -} - export function applicationMoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -741,37 +429,6 @@ export const ApplicationMoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationMoveDriverOpts$Outbound = {}; - -/** @internal */ -export const ApplicationMoveDriverOpts$outboundSchema: z.ZodType< - ApplicationMoveDriverOpts$Outbound, - z.ZodTypeDef, - ApplicationMoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveDriverOpts$ { - /** @deprecated use `ApplicationMoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveDriverOpts$inboundSchema; - /** @deprecated use `ApplicationMoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveDriverOpts$outboundSchema; - /** @deprecated use `ApplicationMoveDriverOpts$Outbound` instead. */ - export type Outbound = ApplicationMoveDriverOpts$Outbound; -} - -export function applicationMoveDriverOptsToJSON( - applicationMoveDriverOpts: ApplicationMoveDriverOpts, -): string { - return JSON.stringify( - ApplicationMoveDriverOpts$outboundSchema.parse(applicationMoveDriverOpts), - ); -} - export function applicationMoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -799,53 +456,6 @@ export const ApplicationMoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: ApplicationMoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const ApplicationMoveNetworkSwarm$outboundSchema: z.ZodType< - ApplicationMoveNetworkSwarm$Outbound, - z.ZodTypeDef, - ApplicationMoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => ApplicationMoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveNetworkSwarm$ { - /** @deprecated use `ApplicationMoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveNetworkSwarm$inboundSchema; - /** @deprecated use `ApplicationMoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveNetworkSwarm$outboundSchema; - /** @deprecated use `ApplicationMoveNetworkSwarm$Outbound` instead. */ - export type Outbound = ApplicationMoveNetworkSwarm$Outbound; -} - -export function applicationMoveNetworkSwarmToJSON( - applicationMoveNetworkSwarm: ApplicationMoveNetworkSwarm, -): string { - return JSON.stringify( - ApplicationMoveNetworkSwarm$outboundSchema.parse( - applicationMoveNetworkSwarm, - ), - ); -} - export function applicationMoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -871,48 +481,6 @@ export const ApplicationMovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const ApplicationMovePlatform$outboundSchema: z.ZodType< - ApplicationMovePlatform$Outbound, - z.ZodTypeDef, - ApplicationMovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMovePlatform$ { - /** @deprecated use `ApplicationMovePlatform$inboundSchema` instead. */ - export const inboundSchema = ApplicationMovePlatform$inboundSchema; - /** @deprecated use `ApplicationMovePlatform$outboundSchema` instead. */ - export const outboundSchema = ApplicationMovePlatform$outboundSchema; - /** @deprecated use `ApplicationMovePlatform$Outbound` instead. */ - export type Outbound = ApplicationMovePlatform$Outbound; -} - -export function applicationMovePlatformToJSON( - applicationMovePlatform: ApplicationMovePlatform, -): string { - return JSON.stringify( - ApplicationMovePlatform$outboundSchema.parse(applicationMovePlatform), - ); -} - export function applicationMovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -936,45 +504,6 @@ export const ApplicationMoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const ApplicationMoveSpread$outboundSchema: z.ZodType< - ApplicationMoveSpread$Outbound, - z.ZodTypeDef, - ApplicationMoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveSpread$ { - /** @deprecated use `ApplicationMoveSpread$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveSpread$inboundSchema; - /** @deprecated use `ApplicationMoveSpread$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveSpread$outboundSchema; - /** @deprecated use `ApplicationMoveSpread$Outbound` instead. */ - export type Outbound = ApplicationMoveSpread$Outbound; -} - -export function applicationMoveSpreadToJSON( - applicationMoveSpread: ApplicationMoveSpread, -): string { - return JSON.stringify( - ApplicationMoveSpread$outboundSchema.parse(applicationMoveSpread), - ); -} - export function applicationMoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -998,45 +527,6 @@ export const ApplicationMovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMovePreference$Outbound = { - Spread: ApplicationMoveSpread$Outbound; -}; - -/** @internal */ -export const ApplicationMovePreference$outboundSchema: z.ZodType< - ApplicationMovePreference$Outbound, - z.ZodTypeDef, - ApplicationMovePreference -> = z.object({ - spread: z.lazy(() => ApplicationMoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMovePreference$ { - /** @deprecated use `ApplicationMovePreference$inboundSchema` instead. */ - export const inboundSchema = ApplicationMovePreference$inboundSchema; - /** @deprecated use `ApplicationMovePreference$outboundSchema` instead. */ - export const outboundSchema = ApplicationMovePreference$outboundSchema; - /** @deprecated use `ApplicationMovePreference$Outbound` instead. */ - export type Outbound = ApplicationMovePreference$Outbound; -} - -export function applicationMovePreferenceToJSON( - applicationMovePreference: ApplicationMovePreference, -): string { - return JSON.stringify( - ApplicationMovePreference$outboundSchema.parse(applicationMovePreference), - ); -} - export function applicationMovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1068,95 +558,25 @@ export const ApplicationMovePlacementSwarm$inboundSchema: z.ZodType< }); }); +export function applicationMovePlacementSwarmFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ApplicationMovePlacementSwarm$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ApplicationMovePlacementSwarm' from JSON`, + ); +} + /** @internal */ -export type ApplicationMovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; +export const ApplicationMovePreviewCertificateType$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + ApplicationMovePreviewCertificateType, + ); /** @internal */ -export const ApplicationMovePlacementSwarm$outboundSchema: z.ZodType< - ApplicationMovePlacementSwarm$Outbound, - z.ZodTypeDef, - ApplicationMovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => ApplicationMovePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => ApplicationMovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMovePlacementSwarm$ { - /** @deprecated use `ApplicationMovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationMovePlacementSwarm$inboundSchema; - /** @deprecated use `ApplicationMovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationMovePlacementSwarm$outboundSchema; - /** @deprecated use `ApplicationMovePlacementSwarm$Outbound` instead. */ - export type Outbound = ApplicationMovePlacementSwarm$Outbound; -} - -export function applicationMovePlacementSwarmToJSON( - applicationMovePlacementSwarm: ApplicationMovePlacementSwarm, -): string { - return JSON.stringify( - ApplicationMovePlacementSwarm$outboundSchema.parse( - applicationMovePlacementSwarm, - ), - ); -} - -export function applicationMovePlacementSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationMovePlacementSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationMovePlacementSwarm' from JSON`, - ); -} - -/** @internal */ -export const ApplicationMovePreviewCertificateType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - ApplicationMovePreviewCertificateType, - ); - -/** @internal */ -export const ApplicationMovePreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - ApplicationMovePreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMovePreviewCertificateType$ { - /** @deprecated use `ApplicationMovePreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - ApplicationMovePreviewCertificateType$inboundSchema; - /** @deprecated use `ApplicationMovePreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationMovePreviewCertificateType$outboundSchema; -} - -/** @internal */ -export const ApplicationMoveRestartPolicySwarm$inboundSchema: z.ZodType< - ApplicationMoveRestartPolicySwarm, +export const ApplicationMoveRestartPolicySwarm$inboundSchema: z.ZodType< + ApplicationMoveRestartPolicySwarm, z.ZodTypeDef, unknown > = z.object({ @@ -1173,57 +593,6 @@ export const ApplicationMoveRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const ApplicationMoveRestartPolicySwarm$outboundSchema: z.ZodType< - ApplicationMoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - ApplicationMoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveRestartPolicySwarm$ { - /** @deprecated use `ApplicationMoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `ApplicationMoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationMoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `ApplicationMoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = ApplicationMoveRestartPolicySwarm$Outbound; -} - -export function applicationMoveRestartPolicySwarmToJSON( - applicationMoveRestartPolicySwarm: ApplicationMoveRestartPolicySwarm, -): string { - return JSON.stringify( - ApplicationMoveRestartPolicySwarm$outboundSchema.parse( - applicationMoveRestartPolicySwarm, - ), - ); -} - export function applicationMoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1257,63 +626,6 @@ export const ApplicationMoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationMoveRollbackConfigSwarm$outboundSchema: z.ZodType< - ApplicationMoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationMoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveRollbackConfigSwarm$ { - /** @deprecated use `ApplicationMoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationMoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationMoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationMoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationMoveRollbackConfigSwarm$Outbound; -} - -export function applicationMoveRollbackConfigSwarmToJSON( - applicationMoveRollbackConfigSwarm: ApplicationMoveRollbackConfigSwarm, -): string { - return JSON.stringify( - ApplicationMoveRollbackConfigSwarm$outboundSchema.parse( - applicationMoveRollbackConfigSwarm, - ), - ); -} - export function applicationMoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1330,43 +642,11 @@ export const ApplicationMoveSourceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationMoveSourceType > = z.nativeEnum(ApplicationMoveSourceType); -/** @internal */ -export const ApplicationMoveSourceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationMoveSourceType -> = ApplicationMoveSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveSourceType$ { - /** @deprecated use `ApplicationMoveSourceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveSourceType$inboundSchema; - /** @deprecated use `ApplicationMoveSourceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveSourceType$outboundSchema; -} - /** @internal */ export const ApplicationMoveTriggerType$inboundSchema: z.ZodNativeEnum< typeof ApplicationMoveTriggerType > = z.nativeEnum(ApplicationMoveTriggerType); -/** @internal */ -export const ApplicationMoveTriggerType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationMoveTriggerType -> = ApplicationMoveTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveTriggerType$ { - /** @deprecated use `ApplicationMoveTriggerType$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveTriggerType$inboundSchema; - /** @deprecated use `ApplicationMoveTriggerType$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveTriggerType$outboundSchema; -} - /** @internal */ export const ApplicationMoveUpdateConfigSwarm$inboundSchema: z.ZodType< ApplicationMoveUpdateConfigSwarm, @@ -1390,62 +670,6 @@ export const ApplicationMoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationMoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationMoveUpdateConfigSwarm$outboundSchema: z.ZodType< - ApplicationMoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationMoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveUpdateConfigSwarm$ { - /** @deprecated use `ApplicationMoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationMoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationMoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationMoveUpdateConfigSwarm$Outbound; -} - -export function applicationMoveUpdateConfigSwarmToJSON( - applicationMoveUpdateConfigSwarm: ApplicationMoveUpdateConfigSwarm, -): string { - return JSON.stringify( - ApplicationMoveUpdateConfigSwarm$outboundSchema.parse( - applicationMoveUpdateConfigSwarm, - ), - ); -} - export function applicationMoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1565,241 +789,6 @@ export const ApplicationMoveResponseBody$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** @internal */ -export type ApplicationMoveResponseBody$Outbound = { - appName?: string | undefined; - applicationId?: string | undefined; - applicationStatus?: string | undefined; - autoDeploy?: boolean | null | undefined; - bitbucketBranch?: string | null | undefined; - bitbucketBuildPath?: string | null | undefined; - bitbucketId?: string | null | undefined; - bitbucketOwner?: string | null | undefined; - bitbucketRepository?: string | null | undefined; - branch?: string | null | undefined; - buildArgs?: string | null | undefined; - buildPath?: string | null | undefined; - buildType?: string | undefined; - cleanCache?: boolean | null | undefined; - command?: string | null | undefined; - cpuLimit?: string | null | undefined; - cpuReservation?: string | null | undefined; - createdAt?: string | undefined; - customGitBranch?: string | null | undefined; - customGitBuildPath?: string | null | undefined; - customGitSSHKeyId?: string | null | undefined; - customGitUrl?: string | null | undefined; - description?: string | null | undefined; - dockerBuildStage?: string | null | undefined; - dockerContextPath?: string | null | undefined; - dockerImage?: string | null | undefined; - dockerfile?: string | null | undefined; - dropBuildPath?: string | null | undefined; - enableSubmodules?: boolean | undefined; - enabled?: boolean | null | undefined; - env?: string | null | undefined; - environmentId: string; - giteaBranch?: string | null | undefined; - giteaBuildPath?: string | null | undefined; - giteaId?: string | null | undefined; - giteaOwner?: string | null | undefined; - giteaRepository?: string | null | undefined; - githubId?: string | null | undefined; - gitlabBranch?: string | null | undefined; - gitlabBuildPath?: string | null | undefined; - gitlabId?: string | null | undefined; - gitlabOwner?: string | null | undefined; - gitlabPathNamespace?: string | null | undefined; - gitlabProjectId?: number | null | undefined; - gitlabRepository?: string | null | undefined; - healthCheckSwarm?: - | ApplicationMoveHealthCheckSwarm$Outbound - | null - | undefined; - herokuVersion?: string | null | undefined; - isPreviewDeploymentsActive?: boolean | null | undefined; - isStaticSpa?: boolean | null | undefined; - labelsSwarm?: { [k: string]: string } | null | undefined; - memoryLimit?: string | null | undefined; - memoryReservation?: string | null | undefined; - modeSwarm?: ApplicationMoveModeSwarm$Outbound | null | undefined; - name: string; - networkSwarm?: Array | null | undefined; - owner?: string | null | undefined; - password?: string | null | undefined; - placementSwarm?: ApplicationMovePlacementSwarm$Outbound | null | undefined; - previewBuildArgs?: string | null | undefined; - previewCertificateType?: string | undefined; - previewCustomCertResolver?: string | null | undefined; - previewEnv?: string | null | undefined; - previewHttps?: boolean | undefined; - previewLabels?: Array | null | undefined; - previewLimit?: number | null | undefined; - previewPath?: string | null | undefined; - previewPort?: number | null | undefined; - previewRequireCollaboratorPermissions?: boolean | null | undefined; - previewWildcard?: string | null | undefined; - publishDirectory?: string | null | undefined; - railpackVersion?: string | null | undefined; - refreshToken?: string | null | undefined; - registryId?: string | null | undefined; - registryUrl?: string | null | undefined; - replicas?: number | undefined; - repository?: string | null | undefined; - restartPolicySwarm?: - | ApplicationMoveRestartPolicySwarm$Outbound - | null - | undefined; - rollbackActive?: boolean | null | undefined; - rollbackConfigSwarm?: - | ApplicationMoveRollbackConfigSwarm$Outbound - | null - | undefined; - serverId?: string | null | undefined; - sourceType?: string | undefined; - subtitle?: string | null | undefined; - title?: string | null | undefined; - triggerType?: string | null | undefined; - updateConfigSwarm?: - | ApplicationMoveUpdateConfigSwarm$Outbound - | null - | undefined; - username?: string | null | undefined; - watchPaths?: Array | null | undefined; -}; - -/** @internal */ -export const ApplicationMoveResponseBody$outboundSchema: z.ZodType< - ApplicationMoveResponseBody$Outbound, - z.ZodTypeDef, - ApplicationMoveResponseBody -> = z.object({ - appName: z.string().optional(), - applicationId: z.string().optional(), - applicationStatus: ApplicationMoveApplicationStatus$outboundSchema.optional(), - autoDeploy: z.nullable(z.boolean()).optional(), - bitbucketBranch: z.nullable(z.string()).optional(), - bitbucketBuildPath: z.nullable(z.string()).optional(), - bitbucketId: z.nullable(z.string()).optional(), - bitbucketOwner: z.nullable(z.string()).optional(), - bitbucketRepository: z.nullable(z.string()).optional(), - branch: z.nullable(z.string()).optional(), - buildArgs: z.nullable(z.string()).optional(), - buildPath: z.nullable(z.string()).optional(), - buildType: ApplicationMoveBuildType$outboundSchema.optional(), - cleanCache: z.nullable(z.boolean()).optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - customGitBranch: z.nullable(z.string()).optional(), - customGitBuildPath: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - dockerBuildStage: z.nullable(z.string()).optional(), - dockerContextPath: z.nullable(z.string()).optional(), - dockerImage: z.nullable(z.string()).optional(), - dockerfile: z.nullable(z.string()).optional(), - dropBuildPath: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean().optional(), - enabled: z.nullable(z.boolean()).optional(), - env: z.nullable(z.string()).optional(), - environmentId: z.string(), - giteaBranch: z.nullable(z.string()).optional(), - giteaBuildPath: z.nullable(z.string()).optional(), - giteaId: z.nullable(z.string()).optional(), - giteaOwner: z.nullable(z.string()).optional(), - giteaRepository: z.nullable(z.string()).optional(), - githubId: z.nullable(z.string()).optional(), - gitlabBranch: z.nullable(z.string()).optional(), - gitlabBuildPath: z.nullable(z.string()).optional(), - gitlabId: z.nullable(z.string()).optional(), - gitlabOwner: z.nullable(z.string()).optional(), - gitlabPathNamespace: z.nullable(z.string()).optional(), - gitlabProjectId: z.nullable(z.number()).optional(), - gitlabRepository: z.nullable(z.string()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => ApplicationMoveHealthCheckSwarm$outboundSchema), - ).optional(), - herokuVersion: z.nullable(z.string()).optional(), - isPreviewDeploymentsActive: z.nullable(z.boolean()).optional(), - isStaticSpa: z.nullable(z.boolean()).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => ApplicationMoveModeSwarm$outboundSchema)) - .optional(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => ApplicationMoveNetworkSwarm$outboundSchema)), - ).optional(), - owner: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - placementSwarm: z.nullable( - z.lazy(() => ApplicationMovePlacementSwarm$outboundSchema), - ).optional(), - previewBuildArgs: z.nullable(z.string()).optional(), - previewCertificateType: ApplicationMovePreviewCertificateType$outboundSchema - .optional(), - previewCustomCertResolver: z.nullable(z.string()).optional(), - previewEnv: z.nullable(z.string()).optional(), - previewHttps: z.boolean().optional(), - previewLabels: z.nullable(z.array(z.string())).optional(), - previewLimit: z.nullable(z.number()).optional(), - previewPath: z.nullable(z.string()).optional(), - previewPort: z.nullable(z.number()).optional(), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()).optional(), - previewWildcard: z.nullable(z.string()).optional(), - publishDirectory: z.nullable(z.string()).optional(), - railpackVersion: z.nullable(z.string()).optional(), - refreshToken: z.nullable(z.string()).optional(), - registryId: z.nullable(z.string()).optional(), - registryUrl: z.nullable(z.string()).optional(), - replicas: z.number().optional(), - repository: z.nullable(z.string()).optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => ApplicationMoveRestartPolicySwarm$outboundSchema), - ).optional(), - rollbackActive: z.nullable(z.boolean()).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => ApplicationMoveRollbackConfigSwarm$outboundSchema), - ).optional(), - serverId: z.nullable(z.string()).optional(), - sourceType: ApplicationMoveSourceType$outboundSchema.optional(), - subtitle: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - triggerType: z.nullable(ApplicationMoveTriggerType$outboundSchema).optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => ApplicationMoveUpdateConfigSwarm$outboundSchema), - ).optional(), - username: z.nullable(z.string()).optional(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveResponseBody$ { - /** @deprecated use `ApplicationMoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveResponseBody$inboundSchema; - /** @deprecated use `ApplicationMoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveResponseBody$outboundSchema; - /** @deprecated use `ApplicationMoveResponseBody$Outbound` instead. */ - export type Outbound = ApplicationMoveResponseBody$Outbound; -} - -export function applicationMoveResponseBodyToJSON( - applicationMoveResponseBody: ApplicationMoveResponseBody, -): string { - return JSON.stringify( - ApplicationMoveResponseBody$outboundSchema.parse( - applicationMoveResponseBody, - ), - ); -} - export function applicationMoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1820,42 +809,6 @@ export const ApplicationMoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ApplicationMoveResponse$Outbound = - | ApplicationMoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ApplicationMoveResponse$outboundSchema: z.ZodType< - ApplicationMoveResponse$Outbound, - z.ZodTypeDef, - ApplicationMoveResponse -> = z.union([ - z.lazy(() => ApplicationMoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationMoveResponse$ { - /** @deprecated use `ApplicationMoveResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationMoveResponse$inboundSchema; - /** @deprecated use `ApplicationMoveResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationMoveResponse$outboundSchema; - /** @deprecated use `ApplicationMoveResponse$Outbound` instead. */ - export type Outbound = ApplicationMoveResponse$Outbound; -} - -export function applicationMoveResponseToJSON( - applicationMoveResponse: ApplicationMoveResponse, -): string { - return JSON.stringify( - ApplicationMoveResponse$outboundSchema.parse(applicationMoveResponse), - ); -} - export function applicationMoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationone.ts b/src/models/operations/applicationone.ts index 73643f9..7f9d35f 100644 --- a/src/models/operations/applicationone.ts +++ b/src/models/operations/applicationone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -575,15 +575,6 @@ export type ApplicationOneResponseBody = { export type ApplicationOneResponse = ApplicationOneResponseBody | models.ErrorT; -/** @internal */ -export const ApplicationOneRequest$inboundSchema: z.ZodType< - ApplicationOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationOneRequest$Outbound = { applicationId: string; @@ -598,19 +589,6 @@ export const ApplicationOneRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneRequest$ { - /** @deprecated use `ApplicationOneRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneRequest$inboundSchema; - /** @deprecated use `ApplicationOneRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneRequest$outboundSchema; - /** @deprecated use `ApplicationOneRequest$Outbound` instead. */ - export type Outbound = ApplicationOneRequest$Outbound; -} - export function applicationOneRequestToJSON( applicationOneRequest: ApplicationOneRequest, ): string { @@ -619,37 +597,11 @@ export function applicationOneRequestToJSON( ); } -export function applicationOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationOneRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationOneApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneApplicationStatus > = z.nativeEnum(ApplicationOneApplicationStatus); -/** @internal */ -export const ApplicationOneApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneApplicationStatus -> = ApplicationOneApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneApplicationStatus$ { - /** @deprecated use `ApplicationOneApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneApplicationStatus$inboundSchema; - /** @deprecated use `ApplicationOneApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneApplicationStatus$outboundSchema; -} - /** @internal */ export const ApplicationOneBitbucket$inboundSchema: z.ZodType< ApplicationOneBitbucket, @@ -663,49 +615,6 @@ export const ApplicationOneBitbucket$inboundSchema: z.ZodType< gitProviderId: z.string(), }); -/** @internal */ -export type ApplicationOneBitbucket$Outbound = { - appPassword: string | null; - bitbucketId: string; - bitbucketUsername: string | null; - bitbucketWorkspaceName: string | null; - gitProviderId: string; -}; - -/** @internal */ -export const ApplicationOneBitbucket$outboundSchema: z.ZodType< - ApplicationOneBitbucket$Outbound, - z.ZodTypeDef, - ApplicationOneBitbucket -> = z.object({ - appPassword: z.nullable(z.string()), - bitbucketId: z.string(), - bitbucketUsername: z.nullable(z.string()), - bitbucketWorkspaceName: z.nullable(z.string()), - gitProviderId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneBitbucket$ { - /** @deprecated use `ApplicationOneBitbucket$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneBitbucket$inboundSchema; - /** @deprecated use `ApplicationOneBitbucket$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneBitbucket$outboundSchema; - /** @deprecated use `ApplicationOneBitbucket$Outbound` instead. */ - export type Outbound = ApplicationOneBitbucket$Outbound; -} - -export function applicationOneBitbucketToJSON( - applicationOneBitbucket: ApplicationOneBitbucket, -): string { - return JSON.stringify( - ApplicationOneBitbucket$outboundSchema.parse(applicationOneBitbucket), - ); -} - export function applicationOneBitbucketFromJSON( jsonString: string, ): SafeParseResult { @@ -721,43 +630,11 @@ export const ApplicationOneBuildType$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneBuildType > = z.nativeEnum(ApplicationOneBuildType); -/** @internal */ -export const ApplicationOneBuildType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneBuildType -> = ApplicationOneBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneBuildType$ { - /** @deprecated use `ApplicationOneBuildType$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneBuildType$inboundSchema; - /** @deprecated use `ApplicationOneBuildType$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneBuildType$outboundSchema; -} - /** @internal */ export const ApplicationOneStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneStatus > = z.nativeEnum(ApplicationOneStatus); -/** @internal */ -export const ApplicationOneStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneStatus -> = ApplicationOneStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneStatus$ { - /** @deprecated use `ApplicationOneStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneStatus$inboundSchema; - /** @deprecated use `ApplicationOneStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneStatus$outboundSchema; -} - /** @internal */ export const ApplicationOneDeployment$inboundSchema: z.ZodType< ApplicationOneDeployment, @@ -785,77 +662,6 @@ export const ApplicationOneDeployment$inboundSchema: z.ZodType< volumeBackupId: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationOneDeployment$Outbound = { - applicationId: string | null; - backupId: string | null; - composeId: string | null; - createdAt: string; - deploymentId: string; - description: string | null; - errorMessage: string | null; - finishedAt: string | null; - isPreviewDeployment: boolean | null; - logPath: string; - pid: string | null; - previewDeploymentId: string | null; - rollbackId: string | null; - scheduleId: string | null; - serverId: string | null; - startedAt: string | null; - status: string | null; - title: string; - volumeBackupId: string | null; -}; - -/** @internal */ -export const ApplicationOneDeployment$outboundSchema: z.ZodType< - ApplicationOneDeployment$Outbound, - z.ZodTypeDef, - ApplicationOneDeployment -> = z.object({ - applicationId: z.nullable(z.string()), - backupId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - createdAt: z.string(), - deploymentId: z.string(), - description: z.nullable(z.string()), - errorMessage: z.nullable(z.string()), - finishedAt: z.nullable(z.string()), - isPreviewDeployment: z.nullable(z.boolean()), - logPath: z.string(), - pid: z.nullable(z.string()), - previewDeploymentId: z.nullable(z.string()), - rollbackId: z.nullable(z.string()), - scheduleId: z.nullable(z.string()), - serverId: z.nullable(z.string()), - startedAt: z.nullable(z.string()), - status: z.nullable(ApplicationOneStatus$outboundSchema), - title: z.string(), - volumeBackupId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneDeployment$ { - /** @deprecated use `ApplicationOneDeployment$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneDeployment$inboundSchema; - /** @deprecated use `ApplicationOneDeployment$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneDeployment$outboundSchema; - /** @deprecated use `ApplicationOneDeployment$Outbound` instead. */ - export type Outbound = ApplicationOneDeployment$Outbound; -} - -export function applicationOneDeploymentToJSON( - applicationOneDeployment: ApplicationOneDeployment, -): string { - return JSON.stringify( - ApplicationOneDeployment$outboundSchema.parse(applicationOneDeployment), - ); -} - export function applicationOneDeploymentFromJSON( jsonString: string, ): SafeParseResult { @@ -871,43 +677,11 @@ export const ApplicationOneCertificateType$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneCertificateType > = z.nativeEnum(ApplicationOneCertificateType); -/** @internal */ -export const ApplicationOneCertificateType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneCertificateType -> = ApplicationOneCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneCertificateType$ { - /** @deprecated use `ApplicationOneCertificateType$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneCertificateType$inboundSchema; - /** @deprecated use `ApplicationOneCertificateType$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationOneDomainType$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneDomainType > = z.nativeEnum(ApplicationOneDomainType); -/** @internal */ -export const ApplicationOneDomainType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneDomainType -> = ApplicationOneDomainType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneDomainType$ { - /** @deprecated use `ApplicationOneDomainType$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneDomainType$inboundSchema; - /** @deprecated use `ApplicationOneDomainType$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneDomainType$outboundSchema; -} - /** @internal */ export const ApplicationOneDomain$inboundSchema: z.ZodType< ApplicationOneDomain, @@ -932,71 +706,6 @@ export const ApplicationOneDomain$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type ApplicationOneDomain$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const ApplicationOneDomain$outboundSchema: z.ZodType< - ApplicationOneDomain$Outbound, - z.ZodTypeDef, - ApplicationOneDomain -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: ApplicationOneCertificateType$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(ApplicationOneDomainType$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneDomain$ { - /** @deprecated use `ApplicationOneDomain$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneDomain$inboundSchema; - /** @deprecated use `ApplicationOneDomain$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneDomain$outboundSchema; - /** @deprecated use `ApplicationOneDomain$Outbound` instead. */ - export type Outbound = ApplicationOneDomain$Outbound; -} - -export function applicationOneDomainToJSON( - applicationOneDomain: ApplicationOneDomain, -): string { - return JSON.stringify( - ApplicationOneDomain$outboundSchema.parse(applicationOneDomain), - ); -} - export function applicationOneDomainFromJSON( jsonString: string, ): SafeParseResult { @@ -1021,51 +730,6 @@ export const ApplicationOneProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ApplicationOneProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ApplicationOneProject$outboundSchema: z.ZodType< - ApplicationOneProject$Outbound, - z.ZodTypeDef, - ApplicationOneProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneProject$ { - /** @deprecated use `ApplicationOneProject$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneProject$inboundSchema; - /** @deprecated use `ApplicationOneProject$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneProject$outboundSchema; - /** @deprecated use `ApplicationOneProject$Outbound` instead. */ - export type Outbound = ApplicationOneProject$Outbound; -} - -export function applicationOneProjectToJSON( - applicationOneProject: ApplicationOneProject, -): string { - return JSON.stringify( - ApplicationOneProject$outboundSchema.parse(applicationOneProject), - ); -} - export function applicationOneProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1091,53 +755,6 @@ export const ApplicationOneEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ApplicationOneEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: ApplicationOneProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const ApplicationOneEnvironment$outboundSchema: z.ZodType< - ApplicationOneEnvironment$Outbound, - z.ZodTypeDef, - ApplicationOneEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => ApplicationOneProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneEnvironment$ { - /** @deprecated use `ApplicationOneEnvironment$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneEnvironment$inboundSchema; - /** @deprecated use `ApplicationOneEnvironment$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneEnvironment$outboundSchema; - /** @deprecated use `ApplicationOneEnvironment$Outbound` instead. */ - export type Outbound = ApplicationOneEnvironment$Outbound; -} - -export function applicationOneEnvironmentToJSON( - applicationOneEnvironment: ApplicationOneEnvironment, -): string { - return JSON.stringify( - ApplicationOneEnvironment$outboundSchema.parse(applicationOneEnvironment), - ); -} - export function applicationOneEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1167,61 +784,6 @@ export const ApplicationOneGitea$inboundSchema: z.ZodType< scopes: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationOneGitea$Outbound = { - accessToken: string | null; - clientId: string | null; - clientSecret: string | null; - expiresAt: number | null; - gitProviderId: string; - giteaId: string; - giteaUrl: string; - lastAuthenticatedAt: number | null; - redirectUri: string | null; - refreshToken: string | null; - scopes: string | null; -}; - -/** @internal */ -export const ApplicationOneGitea$outboundSchema: z.ZodType< - ApplicationOneGitea$Outbound, - z.ZodTypeDef, - ApplicationOneGitea -> = z.object({ - accessToken: z.nullable(z.string()), - clientId: z.nullable(z.string()), - clientSecret: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - giteaId: z.string(), - giteaUrl: z.string(), - lastAuthenticatedAt: z.nullable(z.number()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - scopes: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneGitea$ { - /** @deprecated use `ApplicationOneGitea$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneGitea$inboundSchema; - /** @deprecated use `ApplicationOneGitea$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneGitea$outboundSchema; - /** @deprecated use `ApplicationOneGitea$Outbound` instead. */ - export type Outbound = ApplicationOneGitea$Outbound; -} - -export function applicationOneGiteaToJSON( - applicationOneGitea: ApplicationOneGitea, -): string { - return JSON.stringify( - ApplicationOneGitea$outboundSchema.parse(applicationOneGitea), - ); -} - export function applicationOneGiteaFromJSON( jsonString: string, ): SafeParseResult { @@ -1249,57 +811,6 @@ export const ApplicationOneGithub$inboundSchema: z.ZodType< githubWebhookSecret: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationOneGithub$Outbound = { - gitProviderId: string; - githubAppId: number | null; - githubAppName: string | null; - githubClientId: string | null; - githubClientSecret: string | null; - githubId: string; - githubInstallationId: string | null; - githubPrivateKey: string | null; - githubWebhookSecret: string | null; -}; - -/** @internal */ -export const ApplicationOneGithub$outboundSchema: z.ZodType< - ApplicationOneGithub$Outbound, - z.ZodTypeDef, - ApplicationOneGithub -> = z.object({ - gitProviderId: z.string(), - githubAppId: z.nullable(z.number()), - githubAppName: z.nullable(z.string()), - githubClientId: z.nullable(z.string()), - githubClientSecret: z.nullable(z.string()), - githubId: z.string(), - githubInstallationId: z.nullable(z.string()), - githubPrivateKey: z.nullable(z.string()), - githubWebhookSecret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneGithub$ { - /** @deprecated use `ApplicationOneGithub$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneGithub$inboundSchema; - /** @deprecated use `ApplicationOneGithub$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneGithub$outboundSchema; - /** @deprecated use `ApplicationOneGithub$Outbound` instead. */ - export type Outbound = ApplicationOneGithub$Outbound; -} - -export function applicationOneGithubToJSON( - applicationOneGithub: ApplicationOneGithub, -): string { - return JSON.stringify( - ApplicationOneGithub$outboundSchema.parse(applicationOneGithub), - ); -} - export function applicationOneGithubFromJSON( jsonString: string, ): SafeParseResult { @@ -1328,59 +839,6 @@ export const ApplicationOneGitlab$inboundSchema: z.ZodType< secret: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationOneGitlab$Outbound = { - accessToken: string | null; - applicationId: string | null; - expiresAt: number | null; - gitProviderId: string; - gitlabId: string; - gitlabUrl: string; - groupName: string | null; - redirectUri: string | null; - refreshToken: string | null; - secret: string | null; -}; - -/** @internal */ -export const ApplicationOneGitlab$outboundSchema: z.ZodType< - ApplicationOneGitlab$Outbound, - z.ZodTypeDef, - ApplicationOneGitlab -> = z.object({ - accessToken: z.nullable(z.string()), - applicationId: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - gitlabId: z.string(), - gitlabUrl: z.string(), - groupName: z.nullable(z.string()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - secret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneGitlab$ { - /** @deprecated use `ApplicationOneGitlab$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneGitlab$inboundSchema; - /** @deprecated use `ApplicationOneGitlab$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneGitlab$outboundSchema; - /** @deprecated use `ApplicationOneGitlab$Outbound` instead. */ - export type Outbound = ApplicationOneGitlab$Outbound; -} - -export function applicationOneGitlabToJSON( - applicationOneGitlab: ApplicationOneGitlab, -): string { - return JSON.stringify( - ApplicationOneGitlab$outboundSchema.parse(applicationOneGitlab), - ); -} - export function applicationOneGitlabFromJSON( jsonString: string, ): SafeParseResult { @@ -1412,59 +870,6 @@ export const ApplicationOneHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const ApplicationOneHealthCheckSwarm$outboundSchema: z.ZodType< - ApplicationOneHealthCheckSwarm$Outbound, - z.ZodTypeDef, - ApplicationOneHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneHealthCheckSwarm$ { - /** @deprecated use `ApplicationOneHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneHealthCheckSwarm$inboundSchema; - /** @deprecated use `ApplicationOneHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneHealthCheckSwarm$outboundSchema; - /** @deprecated use `ApplicationOneHealthCheckSwarm$Outbound` instead. */ - export type Outbound = ApplicationOneHealthCheckSwarm$Outbound; -} - -export function applicationOneHealthCheckSwarmToJSON( - applicationOneHealthCheckSwarm: ApplicationOneHealthCheckSwarm, -): string { - return JSON.stringify( - ApplicationOneHealthCheckSwarm$outboundSchema.parse( - applicationOneHealthCheckSwarm, - ), - ); -} - export function applicationOneHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1482,37 +887,6 @@ export const ApplicationOneGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationOneGlobal$Outbound = {}; - -/** @internal */ -export const ApplicationOneGlobal$outboundSchema: z.ZodType< - ApplicationOneGlobal$Outbound, - z.ZodTypeDef, - ApplicationOneGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneGlobal$ { - /** @deprecated use `ApplicationOneGlobal$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneGlobal$inboundSchema; - /** @deprecated use `ApplicationOneGlobal$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneGlobal$outboundSchema; - /** @deprecated use `ApplicationOneGlobal$Outbound` instead. */ - export type Outbound = ApplicationOneGlobal$Outbound; -} - -export function applicationOneGlobalToJSON( - applicationOneGlobal: ApplicationOneGlobal, -): string { - return JSON.stringify( - ApplicationOneGlobal$outboundSchema.parse(applicationOneGlobal), - ); -} - export function applicationOneGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1530,37 +904,6 @@ export const ApplicationOneGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationOneGlobalJob$Outbound = {}; - -/** @internal */ -export const ApplicationOneGlobalJob$outboundSchema: z.ZodType< - ApplicationOneGlobalJob$Outbound, - z.ZodTypeDef, - ApplicationOneGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneGlobalJob$ { - /** @deprecated use `ApplicationOneGlobalJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneGlobalJob$inboundSchema; - /** @deprecated use `ApplicationOneGlobalJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneGlobalJob$outboundSchema; - /** @deprecated use `ApplicationOneGlobalJob$Outbound` instead. */ - export type Outbound = ApplicationOneGlobalJob$Outbound; -} - -export function applicationOneGlobalJobToJSON( - applicationOneGlobalJob: ApplicationOneGlobalJob, -): string { - return JSON.stringify( - ApplicationOneGlobalJob$outboundSchema.parse(applicationOneGlobalJob), - ); -} - export function applicationOneGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1584,45 +927,6 @@ export const ApplicationOneReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const ApplicationOneReplicated$outboundSchema: z.ZodType< - ApplicationOneReplicated$Outbound, - z.ZodTypeDef, - ApplicationOneReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneReplicated$ { - /** @deprecated use `ApplicationOneReplicated$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneReplicated$inboundSchema; - /** @deprecated use `ApplicationOneReplicated$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneReplicated$outboundSchema; - /** @deprecated use `ApplicationOneReplicated$Outbound` instead. */ - export type Outbound = ApplicationOneReplicated$Outbound; -} - -export function applicationOneReplicatedToJSON( - applicationOneReplicated: ApplicationOneReplicated, -): string { - return JSON.stringify( - ApplicationOneReplicated$outboundSchema.parse(applicationOneReplicated), - ); -} - export function applicationOneReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1648,50 +952,6 @@ export const ApplicationOneReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const ApplicationOneReplicatedJob$outboundSchema: z.ZodType< - ApplicationOneReplicatedJob$Outbound, - z.ZodTypeDef, - ApplicationOneReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneReplicatedJob$ { - /** @deprecated use `ApplicationOneReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneReplicatedJob$inboundSchema; - /** @deprecated use `ApplicationOneReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneReplicatedJob$outboundSchema; - /** @deprecated use `ApplicationOneReplicatedJob$Outbound` instead. */ - export type Outbound = ApplicationOneReplicatedJob$Outbound; -} - -export function applicationOneReplicatedJobToJSON( - applicationOneReplicatedJob: ApplicationOneReplicatedJob, -): string { - return JSON.stringify( - ApplicationOneReplicatedJob$outboundSchema.parse( - applicationOneReplicatedJob, - ), - ); -} - export function applicationOneReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1722,154 +982,31 @@ export const ApplicationOneModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneModeSwarm$Outbound = { - Global?: ApplicationOneGlobal$Outbound | undefined; - GlobalJob?: ApplicationOneGlobalJob$Outbound | undefined; - Replicated?: ApplicationOneReplicated$Outbound | undefined; - ReplicatedJob?: ApplicationOneReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const ApplicationOneModeSwarm$outboundSchema: z.ZodType< - ApplicationOneModeSwarm$Outbound, - z.ZodTypeDef, - ApplicationOneModeSwarm -> = z.object({ - global: z.lazy(() => ApplicationOneGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => ApplicationOneGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => ApplicationOneReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => ApplicationOneReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneModeSwarm$ { - /** @deprecated use `ApplicationOneModeSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneModeSwarm$inboundSchema; - /** @deprecated use `ApplicationOneModeSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneModeSwarm$outboundSchema; - /** @deprecated use `ApplicationOneModeSwarm$Outbound` instead. */ - export type Outbound = ApplicationOneModeSwarm$Outbound; -} - -export function applicationOneModeSwarmToJSON( - applicationOneModeSwarm: ApplicationOneModeSwarm, -): string { - return JSON.stringify( - ApplicationOneModeSwarm$outboundSchema.parse(applicationOneModeSwarm), - ); -} - export function applicationOneModeSwarmFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ApplicationOneModeSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationOneModeSwarm' from JSON`, - ); -} - -/** @internal */ -export const ApplicationOneServiceType$inboundSchema: z.ZodNativeEnum< - typeof ApplicationOneServiceType -> = z.nativeEnum(ApplicationOneServiceType); - -/** @internal */ -export const ApplicationOneServiceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneServiceType -> = ApplicationOneServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneServiceType$ { - /** @deprecated use `ApplicationOneServiceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneServiceType$inboundSchema; - /** @deprecated use `ApplicationOneServiceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneServiceType$outboundSchema; -} - -/** @internal */ -export const ApplicationOneType$inboundSchema: z.ZodNativeEnum< - typeof ApplicationOneType -> = z.nativeEnum(ApplicationOneType); - -/** @internal */ -export const ApplicationOneType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneType -> = ApplicationOneType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneType$ { - /** @deprecated use `ApplicationOneType$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneType$inboundSchema; - /** @deprecated use `ApplicationOneType$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneType$outboundSchema; -} - -/** @internal */ -export const ApplicationOneMount$inboundSchema: z.ZodType< - ApplicationOneMount, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: ApplicationOneServiceType$inboundSchema, - type: ApplicationOneType$inboundSchema, - volumeName: z.nullable(z.string()), -}); + `Failed to parse 'ApplicationOneModeSwarm' from JSON`, + ); +} /** @internal */ -export type ApplicationOneMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; +export const ApplicationOneServiceType$inboundSchema: z.ZodNativeEnum< + typeof ApplicationOneServiceType +> = z.nativeEnum(ApplicationOneServiceType); + +/** @internal */ +export const ApplicationOneType$inboundSchema: z.ZodNativeEnum< + typeof ApplicationOneType +> = z.nativeEnum(ApplicationOneType); /** @internal */ -export const ApplicationOneMount$outboundSchema: z.ZodType< - ApplicationOneMount$Outbound, +export const ApplicationOneMount$inboundSchema: z.ZodType< + ApplicationOneMount, z.ZodTypeDef, - ApplicationOneMount + unknown > = z.object({ applicationId: z.nullable(z.string()), composeId: z.nullable(z.string()), @@ -1883,32 +1020,11 @@ export const ApplicationOneMount$outboundSchema: z.ZodType< mysqlId: z.nullable(z.string()), postgresId: z.nullable(z.string()), redisId: z.nullable(z.string()), - serviceType: ApplicationOneServiceType$outboundSchema, - type: ApplicationOneType$outboundSchema, + serviceType: ApplicationOneServiceType$inboundSchema, + type: ApplicationOneType$inboundSchema, volumeName: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneMount$ { - /** @deprecated use `ApplicationOneMount$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneMount$inboundSchema; - /** @deprecated use `ApplicationOneMount$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneMount$outboundSchema; - /** @deprecated use `ApplicationOneMount$Outbound` instead. */ - export type Outbound = ApplicationOneMount$Outbound; -} - -export function applicationOneMountToJSON( - applicationOneMount: ApplicationOneMount, -): string { - return JSON.stringify( - ApplicationOneMount$outboundSchema.parse(applicationOneMount), - ); -} - export function applicationOneMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1926,37 +1042,6 @@ export const ApplicationOneDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationOneDriverOpts$Outbound = {}; - -/** @internal */ -export const ApplicationOneDriverOpts$outboundSchema: z.ZodType< - ApplicationOneDriverOpts$Outbound, - z.ZodTypeDef, - ApplicationOneDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneDriverOpts$ { - /** @deprecated use `ApplicationOneDriverOpts$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneDriverOpts$inboundSchema; - /** @deprecated use `ApplicationOneDriverOpts$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneDriverOpts$outboundSchema; - /** @deprecated use `ApplicationOneDriverOpts$Outbound` instead. */ - export type Outbound = ApplicationOneDriverOpts$Outbound; -} - -export function applicationOneDriverOptsToJSON( - applicationOneDriverOpts: ApplicationOneDriverOpts, -): string { - return JSON.stringify( - ApplicationOneDriverOpts$outboundSchema.parse(applicationOneDriverOpts), - ); -} - export function applicationOneDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1984,51 +1069,6 @@ export const ApplicationOneNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: ApplicationOneDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const ApplicationOneNetworkSwarm$outboundSchema: z.ZodType< - ApplicationOneNetworkSwarm$Outbound, - z.ZodTypeDef, - ApplicationOneNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => ApplicationOneDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneNetworkSwarm$ { - /** @deprecated use `ApplicationOneNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneNetworkSwarm$inboundSchema; - /** @deprecated use `ApplicationOneNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneNetworkSwarm$outboundSchema; - /** @deprecated use `ApplicationOneNetworkSwarm$Outbound` instead. */ - export type Outbound = ApplicationOneNetworkSwarm$Outbound; -} - -export function applicationOneNetworkSwarmToJSON( - applicationOneNetworkSwarm: ApplicationOneNetworkSwarm, -): string { - return JSON.stringify( - ApplicationOneNetworkSwarm$outboundSchema.parse(applicationOneNetworkSwarm), - ); -} - export function applicationOneNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2054,48 +1094,6 @@ export const ApplicationOnePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOnePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const ApplicationOnePlatform$outboundSchema: z.ZodType< - ApplicationOnePlatform$Outbound, - z.ZodTypeDef, - ApplicationOnePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOnePlatform$ { - /** @deprecated use `ApplicationOnePlatform$inboundSchema` instead. */ - export const inboundSchema = ApplicationOnePlatform$inboundSchema; - /** @deprecated use `ApplicationOnePlatform$outboundSchema` instead. */ - export const outboundSchema = ApplicationOnePlatform$outboundSchema; - /** @deprecated use `ApplicationOnePlatform$Outbound` instead. */ - export type Outbound = ApplicationOnePlatform$Outbound; -} - -export function applicationOnePlatformToJSON( - applicationOnePlatform: ApplicationOnePlatform, -): string { - return JSON.stringify( - ApplicationOnePlatform$outboundSchema.parse(applicationOnePlatform), - ); -} - export function applicationOnePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -2119,45 +1117,6 @@ export const ApplicationOneSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const ApplicationOneSpread$outboundSchema: z.ZodType< - ApplicationOneSpread$Outbound, - z.ZodTypeDef, - ApplicationOneSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneSpread$ { - /** @deprecated use `ApplicationOneSpread$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneSpread$inboundSchema; - /** @deprecated use `ApplicationOneSpread$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneSpread$outboundSchema; - /** @deprecated use `ApplicationOneSpread$Outbound` instead. */ - export type Outbound = ApplicationOneSpread$Outbound; -} - -export function applicationOneSpreadToJSON( - applicationOneSpread: ApplicationOneSpread, -): string { - return JSON.stringify( - ApplicationOneSpread$outboundSchema.parse(applicationOneSpread), - ); -} - export function applicationOneSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -2181,45 +1140,6 @@ export const ApplicationOnePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOnePreference$Outbound = { - Spread: ApplicationOneSpread$Outbound; -}; - -/** @internal */ -export const ApplicationOnePreference$outboundSchema: z.ZodType< - ApplicationOnePreference$Outbound, - z.ZodTypeDef, - ApplicationOnePreference -> = z.object({ - spread: z.lazy(() => ApplicationOneSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOnePreference$ { - /** @deprecated use `ApplicationOnePreference$inboundSchema` instead. */ - export const inboundSchema = ApplicationOnePreference$inboundSchema; - /** @deprecated use `ApplicationOnePreference$outboundSchema` instead. */ - export const outboundSchema = ApplicationOnePreference$outboundSchema; - /** @deprecated use `ApplicationOnePreference$Outbound` instead. */ - export type Outbound = ApplicationOnePreference$Outbound; -} - -export function applicationOnePreferenceToJSON( - applicationOnePreference: ApplicationOnePreference, -): string { - return JSON.stringify( - ApplicationOnePreference$outboundSchema.parse(applicationOnePreference), - ); -} - export function applicationOnePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -2251,58 +1171,6 @@ export const ApplicationOnePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOnePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const ApplicationOnePlacementSwarm$outboundSchema: z.ZodType< - ApplicationOnePlacementSwarm$Outbound, - z.ZodTypeDef, - ApplicationOnePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => ApplicationOnePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => ApplicationOnePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOnePlacementSwarm$ { - /** @deprecated use `ApplicationOnePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationOnePlacementSwarm$inboundSchema; - /** @deprecated use `ApplicationOnePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationOnePlacementSwarm$outboundSchema; - /** @deprecated use `ApplicationOnePlacementSwarm$Outbound` instead. */ - export type Outbound = ApplicationOnePlacementSwarm$Outbound; -} - -export function applicationOnePlacementSwarmToJSON( - applicationOnePlacementSwarm: ApplicationOnePlacementSwarm, -): string { - return JSON.stringify( - ApplicationOnePlacementSwarm$outboundSchema.parse( - applicationOnePlacementSwarm, - ), - ); -} - export function applicationOnePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2318,43 +1186,11 @@ export const ApplicationOneProtocol$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneProtocol > = z.nativeEnum(ApplicationOneProtocol); -/** @internal */ -export const ApplicationOneProtocol$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneProtocol -> = ApplicationOneProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneProtocol$ { - /** @deprecated use `ApplicationOneProtocol$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneProtocol$inboundSchema; - /** @deprecated use `ApplicationOneProtocol$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneProtocol$outboundSchema; -} - /** @internal */ export const ApplicationOnePublishMode$inboundSchema: z.ZodNativeEnum< typeof ApplicationOnePublishMode > = z.nativeEnum(ApplicationOnePublishMode); -/** @internal */ -export const ApplicationOnePublishMode$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOnePublishMode -> = ApplicationOnePublishMode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOnePublishMode$ { - /** @deprecated use `ApplicationOnePublishMode$inboundSchema` instead. */ - export const inboundSchema = ApplicationOnePublishMode$inboundSchema; - /** @deprecated use `ApplicationOnePublishMode$outboundSchema` instead. */ - export const outboundSchema = ApplicationOnePublishMode$outboundSchema; -} - /** @internal */ export const ApplicationOnePort$inboundSchema: z.ZodType< ApplicationOnePort, @@ -2369,51 +1205,6 @@ export const ApplicationOnePort$inboundSchema: z.ZodType< targetPort: z.number(), }); -/** @internal */ -export type ApplicationOnePort$Outbound = { - applicationId: string; - portId: string; - protocol: string; - publishMode: string; - publishedPort: number; - targetPort: number; -}; - -/** @internal */ -export const ApplicationOnePort$outboundSchema: z.ZodType< - ApplicationOnePort$Outbound, - z.ZodTypeDef, - ApplicationOnePort -> = z.object({ - applicationId: z.string(), - portId: z.string(), - protocol: ApplicationOneProtocol$outboundSchema, - publishMode: ApplicationOnePublishMode$outboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOnePort$ { - /** @deprecated use `ApplicationOnePort$inboundSchema` instead. */ - export const inboundSchema = ApplicationOnePort$inboundSchema; - /** @deprecated use `ApplicationOnePort$outboundSchema` instead. */ - export const outboundSchema = ApplicationOnePort$outboundSchema; - /** @deprecated use `ApplicationOnePort$Outbound` instead. */ - export type Outbound = ApplicationOnePort$Outbound; -} - -export function applicationOnePortToJSON( - applicationOnePort: ApplicationOnePort, -): string { - return JSON.stringify( - ApplicationOnePort$outboundSchema.parse(applicationOnePort), - ); -} - export function applicationOnePortFromJSON( jsonString: string, ): SafeParseResult { @@ -2430,45 +1221,11 @@ export const ApplicationOnePreviewCertificateType$inboundSchema: ApplicationOnePreviewCertificateType, ); -/** @internal */ -export const ApplicationOnePreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - ApplicationOnePreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOnePreviewCertificateType$ { - /** @deprecated use `ApplicationOnePreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - ApplicationOnePreviewCertificateType$inboundSchema; - /** @deprecated use `ApplicationOnePreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationOnePreviewCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationOnePreviewStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationOnePreviewStatus > = z.nativeEnum(ApplicationOnePreviewStatus); -/** @internal */ -export const ApplicationOnePreviewStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOnePreviewStatus -> = ApplicationOnePreviewStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOnePreviewStatus$ { - /** @deprecated use `ApplicationOnePreviewStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationOnePreviewStatus$inboundSchema; - /** @deprecated use `ApplicationOnePreviewStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationOnePreviewStatus$outboundSchema; -} - /** @internal */ export const ApplicationOnePreviewDeployment$inboundSchema: z.ZodType< ApplicationOnePreviewDeployment, @@ -2482,74 +1239,13 @@ export const ApplicationOnePreviewDeployment$inboundSchema: z.ZodType< domainId: z.nullable(z.string()), expiresAt: z.nullable(z.string()), previewDeploymentId: z.string(), - previewStatus: ApplicationOnePreviewStatus$inboundSchema, - pullRequestCommentId: z.string(), - pullRequestId: z.string(), - pullRequestNumber: z.string(), - pullRequestTitle: z.string(), - pullRequestURL: z.string(), -}); - -/** @internal */ -export type ApplicationOnePreviewDeployment$Outbound = { - appName: string; - applicationId: string; - branch: string; - createdAt: string; - domainId: string | null; - expiresAt: string | null; - previewDeploymentId: string; - previewStatus: string; - pullRequestCommentId: string; - pullRequestId: string; - pullRequestNumber: string; - pullRequestTitle: string; - pullRequestURL: string; -}; - -/** @internal */ -export const ApplicationOnePreviewDeployment$outboundSchema: z.ZodType< - ApplicationOnePreviewDeployment$Outbound, - z.ZodTypeDef, - ApplicationOnePreviewDeployment -> = z.object({ - appName: z.string(), - applicationId: z.string(), - branch: z.string(), - createdAt: z.string(), - domainId: z.nullable(z.string()), - expiresAt: z.nullable(z.string()), - previewDeploymentId: z.string(), - previewStatus: ApplicationOnePreviewStatus$outboundSchema, - pullRequestCommentId: z.string(), - pullRequestId: z.string(), - pullRequestNumber: z.string(), - pullRequestTitle: z.string(), - pullRequestURL: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOnePreviewDeployment$ { - /** @deprecated use `ApplicationOnePreviewDeployment$inboundSchema` instead. */ - export const inboundSchema = ApplicationOnePreviewDeployment$inboundSchema; - /** @deprecated use `ApplicationOnePreviewDeployment$outboundSchema` instead. */ - export const outboundSchema = ApplicationOnePreviewDeployment$outboundSchema; - /** @deprecated use `ApplicationOnePreviewDeployment$Outbound` instead. */ - export type Outbound = ApplicationOnePreviewDeployment$Outbound; -} - -export function applicationOnePreviewDeploymentToJSON( - applicationOnePreviewDeployment: ApplicationOnePreviewDeployment, -): string { - return JSON.stringify( - ApplicationOnePreviewDeployment$outboundSchema.parse( - applicationOnePreviewDeployment, - ), - ); -} + previewStatus: ApplicationOnePreviewStatus$inboundSchema, + pullRequestCommentId: z.string(), + pullRequestId: z.string(), + pullRequestNumber: z.string(), + pullRequestTitle: z.string(), + pullRequestURL: z.string(), +}); export function applicationOnePreviewDeploymentFromJSON( jsonString: string, @@ -2576,53 +1272,6 @@ export const ApplicationOneRedirect$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type ApplicationOneRedirect$Outbound = { - applicationId: string; - createdAt: string; - permanent: boolean; - redirectId: string; - regex: string; - replacement: string; - uniqueConfigKey: number; -}; - -/** @internal */ -export const ApplicationOneRedirect$outboundSchema: z.ZodType< - ApplicationOneRedirect$Outbound, - z.ZodTypeDef, - ApplicationOneRedirect -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneRedirect$ { - /** @deprecated use `ApplicationOneRedirect$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneRedirect$inboundSchema; - /** @deprecated use `ApplicationOneRedirect$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneRedirect$outboundSchema; - /** @deprecated use `ApplicationOneRedirect$Outbound` instead. */ - export type Outbound = ApplicationOneRedirect$Outbound; -} - -export function applicationOneRedirectToJSON( - applicationOneRedirect: ApplicationOneRedirect, -): string { - return JSON.stringify( - ApplicationOneRedirect$outboundSchema.parse(applicationOneRedirect), - ); -} - export function applicationOneRedirectFromJSON( jsonString: string, ): SafeParseResult { @@ -2638,22 +1287,6 @@ export const ApplicationOneRegistryType$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneRegistryType > = z.nativeEnum(ApplicationOneRegistryType); -/** @internal */ -export const ApplicationOneRegistryType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneRegistryType -> = ApplicationOneRegistryType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneRegistryType$ { - /** @deprecated use `ApplicationOneRegistryType$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneRegistryType$inboundSchema; - /** @deprecated use `ApplicationOneRegistryType$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneRegistryType$outboundSchema; -} - /** @internal */ export const ApplicationOneRegistry$inboundSchema: z.ZodType< ApplicationOneRegistry, @@ -2671,57 +1304,6 @@ export const ApplicationOneRegistry$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type ApplicationOneRegistry$Outbound = { - createdAt: string; - imagePrefix: string | null; - organizationId: string; - password: string; - registryId: string; - registryName: string; - registryType: string; - registryUrl: string; - username: string; -}; - -/** @internal */ -export const ApplicationOneRegistry$outboundSchema: z.ZodType< - ApplicationOneRegistry$Outbound, - z.ZodTypeDef, - ApplicationOneRegistry -> = z.object({ - createdAt: z.string(), - imagePrefix: z.nullable(z.string()), - organizationId: z.string(), - password: z.string(), - registryId: z.string(), - registryName: z.string(), - registryType: ApplicationOneRegistryType$outboundSchema, - registryUrl: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneRegistry$ { - /** @deprecated use `ApplicationOneRegistry$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneRegistry$inboundSchema; - /** @deprecated use `ApplicationOneRegistry$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneRegistry$outboundSchema; - /** @deprecated use `ApplicationOneRegistry$Outbound` instead. */ - export type Outbound = ApplicationOneRegistry$Outbound; -} - -export function applicationOneRegistryToJSON( - applicationOneRegistry: ApplicationOneRegistry, -): string { - return JSON.stringify( - ApplicationOneRegistry$outboundSchema.parse(applicationOneRegistry), - ); -} - export function applicationOneRegistryFromJSON( jsonString: string, ): SafeParseResult { @@ -2751,56 +1333,6 @@ export const ApplicationOneRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const ApplicationOneRestartPolicySwarm$outboundSchema: z.ZodType< - ApplicationOneRestartPolicySwarm$Outbound, - z.ZodTypeDef, - ApplicationOneRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneRestartPolicySwarm$ { - /** @deprecated use `ApplicationOneRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneRestartPolicySwarm$inboundSchema; - /** @deprecated use `ApplicationOneRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneRestartPolicySwarm$outboundSchema; - /** @deprecated use `ApplicationOneRestartPolicySwarm$Outbound` instead. */ - export type Outbound = ApplicationOneRestartPolicySwarm$Outbound; -} - -export function applicationOneRestartPolicySwarmToJSON( - applicationOneRestartPolicySwarm: ApplicationOneRestartPolicySwarm, -): string { - return JSON.stringify( - ApplicationOneRestartPolicySwarm$outboundSchema.parse( - applicationOneRestartPolicySwarm, - ), - ); -} - export function applicationOneRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2834,63 +1366,6 @@ export const ApplicationOneRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationOneRollbackConfigSwarm$outboundSchema: z.ZodType< - ApplicationOneRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationOneRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneRollbackConfigSwarm$ { - /** @deprecated use `ApplicationOneRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneRollbackConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationOneRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationOneRollbackConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationOneRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationOneRollbackConfigSwarm$Outbound; -} - -export function applicationOneRollbackConfigSwarmToJSON( - applicationOneRollbackConfigSwarm: ApplicationOneRollbackConfigSwarm, -): string { - return JSON.stringify( - ApplicationOneRollbackConfigSwarm$outboundSchema.parse( - applicationOneRollbackConfigSwarm, - ), - ); -} - export function applicationOneRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2914,49 +1389,6 @@ export const ApplicationOneSecurity$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type ApplicationOneSecurity$Outbound = { - applicationId: string; - createdAt: string; - password: string; - securityId: string; - username: string; -}; - -/** @internal */ -export const ApplicationOneSecurity$outboundSchema: z.ZodType< - ApplicationOneSecurity$Outbound, - z.ZodTypeDef, - ApplicationOneSecurity -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneSecurity$ { - /** @deprecated use `ApplicationOneSecurity$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneSecurity$inboundSchema; - /** @deprecated use `ApplicationOneSecurity$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneSecurity$outboundSchema; - /** @deprecated use `ApplicationOneSecurity$Outbound` instead. */ - export type Outbound = ApplicationOneSecurity$Outbound; -} - -export function applicationOneSecurityToJSON( - applicationOneSecurity: ApplicationOneSecurity, -): string { - return JSON.stringify( - ApplicationOneSecurity$outboundSchema.parse(applicationOneSecurity), - ); -} - export function applicationOneSecurityFromJSON( jsonString: string, ): SafeParseResult { @@ -2972,22 +1404,6 @@ export const ApplicationOneMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneMetricsConfigEnum > = z.nativeEnum(ApplicationOneMetricsConfigEnum); -/** @internal */ -export const ApplicationOneMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneMetricsConfigEnum -> = ApplicationOneMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneMetricsConfigEnum$ { - /** @deprecated use `ApplicationOneMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneMetricsConfigEnum$inboundSchema; - /** @deprecated use `ApplicationOneMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const ApplicationOneMetricsConfigUnion1$inboundSchema: z.ZodType< ApplicationOneMetricsConfigUnion1, @@ -3000,49 +1416,6 @@ export const ApplicationOneMetricsConfigUnion1$inboundSchema: z.ZodType< ApplicationOneMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type ApplicationOneMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const ApplicationOneMetricsConfigUnion1$outboundSchema: z.ZodType< - ApplicationOneMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - ApplicationOneMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationOneMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneMetricsConfigUnion1$ { - /** @deprecated use `ApplicationOneMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneMetricsConfigUnion1$inboundSchema; - /** @deprecated use `ApplicationOneMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - ApplicationOneMetricsConfigUnion1$outboundSchema; - /** @deprecated use `ApplicationOneMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = ApplicationOneMetricsConfigUnion1$Outbound; -} - -export function applicationOneMetricsConfigUnion1ToJSON( - applicationOneMetricsConfigUnion1: ApplicationOneMetricsConfigUnion1, -): string { - return JSON.stringify( - ApplicationOneMetricsConfigUnion1$outboundSchema.parse( - applicationOneMetricsConfigUnion1, - ), - ); -} - export function applicationOneMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -3069,55 +1442,6 @@ export const ApplicationOneMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type ApplicationOneMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const ApplicationOneMetricsConfigUnion2$outboundSchema: z.ZodType< - ApplicationOneMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - ApplicationOneMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneMetricsConfigUnion2$ { - /** @deprecated use `ApplicationOneMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneMetricsConfigUnion2$inboundSchema; - /** @deprecated use `ApplicationOneMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - ApplicationOneMetricsConfigUnion2$outboundSchema; - /** @deprecated use `ApplicationOneMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = ApplicationOneMetricsConfigUnion2$Outbound; -} - -export function applicationOneMetricsConfigUnion2ToJSON( - applicationOneMetricsConfigUnion2: ApplicationOneMetricsConfigUnion2, -): string { - return JSON.stringify( - ApplicationOneMetricsConfigUnion2$outboundSchema.parse( - applicationOneMetricsConfigUnion2, - ), - ); -} - export function applicationOneMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -3134,77 +1458,10 @@ export const ApplicationOneServerStatus$inboundSchema: z.ZodNativeEnum< > = z.nativeEnum(ApplicationOneServerStatus); /** @internal */ -export const ApplicationOneServerStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneServerStatus -> = ApplicationOneServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneServerStatus$ { - /** @deprecated use `ApplicationOneServerStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneServerStatus$inboundSchema; - /** @deprecated use `ApplicationOneServerStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneServerStatus$outboundSchema; -} - -/** @internal */ -export const ApplicationOneServer$inboundSchema: z.ZodType< - ApplicationOneServer, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationOneMetricsConfigEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: ApplicationOneServerStatus$inboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** @internal */ -export type ApplicationOneServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const ApplicationOneServer$outboundSchema: z.ZodType< - ApplicationOneServer$Outbound, +export const ApplicationOneServer$inboundSchema: z.ZodType< + ApplicationOneServer, z.ZodTypeDef, - ApplicationOneServer + unknown > = z.object({ appName: z.string(), command: z.string(), @@ -3217,7 +1474,7 @@ export const ApplicationOneServer$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - ApplicationOneMetricsConfigEnum$outboundSchema, + ApplicationOneMetricsConfigEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -3226,32 +1483,11 @@ export const ApplicationOneServer$outboundSchema: z.ZodType< organizationId: z.string(), port: z.number(), serverId: z.string(), - serverStatus: ApplicationOneServerStatus$outboundSchema, + serverStatus: ApplicationOneServerStatus$inboundSchema, sshKeyId: z.nullable(z.string()), username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneServer$ { - /** @deprecated use `ApplicationOneServer$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneServer$inboundSchema; - /** @deprecated use `ApplicationOneServer$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneServer$outboundSchema; - /** @deprecated use `ApplicationOneServer$Outbound` instead. */ - export type Outbound = ApplicationOneServer$Outbound; -} - -export function applicationOneServerToJSON( - applicationOneServer: ApplicationOneServer, -): string { - return JSON.stringify( - ApplicationOneServer$outboundSchema.parse(applicationOneServer), - ); -} - export function applicationOneServerFromJSON( jsonString: string, ): SafeParseResult { @@ -3267,64 +1503,16 @@ export const ApplicationOneSourceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneSourceType > = z.nativeEnum(ApplicationOneSourceType); -/** @internal */ -export const ApplicationOneSourceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneSourceType -> = ApplicationOneSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneSourceType$ { - /** @deprecated use `ApplicationOneSourceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneSourceType$inboundSchema; - /** @deprecated use `ApplicationOneSourceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneSourceType$outboundSchema; -} - /** @internal */ export const ApplicationOneTriggerType$inboundSchema: z.ZodNativeEnum< typeof ApplicationOneTriggerType > = z.nativeEnum(ApplicationOneTriggerType); -/** @internal */ -export const ApplicationOneTriggerType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationOneTriggerType -> = ApplicationOneTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneTriggerType$ { - /** @deprecated use `ApplicationOneTriggerType$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneTriggerType$inboundSchema; - /** @deprecated use `ApplicationOneTriggerType$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneTriggerType$outboundSchema; -} - /** @internal */ export const UnauthorizedProvider$inboundSchema: z.ZodNativeEnum< typeof UnauthorizedProvider > = z.nativeEnum(UnauthorizedProvider); -/** @internal */ -export const UnauthorizedProvider$outboundSchema: z.ZodNativeEnum< - typeof UnauthorizedProvider -> = UnauthorizedProvider$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedProvider$ { - /** @deprecated use `UnauthorizedProvider$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedProvider$inboundSchema; - /** @deprecated use `UnauthorizedProvider$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedProvider$outboundSchema; -} - /** @internal */ export const ApplicationOneUpdateConfigSwarm$inboundSchema: z.ZodType< ApplicationOneUpdateConfigSwarm, @@ -3348,62 +1536,6 @@ export const ApplicationOneUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationOneUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationOneUpdateConfigSwarm$outboundSchema: z.ZodType< - ApplicationOneUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationOneUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneUpdateConfigSwarm$ { - /** @deprecated use `ApplicationOneUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneUpdateConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationOneUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneUpdateConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationOneUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationOneUpdateConfigSwarm$Outbound; -} - -export function applicationOneUpdateConfigSwarmToJSON( - applicationOneUpdateConfigSwarm: ApplicationOneUpdateConfigSwarm, -): string { - return JSON.stringify( - ApplicationOneUpdateConfigSwarm$outboundSchema.parse( - applicationOneUpdateConfigSwarm, - ), - ); -} - export function applicationOneUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -3541,270 +1673,6 @@ export const ApplicationOneResponseBody$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** @internal */ -export type ApplicationOneResponseBody$Outbound = { - appName?: string | undefined; - applicationId?: string | undefined; - applicationStatus?: string | undefined; - autoDeploy?: boolean | null | undefined; - bitbucket: ApplicationOneBitbucket$Outbound | null; - bitbucketBranch?: string | null | undefined; - bitbucketBuildPath?: string | null | undefined; - bitbucketId?: string | null | undefined; - bitbucketOwner?: string | null | undefined; - bitbucketRepository?: string | null | undefined; - branch?: string | null | undefined; - buildArgs?: string | null | undefined; - buildPath?: string | null | undefined; - buildType?: string | undefined; - cleanCache?: boolean | null | undefined; - command?: string | null | undefined; - cpuLimit?: string | null | undefined; - cpuReservation?: string | null | undefined; - createdAt?: string | undefined; - customGitBranch?: string | null | undefined; - customGitBuildPath?: string | null | undefined; - customGitSSHKeyId?: string | null | undefined; - customGitUrl?: string | null | undefined; - deployments: Array; - description?: string | null | undefined; - dockerBuildStage?: string | null | undefined; - dockerContextPath?: string | null | undefined; - dockerImage?: string | null | undefined; - dockerfile?: string | null | undefined; - domains: Array; - dropBuildPath?: string | null | undefined; - enableSubmodules?: boolean | undefined; - enabled?: boolean | null | undefined; - env?: string | null | undefined; - environment: ApplicationOneEnvironment$Outbound; - environmentId: string; - gitea: ApplicationOneGitea$Outbound | null; - giteaBranch?: string | null | undefined; - giteaBuildPath?: string | null | undefined; - giteaId?: string | null | undefined; - giteaOwner?: string | null | undefined; - giteaRepository?: string | null | undefined; - github: ApplicationOneGithub$Outbound | null; - githubId?: string | null | undefined; - gitlab: ApplicationOneGitlab$Outbound | null; - gitlabBranch?: string | null | undefined; - gitlabBuildPath?: string | null | undefined; - gitlabId?: string | null | undefined; - gitlabOwner?: string | null | undefined; - gitlabPathNamespace?: string | null | undefined; - gitlabProjectId?: number | null | undefined; - gitlabRepository?: string | null | undefined; - hasGitProviderAccess: boolean; - healthCheckSwarm?: ApplicationOneHealthCheckSwarm$Outbound | null | undefined; - herokuVersion?: string | null | undefined; - isPreviewDeploymentsActive?: boolean | null | undefined; - isStaticSpa?: boolean | null | undefined; - labelsSwarm?: { [k: string]: string } | null | undefined; - memoryLimit?: string | null | undefined; - memoryReservation?: string | null | undefined; - modeSwarm?: ApplicationOneModeSwarm$Outbound | null | undefined; - mounts: Array; - name: string; - networkSwarm?: Array | null | undefined; - owner?: string | null | undefined; - password?: string | null | undefined; - placementSwarm?: ApplicationOnePlacementSwarm$Outbound | null | undefined; - ports: Array; - previewBuildArgs?: string | null | undefined; - previewCertificateType?: string | undefined; - previewCustomCertResolver?: string | null | undefined; - previewDeployments: Array; - previewEnv?: string | null | undefined; - previewHttps?: boolean | undefined; - previewLabels?: Array | null | undefined; - previewLimit?: number | null | undefined; - previewPath?: string | null | undefined; - previewPort?: number | null | undefined; - previewRequireCollaboratorPermissions?: boolean | null | undefined; - previewWildcard?: string | null | undefined; - publishDirectory?: string | null | undefined; - railpackVersion?: string | null | undefined; - redirects: Array; - refreshToken?: string | null | undefined; - registry: ApplicationOneRegistry$Outbound | null; - registryId?: string | null | undefined; - registryUrl?: string | null | undefined; - replicas?: number | undefined; - repository?: string | null | undefined; - restartPolicySwarm?: - | ApplicationOneRestartPolicySwarm$Outbound - | null - | undefined; - rollbackActive?: boolean | null | undefined; - rollbackConfigSwarm?: - | ApplicationOneRollbackConfigSwarm$Outbound - | null - | undefined; - security: Array; - server: ApplicationOneServer$Outbound | null; - serverId?: string | null | undefined; - sourceType?: string | undefined; - subtitle?: string | null | undefined; - title?: string | null | undefined; - triggerType?: string | null | undefined; - unauthorizedProvider: string | null; - updateConfigSwarm?: - | ApplicationOneUpdateConfigSwarm$Outbound - | null - | undefined; - username?: string | null | undefined; - watchPaths?: Array | null | undefined; -}; - -/** @internal */ -export const ApplicationOneResponseBody$outboundSchema: z.ZodType< - ApplicationOneResponseBody$Outbound, - z.ZodTypeDef, - ApplicationOneResponseBody -> = z.object({ - appName: z.string().optional(), - applicationId: z.string().optional(), - applicationStatus: ApplicationOneApplicationStatus$outboundSchema.optional(), - autoDeploy: z.nullable(z.boolean()).optional(), - bitbucket: z.nullable(z.lazy(() => ApplicationOneBitbucket$outboundSchema)), - bitbucketBranch: z.nullable(z.string()).optional(), - bitbucketBuildPath: z.nullable(z.string()).optional(), - bitbucketId: z.nullable(z.string()).optional(), - bitbucketOwner: z.nullable(z.string()).optional(), - bitbucketRepository: z.nullable(z.string()).optional(), - branch: z.nullable(z.string()).optional(), - buildArgs: z.nullable(z.string()).optional(), - buildPath: z.nullable(z.string()).optional(), - buildType: ApplicationOneBuildType$outboundSchema.optional(), - cleanCache: z.nullable(z.boolean()).optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - customGitBranch: z.nullable(z.string()).optional(), - customGitBuildPath: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - deployments: z.array(z.lazy(() => ApplicationOneDeployment$outboundSchema)), - description: z.nullable(z.string()).optional(), - dockerBuildStage: z.nullable(z.string()).optional(), - dockerContextPath: z.nullable(z.string()).optional(), - dockerImage: z.nullable(z.string()).optional(), - dockerfile: z.nullable(z.string()).optional(), - domains: z.array(z.lazy(() => ApplicationOneDomain$outboundSchema)), - dropBuildPath: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean().optional(), - enabled: z.nullable(z.boolean()).optional(), - env: z.nullable(z.string()).optional(), - environment: z.lazy(() => ApplicationOneEnvironment$outboundSchema), - environmentId: z.string(), - gitea: z.nullable(z.lazy(() => ApplicationOneGitea$outboundSchema)), - giteaBranch: z.nullable(z.string()).optional(), - giteaBuildPath: z.nullable(z.string()).optional(), - giteaId: z.nullable(z.string()).optional(), - giteaOwner: z.nullable(z.string()).optional(), - giteaRepository: z.nullable(z.string()).optional(), - github: z.nullable(z.lazy(() => ApplicationOneGithub$outboundSchema)), - githubId: z.nullable(z.string()).optional(), - gitlab: z.nullable(z.lazy(() => ApplicationOneGitlab$outboundSchema)), - gitlabBranch: z.nullable(z.string()).optional(), - gitlabBuildPath: z.nullable(z.string()).optional(), - gitlabId: z.nullable(z.string()).optional(), - gitlabOwner: z.nullable(z.string()).optional(), - gitlabPathNamespace: z.nullable(z.string()).optional(), - gitlabProjectId: z.nullable(z.number()).optional(), - gitlabRepository: z.nullable(z.string()).optional(), - hasGitProviderAccess: z.boolean(), - healthCheckSwarm: z.nullable( - z.lazy(() => ApplicationOneHealthCheckSwarm$outboundSchema), - ).optional(), - herokuVersion: z.nullable(z.string()).optional(), - isPreviewDeploymentsActive: z.nullable(z.boolean()).optional(), - isStaticSpa: z.nullable(z.boolean()).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => ApplicationOneModeSwarm$outboundSchema)) - .optional(), - mounts: z.array(z.lazy(() => ApplicationOneMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => ApplicationOneNetworkSwarm$outboundSchema)), - ).optional(), - owner: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - placementSwarm: z.nullable( - z.lazy(() => ApplicationOnePlacementSwarm$outboundSchema), - ).optional(), - ports: z.array(z.lazy(() => ApplicationOnePort$outboundSchema)), - previewBuildArgs: z.nullable(z.string()).optional(), - previewCertificateType: ApplicationOnePreviewCertificateType$outboundSchema - .optional(), - previewCustomCertResolver: z.nullable(z.string()).optional(), - previewDeployments: z.array( - z.lazy(() => ApplicationOnePreviewDeployment$outboundSchema), - ), - previewEnv: z.nullable(z.string()).optional(), - previewHttps: z.boolean().optional(), - previewLabels: z.nullable(z.array(z.string())).optional(), - previewLimit: z.nullable(z.number()).optional(), - previewPath: z.nullable(z.string()).optional(), - previewPort: z.nullable(z.number()).optional(), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()).optional(), - previewWildcard: z.nullable(z.string()).optional(), - publishDirectory: z.nullable(z.string()).optional(), - railpackVersion: z.nullable(z.string()).optional(), - redirects: z.array(z.lazy(() => ApplicationOneRedirect$outboundSchema)), - refreshToken: z.nullable(z.string()).optional(), - registry: z.nullable(z.lazy(() => ApplicationOneRegistry$outboundSchema)), - registryId: z.nullable(z.string()).optional(), - registryUrl: z.nullable(z.string()).optional(), - replicas: z.number().optional(), - repository: z.nullable(z.string()).optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => ApplicationOneRestartPolicySwarm$outboundSchema), - ).optional(), - rollbackActive: z.nullable(z.boolean()).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => ApplicationOneRollbackConfigSwarm$outboundSchema), - ).optional(), - security: z.array(z.lazy(() => ApplicationOneSecurity$outboundSchema)), - server: z.nullable(z.lazy(() => ApplicationOneServer$outboundSchema)), - serverId: z.nullable(z.string()).optional(), - sourceType: ApplicationOneSourceType$outboundSchema.optional(), - subtitle: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - triggerType: z.nullable(ApplicationOneTriggerType$outboundSchema).optional(), - unauthorizedProvider: z.nullable(UnauthorizedProvider$outboundSchema), - updateConfigSwarm: z.nullable( - z.lazy(() => ApplicationOneUpdateConfigSwarm$outboundSchema), - ).optional(), - username: z.nullable(z.string()).optional(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneResponseBody$ { - /** @deprecated use `ApplicationOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneResponseBody$inboundSchema; - /** @deprecated use `ApplicationOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneResponseBody$outboundSchema; - /** @deprecated use `ApplicationOneResponseBody$Outbound` instead. */ - export type Outbound = ApplicationOneResponseBody$Outbound; -} - -export function applicationOneResponseBodyToJSON( - applicationOneResponseBody: ApplicationOneResponseBody, -): string { - return JSON.stringify( - ApplicationOneResponseBody$outboundSchema.parse(applicationOneResponseBody), - ); -} - export function applicationOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -3825,42 +1693,6 @@ export const ApplicationOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ApplicationOneResponse$Outbound = - | ApplicationOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ApplicationOneResponse$outboundSchema: z.ZodType< - ApplicationOneResponse$Outbound, - z.ZodTypeDef, - ApplicationOneResponse -> = z.union([ - z.lazy(() => ApplicationOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationOneResponse$ { - /** @deprecated use `ApplicationOneResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationOneResponse$inboundSchema; - /** @deprecated use `ApplicationOneResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationOneResponse$outboundSchema; - /** @deprecated use `ApplicationOneResponse$Outbound` instead. */ - export type Outbound = ApplicationOneResponse$Outbound; -} - -export function applicationOneResponseToJSON( - applicationOneResponse: ApplicationOneResponse, -): string { - return JSON.stringify( - ApplicationOneResponse$outboundSchema.parse(applicationOneResponse), - ); -} - export function applicationOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationreadappmonitoring.ts b/src/models/operations/applicationreadappmonitoring.ts index 7f25201..9294ce1 100644 --- a/src/models/operations/applicationreadappmonitoring.ts +++ b/src/models/operations/applicationreadappmonitoring.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -67,15 +67,6 @@ export type ApplicationReadAppMonitoringResponse = | ApplicationReadAppMonitoringResponseBody | models.ErrorT; -/** @internal */ -export const ApplicationReadAppMonitoringRequest$inboundSchema: z.ZodType< - ApplicationReadAppMonitoringRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), -}); - /** @internal */ export type ApplicationReadAppMonitoringRequest$Outbound = { appName: string; @@ -90,21 +81,6 @@ export const ApplicationReadAppMonitoringRequest$outboundSchema: z.ZodType< appName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationReadAppMonitoringRequest$ { - /** @deprecated use `ApplicationReadAppMonitoringRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationReadAppMonitoringRequest$inboundSchema; - /** @deprecated use `ApplicationReadAppMonitoringRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationReadAppMonitoringRequest$outboundSchema; - /** @deprecated use `ApplicationReadAppMonitoringRequest$Outbound` instead. */ - export type Outbound = ApplicationReadAppMonitoringRequest$Outbound; -} - export function applicationReadAppMonitoringRequestToJSON( applicationReadAppMonitoringRequest: ApplicationReadAppMonitoringRequest, ): string { @@ -115,17 +91,6 @@ export function applicationReadAppMonitoringRequestToJSON( ); } -export function applicationReadAppMonitoringRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationReadAppMonitoringRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationReadAppMonitoringRequest' from JSON`, - ); -} - /** @internal */ export const BlockValue$inboundSchema: z.ZodType< BlockValue, @@ -136,39 +101,6 @@ export const BlockValue$inboundSchema: z.ZodType< writeMb: z.string(), }); -/** @internal */ -export type BlockValue$Outbound = { - readMb: string; - writeMb: string; -}; - -/** @internal */ -export const BlockValue$outboundSchema: z.ZodType< - BlockValue$Outbound, - z.ZodTypeDef, - BlockValue -> = z.object({ - readMb: z.string(), - writeMb: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BlockValue$ { - /** @deprecated use `BlockValue$inboundSchema` instead. */ - export const inboundSchema = BlockValue$inboundSchema; - /** @deprecated use `BlockValue$outboundSchema` instead. */ - export const outboundSchema = BlockValue$outboundSchema; - /** @deprecated use `BlockValue$Outbound` instead. */ - export type Outbound = BlockValue$Outbound; -} - -export function blockValueToJSON(blockValue: BlockValue): string { - return JSON.stringify(BlockValue$outboundSchema.parse(blockValue)); -} - export function blockValueFromJSON( jsonString: string, ): SafeParseResult { @@ -186,39 +118,6 @@ export const Block$inboundSchema: z.ZodType = z value: z.lazy(() => BlockValue$inboundSchema), }); -/** @internal */ -export type Block$Outbound = { - time: string; - value: BlockValue$Outbound; -}; - -/** @internal */ -export const Block$outboundSchema: z.ZodType< - Block$Outbound, - z.ZodTypeDef, - Block -> = z.object({ - time: z.string(), - value: z.lazy(() => BlockValue$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Block$ { - /** @deprecated use `Block$inboundSchema` instead. */ - export const inboundSchema = Block$inboundSchema; - /** @deprecated use `Block$outboundSchema` instead. */ - export const outboundSchema = Block$outboundSchema; - /** @deprecated use `Block$Outbound` instead. */ - export type Outbound = Block$Outbound; -} - -export function blockToJSON(block: Block): string { - return JSON.stringify(Block$outboundSchema.parse(block)); -} - export function blockFromJSON( jsonString: string, ): SafeParseResult { @@ -236,36 +135,6 @@ export const Cpu$inboundSchema: z.ZodType = z value: z.string(), }); -/** @internal */ -export type Cpu$Outbound = { - time: string; - value: string; -}; - -/** @internal */ -export const Cpu$outboundSchema: z.ZodType = z - .object({ - time: z.string(), - value: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Cpu$ { - /** @deprecated use `Cpu$inboundSchema` instead. */ - export const inboundSchema = Cpu$inboundSchema; - /** @deprecated use `Cpu$outboundSchema` instead. */ - export const outboundSchema = Cpu$outboundSchema; - /** @deprecated use `Cpu$Outbound` instead. */ - export type Outbound = Cpu$Outbound; -} - -export function cpuToJSON(cpu: Cpu): string { - return JSON.stringify(Cpu$outboundSchema.parse(cpu)); -} - export function cpuFromJSON( jsonString: string, ): SafeParseResult { @@ -283,36 +152,6 @@ export const Disk$inboundSchema: z.ZodType = z value: z.any().optional(), }); -/** @internal */ -export type Disk$Outbound = { - time: string; - value?: any | undefined; -}; - -/** @internal */ -export const Disk$outboundSchema: z.ZodType = - z.object({ - time: z.string(), - value: z.any().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Disk$ { - /** @deprecated use `Disk$inboundSchema` instead. */ - export const inboundSchema = Disk$inboundSchema; - /** @deprecated use `Disk$outboundSchema` instead. */ - export const outboundSchema = Disk$outboundSchema; - /** @deprecated use `Disk$Outbound` instead. */ - export type Outbound = Disk$Outbound; -} - -export function diskToJSON(disk: Disk): string { - return JSON.stringify(Disk$outboundSchema.parse(disk)); -} - export function diskFromJSON( jsonString: string, ): SafeParseResult { @@ -333,39 +172,6 @@ export const MemoryValue$inboundSchema: z.ZodType< used: z.string(), }); -/** @internal */ -export type MemoryValue$Outbound = { - total: string; - used: string; -}; - -/** @internal */ -export const MemoryValue$outboundSchema: z.ZodType< - MemoryValue$Outbound, - z.ZodTypeDef, - MemoryValue -> = z.object({ - total: z.string(), - used: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MemoryValue$ { - /** @deprecated use `MemoryValue$inboundSchema` instead. */ - export const inboundSchema = MemoryValue$inboundSchema; - /** @deprecated use `MemoryValue$outboundSchema` instead. */ - export const outboundSchema = MemoryValue$outboundSchema; - /** @deprecated use `MemoryValue$Outbound` instead. */ - export type Outbound = MemoryValue$Outbound; -} - -export function memoryValueToJSON(memoryValue: MemoryValue): string { - return JSON.stringify(MemoryValue$outboundSchema.parse(memoryValue)); -} - export function memoryValueFromJSON( jsonString: string, ): SafeParseResult { @@ -383,39 +189,6 @@ export const Memory$inboundSchema: z.ZodType = z value: z.lazy(() => MemoryValue$inboundSchema), }); -/** @internal */ -export type Memory$Outbound = { - time: string; - value: MemoryValue$Outbound; -}; - -/** @internal */ -export const Memory$outboundSchema: z.ZodType< - Memory$Outbound, - z.ZodTypeDef, - Memory -> = z.object({ - time: z.string(), - value: z.lazy(() => MemoryValue$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Memory$ { - /** @deprecated use `Memory$inboundSchema` instead. */ - export const inboundSchema = Memory$inboundSchema; - /** @deprecated use `Memory$outboundSchema` instead. */ - export const outboundSchema = Memory$outboundSchema; - /** @deprecated use `Memory$Outbound` instead. */ - export type Outbound = Memory$Outbound; -} - -export function memoryToJSON(memory: Memory): string { - return JSON.stringify(Memory$outboundSchema.parse(memory)); -} - export function memoryFromJSON( jsonString: string, ): SafeParseResult { @@ -436,39 +209,6 @@ export const NetworkValue$inboundSchema: z.ZodType< outputMb: z.string(), }); -/** @internal */ -export type NetworkValue$Outbound = { - inputMb: string; - outputMb: string; -}; - -/** @internal */ -export const NetworkValue$outboundSchema: z.ZodType< - NetworkValue$Outbound, - z.ZodTypeDef, - NetworkValue -> = z.object({ - inputMb: z.string(), - outputMb: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NetworkValue$ { - /** @deprecated use `NetworkValue$inboundSchema` instead. */ - export const inboundSchema = NetworkValue$inboundSchema; - /** @deprecated use `NetworkValue$outboundSchema` instead. */ - export const outboundSchema = NetworkValue$outboundSchema; - /** @deprecated use `NetworkValue$Outbound` instead. */ - export type Outbound = NetworkValue$Outbound; -} - -export function networkValueToJSON(networkValue: NetworkValue): string { - return JSON.stringify(NetworkValue$outboundSchema.parse(networkValue)); -} - export function networkValueFromJSON( jsonString: string, ): SafeParseResult { @@ -486,39 +226,6 @@ export const Network$inboundSchema: z.ZodType = value: z.lazy(() => NetworkValue$inboundSchema), }); -/** @internal */ -export type Network$Outbound = { - time: string; - value: NetworkValue$Outbound; -}; - -/** @internal */ -export const Network$outboundSchema: z.ZodType< - Network$Outbound, - z.ZodTypeDef, - Network -> = z.object({ - time: z.string(), - value: z.lazy(() => NetworkValue$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Network$ { - /** @deprecated use `Network$inboundSchema` instead. */ - export const inboundSchema = Network$inboundSchema; - /** @deprecated use `Network$outboundSchema` instead. */ - export const outboundSchema = Network$outboundSchema; - /** @deprecated use `Network$Outbound` instead. */ - export type Outbound = Network$Outbound; -} - -export function networkToJSON(network: Network): string { - return JSON.stringify(Network$outboundSchema.parse(network)); -} - export function networkFromJSON( jsonString: string, ): SafeParseResult { @@ -542,54 +249,6 @@ export const ApplicationReadAppMonitoringResponseBody$inboundSchema: z.ZodType< network: z.array(z.lazy(() => Network$inboundSchema)), }); -/** @internal */ -export type ApplicationReadAppMonitoringResponseBody$Outbound = { - block: Array; - cpu: Array; - disk: Array; - memory: Array; - network: Array; -}; - -/** @internal */ -export const ApplicationReadAppMonitoringResponseBody$outboundSchema: z.ZodType< - ApplicationReadAppMonitoringResponseBody$Outbound, - z.ZodTypeDef, - ApplicationReadAppMonitoringResponseBody -> = z.object({ - block: z.array(z.lazy(() => Block$outboundSchema)), - cpu: z.array(z.lazy(() => Cpu$outboundSchema)), - disk: z.array(z.lazy(() => Disk$outboundSchema)), - memory: z.array(z.lazy(() => Memory$outboundSchema)), - network: z.array(z.lazy(() => Network$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationReadAppMonitoringResponseBody$ { - /** @deprecated use `ApplicationReadAppMonitoringResponseBody$inboundSchema` instead. */ - export const inboundSchema = - ApplicationReadAppMonitoringResponseBody$inboundSchema; - /** @deprecated use `ApplicationReadAppMonitoringResponseBody$outboundSchema` instead. */ - export const outboundSchema = - ApplicationReadAppMonitoringResponseBody$outboundSchema; - /** @deprecated use `ApplicationReadAppMonitoringResponseBody$Outbound` instead. */ - export type Outbound = ApplicationReadAppMonitoringResponseBody$Outbound; -} - -export function applicationReadAppMonitoringResponseBodyToJSON( - applicationReadAppMonitoringResponseBody: - ApplicationReadAppMonitoringResponseBody, -): string { - return JSON.stringify( - ApplicationReadAppMonitoringResponseBody$outboundSchema.parse( - applicationReadAppMonitoringResponseBody, - ), - ); -} - export function applicationReadAppMonitoringResponseBodyFromJSON( jsonString: string, ): SafeParseResult< @@ -616,46 +275,6 @@ export const ApplicationReadAppMonitoringResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ApplicationReadAppMonitoringResponse$Outbound = - | ApplicationReadAppMonitoringResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ApplicationReadAppMonitoringResponse$outboundSchema: z.ZodType< - ApplicationReadAppMonitoringResponse$Outbound, - z.ZodTypeDef, - ApplicationReadAppMonitoringResponse -> = z.union([ - z.lazy(() => ApplicationReadAppMonitoringResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationReadAppMonitoringResponse$ { - /** @deprecated use `ApplicationReadAppMonitoringResponse$inboundSchema` instead. */ - export const inboundSchema = - ApplicationReadAppMonitoringResponse$inboundSchema; - /** @deprecated use `ApplicationReadAppMonitoringResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationReadAppMonitoringResponse$outboundSchema; - /** @deprecated use `ApplicationReadAppMonitoringResponse$Outbound` instead. */ - export type Outbound = ApplicationReadAppMonitoringResponse$Outbound; -} - -export function applicationReadAppMonitoringResponseToJSON( - applicationReadAppMonitoringResponse: ApplicationReadAppMonitoringResponse, -): string { - return JSON.stringify( - ApplicationReadAppMonitoringResponse$outboundSchema.parse( - applicationReadAppMonitoringResponse, - ), - ); -} - export function applicationReadAppMonitoringResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationreadtraefikconfig.ts b/src/models/operations/applicationreadtraefikconfig.ts index 0887f54..a092278 100644 --- a/src/models/operations/applicationreadtraefikconfig.ts +++ b/src/models/operations/applicationreadtraefikconfig.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ApplicationReadTraefikConfigRequest = { applicationId: string; }; -/** @internal */ -export const ApplicationReadTraefikConfigRequest$inboundSchema: z.ZodType< - ApplicationReadTraefikConfigRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationReadTraefikConfigRequest$Outbound = { applicationId: string; @@ -34,21 +22,6 @@ export const ApplicationReadTraefikConfigRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationReadTraefikConfigRequest$ { - /** @deprecated use `ApplicationReadTraefikConfigRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationReadTraefikConfigRequest$inboundSchema; - /** @deprecated use `ApplicationReadTraefikConfigRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationReadTraefikConfigRequest$outboundSchema; - /** @deprecated use `ApplicationReadTraefikConfigRequest$Outbound` instead. */ - export type Outbound = ApplicationReadTraefikConfigRequest$Outbound; -} - export function applicationReadTraefikConfigRequestToJSON( applicationReadTraefikConfigRequest: ApplicationReadTraefikConfigRequest, ): string { @@ -58,14 +31,3 @@ export function applicationReadTraefikConfigRequestToJSON( ), ); } - -export function applicationReadTraefikConfigRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationReadTraefikConfigRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationReadTraefikConfigRequest' from JSON`, - ); -} diff --git a/src/models/operations/applicationredeploy.ts b/src/models/operations/applicationredeploy.ts index 4263fdd..b534766 100644 --- a/src/models/operations/applicationredeploy.ts +++ b/src/models/operations/applicationredeploy.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ApplicationRedeployRequest = { applicationId: string; @@ -13,17 +10,6 @@ export type ApplicationRedeployRequest = { title?: string | undefined; }; -/** @internal */ -export const ApplicationRedeployRequest$inboundSchema: z.ZodType< - ApplicationRedeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - description: z.string().optional(), - title: z.string().optional(), -}); - /** @internal */ export type ApplicationRedeployRequest$Outbound = { applicationId: string; @@ -42,19 +28,6 @@ export const ApplicationRedeployRequest$outboundSchema: z.ZodType< title: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationRedeployRequest$ { - /** @deprecated use `ApplicationRedeployRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationRedeployRequest$inboundSchema; - /** @deprecated use `ApplicationRedeployRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationRedeployRequest$outboundSchema; - /** @deprecated use `ApplicationRedeployRequest$Outbound` instead. */ - export type Outbound = ApplicationRedeployRequest$Outbound; -} - export function applicationRedeployRequestToJSON( applicationRedeployRequest: ApplicationRedeployRequest, ): string { @@ -62,13 +35,3 @@ export function applicationRedeployRequestToJSON( ApplicationRedeployRequest$outboundSchema.parse(applicationRedeployRequest), ); } - -export function applicationRedeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationRedeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationRedeployRequest' from JSON`, - ); -} diff --git a/src/models/operations/applicationrefreshtoken.ts b/src/models/operations/applicationrefreshtoken.ts index 3a95ca4..62c97be 100644 --- a/src/models/operations/applicationrefreshtoken.ts +++ b/src/models/operations/applicationrefreshtoken.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ApplicationRefreshTokenRequest = { applicationId: string; }; -/** @internal */ -export const ApplicationRefreshTokenRequest$inboundSchema: z.ZodType< - ApplicationRefreshTokenRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationRefreshTokenRequest$Outbound = { applicationId: string; @@ -34,19 +22,6 @@ export const ApplicationRefreshTokenRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationRefreshTokenRequest$ { - /** @deprecated use `ApplicationRefreshTokenRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationRefreshTokenRequest$inboundSchema; - /** @deprecated use `ApplicationRefreshTokenRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationRefreshTokenRequest$outboundSchema; - /** @deprecated use `ApplicationRefreshTokenRequest$Outbound` instead. */ - export type Outbound = ApplicationRefreshTokenRequest$Outbound; -} - export function applicationRefreshTokenRequestToJSON( applicationRefreshTokenRequest: ApplicationRefreshTokenRequest, ): string { @@ -56,13 +31,3 @@ export function applicationRefreshTokenRequestToJSON( ), ); } - -export function applicationRefreshTokenRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationRefreshTokenRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationRefreshTokenRequest' from JSON`, - ); -} diff --git a/src/models/operations/applicationreload.ts b/src/models/operations/applicationreload.ts index dcffff7..9b138d3 100644 --- a/src/models/operations/applicationreload.ts +++ b/src/models/operations/applicationreload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type ApplicationReloadRequest = { export type ApplicationReloadResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationReloadRequest$inboundSchema: z.ZodType< - ApplicationReloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - applicationId: z.string(), -}); - /** @internal */ export type ApplicationReloadRequest$Outbound = { appName: string; @@ -41,19 +31,6 @@ export const ApplicationReloadRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationReloadRequest$ { - /** @deprecated use `ApplicationReloadRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationReloadRequest$inboundSchema; - /** @deprecated use `ApplicationReloadRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationReloadRequest$outboundSchema; - /** @deprecated use `ApplicationReloadRequest$Outbound` instead. */ - export type Outbound = ApplicationReloadRequest$Outbound; -} - export function applicationReloadRequestToJSON( applicationReloadRequest: ApplicationReloadRequest, ): string { @@ -62,16 +39,6 @@ export function applicationReloadRequestToJSON( ); } -export function applicationReloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationReloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationReloadRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationReloadResponse$inboundSchema: z.ZodType< ApplicationReloadResponse, @@ -79,39 +46,6 @@ export const ApplicationReloadResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationReloadResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationReloadResponse$outboundSchema: z.ZodType< - ApplicationReloadResponse$Outbound, - z.ZodTypeDef, - ApplicationReloadResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationReloadResponse$ { - /** @deprecated use `ApplicationReloadResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationReloadResponse$inboundSchema; - /** @deprecated use `ApplicationReloadResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationReloadResponse$outboundSchema; - /** @deprecated use `ApplicationReloadResponse$Outbound` instead. */ - export type Outbound = ApplicationReloadResponse$Outbound; -} - -export function applicationReloadResponseToJSON( - applicationReloadResponse: ApplicationReloadResponse, -): string { - return JSON.stringify( - ApplicationReloadResponse$outboundSchema.parse(applicationReloadResponse), - ); -} - export function applicationReloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationsavebitbucketprovider.ts b/src/models/operations/applicationsavebitbucketprovider.ts index de4d272..58cc00b 100644 --- a/src/models/operations/applicationsavebitbucketprovider.ts +++ b/src/models/operations/applicationsavebitbucketprovider.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -21,22 +21,6 @@ export type ApplicationSaveBitbucketProviderRequest = { export type ApplicationSaveBitbucketProviderResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationSaveBitbucketProviderRequest$inboundSchema: z.ZodType< - ApplicationSaveBitbucketProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - bitbucketBranch: z.nullable(z.string()), - bitbucketBuildPath: z.nullable(z.string()), - bitbucketId: z.nullable(z.string()), - bitbucketOwner: z.nullable(z.string()), - bitbucketRepository: z.nullable(z.string()), - enableSubmodules: z.boolean(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - /** @internal */ export type ApplicationSaveBitbucketProviderRequest$Outbound = { applicationId: string; @@ -65,21 +49,6 @@ export const ApplicationSaveBitbucketProviderRequest$outboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveBitbucketProviderRequest$ { - /** @deprecated use `ApplicationSaveBitbucketProviderRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveBitbucketProviderRequest$inboundSchema; - /** @deprecated use `ApplicationSaveBitbucketProviderRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveBitbucketProviderRequest$outboundSchema; - /** @deprecated use `ApplicationSaveBitbucketProviderRequest$Outbound` instead. */ - export type Outbound = ApplicationSaveBitbucketProviderRequest$Outbound; -} - export function applicationSaveBitbucketProviderRequestToJSON( applicationSaveBitbucketProviderRequest: ApplicationSaveBitbucketProviderRequest, @@ -91,22 +60,6 @@ export function applicationSaveBitbucketProviderRequestToJSON( ); } -export function applicationSaveBitbucketProviderRequestFromJSON( - jsonString: string, -): SafeParseResult< - ApplicationSaveBitbucketProviderRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ApplicationSaveBitbucketProviderRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ApplicationSaveBitbucketProviderRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationSaveBitbucketProviderResponse$inboundSchema: z.ZodType< ApplicationSaveBitbucketProviderResponse, @@ -114,44 +67,6 @@ export const ApplicationSaveBitbucketProviderResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationSaveBitbucketProviderResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationSaveBitbucketProviderResponse$outboundSchema: z.ZodType< - ApplicationSaveBitbucketProviderResponse$Outbound, - z.ZodTypeDef, - ApplicationSaveBitbucketProviderResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveBitbucketProviderResponse$ { - /** @deprecated use `ApplicationSaveBitbucketProviderResponse$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveBitbucketProviderResponse$inboundSchema; - /** @deprecated use `ApplicationSaveBitbucketProviderResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveBitbucketProviderResponse$outboundSchema; - /** @deprecated use `ApplicationSaveBitbucketProviderResponse$Outbound` instead. */ - export type Outbound = ApplicationSaveBitbucketProviderResponse$Outbound; -} - -export function applicationSaveBitbucketProviderResponseToJSON( - applicationSaveBitbucketProviderResponse: - ApplicationSaveBitbucketProviderResponse, -): string { - return JSON.stringify( - ApplicationSaveBitbucketProviderResponse$outboundSchema.parse( - applicationSaveBitbucketProviderResponse, - ), - ); -} - export function applicationSaveBitbucketProviderResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/applicationsavebuildtype.ts b/src/models/operations/applicationsavebuildtype.ts index fcef584..6646ba7 100644 --- a/src/models/operations/applicationsavebuildtype.ts +++ b/src/models/operations/applicationsavebuildtype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,44 +35,10 @@ export type ApplicationSaveBuildTypeRequest = { export type ApplicationSaveBuildTypeResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationSaveBuildTypeBuildType$inboundSchema: z.ZodNativeEnum< - typeof ApplicationSaveBuildTypeBuildType -> = z.nativeEnum(ApplicationSaveBuildTypeBuildType); - /** @internal */ export const ApplicationSaveBuildTypeBuildType$outboundSchema: z.ZodNativeEnum< typeof ApplicationSaveBuildTypeBuildType -> = ApplicationSaveBuildTypeBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveBuildTypeBuildType$ { - /** @deprecated use `ApplicationSaveBuildTypeBuildType$inboundSchema` instead. */ - export const inboundSchema = ApplicationSaveBuildTypeBuildType$inboundSchema; - /** @deprecated use `ApplicationSaveBuildTypeBuildType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveBuildTypeBuildType$outboundSchema; -} - -/** @internal */ -export const ApplicationSaveBuildTypeRequest$inboundSchema: z.ZodType< - ApplicationSaveBuildTypeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - buildType: ApplicationSaveBuildTypeBuildType$inboundSchema, - dockerBuildStage: z.nullable(z.string()), - dockerContextPath: z.nullable(z.string()), - dockerfile: z.nullable(z.string()).optional(), - herokuVersion: z.nullable(z.string()).optional(), - isStaticSpa: z.nullable(z.boolean()).optional(), - publishDirectory: z.nullable(z.string()).optional(), - railpackVersion: z.nullable(z.string()).optional(), -}); +> = z.nativeEnum(ApplicationSaveBuildTypeBuildType); /** @internal */ export type ApplicationSaveBuildTypeRequest$Outbound = { @@ -104,19 +70,6 @@ export const ApplicationSaveBuildTypeRequest$outboundSchema: z.ZodType< railpackVersion: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveBuildTypeRequest$ { - /** @deprecated use `ApplicationSaveBuildTypeRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationSaveBuildTypeRequest$inboundSchema; - /** @deprecated use `ApplicationSaveBuildTypeRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationSaveBuildTypeRequest$outboundSchema; - /** @deprecated use `ApplicationSaveBuildTypeRequest$Outbound` instead. */ - export type Outbound = ApplicationSaveBuildTypeRequest$Outbound; -} - export function applicationSaveBuildTypeRequestToJSON( applicationSaveBuildTypeRequest: ApplicationSaveBuildTypeRequest, ): string { @@ -127,16 +80,6 @@ export function applicationSaveBuildTypeRequestToJSON( ); } -export function applicationSaveBuildTypeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationSaveBuildTypeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationSaveBuildTypeRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationSaveBuildTypeResponse$inboundSchema: z.ZodType< ApplicationSaveBuildTypeResponse, @@ -144,41 +87,6 @@ export const ApplicationSaveBuildTypeResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationSaveBuildTypeResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationSaveBuildTypeResponse$outboundSchema: z.ZodType< - ApplicationSaveBuildTypeResponse$Outbound, - z.ZodTypeDef, - ApplicationSaveBuildTypeResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveBuildTypeResponse$ { - /** @deprecated use `ApplicationSaveBuildTypeResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationSaveBuildTypeResponse$inboundSchema; - /** @deprecated use `ApplicationSaveBuildTypeResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationSaveBuildTypeResponse$outboundSchema; - /** @deprecated use `ApplicationSaveBuildTypeResponse$Outbound` instead. */ - export type Outbound = ApplicationSaveBuildTypeResponse$Outbound; -} - -export function applicationSaveBuildTypeResponseToJSON( - applicationSaveBuildTypeResponse: ApplicationSaveBuildTypeResponse, -): string { - return JSON.stringify( - ApplicationSaveBuildTypeResponse$outboundSchema.parse( - applicationSaveBuildTypeResponse, - ), - ); -} - export function applicationSaveBuildTypeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationsavedockerprovider.ts b/src/models/operations/applicationsavedockerprovider.ts index 304dcfa..1e4b1da 100644 --- a/src/models/operations/applicationsavedockerprovider.ts +++ b/src/models/operations/applicationsavedockerprovider.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -18,19 +18,6 @@ export type ApplicationSaveDockerProviderRequest = { export type ApplicationSaveDockerProviderResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationSaveDockerProviderRequest$inboundSchema: z.ZodType< - ApplicationSaveDockerProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - dockerImage: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - registryUrl: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), -}); - /** @internal */ export type ApplicationSaveDockerProviderRequest$Outbound = { applicationId: string; @@ -53,21 +40,6 @@ export const ApplicationSaveDockerProviderRequest$outboundSchema: z.ZodType< username: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveDockerProviderRequest$ { - /** @deprecated use `ApplicationSaveDockerProviderRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveDockerProviderRequest$inboundSchema; - /** @deprecated use `ApplicationSaveDockerProviderRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveDockerProviderRequest$outboundSchema; - /** @deprecated use `ApplicationSaveDockerProviderRequest$Outbound` instead. */ - export type Outbound = ApplicationSaveDockerProviderRequest$Outbound; -} - export function applicationSaveDockerProviderRequestToJSON( applicationSaveDockerProviderRequest: ApplicationSaveDockerProviderRequest, ): string { @@ -78,17 +50,6 @@ export function applicationSaveDockerProviderRequestToJSON( ); } -export function applicationSaveDockerProviderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationSaveDockerProviderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationSaveDockerProviderRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationSaveDockerProviderResponse$inboundSchema: z.ZodType< ApplicationSaveDockerProviderResponse, @@ -96,43 +57,6 @@ export const ApplicationSaveDockerProviderResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationSaveDockerProviderResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationSaveDockerProviderResponse$outboundSchema: z.ZodType< - ApplicationSaveDockerProviderResponse$Outbound, - z.ZodTypeDef, - ApplicationSaveDockerProviderResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveDockerProviderResponse$ { - /** @deprecated use `ApplicationSaveDockerProviderResponse$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveDockerProviderResponse$inboundSchema; - /** @deprecated use `ApplicationSaveDockerProviderResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveDockerProviderResponse$outboundSchema; - /** @deprecated use `ApplicationSaveDockerProviderResponse$Outbound` instead. */ - export type Outbound = ApplicationSaveDockerProviderResponse$Outbound; -} - -export function applicationSaveDockerProviderResponseToJSON( - applicationSaveDockerProviderResponse: ApplicationSaveDockerProviderResponse, -): string { - return JSON.stringify( - ApplicationSaveDockerProviderResponse$outboundSchema.parse( - applicationSaveDockerProviderResponse, - ), - ); -} - export function applicationSaveDockerProviderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationsaveenvironment.ts b/src/models/operations/applicationsaveenvironment.ts index 75ebade..1e09645 100644 --- a/src/models/operations/applicationsaveenvironment.ts +++ b/src/models/operations/applicationsaveenvironment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -16,17 +16,6 @@ export type ApplicationSaveEnvironmentRequest = { export type ApplicationSaveEnvironmentResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationSaveEnvironmentRequest$inboundSchema: z.ZodType< - ApplicationSaveEnvironmentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - buildArgs: z.nullable(z.string()).optional(), - env: z.nullable(z.string()).optional(), -}); - /** @internal */ export type ApplicationSaveEnvironmentRequest$Outbound = { applicationId: string; @@ -45,20 +34,6 @@ export const ApplicationSaveEnvironmentRequest$outboundSchema: z.ZodType< env: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveEnvironmentRequest$ { - /** @deprecated use `ApplicationSaveEnvironmentRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationSaveEnvironmentRequest$inboundSchema; - /** @deprecated use `ApplicationSaveEnvironmentRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveEnvironmentRequest$outboundSchema; - /** @deprecated use `ApplicationSaveEnvironmentRequest$Outbound` instead. */ - export type Outbound = ApplicationSaveEnvironmentRequest$Outbound; -} - export function applicationSaveEnvironmentRequestToJSON( applicationSaveEnvironmentRequest: ApplicationSaveEnvironmentRequest, ): string { @@ -69,16 +44,6 @@ export function applicationSaveEnvironmentRequestToJSON( ); } -export function applicationSaveEnvironmentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationSaveEnvironmentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationSaveEnvironmentRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationSaveEnvironmentResponse$inboundSchema: z.ZodType< ApplicationSaveEnvironmentResponse, @@ -86,42 +51,6 @@ export const ApplicationSaveEnvironmentResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationSaveEnvironmentResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationSaveEnvironmentResponse$outboundSchema: z.ZodType< - ApplicationSaveEnvironmentResponse$Outbound, - z.ZodTypeDef, - ApplicationSaveEnvironmentResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveEnvironmentResponse$ { - /** @deprecated use `ApplicationSaveEnvironmentResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationSaveEnvironmentResponse$inboundSchema; - /** @deprecated use `ApplicationSaveEnvironmentResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveEnvironmentResponse$outboundSchema; - /** @deprecated use `ApplicationSaveEnvironmentResponse$Outbound` instead. */ - export type Outbound = ApplicationSaveEnvironmentResponse$Outbound; -} - -export function applicationSaveEnvironmentResponseToJSON( - applicationSaveEnvironmentResponse: ApplicationSaveEnvironmentResponse, -): string { - return JSON.stringify( - ApplicationSaveEnvironmentResponse$outboundSchema.parse( - applicationSaveEnvironmentResponse, - ), - ); -} - export function applicationSaveEnvironmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationsavegiteaprovider.ts b/src/models/operations/applicationsavegiteaprovider.ts index 21ecfe4..bdb9c43 100644 --- a/src/models/operations/applicationsavegiteaprovider.ts +++ b/src/models/operations/applicationsavegiteaprovider.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -21,22 +21,6 @@ export type ApplicationSaveGiteaProviderRequest = { export type ApplicationSaveGiteaProviderResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationSaveGiteaProviderRequest$inboundSchema: z.ZodType< - ApplicationSaveGiteaProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - enableSubmodules: z.boolean(), - giteaBranch: z.nullable(z.string()), - giteaBuildPath: z.nullable(z.string()), - giteaId: z.nullable(z.string()), - giteaOwner: z.nullable(z.string()), - giteaRepository: z.nullable(z.string()), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - /** @internal */ export type ApplicationSaveGiteaProviderRequest$Outbound = { applicationId: string; @@ -65,21 +49,6 @@ export const ApplicationSaveGiteaProviderRequest$outboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGiteaProviderRequest$ { - /** @deprecated use `ApplicationSaveGiteaProviderRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveGiteaProviderRequest$inboundSchema; - /** @deprecated use `ApplicationSaveGiteaProviderRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGiteaProviderRequest$outboundSchema; - /** @deprecated use `ApplicationSaveGiteaProviderRequest$Outbound` instead. */ - export type Outbound = ApplicationSaveGiteaProviderRequest$Outbound; -} - export function applicationSaveGiteaProviderRequestToJSON( applicationSaveGiteaProviderRequest: ApplicationSaveGiteaProviderRequest, ): string { @@ -90,17 +59,6 @@ export function applicationSaveGiteaProviderRequestToJSON( ); } -export function applicationSaveGiteaProviderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationSaveGiteaProviderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationSaveGiteaProviderRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationSaveGiteaProviderResponse$inboundSchema: z.ZodType< ApplicationSaveGiteaProviderResponse, @@ -108,43 +66,6 @@ export const ApplicationSaveGiteaProviderResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationSaveGiteaProviderResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationSaveGiteaProviderResponse$outboundSchema: z.ZodType< - ApplicationSaveGiteaProviderResponse$Outbound, - z.ZodTypeDef, - ApplicationSaveGiteaProviderResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGiteaProviderResponse$ { - /** @deprecated use `ApplicationSaveGiteaProviderResponse$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveGiteaProviderResponse$inboundSchema; - /** @deprecated use `ApplicationSaveGiteaProviderResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGiteaProviderResponse$outboundSchema; - /** @deprecated use `ApplicationSaveGiteaProviderResponse$Outbound` instead. */ - export type Outbound = ApplicationSaveGiteaProviderResponse$Outbound; -} - -export function applicationSaveGiteaProviderResponseToJSON( - applicationSaveGiteaProviderResponse: ApplicationSaveGiteaProviderResponse, -): string { - return JSON.stringify( - ApplicationSaveGiteaProviderResponse$outboundSchema.parse( - applicationSaveGiteaProviderResponse, - ), - ); -} - export function applicationSaveGiteaProviderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationsavegithubprovider.ts b/src/models/operations/applicationsavegithubprovider.ts index b3329d8..e199956 100644 --- a/src/models/operations/applicationsavegithubprovider.ts +++ b/src/models/operations/applicationsavegithubprovider.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,47 +32,10 @@ export type ApplicationSaveGithubProviderRequest = { export type ApplicationSaveGithubProviderResponse = models.ErrorT | boolean; /** @internal */ -export const ApplicationSaveGithubProviderTriggerType$inboundSchema: +export const ApplicationSaveGithubProviderTriggerType$outboundSchema: z.ZodNativeEnum = z .nativeEnum(ApplicationSaveGithubProviderTriggerType); -/** @internal */ -export const ApplicationSaveGithubProviderTriggerType$outboundSchema: - z.ZodNativeEnum = - ApplicationSaveGithubProviderTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGithubProviderTriggerType$ { - /** @deprecated use `ApplicationSaveGithubProviderTriggerType$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveGithubProviderTriggerType$inboundSchema; - /** @deprecated use `ApplicationSaveGithubProviderTriggerType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGithubProviderTriggerType$outboundSchema; -} - -/** @internal */ -export const ApplicationSaveGithubProviderRequest$inboundSchema: z.ZodType< - ApplicationSaveGithubProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - branch: z.nullable(z.string()).optional(), - buildPath: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean(), - githubId: z.nullable(z.string()), - owner: z.nullable(z.string()), - repository: z.nullable(z.string()).optional(), - triggerType: ApplicationSaveGithubProviderTriggerType$inboundSchema.default( - "push", - ), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - /** @internal */ export type ApplicationSaveGithubProviderRequest$Outbound = { applicationId: string; @@ -105,21 +68,6 @@ export const ApplicationSaveGithubProviderRequest$outboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGithubProviderRequest$ { - /** @deprecated use `ApplicationSaveGithubProviderRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveGithubProviderRequest$inboundSchema; - /** @deprecated use `ApplicationSaveGithubProviderRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGithubProviderRequest$outboundSchema; - /** @deprecated use `ApplicationSaveGithubProviderRequest$Outbound` instead. */ - export type Outbound = ApplicationSaveGithubProviderRequest$Outbound; -} - export function applicationSaveGithubProviderRequestToJSON( applicationSaveGithubProviderRequest: ApplicationSaveGithubProviderRequest, ): string { @@ -130,17 +78,6 @@ export function applicationSaveGithubProviderRequestToJSON( ); } -export function applicationSaveGithubProviderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationSaveGithubProviderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationSaveGithubProviderRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationSaveGithubProviderResponse$inboundSchema: z.ZodType< ApplicationSaveGithubProviderResponse, @@ -148,43 +85,6 @@ export const ApplicationSaveGithubProviderResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationSaveGithubProviderResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationSaveGithubProviderResponse$outboundSchema: z.ZodType< - ApplicationSaveGithubProviderResponse$Outbound, - z.ZodTypeDef, - ApplicationSaveGithubProviderResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGithubProviderResponse$ { - /** @deprecated use `ApplicationSaveGithubProviderResponse$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveGithubProviderResponse$inboundSchema; - /** @deprecated use `ApplicationSaveGithubProviderResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGithubProviderResponse$outboundSchema; - /** @deprecated use `ApplicationSaveGithubProviderResponse$Outbound` instead. */ - export type Outbound = ApplicationSaveGithubProviderResponse$Outbound; -} - -export function applicationSaveGithubProviderResponseToJSON( - applicationSaveGithubProviderResponse: ApplicationSaveGithubProviderResponse, -): string { - return JSON.stringify( - ApplicationSaveGithubProviderResponse$outboundSchema.parse( - applicationSaveGithubProviderResponse, - ), - ); -} - export function applicationSaveGithubProviderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationsavegitlabprovider.ts b/src/models/operations/applicationsavegitlabprovider.ts index 0464245..fa041d1 100644 --- a/src/models/operations/applicationsavegitlabprovider.ts +++ b/src/models/operations/applicationsavegitlabprovider.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -23,24 +23,6 @@ export type ApplicationSaveGitlabProviderRequest = { export type ApplicationSaveGitlabProviderResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationSaveGitlabProviderRequest$inboundSchema: z.ZodType< - ApplicationSaveGitlabProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - enableSubmodules: z.boolean(), - gitlabBranch: z.nullable(z.string()), - gitlabBuildPath: z.nullable(z.string()), - gitlabId: z.nullable(z.string()), - gitlabOwner: z.nullable(z.string()), - gitlabPathNamespace: z.nullable(z.string()), - gitlabProjectId: z.nullable(z.number()), - gitlabRepository: z.nullable(z.string()), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - /** @internal */ export type ApplicationSaveGitlabProviderRequest$Outbound = { applicationId: string; @@ -73,21 +55,6 @@ export const ApplicationSaveGitlabProviderRequest$outboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGitlabProviderRequest$ { - /** @deprecated use `ApplicationSaveGitlabProviderRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveGitlabProviderRequest$inboundSchema; - /** @deprecated use `ApplicationSaveGitlabProviderRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGitlabProviderRequest$outboundSchema; - /** @deprecated use `ApplicationSaveGitlabProviderRequest$Outbound` instead. */ - export type Outbound = ApplicationSaveGitlabProviderRequest$Outbound; -} - export function applicationSaveGitlabProviderRequestToJSON( applicationSaveGitlabProviderRequest: ApplicationSaveGitlabProviderRequest, ): string { @@ -98,17 +65,6 @@ export function applicationSaveGitlabProviderRequestToJSON( ); } -export function applicationSaveGitlabProviderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationSaveGitlabProviderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationSaveGitlabProviderRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationSaveGitlabProviderResponse$inboundSchema: z.ZodType< ApplicationSaveGitlabProviderResponse, @@ -116,43 +72,6 @@ export const ApplicationSaveGitlabProviderResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationSaveGitlabProviderResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationSaveGitlabProviderResponse$outboundSchema: z.ZodType< - ApplicationSaveGitlabProviderResponse$Outbound, - z.ZodTypeDef, - ApplicationSaveGitlabProviderResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGitlabProviderResponse$ { - /** @deprecated use `ApplicationSaveGitlabProviderResponse$inboundSchema` instead. */ - export const inboundSchema = - ApplicationSaveGitlabProviderResponse$inboundSchema; - /** @deprecated use `ApplicationSaveGitlabProviderResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGitlabProviderResponse$outboundSchema; - /** @deprecated use `ApplicationSaveGitlabProviderResponse$Outbound` instead. */ - export type Outbound = ApplicationSaveGitlabProviderResponse$Outbound; -} - -export function applicationSaveGitlabProviderResponseToJSON( - applicationSaveGitlabProviderResponse: ApplicationSaveGitlabProviderResponse, -): string { - return JSON.stringify( - ApplicationSaveGitlabProviderResponse$outboundSchema.parse( - applicationSaveGitlabProviderResponse, - ), - ); -} - export function applicationSaveGitlabProviderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationsavegitprodiver.ts b/src/models/operations/applicationsavegitprodiver.ts index 10e054a..5fd0840 100644 --- a/src/models/operations/applicationsavegitprodiver.ts +++ b/src/models/operations/applicationsavegitprodiver.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -20,21 +20,6 @@ export type ApplicationSaveGitProdiverRequest = { export type ApplicationSaveGitProdiverResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationSaveGitProdiverRequest$inboundSchema: z.ZodType< - ApplicationSaveGitProdiverRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - customGitBranch: z.nullable(z.string()).optional(), - customGitBuildPath: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - /** @internal */ export type ApplicationSaveGitProdiverRequest$Outbound = { applicationId: string; @@ -61,20 +46,6 @@ export const ApplicationSaveGitProdiverRequest$outboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGitProdiverRequest$ { - /** @deprecated use `ApplicationSaveGitProdiverRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationSaveGitProdiverRequest$inboundSchema; - /** @deprecated use `ApplicationSaveGitProdiverRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGitProdiverRequest$outboundSchema; - /** @deprecated use `ApplicationSaveGitProdiverRequest$Outbound` instead. */ - export type Outbound = ApplicationSaveGitProdiverRequest$Outbound; -} - export function applicationSaveGitProdiverRequestToJSON( applicationSaveGitProdiverRequest: ApplicationSaveGitProdiverRequest, ): string { @@ -85,16 +56,6 @@ export function applicationSaveGitProdiverRequestToJSON( ); } -export function applicationSaveGitProdiverRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationSaveGitProdiverRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationSaveGitProdiverRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationSaveGitProdiverResponse$inboundSchema: z.ZodType< ApplicationSaveGitProdiverResponse, @@ -102,42 +63,6 @@ export const ApplicationSaveGitProdiverResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationSaveGitProdiverResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationSaveGitProdiverResponse$outboundSchema: z.ZodType< - ApplicationSaveGitProdiverResponse$Outbound, - z.ZodTypeDef, - ApplicationSaveGitProdiverResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationSaveGitProdiverResponse$ { - /** @deprecated use `ApplicationSaveGitProdiverResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationSaveGitProdiverResponse$inboundSchema; - /** @deprecated use `ApplicationSaveGitProdiverResponse$outboundSchema` instead. */ - export const outboundSchema = - ApplicationSaveGitProdiverResponse$outboundSchema; - /** @deprecated use `ApplicationSaveGitProdiverResponse$Outbound` instead. */ - export type Outbound = ApplicationSaveGitProdiverResponse$Outbound; -} - -export function applicationSaveGitProdiverResponseToJSON( - applicationSaveGitProdiverResponse: ApplicationSaveGitProdiverResponse, -): string { - return JSON.stringify( - ApplicationSaveGitProdiverResponse$outboundSchema.parse( - applicationSaveGitProdiverResponse, - ), - ); -} - export function applicationSaveGitProdiverResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationstart.ts b/src/models/operations/applicationstart.ts index f30fdea..74264fd 100644 --- a/src/models/operations/applicationstart.ts +++ b/src/models/operations/applicationstart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -569,15 +569,6 @@ export type ApplicationStartResponse = | ApplicationStartResponseBody | models.ErrorT; -/** @internal */ -export const ApplicationStartRequest$inboundSchema: z.ZodType< - ApplicationStartRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationStartRequest$Outbound = { applicationId: string; @@ -592,19 +583,6 @@ export const ApplicationStartRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartRequest$ { - /** @deprecated use `ApplicationStartRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartRequest$inboundSchema; - /** @deprecated use `ApplicationStartRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartRequest$outboundSchema; - /** @deprecated use `ApplicationStartRequest$Outbound` instead. */ - export type Outbound = ApplicationStartRequest$Outbound; -} - export function applicationStartRequestToJSON( applicationStartRequest: ApplicationStartRequest, ): string { @@ -613,38 +591,11 @@ export function applicationStartRequestToJSON( ); } -export function applicationStartRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationStartRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationStartRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationStartApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartApplicationStatus > = z.nativeEnum(ApplicationStartApplicationStatus); -/** @internal */ -export const ApplicationStartApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartApplicationStatus -> = ApplicationStartApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartApplicationStatus$ { - /** @deprecated use `ApplicationStartApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartApplicationStatus$inboundSchema; - /** @deprecated use `ApplicationStartApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartApplicationStatus$outboundSchema; -} - /** @internal */ export const ApplicationStartBitbucket$inboundSchema: z.ZodType< ApplicationStartBitbucket, @@ -658,49 +609,6 @@ export const ApplicationStartBitbucket$inboundSchema: z.ZodType< gitProviderId: z.string(), }); -/** @internal */ -export type ApplicationStartBitbucket$Outbound = { - appPassword: string | null; - bitbucketId: string; - bitbucketUsername: string | null; - bitbucketWorkspaceName: string | null; - gitProviderId: string; -}; - -/** @internal */ -export const ApplicationStartBitbucket$outboundSchema: z.ZodType< - ApplicationStartBitbucket$Outbound, - z.ZodTypeDef, - ApplicationStartBitbucket -> = z.object({ - appPassword: z.nullable(z.string()), - bitbucketId: z.string(), - bitbucketUsername: z.nullable(z.string()), - bitbucketWorkspaceName: z.nullable(z.string()), - gitProviderId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartBitbucket$ { - /** @deprecated use `ApplicationStartBitbucket$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartBitbucket$inboundSchema; - /** @deprecated use `ApplicationStartBitbucket$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartBitbucket$outboundSchema; - /** @deprecated use `ApplicationStartBitbucket$Outbound` instead. */ - export type Outbound = ApplicationStartBitbucket$Outbound; -} - -export function applicationStartBitbucketToJSON( - applicationStartBitbucket: ApplicationStartBitbucket, -): string { - return JSON.stringify( - ApplicationStartBitbucket$outboundSchema.parse(applicationStartBitbucket), - ); -} - export function applicationStartBitbucketFromJSON( jsonString: string, ): SafeParseResult { @@ -716,43 +624,11 @@ export const ApplicationStartBuildType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartBuildType > = z.nativeEnum(ApplicationStartBuildType); -/** @internal */ -export const ApplicationStartBuildType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartBuildType -> = ApplicationStartBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartBuildType$ { - /** @deprecated use `ApplicationStartBuildType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartBuildType$inboundSchema; - /** @deprecated use `ApplicationStartBuildType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartBuildType$outboundSchema; -} - /** @internal */ export const ApplicationStartStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartStatus > = z.nativeEnum(ApplicationStartStatus); -/** @internal */ -export const ApplicationStartStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartStatus -> = ApplicationStartStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartStatus$ { - /** @deprecated use `ApplicationStartStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartStatus$inboundSchema; - /** @deprecated use `ApplicationStartStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartStatus$outboundSchema; -} - /** @internal */ export const ApplicationStartDeployment$inboundSchema: z.ZodType< ApplicationStartDeployment, @@ -780,77 +656,6 @@ export const ApplicationStartDeployment$inboundSchema: z.ZodType< volumeBackupId: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationStartDeployment$Outbound = { - applicationId: string | null; - backupId: string | null; - composeId: string | null; - createdAt: string; - deploymentId: string; - description: string | null; - errorMessage: string | null; - finishedAt: string | null; - isPreviewDeployment: boolean | null; - logPath: string; - pid: string | null; - previewDeploymentId: string | null; - rollbackId: string | null; - scheduleId: string | null; - serverId: string | null; - startedAt: string | null; - status: string | null; - title: string; - volumeBackupId: string | null; -}; - -/** @internal */ -export const ApplicationStartDeployment$outboundSchema: z.ZodType< - ApplicationStartDeployment$Outbound, - z.ZodTypeDef, - ApplicationStartDeployment -> = z.object({ - applicationId: z.nullable(z.string()), - backupId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - createdAt: z.string(), - deploymentId: z.string(), - description: z.nullable(z.string()), - errorMessage: z.nullable(z.string()), - finishedAt: z.nullable(z.string()), - isPreviewDeployment: z.nullable(z.boolean()), - logPath: z.string(), - pid: z.nullable(z.string()), - previewDeploymentId: z.nullable(z.string()), - rollbackId: z.nullable(z.string()), - scheduleId: z.nullable(z.string()), - serverId: z.nullable(z.string()), - startedAt: z.nullable(z.string()), - status: z.nullable(ApplicationStartStatus$outboundSchema), - title: z.string(), - volumeBackupId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartDeployment$ { - /** @deprecated use `ApplicationStartDeployment$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartDeployment$inboundSchema; - /** @deprecated use `ApplicationStartDeployment$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartDeployment$outboundSchema; - /** @deprecated use `ApplicationStartDeployment$Outbound` instead. */ - export type Outbound = ApplicationStartDeployment$Outbound; -} - -export function applicationStartDeploymentToJSON( - applicationStartDeployment: ApplicationStartDeployment, -): string { - return JSON.stringify( - ApplicationStartDeployment$outboundSchema.parse(applicationStartDeployment), - ); -} - export function applicationStartDeploymentFromJSON( jsonString: string, ): SafeParseResult { @@ -866,43 +671,11 @@ export const ApplicationStartCertificateType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartCertificateType > = z.nativeEnum(ApplicationStartCertificateType); -/** @internal */ -export const ApplicationStartCertificateType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartCertificateType -> = ApplicationStartCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartCertificateType$ { - /** @deprecated use `ApplicationStartCertificateType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartCertificateType$inboundSchema; - /** @deprecated use `ApplicationStartCertificateType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationStartDomainType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartDomainType > = z.nativeEnum(ApplicationStartDomainType); -/** @internal */ -export const ApplicationStartDomainType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartDomainType -> = ApplicationStartDomainType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartDomainType$ { - /** @deprecated use `ApplicationStartDomainType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartDomainType$inboundSchema; - /** @deprecated use `ApplicationStartDomainType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartDomainType$outboundSchema; -} - /** @internal */ export const ApplicationStartDomain$inboundSchema: z.ZodType< ApplicationStartDomain, @@ -927,71 +700,6 @@ export const ApplicationStartDomain$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type ApplicationStartDomain$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const ApplicationStartDomain$outboundSchema: z.ZodType< - ApplicationStartDomain$Outbound, - z.ZodTypeDef, - ApplicationStartDomain -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: ApplicationStartCertificateType$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(ApplicationStartDomainType$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartDomain$ { - /** @deprecated use `ApplicationStartDomain$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartDomain$inboundSchema; - /** @deprecated use `ApplicationStartDomain$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartDomain$outboundSchema; - /** @deprecated use `ApplicationStartDomain$Outbound` instead. */ - export type Outbound = ApplicationStartDomain$Outbound; -} - -export function applicationStartDomainToJSON( - applicationStartDomain: ApplicationStartDomain, -): string { - return JSON.stringify( - ApplicationStartDomain$outboundSchema.parse(applicationStartDomain), - ); -} - export function applicationStartDomainFromJSON( jsonString: string, ): SafeParseResult { @@ -1016,51 +724,6 @@ export const ApplicationStartProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ApplicationStartProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ApplicationStartProject$outboundSchema: z.ZodType< - ApplicationStartProject$Outbound, - z.ZodTypeDef, - ApplicationStartProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartProject$ { - /** @deprecated use `ApplicationStartProject$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartProject$inboundSchema; - /** @deprecated use `ApplicationStartProject$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartProject$outboundSchema; - /** @deprecated use `ApplicationStartProject$Outbound` instead. */ - export type Outbound = ApplicationStartProject$Outbound; -} - -export function applicationStartProjectToJSON( - applicationStartProject: ApplicationStartProject, -): string { - return JSON.stringify( - ApplicationStartProject$outboundSchema.parse(applicationStartProject), - ); -} - export function applicationStartProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1086,55 +749,6 @@ export const ApplicationStartEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ApplicationStartEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: ApplicationStartProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const ApplicationStartEnvironment$outboundSchema: z.ZodType< - ApplicationStartEnvironment$Outbound, - z.ZodTypeDef, - ApplicationStartEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => ApplicationStartProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartEnvironment$ { - /** @deprecated use `ApplicationStartEnvironment$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartEnvironment$inboundSchema; - /** @deprecated use `ApplicationStartEnvironment$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartEnvironment$outboundSchema; - /** @deprecated use `ApplicationStartEnvironment$Outbound` instead. */ - export type Outbound = ApplicationStartEnvironment$Outbound; -} - -export function applicationStartEnvironmentToJSON( - applicationStartEnvironment: ApplicationStartEnvironment, -): string { - return JSON.stringify( - ApplicationStartEnvironment$outboundSchema.parse( - applicationStartEnvironment, - ), - ); -} - export function applicationStartEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1163,71 +777,16 @@ export const ApplicationStartGitea$inboundSchema: z.ZodType< refreshToken: z.nullable(z.string()), scopes: z.nullable(z.string()), }); - -/** @internal */ -export type ApplicationStartGitea$Outbound = { - accessToken: string | null; - clientId: string | null; - clientSecret: string | null; - expiresAt: number | null; - gitProviderId: string; - giteaId: string; - giteaUrl: string; - lastAuthenticatedAt: number | null; - redirectUri: string | null; - refreshToken: string | null; - scopes: string | null; -}; - -/** @internal */ -export const ApplicationStartGitea$outboundSchema: z.ZodType< - ApplicationStartGitea$Outbound, - z.ZodTypeDef, - ApplicationStartGitea -> = z.object({ - accessToken: z.nullable(z.string()), - clientId: z.nullable(z.string()), - clientSecret: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - giteaId: z.string(), - giteaUrl: z.string(), - lastAuthenticatedAt: z.nullable(z.number()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - scopes: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartGitea$ { - /** @deprecated use `ApplicationStartGitea$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartGitea$inboundSchema; - /** @deprecated use `ApplicationStartGitea$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartGitea$outboundSchema; - /** @deprecated use `ApplicationStartGitea$Outbound` instead. */ - export type Outbound = ApplicationStartGitea$Outbound; -} - -export function applicationStartGiteaToJSON( - applicationStartGitea: ApplicationStartGitea, -): string { - return JSON.stringify( - ApplicationStartGitea$outboundSchema.parse(applicationStartGitea), - ); -} - -export function applicationStartGiteaFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationStartGitea$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationStartGitea' from JSON`, - ); -} + +export function applicationStartGiteaFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ApplicationStartGitea$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ApplicationStartGitea' from JSON`, + ); +} /** @internal */ export const ApplicationStartGithub$inboundSchema: z.ZodType< @@ -1246,57 +805,6 @@ export const ApplicationStartGithub$inboundSchema: z.ZodType< githubWebhookSecret: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationStartGithub$Outbound = { - gitProviderId: string; - githubAppId: number | null; - githubAppName: string | null; - githubClientId: string | null; - githubClientSecret: string | null; - githubId: string; - githubInstallationId: string | null; - githubPrivateKey: string | null; - githubWebhookSecret: string | null; -}; - -/** @internal */ -export const ApplicationStartGithub$outboundSchema: z.ZodType< - ApplicationStartGithub$Outbound, - z.ZodTypeDef, - ApplicationStartGithub -> = z.object({ - gitProviderId: z.string(), - githubAppId: z.nullable(z.number()), - githubAppName: z.nullable(z.string()), - githubClientId: z.nullable(z.string()), - githubClientSecret: z.nullable(z.string()), - githubId: z.string(), - githubInstallationId: z.nullable(z.string()), - githubPrivateKey: z.nullable(z.string()), - githubWebhookSecret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartGithub$ { - /** @deprecated use `ApplicationStartGithub$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartGithub$inboundSchema; - /** @deprecated use `ApplicationStartGithub$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartGithub$outboundSchema; - /** @deprecated use `ApplicationStartGithub$Outbound` instead. */ - export type Outbound = ApplicationStartGithub$Outbound; -} - -export function applicationStartGithubToJSON( - applicationStartGithub: ApplicationStartGithub, -): string { - return JSON.stringify( - ApplicationStartGithub$outboundSchema.parse(applicationStartGithub), - ); -} - export function applicationStartGithubFromJSON( jsonString: string, ): SafeParseResult { @@ -1325,59 +833,6 @@ export const ApplicationStartGitlab$inboundSchema: z.ZodType< secret: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationStartGitlab$Outbound = { - accessToken: string | null; - applicationId: string | null; - expiresAt: number | null; - gitProviderId: string; - gitlabId: string; - gitlabUrl: string; - groupName: string | null; - redirectUri: string | null; - refreshToken: string | null; - secret: string | null; -}; - -/** @internal */ -export const ApplicationStartGitlab$outboundSchema: z.ZodType< - ApplicationStartGitlab$Outbound, - z.ZodTypeDef, - ApplicationStartGitlab -> = z.object({ - accessToken: z.nullable(z.string()), - applicationId: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - gitlabId: z.string(), - gitlabUrl: z.string(), - groupName: z.nullable(z.string()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - secret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartGitlab$ { - /** @deprecated use `ApplicationStartGitlab$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartGitlab$inboundSchema; - /** @deprecated use `ApplicationStartGitlab$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartGitlab$outboundSchema; - /** @deprecated use `ApplicationStartGitlab$Outbound` instead. */ - export type Outbound = ApplicationStartGitlab$Outbound; -} - -export function applicationStartGitlabToJSON( - applicationStartGitlab: ApplicationStartGitlab, -): string { - return JSON.stringify( - ApplicationStartGitlab$outboundSchema.parse(applicationStartGitlab), - ); -} - export function applicationStartGitlabFromJSON( jsonString: string, ): SafeParseResult { @@ -1409,59 +864,6 @@ export const ApplicationStartHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const ApplicationStartHealthCheckSwarm$outboundSchema: z.ZodType< - ApplicationStartHealthCheckSwarm$Outbound, - z.ZodTypeDef, - ApplicationStartHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartHealthCheckSwarm$ { - /** @deprecated use `ApplicationStartHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartHealthCheckSwarm$inboundSchema; - /** @deprecated use `ApplicationStartHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartHealthCheckSwarm$outboundSchema; - /** @deprecated use `ApplicationStartHealthCheckSwarm$Outbound` instead. */ - export type Outbound = ApplicationStartHealthCheckSwarm$Outbound; -} - -export function applicationStartHealthCheckSwarmToJSON( - applicationStartHealthCheckSwarm: ApplicationStartHealthCheckSwarm, -): string { - return JSON.stringify( - ApplicationStartHealthCheckSwarm$outboundSchema.parse( - applicationStartHealthCheckSwarm, - ), - ); -} - export function applicationStartHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1479,37 +881,6 @@ export const ApplicationStartGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationStartGlobal$Outbound = {}; - -/** @internal */ -export const ApplicationStartGlobal$outboundSchema: z.ZodType< - ApplicationStartGlobal$Outbound, - z.ZodTypeDef, - ApplicationStartGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartGlobal$ { - /** @deprecated use `ApplicationStartGlobal$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartGlobal$inboundSchema; - /** @deprecated use `ApplicationStartGlobal$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartGlobal$outboundSchema; - /** @deprecated use `ApplicationStartGlobal$Outbound` instead. */ - export type Outbound = ApplicationStartGlobal$Outbound; -} - -export function applicationStartGlobalToJSON( - applicationStartGlobal: ApplicationStartGlobal, -): string { - return JSON.stringify( - ApplicationStartGlobal$outboundSchema.parse(applicationStartGlobal), - ); -} - export function applicationStartGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1527,37 +898,6 @@ export const ApplicationStartGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationStartGlobalJob$Outbound = {}; - -/** @internal */ -export const ApplicationStartGlobalJob$outboundSchema: z.ZodType< - ApplicationStartGlobalJob$Outbound, - z.ZodTypeDef, - ApplicationStartGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartGlobalJob$ { - /** @deprecated use `ApplicationStartGlobalJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartGlobalJob$inboundSchema; - /** @deprecated use `ApplicationStartGlobalJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartGlobalJob$outboundSchema; - /** @deprecated use `ApplicationStartGlobalJob$Outbound` instead. */ - export type Outbound = ApplicationStartGlobalJob$Outbound; -} - -export function applicationStartGlobalJobToJSON( - applicationStartGlobalJob: ApplicationStartGlobalJob, -): string { - return JSON.stringify( - ApplicationStartGlobalJob$outboundSchema.parse(applicationStartGlobalJob), - ); -} - export function applicationStartGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1581,45 +921,6 @@ export const ApplicationStartReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const ApplicationStartReplicated$outboundSchema: z.ZodType< - ApplicationStartReplicated$Outbound, - z.ZodTypeDef, - ApplicationStartReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartReplicated$ { - /** @deprecated use `ApplicationStartReplicated$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartReplicated$inboundSchema; - /** @deprecated use `ApplicationStartReplicated$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartReplicated$outboundSchema; - /** @deprecated use `ApplicationStartReplicated$Outbound` instead. */ - export type Outbound = ApplicationStartReplicated$Outbound; -} - -export function applicationStartReplicatedToJSON( - applicationStartReplicated: ApplicationStartReplicated, -): string { - return JSON.stringify( - ApplicationStartReplicated$outboundSchema.parse(applicationStartReplicated), - ); -} - export function applicationStartReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1645,50 +946,6 @@ export const ApplicationStartReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const ApplicationStartReplicatedJob$outboundSchema: z.ZodType< - ApplicationStartReplicatedJob$Outbound, - z.ZodTypeDef, - ApplicationStartReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartReplicatedJob$ { - /** @deprecated use `ApplicationStartReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartReplicatedJob$inboundSchema; - /** @deprecated use `ApplicationStartReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartReplicatedJob$outboundSchema; - /** @deprecated use `ApplicationStartReplicatedJob$Outbound` instead. */ - export type Outbound = ApplicationStartReplicatedJob$Outbound; -} - -export function applicationStartReplicatedJobToJSON( - applicationStartReplicatedJob: ApplicationStartReplicatedJob, -): string { - return JSON.stringify( - ApplicationStartReplicatedJob$outboundSchema.parse( - applicationStartReplicatedJob, - ), - ); -} - export function applicationStartReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1719,56 +976,6 @@ export const ApplicationStartModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartModeSwarm$Outbound = { - Global?: ApplicationStartGlobal$Outbound | undefined; - GlobalJob?: ApplicationStartGlobalJob$Outbound | undefined; - Replicated?: ApplicationStartReplicated$Outbound | undefined; - ReplicatedJob?: ApplicationStartReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const ApplicationStartModeSwarm$outboundSchema: z.ZodType< - ApplicationStartModeSwarm$Outbound, - z.ZodTypeDef, - ApplicationStartModeSwarm -> = z.object({ - global: z.lazy(() => ApplicationStartGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => ApplicationStartGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => ApplicationStartReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => ApplicationStartReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartModeSwarm$ { - /** @deprecated use `ApplicationStartModeSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartModeSwarm$inboundSchema; - /** @deprecated use `ApplicationStartModeSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartModeSwarm$outboundSchema; - /** @deprecated use `ApplicationStartModeSwarm$Outbound` instead. */ - export type Outbound = ApplicationStartModeSwarm$Outbound; -} - -export function applicationStartModeSwarmToJSON( - applicationStartModeSwarm: ApplicationStartModeSwarm, -): string { - return JSON.stringify( - ApplicationStartModeSwarm$outboundSchema.parse(applicationStartModeSwarm), - ); -} - export function applicationStartModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1784,43 +991,11 @@ export const ApplicationStartServiceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartServiceType > = z.nativeEnum(ApplicationStartServiceType); -/** @internal */ -export const ApplicationStartServiceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartServiceType -> = ApplicationStartServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartServiceType$ { - /** @deprecated use `ApplicationStartServiceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartServiceType$inboundSchema; - /** @deprecated use `ApplicationStartServiceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartServiceType$outboundSchema; -} - /** @internal */ export const ApplicationStartType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartType > = z.nativeEnum(ApplicationStartType); -/** @internal */ -export const ApplicationStartType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartType -> = ApplicationStartType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartType$ { - /** @deprecated use `ApplicationStartType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartType$inboundSchema; - /** @deprecated use `ApplicationStartType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartType$outboundSchema; -} - /** @internal */ export const ApplicationStartMount$inboundSchema: z.ZodType< ApplicationStartMount, @@ -1843,79 +1018,16 @@ export const ApplicationStartMount$inboundSchema: z.ZodType< type: ApplicationStartType$inboundSchema, volumeName: z.nullable(z.string()), }); - -/** @internal */ -export type ApplicationStartMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const ApplicationStartMount$outboundSchema: z.ZodType< - ApplicationStartMount$Outbound, - z.ZodTypeDef, - ApplicationStartMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: ApplicationStartServiceType$outboundSchema, - type: ApplicationStartType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartMount$ { - /** @deprecated use `ApplicationStartMount$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartMount$inboundSchema; - /** @deprecated use `ApplicationStartMount$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartMount$outboundSchema; - /** @deprecated use `ApplicationStartMount$Outbound` instead. */ - export type Outbound = ApplicationStartMount$Outbound; -} - -export function applicationStartMountToJSON( - applicationStartMount: ApplicationStartMount, -): string { - return JSON.stringify( - ApplicationStartMount$outboundSchema.parse(applicationStartMount), - ); -} - -export function applicationStartMountFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationStartMount$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationStartMount' from JSON`, - ); -} + +export function applicationStartMountFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ApplicationStartMount$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ApplicationStartMount' from JSON`, + ); +} /** @internal */ export const ApplicationStartDriverOpts$inboundSchema: z.ZodType< @@ -1924,37 +1036,6 @@ export const ApplicationStartDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationStartDriverOpts$Outbound = {}; - -/** @internal */ -export const ApplicationStartDriverOpts$outboundSchema: z.ZodType< - ApplicationStartDriverOpts$Outbound, - z.ZodTypeDef, - ApplicationStartDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartDriverOpts$ { - /** @deprecated use `ApplicationStartDriverOpts$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartDriverOpts$inboundSchema; - /** @deprecated use `ApplicationStartDriverOpts$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartDriverOpts$outboundSchema; - /** @deprecated use `ApplicationStartDriverOpts$Outbound` instead. */ - export type Outbound = ApplicationStartDriverOpts$Outbound; -} - -export function applicationStartDriverOptsToJSON( - applicationStartDriverOpts: ApplicationStartDriverOpts, -): string { - return JSON.stringify( - ApplicationStartDriverOpts$outboundSchema.parse(applicationStartDriverOpts), - ); -} - export function applicationStartDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1982,54 +1063,6 @@ export const ApplicationStartNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: ApplicationStartDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const ApplicationStartNetworkSwarm$outboundSchema: z.ZodType< - ApplicationStartNetworkSwarm$Outbound, - z.ZodTypeDef, - ApplicationStartNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => ApplicationStartDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartNetworkSwarm$ { - /** @deprecated use `ApplicationStartNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartNetworkSwarm$inboundSchema; - /** @deprecated use `ApplicationStartNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartNetworkSwarm$outboundSchema; - /** @deprecated use `ApplicationStartNetworkSwarm$Outbound` instead. */ - export type Outbound = ApplicationStartNetworkSwarm$Outbound; -} - -export function applicationStartNetworkSwarmToJSON( - applicationStartNetworkSwarm: ApplicationStartNetworkSwarm, -): string { - return JSON.stringify( - ApplicationStartNetworkSwarm$outboundSchema.parse( - applicationStartNetworkSwarm, - ), - ); -} - export function applicationStartNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2055,48 +1088,6 @@ export const ApplicationStartPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const ApplicationStartPlatform$outboundSchema: z.ZodType< - ApplicationStartPlatform$Outbound, - z.ZodTypeDef, - ApplicationStartPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartPlatform$ { - /** @deprecated use `ApplicationStartPlatform$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartPlatform$inboundSchema; - /** @deprecated use `ApplicationStartPlatform$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartPlatform$outboundSchema; - /** @deprecated use `ApplicationStartPlatform$Outbound` instead. */ - export type Outbound = ApplicationStartPlatform$Outbound; -} - -export function applicationStartPlatformToJSON( - applicationStartPlatform: ApplicationStartPlatform, -): string { - return JSON.stringify( - ApplicationStartPlatform$outboundSchema.parse(applicationStartPlatform), - ); -} - export function applicationStartPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -2120,45 +1111,6 @@ export const ApplicationStartSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const ApplicationStartSpread$outboundSchema: z.ZodType< - ApplicationStartSpread$Outbound, - z.ZodTypeDef, - ApplicationStartSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartSpread$ { - /** @deprecated use `ApplicationStartSpread$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartSpread$inboundSchema; - /** @deprecated use `ApplicationStartSpread$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartSpread$outboundSchema; - /** @deprecated use `ApplicationStartSpread$Outbound` instead. */ - export type Outbound = ApplicationStartSpread$Outbound; -} - -export function applicationStartSpreadToJSON( - applicationStartSpread: ApplicationStartSpread, -): string { - return JSON.stringify( - ApplicationStartSpread$outboundSchema.parse(applicationStartSpread), - ); -} - export function applicationStartSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -2182,45 +1134,6 @@ export const ApplicationStartPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartPreference$Outbound = { - Spread: ApplicationStartSpread$Outbound; -}; - -/** @internal */ -export const ApplicationStartPreference$outboundSchema: z.ZodType< - ApplicationStartPreference$Outbound, - z.ZodTypeDef, - ApplicationStartPreference -> = z.object({ - spread: z.lazy(() => ApplicationStartSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartPreference$ { - /** @deprecated use `ApplicationStartPreference$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartPreference$inboundSchema; - /** @deprecated use `ApplicationStartPreference$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartPreference$outboundSchema; - /** @deprecated use `ApplicationStartPreference$Outbound` instead. */ - export type Outbound = ApplicationStartPreference$Outbound; -} - -export function applicationStartPreferenceToJSON( - applicationStartPreference: ApplicationStartPreference, -): string { - return JSON.stringify( - ApplicationStartPreference$outboundSchema.parse(applicationStartPreference), - ); -} - export function applicationStartPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -2252,58 +1165,6 @@ export const ApplicationStartPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const ApplicationStartPlacementSwarm$outboundSchema: z.ZodType< - ApplicationStartPlacementSwarm$Outbound, - z.ZodTypeDef, - ApplicationStartPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => ApplicationStartPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => ApplicationStartPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartPlacementSwarm$ { - /** @deprecated use `ApplicationStartPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartPlacementSwarm$inboundSchema; - /** @deprecated use `ApplicationStartPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartPlacementSwarm$outboundSchema; - /** @deprecated use `ApplicationStartPlacementSwarm$Outbound` instead. */ - export type Outbound = ApplicationStartPlacementSwarm$Outbound; -} - -export function applicationStartPlacementSwarmToJSON( - applicationStartPlacementSwarm: ApplicationStartPlacementSwarm, -): string { - return JSON.stringify( - ApplicationStartPlacementSwarm$outboundSchema.parse( - applicationStartPlacementSwarm, - ), - ); -} - export function applicationStartPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2319,43 +1180,11 @@ export const ApplicationStartProtocol$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartProtocol > = z.nativeEnum(ApplicationStartProtocol); -/** @internal */ -export const ApplicationStartProtocol$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartProtocol -> = ApplicationStartProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartProtocol$ { - /** @deprecated use `ApplicationStartProtocol$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartProtocol$inboundSchema; - /** @deprecated use `ApplicationStartProtocol$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartProtocol$outboundSchema; -} - /** @internal */ export const ApplicationStartPublishMode$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartPublishMode > = z.nativeEnum(ApplicationStartPublishMode); -/** @internal */ -export const ApplicationStartPublishMode$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartPublishMode -> = ApplicationStartPublishMode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartPublishMode$ { - /** @deprecated use `ApplicationStartPublishMode$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartPublishMode$inboundSchema; - /** @deprecated use `ApplicationStartPublishMode$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartPublishMode$outboundSchema; -} - /** @internal */ export const ApplicationStartPort$inboundSchema: z.ZodType< ApplicationStartPort, @@ -2370,51 +1199,6 @@ export const ApplicationStartPort$inboundSchema: z.ZodType< targetPort: z.number(), }); -/** @internal */ -export type ApplicationStartPort$Outbound = { - applicationId: string; - portId: string; - protocol: string; - publishMode: string; - publishedPort: number; - targetPort: number; -}; - -/** @internal */ -export const ApplicationStartPort$outboundSchema: z.ZodType< - ApplicationStartPort$Outbound, - z.ZodTypeDef, - ApplicationStartPort -> = z.object({ - applicationId: z.string(), - portId: z.string(), - protocol: ApplicationStartProtocol$outboundSchema, - publishMode: ApplicationStartPublishMode$outboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartPort$ { - /** @deprecated use `ApplicationStartPort$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartPort$inboundSchema; - /** @deprecated use `ApplicationStartPort$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartPort$outboundSchema; - /** @deprecated use `ApplicationStartPort$Outbound` instead. */ - export type Outbound = ApplicationStartPort$Outbound; -} - -export function applicationStartPortToJSON( - applicationStartPort: ApplicationStartPort, -): string { - return JSON.stringify( - ApplicationStartPort$outboundSchema.parse(applicationStartPort), - ); -} - export function applicationStartPortFromJSON( jsonString: string, ): SafeParseResult { @@ -2431,45 +1215,11 @@ export const ApplicationStartPreviewCertificateType$inboundSchema: ApplicationStartPreviewCertificateType, ); -/** @internal */ -export const ApplicationStartPreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - ApplicationStartPreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartPreviewCertificateType$ { - /** @deprecated use `ApplicationStartPreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - ApplicationStartPreviewCertificateType$inboundSchema; - /** @deprecated use `ApplicationStartPreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartPreviewCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationStartPreviewStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartPreviewStatus > = z.nativeEnum(ApplicationStartPreviewStatus); -/** @internal */ -export const ApplicationStartPreviewStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartPreviewStatus -> = ApplicationStartPreviewStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartPreviewStatus$ { - /** @deprecated use `ApplicationStartPreviewStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartPreviewStatus$inboundSchema; - /** @deprecated use `ApplicationStartPreviewStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartPreviewStatus$outboundSchema; -} - /** @internal */ export const ApplicationStartPreviewDeployment$inboundSchema: z.ZodType< ApplicationStartPreviewDeployment, @@ -2491,68 +1241,6 @@ export const ApplicationStartPreviewDeployment$inboundSchema: z.ZodType< pullRequestURL: z.string(), }); -/** @internal */ -export type ApplicationStartPreviewDeployment$Outbound = { - appName: string; - applicationId: string; - branch: string; - createdAt: string; - domainId: string | null; - expiresAt: string | null; - previewDeploymentId: string; - previewStatus: string; - pullRequestCommentId: string; - pullRequestId: string; - pullRequestNumber: string; - pullRequestTitle: string; - pullRequestURL: string; -}; - -/** @internal */ -export const ApplicationStartPreviewDeployment$outboundSchema: z.ZodType< - ApplicationStartPreviewDeployment$Outbound, - z.ZodTypeDef, - ApplicationStartPreviewDeployment -> = z.object({ - appName: z.string(), - applicationId: z.string(), - branch: z.string(), - createdAt: z.string(), - domainId: z.nullable(z.string()), - expiresAt: z.nullable(z.string()), - previewDeploymentId: z.string(), - previewStatus: ApplicationStartPreviewStatus$outboundSchema, - pullRequestCommentId: z.string(), - pullRequestId: z.string(), - pullRequestNumber: z.string(), - pullRequestTitle: z.string(), - pullRequestURL: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartPreviewDeployment$ { - /** @deprecated use `ApplicationStartPreviewDeployment$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartPreviewDeployment$inboundSchema; - /** @deprecated use `ApplicationStartPreviewDeployment$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartPreviewDeployment$outboundSchema; - /** @deprecated use `ApplicationStartPreviewDeployment$Outbound` instead. */ - export type Outbound = ApplicationStartPreviewDeployment$Outbound; -} - -export function applicationStartPreviewDeploymentToJSON( - applicationStartPreviewDeployment: ApplicationStartPreviewDeployment, -): string { - return JSON.stringify( - ApplicationStartPreviewDeployment$outboundSchema.parse( - applicationStartPreviewDeployment, - ), - ); -} - export function applicationStartPreviewDeploymentFromJSON( jsonString: string, ): SafeParseResult { @@ -2578,53 +1266,6 @@ export const ApplicationStartRedirect$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type ApplicationStartRedirect$Outbound = { - applicationId: string; - createdAt: string; - permanent: boolean; - redirectId: string; - regex: string; - replacement: string; - uniqueConfigKey: number; -}; - -/** @internal */ -export const ApplicationStartRedirect$outboundSchema: z.ZodType< - ApplicationStartRedirect$Outbound, - z.ZodTypeDef, - ApplicationStartRedirect -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartRedirect$ { - /** @deprecated use `ApplicationStartRedirect$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartRedirect$inboundSchema; - /** @deprecated use `ApplicationStartRedirect$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartRedirect$outboundSchema; - /** @deprecated use `ApplicationStartRedirect$Outbound` instead. */ - export type Outbound = ApplicationStartRedirect$Outbound; -} - -export function applicationStartRedirectToJSON( - applicationStartRedirect: ApplicationStartRedirect, -): string { - return JSON.stringify( - ApplicationStartRedirect$outboundSchema.parse(applicationStartRedirect), - ); -} - export function applicationStartRedirectFromJSON( jsonString: string, ): SafeParseResult { @@ -2640,22 +1281,6 @@ export const ApplicationStartRegistryType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartRegistryType > = z.nativeEnum(ApplicationStartRegistryType); -/** @internal */ -export const ApplicationStartRegistryType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartRegistryType -> = ApplicationStartRegistryType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartRegistryType$ { - /** @deprecated use `ApplicationStartRegistryType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartRegistryType$inboundSchema; - /** @deprecated use `ApplicationStartRegistryType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartRegistryType$outboundSchema; -} - /** @internal */ export const ApplicationStartRegistry$inboundSchema: z.ZodType< ApplicationStartRegistry, @@ -2673,57 +1298,6 @@ export const ApplicationStartRegistry$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type ApplicationStartRegistry$Outbound = { - createdAt: string; - imagePrefix: string | null; - organizationId: string; - password: string; - registryId: string; - registryName: string; - registryType: string; - registryUrl: string; - username: string; -}; - -/** @internal */ -export const ApplicationStartRegistry$outboundSchema: z.ZodType< - ApplicationStartRegistry$Outbound, - z.ZodTypeDef, - ApplicationStartRegistry -> = z.object({ - createdAt: z.string(), - imagePrefix: z.nullable(z.string()), - organizationId: z.string(), - password: z.string(), - registryId: z.string(), - registryName: z.string(), - registryType: ApplicationStartRegistryType$outboundSchema, - registryUrl: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartRegistry$ { - /** @deprecated use `ApplicationStartRegistry$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartRegistry$inboundSchema; - /** @deprecated use `ApplicationStartRegistry$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartRegistry$outboundSchema; - /** @deprecated use `ApplicationStartRegistry$Outbound` instead. */ - export type Outbound = ApplicationStartRegistry$Outbound; -} - -export function applicationStartRegistryToJSON( - applicationStartRegistry: ApplicationStartRegistry, -): string { - return JSON.stringify( - ApplicationStartRegistry$outboundSchema.parse(applicationStartRegistry), - ); -} - export function applicationStartRegistryFromJSON( jsonString: string, ): SafeParseResult { @@ -2753,57 +1327,6 @@ export const ApplicationStartRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const ApplicationStartRestartPolicySwarm$outboundSchema: z.ZodType< - ApplicationStartRestartPolicySwarm$Outbound, - z.ZodTypeDef, - ApplicationStartRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartRestartPolicySwarm$ { - /** @deprecated use `ApplicationStartRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartRestartPolicySwarm$inboundSchema; - /** @deprecated use `ApplicationStartRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartRestartPolicySwarm$outboundSchema; - /** @deprecated use `ApplicationStartRestartPolicySwarm$Outbound` instead. */ - export type Outbound = ApplicationStartRestartPolicySwarm$Outbound; -} - -export function applicationStartRestartPolicySwarmToJSON( - applicationStartRestartPolicySwarm: ApplicationStartRestartPolicySwarm, -): string { - return JSON.stringify( - ApplicationStartRestartPolicySwarm$outboundSchema.parse( - applicationStartRestartPolicySwarm, - ), - ); -} - export function applicationStartRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2838,64 +1361,6 @@ export const ApplicationStartRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationStartRollbackConfigSwarm$outboundSchema: z.ZodType< - ApplicationStartRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationStartRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartRollbackConfigSwarm$ { - /** @deprecated use `ApplicationStartRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - ApplicationStartRollbackConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationStartRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartRollbackConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationStartRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationStartRollbackConfigSwarm$Outbound; -} - -export function applicationStartRollbackConfigSwarmToJSON( - applicationStartRollbackConfigSwarm: ApplicationStartRollbackConfigSwarm, -): string { - return JSON.stringify( - ApplicationStartRollbackConfigSwarm$outboundSchema.parse( - applicationStartRollbackConfigSwarm, - ), - ); -} - export function applicationStartRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2920,49 +1385,6 @@ export const ApplicationStartSecurity$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type ApplicationStartSecurity$Outbound = { - applicationId: string; - createdAt: string; - password: string; - securityId: string; - username: string; -}; - -/** @internal */ -export const ApplicationStartSecurity$outboundSchema: z.ZodType< - ApplicationStartSecurity$Outbound, - z.ZodTypeDef, - ApplicationStartSecurity -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartSecurity$ { - /** @deprecated use `ApplicationStartSecurity$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartSecurity$inboundSchema; - /** @deprecated use `ApplicationStartSecurity$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartSecurity$outboundSchema; - /** @deprecated use `ApplicationStartSecurity$Outbound` instead. */ - export type Outbound = ApplicationStartSecurity$Outbound; -} - -export function applicationStartSecurityToJSON( - applicationStartSecurity: ApplicationStartSecurity, -): string { - return JSON.stringify( - ApplicationStartSecurity$outboundSchema.parse(applicationStartSecurity), - ); -} - export function applicationStartSecurityFromJSON( jsonString: string, ): SafeParseResult { @@ -2978,23 +1400,6 @@ export const ApplicationStartMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartMetricsConfigEnum > = z.nativeEnum(ApplicationStartMetricsConfigEnum); -/** @internal */ -export const ApplicationStartMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartMetricsConfigEnum -> = ApplicationStartMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartMetricsConfigEnum$ { - /** @deprecated use `ApplicationStartMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartMetricsConfigEnum$inboundSchema; - /** @deprecated use `ApplicationStartMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const ApplicationStartMetricsConfigUnion1$inboundSchema: z.ZodType< ApplicationStartMetricsConfigUnion1, @@ -3007,50 +1412,6 @@ export const ApplicationStartMetricsConfigUnion1$inboundSchema: z.ZodType< ApplicationStartMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type ApplicationStartMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const ApplicationStartMetricsConfigUnion1$outboundSchema: z.ZodType< - ApplicationStartMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - ApplicationStartMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationStartMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartMetricsConfigUnion1$ { - /** @deprecated use `ApplicationStartMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - ApplicationStartMetricsConfigUnion1$inboundSchema; - /** @deprecated use `ApplicationStartMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartMetricsConfigUnion1$outboundSchema; - /** @deprecated use `ApplicationStartMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = ApplicationStartMetricsConfigUnion1$Outbound; -} - -export function applicationStartMetricsConfigUnion1ToJSON( - applicationStartMetricsConfigUnion1: ApplicationStartMetricsConfigUnion1, -): string { - return JSON.stringify( - ApplicationStartMetricsConfigUnion1$outboundSchema.parse( - applicationStartMetricsConfigUnion1, - ), - ); -} - export function applicationStartMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -3078,56 +1439,6 @@ export const ApplicationStartMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type ApplicationStartMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const ApplicationStartMetricsConfigUnion2$outboundSchema: z.ZodType< - ApplicationStartMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - ApplicationStartMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartMetricsConfigUnion2$ { - /** @deprecated use `ApplicationStartMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - ApplicationStartMetricsConfigUnion2$inboundSchema; - /** @deprecated use `ApplicationStartMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartMetricsConfigUnion2$outboundSchema; - /** @deprecated use `ApplicationStartMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = ApplicationStartMetricsConfigUnion2$Outbound; -} - -export function applicationStartMetricsConfigUnion2ToJSON( - applicationStartMetricsConfigUnion2: ApplicationStartMetricsConfigUnion2, -): string { - return JSON.stringify( - ApplicationStartMetricsConfigUnion2$outboundSchema.parse( - applicationStartMetricsConfigUnion2, - ), - ); -} - export function applicationStartMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -3136,86 +1447,19 @@ export function applicationStartMetricsConfigUnion2FromJSON( (x) => ApplicationStartMetricsConfigUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApplicationStartMetricsConfigUnion2' from JSON`, - ); -} - -/** @internal */ -export const ApplicationStartServerStatus$inboundSchema: z.ZodNativeEnum< - typeof ApplicationStartServerStatus -> = z.nativeEnum(ApplicationStartServerStatus); - -/** @internal */ -export const ApplicationStartServerStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartServerStatus -> = ApplicationStartServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartServerStatus$ { - /** @deprecated use `ApplicationStartServerStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartServerStatus$inboundSchema; - /** @deprecated use `ApplicationStartServerStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartServerStatus$outboundSchema; -} - -/** @internal */ -export const ApplicationStartServer$inboundSchema: z.ZodType< - ApplicationStartServer, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationStartMetricsConfigEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: ApplicationStartServerStatus$inboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** @internal */ -export type ApplicationStartServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; + ); +} + +/** @internal */ +export const ApplicationStartServerStatus$inboundSchema: z.ZodNativeEnum< + typeof ApplicationStartServerStatus +> = z.nativeEnum(ApplicationStartServerStatus); /** @internal */ -export const ApplicationStartServer$outboundSchema: z.ZodType< - ApplicationStartServer$Outbound, +export const ApplicationStartServer$inboundSchema: z.ZodType< + ApplicationStartServer, z.ZodTypeDef, - ApplicationStartServer + unknown > = z.object({ appName: z.string(), command: z.string(), @@ -3228,7 +1472,7 @@ export const ApplicationStartServer$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - ApplicationStartMetricsConfigEnum$outboundSchema, + ApplicationStartMetricsConfigEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -3237,32 +1481,11 @@ export const ApplicationStartServer$outboundSchema: z.ZodType< organizationId: z.string(), port: z.number(), serverId: z.string(), - serverStatus: ApplicationStartServerStatus$outboundSchema, + serverStatus: ApplicationStartServerStatus$inboundSchema, sshKeyId: z.nullable(z.string()), username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartServer$ { - /** @deprecated use `ApplicationStartServer$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartServer$inboundSchema; - /** @deprecated use `ApplicationStartServer$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartServer$outboundSchema; - /** @deprecated use `ApplicationStartServer$Outbound` instead. */ - export type Outbound = ApplicationStartServer$Outbound; -} - -export function applicationStartServerToJSON( - applicationStartServer: ApplicationStartServer, -): string { - return JSON.stringify( - ApplicationStartServer$outboundSchema.parse(applicationStartServer), - ); -} - export function applicationStartServerFromJSON( jsonString: string, ): SafeParseResult { @@ -3278,43 +1501,11 @@ export const ApplicationStartSourceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartSourceType > = z.nativeEnum(ApplicationStartSourceType); -/** @internal */ -export const ApplicationStartSourceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartSourceType -> = ApplicationStartSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartSourceType$ { - /** @deprecated use `ApplicationStartSourceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartSourceType$inboundSchema; - /** @deprecated use `ApplicationStartSourceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartSourceType$outboundSchema; -} - /** @internal */ export const ApplicationStartTriggerType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStartTriggerType > = z.nativeEnum(ApplicationStartTriggerType); -/** @internal */ -export const ApplicationStartTriggerType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStartTriggerType -> = ApplicationStartTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartTriggerType$ { - /** @deprecated use `ApplicationStartTriggerType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartTriggerType$inboundSchema; - /** @deprecated use `ApplicationStartTriggerType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartTriggerType$outboundSchema; -} - /** @internal */ export const ApplicationStartUpdateConfigSwarm$inboundSchema: z.ZodType< ApplicationStartUpdateConfigSwarm, @@ -3338,63 +1529,6 @@ export const ApplicationStartUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStartUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationStartUpdateConfigSwarm$outboundSchema: z.ZodType< - ApplicationStartUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationStartUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartUpdateConfigSwarm$ { - /** @deprecated use `ApplicationStartUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartUpdateConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationStartUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStartUpdateConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationStartUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationStartUpdateConfigSwarm$Outbound; -} - -export function applicationStartUpdateConfigSwarmToJSON( - applicationStartUpdateConfigSwarm: ApplicationStartUpdateConfigSwarm, -): string { - return JSON.stringify( - ApplicationStartUpdateConfigSwarm$outboundSchema.parse( - applicationStartUpdateConfigSwarm, - ), - ); -} - export function applicationStartUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -3530,276 +1664,6 @@ export const ApplicationStartResponseBody$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** @internal */ -export type ApplicationStartResponseBody$Outbound = { - appName?: string | undefined; - applicationId?: string | undefined; - applicationStatus?: string | undefined; - autoDeploy?: boolean | null | undefined; - bitbucket: ApplicationStartBitbucket$Outbound | null; - bitbucketBranch?: string | null | undefined; - bitbucketBuildPath?: string | null | undefined; - bitbucketId?: string | null | undefined; - bitbucketOwner?: string | null | undefined; - bitbucketRepository?: string | null | undefined; - branch?: string | null | undefined; - buildArgs?: string | null | undefined; - buildPath?: string | null | undefined; - buildType?: string | undefined; - cleanCache?: boolean | null | undefined; - command?: string | null | undefined; - cpuLimit?: string | null | undefined; - cpuReservation?: string | null | undefined; - createdAt?: string | undefined; - customGitBranch?: string | null | undefined; - customGitBuildPath?: string | null | undefined; - customGitSSHKeyId?: string | null | undefined; - customGitUrl?: string | null | undefined; - deployments: Array; - description?: string | null | undefined; - dockerBuildStage?: string | null | undefined; - dockerContextPath?: string | null | undefined; - dockerImage?: string | null | undefined; - dockerfile?: string | null | undefined; - domains: Array; - dropBuildPath?: string | null | undefined; - enableSubmodules?: boolean | undefined; - enabled?: boolean | null | undefined; - env?: string | null | undefined; - environment: ApplicationStartEnvironment$Outbound; - environmentId: string; - gitea: ApplicationStartGitea$Outbound | null; - giteaBranch?: string | null | undefined; - giteaBuildPath?: string | null | undefined; - giteaId?: string | null | undefined; - giteaOwner?: string | null | undefined; - giteaRepository?: string | null | undefined; - github: ApplicationStartGithub$Outbound | null; - githubId?: string | null | undefined; - gitlab: ApplicationStartGitlab$Outbound | null; - gitlabBranch?: string | null | undefined; - gitlabBuildPath?: string | null | undefined; - gitlabId?: string | null | undefined; - gitlabOwner?: string | null | undefined; - gitlabPathNamespace?: string | null | undefined; - gitlabProjectId?: number | null | undefined; - gitlabRepository?: string | null | undefined; - healthCheckSwarm?: - | ApplicationStartHealthCheckSwarm$Outbound - | null - | undefined; - herokuVersion?: string | null | undefined; - isPreviewDeploymentsActive?: boolean | null | undefined; - isStaticSpa?: boolean | null | undefined; - labelsSwarm?: { [k: string]: string } | null | undefined; - memoryLimit?: string | null | undefined; - memoryReservation?: string | null | undefined; - modeSwarm?: ApplicationStartModeSwarm$Outbound | null | undefined; - mounts: Array; - name: string; - networkSwarm?: - | Array - | null - | undefined; - owner?: string | null | undefined; - password?: string | null | undefined; - placementSwarm?: ApplicationStartPlacementSwarm$Outbound | null | undefined; - ports: Array; - previewBuildArgs?: string | null | undefined; - previewCertificateType?: string | undefined; - previewCustomCertResolver?: string | null | undefined; - previewDeployments: Array; - previewEnv?: string | null | undefined; - previewHttps?: boolean | undefined; - previewLabels?: Array | null | undefined; - previewLimit?: number | null | undefined; - previewPath?: string | null | undefined; - previewPort?: number | null | undefined; - previewRequireCollaboratorPermissions?: boolean | null | undefined; - previewWildcard?: string | null | undefined; - publishDirectory?: string | null | undefined; - railpackVersion?: string | null | undefined; - redirects: Array; - refreshToken?: string | null | undefined; - registry: ApplicationStartRegistry$Outbound | null; - registryId?: string | null | undefined; - registryUrl?: string | null | undefined; - replicas?: number | undefined; - repository?: string | null | undefined; - restartPolicySwarm?: - | ApplicationStartRestartPolicySwarm$Outbound - | null - | undefined; - rollbackActive?: boolean | null | undefined; - rollbackConfigSwarm?: - | ApplicationStartRollbackConfigSwarm$Outbound - | null - | undefined; - security: Array; - server: ApplicationStartServer$Outbound | null; - serverId?: string | null | undefined; - sourceType?: string | undefined; - subtitle?: string | null | undefined; - title?: string | null | undefined; - triggerType?: string | null | undefined; - updateConfigSwarm?: - | ApplicationStartUpdateConfigSwarm$Outbound - | null - | undefined; - username?: string | null | undefined; - watchPaths?: Array | null | undefined; -}; - -/** @internal */ -export const ApplicationStartResponseBody$outboundSchema: z.ZodType< - ApplicationStartResponseBody$Outbound, - z.ZodTypeDef, - ApplicationStartResponseBody -> = z.object({ - appName: z.string().optional(), - applicationId: z.string().optional(), - applicationStatus: ApplicationStartApplicationStatus$outboundSchema - .optional(), - autoDeploy: z.nullable(z.boolean()).optional(), - bitbucket: z.nullable(z.lazy(() => ApplicationStartBitbucket$outboundSchema)), - bitbucketBranch: z.nullable(z.string()).optional(), - bitbucketBuildPath: z.nullable(z.string()).optional(), - bitbucketId: z.nullable(z.string()).optional(), - bitbucketOwner: z.nullable(z.string()).optional(), - bitbucketRepository: z.nullable(z.string()).optional(), - branch: z.nullable(z.string()).optional(), - buildArgs: z.nullable(z.string()).optional(), - buildPath: z.nullable(z.string()).optional(), - buildType: ApplicationStartBuildType$outboundSchema.optional(), - cleanCache: z.nullable(z.boolean()).optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - customGitBranch: z.nullable(z.string()).optional(), - customGitBuildPath: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - deployments: z.array(z.lazy(() => ApplicationStartDeployment$outboundSchema)), - description: z.nullable(z.string()).optional(), - dockerBuildStage: z.nullable(z.string()).optional(), - dockerContextPath: z.nullable(z.string()).optional(), - dockerImage: z.nullable(z.string()).optional(), - dockerfile: z.nullable(z.string()).optional(), - domains: z.array(z.lazy(() => ApplicationStartDomain$outboundSchema)), - dropBuildPath: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean().optional(), - enabled: z.nullable(z.boolean()).optional(), - env: z.nullable(z.string()).optional(), - environment: z.lazy(() => ApplicationStartEnvironment$outboundSchema), - environmentId: z.string(), - gitea: z.nullable(z.lazy(() => ApplicationStartGitea$outboundSchema)), - giteaBranch: z.nullable(z.string()).optional(), - giteaBuildPath: z.nullable(z.string()).optional(), - giteaId: z.nullable(z.string()).optional(), - giteaOwner: z.nullable(z.string()).optional(), - giteaRepository: z.nullable(z.string()).optional(), - github: z.nullable(z.lazy(() => ApplicationStartGithub$outboundSchema)), - githubId: z.nullable(z.string()).optional(), - gitlab: z.nullable(z.lazy(() => ApplicationStartGitlab$outboundSchema)), - gitlabBranch: z.nullable(z.string()).optional(), - gitlabBuildPath: z.nullable(z.string()).optional(), - gitlabId: z.nullable(z.string()).optional(), - gitlabOwner: z.nullable(z.string()).optional(), - gitlabPathNamespace: z.nullable(z.string()).optional(), - gitlabProjectId: z.nullable(z.number()).optional(), - gitlabRepository: z.nullable(z.string()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => ApplicationStartHealthCheckSwarm$outboundSchema), - ).optional(), - herokuVersion: z.nullable(z.string()).optional(), - isPreviewDeploymentsActive: z.nullable(z.boolean()).optional(), - isStaticSpa: z.nullable(z.boolean()).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => ApplicationStartModeSwarm$outboundSchema)) - .optional(), - mounts: z.array(z.lazy(() => ApplicationStartMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => ApplicationStartNetworkSwarm$outboundSchema)), - ).optional(), - owner: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - placementSwarm: z.nullable( - z.lazy(() => ApplicationStartPlacementSwarm$outboundSchema), - ).optional(), - ports: z.array(z.lazy(() => ApplicationStartPort$outboundSchema)), - previewBuildArgs: z.nullable(z.string()).optional(), - previewCertificateType: ApplicationStartPreviewCertificateType$outboundSchema - .optional(), - previewCustomCertResolver: z.nullable(z.string()).optional(), - previewDeployments: z.array( - z.lazy(() => ApplicationStartPreviewDeployment$outboundSchema), - ), - previewEnv: z.nullable(z.string()).optional(), - previewHttps: z.boolean().optional(), - previewLabels: z.nullable(z.array(z.string())).optional(), - previewLimit: z.nullable(z.number()).optional(), - previewPath: z.nullable(z.string()).optional(), - previewPort: z.nullable(z.number()).optional(), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()).optional(), - previewWildcard: z.nullable(z.string()).optional(), - publishDirectory: z.nullable(z.string()).optional(), - railpackVersion: z.nullable(z.string()).optional(), - redirects: z.array(z.lazy(() => ApplicationStartRedirect$outboundSchema)), - refreshToken: z.nullable(z.string()).optional(), - registry: z.nullable(z.lazy(() => ApplicationStartRegistry$outboundSchema)), - registryId: z.nullable(z.string()).optional(), - registryUrl: z.nullable(z.string()).optional(), - replicas: z.number().optional(), - repository: z.nullable(z.string()).optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => ApplicationStartRestartPolicySwarm$outboundSchema), - ).optional(), - rollbackActive: z.nullable(z.boolean()).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => ApplicationStartRollbackConfigSwarm$outboundSchema), - ).optional(), - security: z.array(z.lazy(() => ApplicationStartSecurity$outboundSchema)), - server: z.nullable(z.lazy(() => ApplicationStartServer$outboundSchema)), - serverId: z.nullable(z.string()).optional(), - sourceType: ApplicationStartSourceType$outboundSchema.optional(), - subtitle: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - triggerType: z.nullable(ApplicationStartTriggerType$outboundSchema) - .optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => ApplicationStartUpdateConfigSwarm$outboundSchema), - ).optional(), - username: z.nullable(z.string()).optional(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartResponseBody$ { - /** @deprecated use `ApplicationStartResponseBody$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartResponseBody$inboundSchema; - /** @deprecated use `ApplicationStartResponseBody$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartResponseBody$outboundSchema; - /** @deprecated use `ApplicationStartResponseBody$Outbound` instead. */ - export type Outbound = ApplicationStartResponseBody$Outbound; -} - -export function applicationStartResponseBodyToJSON( - applicationStartResponseBody: ApplicationStartResponseBody, -): string { - return JSON.stringify( - ApplicationStartResponseBody$outboundSchema.parse( - applicationStartResponseBody, - ), - ); -} - export function applicationStartResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -3820,42 +1684,6 @@ export const ApplicationStartResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ApplicationStartResponse$Outbound = - | ApplicationStartResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ApplicationStartResponse$outboundSchema: z.ZodType< - ApplicationStartResponse$Outbound, - z.ZodTypeDef, - ApplicationStartResponse -> = z.union([ - z.lazy(() => ApplicationStartResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStartResponse$ { - /** @deprecated use `ApplicationStartResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationStartResponse$inboundSchema; - /** @deprecated use `ApplicationStartResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationStartResponse$outboundSchema; - /** @deprecated use `ApplicationStartResponse$Outbound` instead. */ - export type Outbound = ApplicationStartResponse$Outbound; -} - -export function applicationStartResponseToJSON( - applicationStartResponse: ApplicationStartResponse, -): string { - return JSON.stringify( - ApplicationStartResponse$outboundSchema.parse(applicationStartResponse), - ); -} - export function applicationStartResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationstop.ts b/src/models/operations/applicationstop.ts index ad58f59..1025fa8 100644 --- a/src/models/operations/applicationstop.ts +++ b/src/models/operations/applicationstop.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -569,15 +569,6 @@ export type ApplicationStopResponse = | ApplicationStopResponseBody | models.ErrorT; -/** @internal */ -export const ApplicationStopRequest$inboundSchema: z.ZodType< - ApplicationStopRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type ApplicationStopRequest$Outbound = { applicationId: string; @@ -592,19 +583,6 @@ export const ApplicationStopRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopRequest$ { - /** @deprecated use `ApplicationStopRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopRequest$inboundSchema; - /** @deprecated use `ApplicationStopRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopRequest$outboundSchema; - /** @deprecated use `ApplicationStopRequest$Outbound` instead. */ - export type Outbound = ApplicationStopRequest$Outbound; -} - export function applicationStopRequestToJSON( applicationStopRequest: ApplicationStopRequest, ): string { @@ -613,37 +591,11 @@ export function applicationStopRequestToJSON( ); } -export function applicationStopRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationStopRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationStopRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationStopApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopApplicationStatus > = z.nativeEnum(ApplicationStopApplicationStatus); -/** @internal */ -export const ApplicationStopApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopApplicationStatus -> = ApplicationStopApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopApplicationStatus$ { - /** @deprecated use `ApplicationStopApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopApplicationStatus$inboundSchema; - /** @deprecated use `ApplicationStopApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopApplicationStatus$outboundSchema; -} - /** @internal */ export const ApplicationStopBitbucket$inboundSchema: z.ZodType< ApplicationStopBitbucket, @@ -657,49 +609,6 @@ export const ApplicationStopBitbucket$inboundSchema: z.ZodType< gitProviderId: z.string(), }); -/** @internal */ -export type ApplicationStopBitbucket$Outbound = { - appPassword: string | null; - bitbucketId: string; - bitbucketUsername: string | null; - bitbucketWorkspaceName: string | null; - gitProviderId: string; -}; - -/** @internal */ -export const ApplicationStopBitbucket$outboundSchema: z.ZodType< - ApplicationStopBitbucket$Outbound, - z.ZodTypeDef, - ApplicationStopBitbucket -> = z.object({ - appPassword: z.nullable(z.string()), - bitbucketId: z.string(), - bitbucketUsername: z.nullable(z.string()), - bitbucketWorkspaceName: z.nullable(z.string()), - gitProviderId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopBitbucket$ { - /** @deprecated use `ApplicationStopBitbucket$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopBitbucket$inboundSchema; - /** @deprecated use `ApplicationStopBitbucket$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopBitbucket$outboundSchema; - /** @deprecated use `ApplicationStopBitbucket$Outbound` instead. */ - export type Outbound = ApplicationStopBitbucket$Outbound; -} - -export function applicationStopBitbucketToJSON( - applicationStopBitbucket: ApplicationStopBitbucket, -): string { - return JSON.stringify( - ApplicationStopBitbucket$outboundSchema.parse(applicationStopBitbucket), - ); -} - export function applicationStopBitbucketFromJSON( jsonString: string, ): SafeParseResult { @@ -715,43 +624,11 @@ export const ApplicationStopBuildType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopBuildType > = z.nativeEnum(ApplicationStopBuildType); -/** @internal */ -export const ApplicationStopBuildType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopBuildType -> = ApplicationStopBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopBuildType$ { - /** @deprecated use `ApplicationStopBuildType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopBuildType$inboundSchema; - /** @deprecated use `ApplicationStopBuildType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopBuildType$outboundSchema; -} - /** @internal */ export const ApplicationStopStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopStatus > = z.nativeEnum(ApplicationStopStatus); -/** @internal */ -export const ApplicationStopStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopStatus -> = ApplicationStopStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopStatus$ { - /** @deprecated use `ApplicationStopStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopStatus$inboundSchema; - /** @deprecated use `ApplicationStopStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopStatus$outboundSchema; -} - /** @internal */ export const ApplicationStopDeployment$inboundSchema: z.ZodType< ApplicationStopDeployment, @@ -779,77 +656,6 @@ export const ApplicationStopDeployment$inboundSchema: z.ZodType< volumeBackupId: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationStopDeployment$Outbound = { - applicationId: string | null; - backupId: string | null; - composeId: string | null; - createdAt: string; - deploymentId: string; - description: string | null; - errorMessage: string | null; - finishedAt: string | null; - isPreviewDeployment: boolean | null; - logPath: string; - pid: string | null; - previewDeploymentId: string | null; - rollbackId: string | null; - scheduleId: string | null; - serverId: string | null; - startedAt: string | null; - status: string | null; - title: string; - volumeBackupId: string | null; -}; - -/** @internal */ -export const ApplicationStopDeployment$outboundSchema: z.ZodType< - ApplicationStopDeployment$Outbound, - z.ZodTypeDef, - ApplicationStopDeployment -> = z.object({ - applicationId: z.nullable(z.string()), - backupId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - createdAt: z.string(), - deploymentId: z.string(), - description: z.nullable(z.string()), - errorMessage: z.nullable(z.string()), - finishedAt: z.nullable(z.string()), - isPreviewDeployment: z.nullable(z.boolean()), - logPath: z.string(), - pid: z.nullable(z.string()), - previewDeploymentId: z.nullable(z.string()), - rollbackId: z.nullable(z.string()), - scheduleId: z.nullable(z.string()), - serverId: z.nullable(z.string()), - startedAt: z.nullable(z.string()), - status: z.nullable(ApplicationStopStatus$outboundSchema), - title: z.string(), - volumeBackupId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopDeployment$ { - /** @deprecated use `ApplicationStopDeployment$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopDeployment$inboundSchema; - /** @deprecated use `ApplicationStopDeployment$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopDeployment$outboundSchema; - /** @deprecated use `ApplicationStopDeployment$Outbound` instead. */ - export type Outbound = ApplicationStopDeployment$Outbound; -} - -export function applicationStopDeploymentToJSON( - applicationStopDeployment: ApplicationStopDeployment, -): string { - return JSON.stringify( - ApplicationStopDeployment$outboundSchema.parse(applicationStopDeployment), - ); -} - export function applicationStopDeploymentFromJSON( jsonString: string, ): SafeParseResult { @@ -865,43 +671,11 @@ export const ApplicationStopCertificateType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopCertificateType > = z.nativeEnum(ApplicationStopCertificateType); -/** @internal */ -export const ApplicationStopCertificateType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopCertificateType -> = ApplicationStopCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopCertificateType$ { - /** @deprecated use `ApplicationStopCertificateType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopCertificateType$inboundSchema; - /** @deprecated use `ApplicationStopCertificateType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationStopDomainType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopDomainType > = z.nativeEnum(ApplicationStopDomainType); -/** @internal */ -export const ApplicationStopDomainType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopDomainType -> = ApplicationStopDomainType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopDomainType$ { - /** @deprecated use `ApplicationStopDomainType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopDomainType$inboundSchema; - /** @deprecated use `ApplicationStopDomainType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopDomainType$outboundSchema; -} - /** @internal */ export const ApplicationStopDomain$inboundSchema: z.ZodType< ApplicationStopDomain, @@ -926,71 +700,6 @@ export const ApplicationStopDomain$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type ApplicationStopDomain$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const ApplicationStopDomain$outboundSchema: z.ZodType< - ApplicationStopDomain$Outbound, - z.ZodTypeDef, - ApplicationStopDomain -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: ApplicationStopCertificateType$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(ApplicationStopDomainType$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopDomain$ { - /** @deprecated use `ApplicationStopDomain$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopDomain$inboundSchema; - /** @deprecated use `ApplicationStopDomain$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopDomain$outboundSchema; - /** @deprecated use `ApplicationStopDomain$Outbound` instead. */ - export type Outbound = ApplicationStopDomain$Outbound; -} - -export function applicationStopDomainToJSON( - applicationStopDomain: ApplicationStopDomain, -): string { - return JSON.stringify( - ApplicationStopDomain$outboundSchema.parse(applicationStopDomain), - ); -} - export function applicationStopDomainFromJSON( jsonString: string, ): SafeParseResult { @@ -1015,51 +724,6 @@ export const ApplicationStopProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ApplicationStopProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ApplicationStopProject$outboundSchema: z.ZodType< - ApplicationStopProject$Outbound, - z.ZodTypeDef, - ApplicationStopProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopProject$ { - /** @deprecated use `ApplicationStopProject$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopProject$inboundSchema; - /** @deprecated use `ApplicationStopProject$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopProject$outboundSchema; - /** @deprecated use `ApplicationStopProject$Outbound` instead. */ - export type Outbound = ApplicationStopProject$Outbound; -} - -export function applicationStopProjectToJSON( - applicationStopProject: ApplicationStopProject, -): string { - return JSON.stringify( - ApplicationStopProject$outboundSchema.parse(applicationStopProject), - ); -} - export function applicationStopProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1085,53 +749,6 @@ export const ApplicationStopEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ApplicationStopEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: ApplicationStopProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const ApplicationStopEnvironment$outboundSchema: z.ZodType< - ApplicationStopEnvironment$Outbound, - z.ZodTypeDef, - ApplicationStopEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => ApplicationStopProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopEnvironment$ { - /** @deprecated use `ApplicationStopEnvironment$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopEnvironment$inboundSchema; - /** @deprecated use `ApplicationStopEnvironment$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopEnvironment$outboundSchema; - /** @deprecated use `ApplicationStopEnvironment$Outbound` instead. */ - export type Outbound = ApplicationStopEnvironment$Outbound; -} - -export function applicationStopEnvironmentToJSON( - applicationStopEnvironment: ApplicationStopEnvironment, -): string { - return JSON.stringify( - ApplicationStopEnvironment$outboundSchema.parse(applicationStopEnvironment), - ); -} - export function applicationStopEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1160,71 +777,16 @@ export const ApplicationStopGitea$inboundSchema: z.ZodType< refreshToken: z.nullable(z.string()), scopes: z.nullable(z.string()), }); - -/** @internal */ -export type ApplicationStopGitea$Outbound = { - accessToken: string | null; - clientId: string | null; - clientSecret: string | null; - expiresAt: number | null; - gitProviderId: string; - giteaId: string; - giteaUrl: string; - lastAuthenticatedAt: number | null; - redirectUri: string | null; - refreshToken: string | null; - scopes: string | null; -}; - -/** @internal */ -export const ApplicationStopGitea$outboundSchema: z.ZodType< - ApplicationStopGitea$Outbound, - z.ZodTypeDef, - ApplicationStopGitea -> = z.object({ - accessToken: z.nullable(z.string()), - clientId: z.nullable(z.string()), - clientSecret: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - giteaId: z.string(), - giteaUrl: z.string(), - lastAuthenticatedAt: z.nullable(z.number()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - scopes: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopGitea$ { - /** @deprecated use `ApplicationStopGitea$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopGitea$inboundSchema; - /** @deprecated use `ApplicationStopGitea$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopGitea$outboundSchema; - /** @deprecated use `ApplicationStopGitea$Outbound` instead. */ - export type Outbound = ApplicationStopGitea$Outbound; -} - -export function applicationStopGiteaToJSON( - applicationStopGitea: ApplicationStopGitea, -): string { - return JSON.stringify( - ApplicationStopGitea$outboundSchema.parse(applicationStopGitea), - ); -} - -export function applicationStopGiteaFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationStopGitea$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationStopGitea' from JSON`, - ); -} + +export function applicationStopGiteaFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ApplicationStopGitea$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ApplicationStopGitea' from JSON`, + ); +} /** @internal */ export const ApplicationStopGithub$inboundSchema: z.ZodType< @@ -1243,57 +805,6 @@ export const ApplicationStopGithub$inboundSchema: z.ZodType< githubWebhookSecret: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationStopGithub$Outbound = { - gitProviderId: string; - githubAppId: number | null; - githubAppName: string | null; - githubClientId: string | null; - githubClientSecret: string | null; - githubId: string; - githubInstallationId: string | null; - githubPrivateKey: string | null; - githubWebhookSecret: string | null; -}; - -/** @internal */ -export const ApplicationStopGithub$outboundSchema: z.ZodType< - ApplicationStopGithub$Outbound, - z.ZodTypeDef, - ApplicationStopGithub -> = z.object({ - gitProviderId: z.string(), - githubAppId: z.nullable(z.number()), - githubAppName: z.nullable(z.string()), - githubClientId: z.nullable(z.string()), - githubClientSecret: z.nullable(z.string()), - githubId: z.string(), - githubInstallationId: z.nullable(z.string()), - githubPrivateKey: z.nullable(z.string()), - githubWebhookSecret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopGithub$ { - /** @deprecated use `ApplicationStopGithub$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopGithub$inboundSchema; - /** @deprecated use `ApplicationStopGithub$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopGithub$outboundSchema; - /** @deprecated use `ApplicationStopGithub$Outbound` instead. */ - export type Outbound = ApplicationStopGithub$Outbound; -} - -export function applicationStopGithubToJSON( - applicationStopGithub: ApplicationStopGithub, -): string { - return JSON.stringify( - ApplicationStopGithub$outboundSchema.parse(applicationStopGithub), - ); -} - export function applicationStopGithubFromJSON( jsonString: string, ): SafeParseResult { @@ -1322,59 +833,6 @@ export const ApplicationStopGitlab$inboundSchema: z.ZodType< secret: z.nullable(z.string()), }); -/** @internal */ -export type ApplicationStopGitlab$Outbound = { - accessToken: string | null; - applicationId: string | null; - expiresAt: number | null; - gitProviderId: string; - gitlabId: string; - gitlabUrl: string; - groupName: string | null; - redirectUri: string | null; - refreshToken: string | null; - secret: string | null; -}; - -/** @internal */ -export const ApplicationStopGitlab$outboundSchema: z.ZodType< - ApplicationStopGitlab$Outbound, - z.ZodTypeDef, - ApplicationStopGitlab -> = z.object({ - accessToken: z.nullable(z.string()), - applicationId: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - gitlabId: z.string(), - gitlabUrl: z.string(), - groupName: z.nullable(z.string()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - secret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopGitlab$ { - /** @deprecated use `ApplicationStopGitlab$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopGitlab$inboundSchema; - /** @deprecated use `ApplicationStopGitlab$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopGitlab$outboundSchema; - /** @deprecated use `ApplicationStopGitlab$Outbound` instead. */ - export type Outbound = ApplicationStopGitlab$Outbound; -} - -export function applicationStopGitlabToJSON( - applicationStopGitlab: ApplicationStopGitlab, -): string { - return JSON.stringify( - ApplicationStopGitlab$outboundSchema.parse(applicationStopGitlab), - ); -} - export function applicationStopGitlabFromJSON( jsonString: string, ): SafeParseResult { @@ -1406,59 +864,6 @@ export const ApplicationStopHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const ApplicationStopHealthCheckSwarm$outboundSchema: z.ZodType< - ApplicationStopHealthCheckSwarm$Outbound, - z.ZodTypeDef, - ApplicationStopHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopHealthCheckSwarm$ { - /** @deprecated use `ApplicationStopHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopHealthCheckSwarm$inboundSchema; - /** @deprecated use `ApplicationStopHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopHealthCheckSwarm$outboundSchema; - /** @deprecated use `ApplicationStopHealthCheckSwarm$Outbound` instead. */ - export type Outbound = ApplicationStopHealthCheckSwarm$Outbound; -} - -export function applicationStopHealthCheckSwarmToJSON( - applicationStopHealthCheckSwarm: ApplicationStopHealthCheckSwarm, -): string { - return JSON.stringify( - ApplicationStopHealthCheckSwarm$outboundSchema.parse( - applicationStopHealthCheckSwarm, - ), - ); -} - export function applicationStopHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1476,37 +881,6 @@ export const ApplicationStopGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationStopGlobal$Outbound = {}; - -/** @internal */ -export const ApplicationStopGlobal$outboundSchema: z.ZodType< - ApplicationStopGlobal$Outbound, - z.ZodTypeDef, - ApplicationStopGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopGlobal$ { - /** @deprecated use `ApplicationStopGlobal$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopGlobal$inboundSchema; - /** @deprecated use `ApplicationStopGlobal$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopGlobal$outboundSchema; - /** @deprecated use `ApplicationStopGlobal$Outbound` instead. */ - export type Outbound = ApplicationStopGlobal$Outbound; -} - -export function applicationStopGlobalToJSON( - applicationStopGlobal: ApplicationStopGlobal, -): string { - return JSON.stringify( - ApplicationStopGlobal$outboundSchema.parse(applicationStopGlobal), - ); -} - export function applicationStopGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1524,37 +898,6 @@ export const ApplicationStopGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationStopGlobalJob$Outbound = {}; - -/** @internal */ -export const ApplicationStopGlobalJob$outboundSchema: z.ZodType< - ApplicationStopGlobalJob$Outbound, - z.ZodTypeDef, - ApplicationStopGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopGlobalJob$ { - /** @deprecated use `ApplicationStopGlobalJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopGlobalJob$inboundSchema; - /** @deprecated use `ApplicationStopGlobalJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopGlobalJob$outboundSchema; - /** @deprecated use `ApplicationStopGlobalJob$Outbound` instead. */ - export type Outbound = ApplicationStopGlobalJob$Outbound; -} - -export function applicationStopGlobalJobToJSON( - applicationStopGlobalJob: ApplicationStopGlobalJob, -): string { - return JSON.stringify( - ApplicationStopGlobalJob$outboundSchema.parse(applicationStopGlobalJob), - ); -} - export function applicationStopGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1578,45 +921,6 @@ export const ApplicationStopReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const ApplicationStopReplicated$outboundSchema: z.ZodType< - ApplicationStopReplicated$Outbound, - z.ZodTypeDef, - ApplicationStopReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopReplicated$ { - /** @deprecated use `ApplicationStopReplicated$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopReplicated$inboundSchema; - /** @deprecated use `ApplicationStopReplicated$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopReplicated$outboundSchema; - /** @deprecated use `ApplicationStopReplicated$Outbound` instead. */ - export type Outbound = ApplicationStopReplicated$Outbound; -} - -export function applicationStopReplicatedToJSON( - applicationStopReplicated: ApplicationStopReplicated, -): string { - return JSON.stringify( - ApplicationStopReplicated$outboundSchema.parse(applicationStopReplicated), - ); -} - export function applicationStopReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1642,50 +946,6 @@ export const ApplicationStopReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const ApplicationStopReplicatedJob$outboundSchema: z.ZodType< - ApplicationStopReplicatedJob$Outbound, - z.ZodTypeDef, - ApplicationStopReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopReplicatedJob$ { - /** @deprecated use `ApplicationStopReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopReplicatedJob$inboundSchema; - /** @deprecated use `ApplicationStopReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopReplicatedJob$outboundSchema; - /** @deprecated use `ApplicationStopReplicatedJob$Outbound` instead. */ - export type Outbound = ApplicationStopReplicatedJob$Outbound; -} - -export function applicationStopReplicatedJobToJSON( - applicationStopReplicatedJob: ApplicationStopReplicatedJob, -): string { - return JSON.stringify( - ApplicationStopReplicatedJob$outboundSchema.parse( - applicationStopReplicatedJob, - ), - ); -} - export function applicationStopReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1716,55 +976,6 @@ export const ApplicationStopModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopModeSwarm$Outbound = { - Global?: ApplicationStopGlobal$Outbound | undefined; - GlobalJob?: ApplicationStopGlobalJob$Outbound | undefined; - Replicated?: ApplicationStopReplicated$Outbound | undefined; - ReplicatedJob?: ApplicationStopReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const ApplicationStopModeSwarm$outboundSchema: z.ZodType< - ApplicationStopModeSwarm$Outbound, - z.ZodTypeDef, - ApplicationStopModeSwarm -> = z.object({ - global: z.lazy(() => ApplicationStopGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => ApplicationStopGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => ApplicationStopReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => ApplicationStopReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopModeSwarm$ { - /** @deprecated use `ApplicationStopModeSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopModeSwarm$inboundSchema; - /** @deprecated use `ApplicationStopModeSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopModeSwarm$outboundSchema; - /** @deprecated use `ApplicationStopModeSwarm$Outbound` instead. */ - export type Outbound = ApplicationStopModeSwarm$Outbound; -} - -export function applicationStopModeSwarmToJSON( - applicationStopModeSwarm: ApplicationStopModeSwarm, -): string { - return JSON.stringify( - ApplicationStopModeSwarm$outboundSchema.parse(applicationStopModeSwarm), - ); -} - export function applicationStopModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1780,43 +991,11 @@ export const ApplicationStopServiceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopServiceType > = z.nativeEnum(ApplicationStopServiceType); -/** @internal */ -export const ApplicationStopServiceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopServiceType -> = ApplicationStopServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopServiceType$ { - /** @deprecated use `ApplicationStopServiceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopServiceType$inboundSchema; - /** @deprecated use `ApplicationStopServiceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopServiceType$outboundSchema; -} - /** @internal */ export const ApplicationStopType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopType > = z.nativeEnum(ApplicationStopType); -/** @internal */ -export const ApplicationStopType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopType -> = ApplicationStopType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopType$ { - /** @deprecated use `ApplicationStopType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopType$inboundSchema; - /** @deprecated use `ApplicationStopType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopType$outboundSchema; -} - /** @internal */ export const ApplicationStopMount$inboundSchema: z.ZodType< ApplicationStopMount, @@ -1839,79 +1018,16 @@ export const ApplicationStopMount$inboundSchema: z.ZodType< type: ApplicationStopType$inboundSchema, volumeName: z.nullable(z.string()), }); - -/** @internal */ -export type ApplicationStopMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const ApplicationStopMount$outboundSchema: z.ZodType< - ApplicationStopMount$Outbound, - z.ZodTypeDef, - ApplicationStopMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: ApplicationStopServiceType$outboundSchema, - type: ApplicationStopType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopMount$ { - /** @deprecated use `ApplicationStopMount$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopMount$inboundSchema; - /** @deprecated use `ApplicationStopMount$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopMount$outboundSchema; - /** @deprecated use `ApplicationStopMount$Outbound` instead. */ - export type Outbound = ApplicationStopMount$Outbound; -} - -export function applicationStopMountToJSON( - applicationStopMount: ApplicationStopMount, -): string { - return JSON.stringify( - ApplicationStopMount$outboundSchema.parse(applicationStopMount), - ); -} - -export function applicationStopMountFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationStopMount$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationStopMount' from JSON`, - ); -} + +export function applicationStopMountFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ApplicationStopMount$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ApplicationStopMount' from JSON`, + ); +} /** @internal */ export const ApplicationStopDriverOpts$inboundSchema: z.ZodType< @@ -1920,37 +1036,6 @@ export const ApplicationStopDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ApplicationStopDriverOpts$Outbound = {}; - -/** @internal */ -export const ApplicationStopDriverOpts$outboundSchema: z.ZodType< - ApplicationStopDriverOpts$Outbound, - z.ZodTypeDef, - ApplicationStopDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopDriverOpts$ { - /** @deprecated use `ApplicationStopDriverOpts$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopDriverOpts$inboundSchema; - /** @deprecated use `ApplicationStopDriverOpts$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopDriverOpts$outboundSchema; - /** @deprecated use `ApplicationStopDriverOpts$Outbound` instead. */ - export type Outbound = ApplicationStopDriverOpts$Outbound; -} - -export function applicationStopDriverOptsToJSON( - applicationStopDriverOpts: ApplicationStopDriverOpts, -): string { - return JSON.stringify( - ApplicationStopDriverOpts$outboundSchema.parse(applicationStopDriverOpts), - ); -} - export function applicationStopDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1978,53 +1063,6 @@ export const ApplicationStopNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: ApplicationStopDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const ApplicationStopNetworkSwarm$outboundSchema: z.ZodType< - ApplicationStopNetworkSwarm$Outbound, - z.ZodTypeDef, - ApplicationStopNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => ApplicationStopDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopNetworkSwarm$ { - /** @deprecated use `ApplicationStopNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopNetworkSwarm$inboundSchema; - /** @deprecated use `ApplicationStopNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopNetworkSwarm$outboundSchema; - /** @deprecated use `ApplicationStopNetworkSwarm$Outbound` instead. */ - export type Outbound = ApplicationStopNetworkSwarm$Outbound; -} - -export function applicationStopNetworkSwarmToJSON( - applicationStopNetworkSwarm: ApplicationStopNetworkSwarm, -): string { - return JSON.stringify( - ApplicationStopNetworkSwarm$outboundSchema.parse( - applicationStopNetworkSwarm, - ), - ); -} - export function applicationStopNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2050,48 +1088,6 @@ export const ApplicationStopPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const ApplicationStopPlatform$outboundSchema: z.ZodType< - ApplicationStopPlatform$Outbound, - z.ZodTypeDef, - ApplicationStopPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopPlatform$ { - /** @deprecated use `ApplicationStopPlatform$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopPlatform$inboundSchema; - /** @deprecated use `ApplicationStopPlatform$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopPlatform$outboundSchema; - /** @deprecated use `ApplicationStopPlatform$Outbound` instead. */ - export type Outbound = ApplicationStopPlatform$Outbound; -} - -export function applicationStopPlatformToJSON( - applicationStopPlatform: ApplicationStopPlatform, -): string { - return JSON.stringify( - ApplicationStopPlatform$outboundSchema.parse(applicationStopPlatform), - ); -} - export function applicationStopPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -2115,45 +1111,6 @@ export const ApplicationStopSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const ApplicationStopSpread$outboundSchema: z.ZodType< - ApplicationStopSpread$Outbound, - z.ZodTypeDef, - ApplicationStopSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopSpread$ { - /** @deprecated use `ApplicationStopSpread$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopSpread$inboundSchema; - /** @deprecated use `ApplicationStopSpread$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopSpread$outboundSchema; - /** @deprecated use `ApplicationStopSpread$Outbound` instead. */ - export type Outbound = ApplicationStopSpread$Outbound; -} - -export function applicationStopSpreadToJSON( - applicationStopSpread: ApplicationStopSpread, -): string { - return JSON.stringify( - ApplicationStopSpread$outboundSchema.parse(applicationStopSpread), - ); -} - export function applicationStopSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -2177,45 +1134,6 @@ export const ApplicationStopPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopPreference$Outbound = { - Spread: ApplicationStopSpread$Outbound; -}; - -/** @internal */ -export const ApplicationStopPreference$outboundSchema: z.ZodType< - ApplicationStopPreference$Outbound, - z.ZodTypeDef, - ApplicationStopPreference -> = z.object({ - spread: z.lazy(() => ApplicationStopSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopPreference$ { - /** @deprecated use `ApplicationStopPreference$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopPreference$inboundSchema; - /** @deprecated use `ApplicationStopPreference$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopPreference$outboundSchema; - /** @deprecated use `ApplicationStopPreference$Outbound` instead. */ - export type Outbound = ApplicationStopPreference$Outbound; -} - -export function applicationStopPreferenceToJSON( - applicationStopPreference: ApplicationStopPreference, -): string { - return JSON.stringify( - ApplicationStopPreference$outboundSchema.parse(applicationStopPreference), - ); -} - export function applicationStopPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -2247,58 +1165,6 @@ export const ApplicationStopPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const ApplicationStopPlacementSwarm$outboundSchema: z.ZodType< - ApplicationStopPlacementSwarm$Outbound, - z.ZodTypeDef, - ApplicationStopPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => ApplicationStopPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => ApplicationStopPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopPlacementSwarm$ { - /** @deprecated use `ApplicationStopPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopPlacementSwarm$inboundSchema; - /** @deprecated use `ApplicationStopPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopPlacementSwarm$outboundSchema; - /** @deprecated use `ApplicationStopPlacementSwarm$Outbound` instead. */ - export type Outbound = ApplicationStopPlacementSwarm$Outbound; -} - -export function applicationStopPlacementSwarmToJSON( - applicationStopPlacementSwarm: ApplicationStopPlacementSwarm, -): string { - return JSON.stringify( - ApplicationStopPlacementSwarm$outboundSchema.parse( - applicationStopPlacementSwarm, - ), - ); -} - export function applicationStopPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2314,43 +1180,11 @@ export const ApplicationStopProtocol$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopProtocol > = z.nativeEnum(ApplicationStopProtocol); -/** @internal */ -export const ApplicationStopProtocol$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopProtocol -> = ApplicationStopProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopProtocol$ { - /** @deprecated use `ApplicationStopProtocol$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopProtocol$inboundSchema; - /** @deprecated use `ApplicationStopProtocol$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopProtocol$outboundSchema; -} - /** @internal */ export const ApplicationStopPublishMode$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopPublishMode > = z.nativeEnum(ApplicationStopPublishMode); -/** @internal */ -export const ApplicationStopPublishMode$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopPublishMode -> = ApplicationStopPublishMode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopPublishMode$ { - /** @deprecated use `ApplicationStopPublishMode$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopPublishMode$inboundSchema; - /** @deprecated use `ApplicationStopPublishMode$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopPublishMode$outboundSchema; -} - /** @internal */ export const ApplicationStopPort$inboundSchema: z.ZodType< ApplicationStopPort, @@ -2365,51 +1199,6 @@ export const ApplicationStopPort$inboundSchema: z.ZodType< targetPort: z.number(), }); -/** @internal */ -export type ApplicationStopPort$Outbound = { - applicationId: string; - portId: string; - protocol: string; - publishMode: string; - publishedPort: number; - targetPort: number; -}; - -/** @internal */ -export const ApplicationStopPort$outboundSchema: z.ZodType< - ApplicationStopPort$Outbound, - z.ZodTypeDef, - ApplicationStopPort -> = z.object({ - applicationId: z.string(), - portId: z.string(), - protocol: ApplicationStopProtocol$outboundSchema, - publishMode: ApplicationStopPublishMode$outboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopPort$ { - /** @deprecated use `ApplicationStopPort$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopPort$inboundSchema; - /** @deprecated use `ApplicationStopPort$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopPort$outboundSchema; - /** @deprecated use `ApplicationStopPort$Outbound` instead. */ - export type Outbound = ApplicationStopPort$Outbound; -} - -export function applicationStopPortToJSON( - applicationStopPort: ApplicationStopPort, -): string { - return JSON.stringify( - ApplicationStopPort$outboundSchema.parse(applicationStopPort), - ); -} - export function applicationStopPortFromJSON( jsonString: string, ): SafeParseResult { @@ -2426,45 +1215,11 @@ export const ApplicationStopPreviewCertificateType$inboundSchema: ApplicationStopPreviewCertificateType, ); -/** @internal */ -export const ApplicationStopPreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - ApplicationStopPreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopPreviewCertificateType$ { - /** @deprecated use `ApplicationStopPreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - ApplicationStopPreviewCertificateType$inboundSchema; - /** @deprecated use `ApplicationStopPreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStopPreviewCertificateType$outboundSchema; -} - /** @internal */ export const ApplicationStopPreviewStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopPreviewStatus > = z.nativeEnum(ApplicationStopPreviewStatus); -/** @internal */ -export const ApplicationStopPreviewStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopPreviewStatus -> = ApplicationStopPreviewStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopPreviewStatus$ { - /** @deprecated use `ApplicationStopPreviewStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopPreviewStatus$inboundSchema; - /** @deprecated use `ApplicationStopPreviewStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopPreviewStatus$outboundSchema; -} - /** @internal */ export const ApplicationStopPreviewDeployment$inboundSchema: z.ZodType< ApplicationStopPreviewDeployment, @@ -2486,67 +1241,6 @@ export const ApplicationStopPreviewDeployment$inboundSchema: z.ZodType< pullRequestURL: z.string(), }); -/** @internal */ -export type ApplicationStopPreviewDeployment$Outbound = { - appName: string; - applicationId: string; - branch: string; - createdAt: string; - domainId: string | null; - expiresAt: string | null; - previewDeploymentId: string; - previewStatus: string; - pullRequestCommentId: string; - pullRequestId: string; - pullRequestNumber: string; - pullRequestTitle: string; - pullRequestURL: string; -}; - -/** @internal */ -export const ApplicationStopPreviewDeployment$outboundSchema: z.ZodType< - ApplicationStopPreviewDeployment$Outbound, - z.ZodTypeDef, - ApplicationStopPreviewDeployment -> = z.object({ - appName: z.string(), - applicationId: z.string(), - branch: z.string(), - createdAt: z.string(), - domainId: z.nullable(z.string()), - expiresAt: z.nullable(z.string()), - previewDeploymentId: z.string(), - previewStatus: ApplicationStopPreviewStatus$outboundSchema, - pullRequestCommentId: z.string(), - pullRequestId: z.string(), - pullRequestNumber: z.string(), - pullRequestTitle: z.string(), - pullRequestURL: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopPreviewDeployment$ { - /** @deprecated use `ApplicationStopPreviewDeployment$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopPreviewDeployment$inboundSchema; - /** @deprecated use `ApplicationStopPreviewDeployment$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopPreviewDeployment$outboundSchema; - /** @deprecated use `ApplicationStopPreviewDeployment$Outbound` instead. */ - export type Outbound = ApplicationStopPreviewDeployment$Outbound; -} - -export function applicationStopPreviewDeploymentToJSON( - applicationStopPreviewDeployment: ApplicationStopPreviewDeployment, -): string { - return JSON.stringify( - ApplicationStopPreviewDeployment$outboundSchema.parse( - applicationStopPreviewDeployment, - ), - ); -} - export function applicationStopPreviewDeploymentFromJSON( jsonString: string, ): SafeParseResult { @@ -2572,53 +1266,6 @@ export const ApplicationStopRedirect$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type ApplicationStopRedirect$Outbound = { - applicationId: string; - createdAt: string; - permanent: boolean; - redirectId: string; - regex: string; - replacement: string; - uniqueConfigKey: number; -}; - -/** @internal */ -export const ApplicationStopRedirect$outboundSchema: z.ZodType< - ApplicationStopRedirect$Outbound, - z.ZodTypeDef, - ApplicationStopRedirect -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopRedirect$ { - /** @deprecated use `ApplicationStopRedirect$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopRedirect$inboundSchema; - /** @deprecated use `ApplicationStopRedirect$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopRedirect$outboundSchema; - /** @deprecated use `ApplicationStopRedirect$Outbound` instead. */ - export type Outbound = ApplicationStopRedirect$Outbound; -} - -export function applicationStopRedirectToJSON( - applicationStopRedirect: ApplicationStopRedirect, -): string { - return JSON.stringify( - ApplicationStopRedirect$outboundSchema.parse(applicationStopRedirect), - ); -} - export function applicationStopRedirectFromJSON( jsonString: string, ): SafeParseResult { @@ -2634,22 +1281,6 @@ export const ApplicationStopRegistryType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopRegistryType > = z.nativeEnum(ApplicationStopRegistryType); -/** @internal */ -export const ApplicationStopRegistryType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopRegistryType -> = ApplicationStopRegistryType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopRegistryType$ { - /** @deprecated use `ApplicationStopRegistryType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopRegistryType$inboundSchema; - /** @deprecated use `ApplicationStopRegistryType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopRegistryType$outboundSchema; -} - /** @internal */ export const ApplicationStopRegistry$inboundSchema: z.ZodType< ApplicationStopRegistry, @@ -2667,57 +1298,6 @@ export const ApplicationStopRegistry$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type ApplicationStopRegistry$Outbound = { - createdAt: string; - imagePrefix: string | null; - organizationId: string; - password: string; - registryId: string; - registryName: string; - registryType: string; - registryUrl: string; - username: string; -}; - -/** @internal */ -export const ApplicationStopRegistry$outboundSchema: z.ZodType< - ApplicationStopRegistry$Outbound, - z.ZodTypeDef, - ApplicationStopRegistry -> = z.object({ - createdAt: z.string(), - imagePrefix: z.nullable(z.string()), - organizationId: z.string(), - password: z.string(), - registryId: z.string(), - registryName: z.string(), - registryType: ApplicationStopRegistryType$outboundSchema, - registryUrl: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopRegistry$ { - /** @deprecated use `ApplicationStopRegistry$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopRegistry$inboundSchema; - /** @deprecated use `ApplicationStopRegistry$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopRegistry$outboundSchema; - /** @deprecated use `ApplicationStopRegistry$Outbound` instead. */ - export type Outbound = ApplicationStopRegistry$Outbound; -} - -export function applicationStopRegistryToJSON( - applicationStopRegistry: ApplicationStopRegistry, -): string { - return JSON.stringify( - ApplicationStopRegistry$outboundSchema.parse(applicationStopRegistry), - ); -} - export function applicationStopRegistryFromJSON( jsonString: string, ): SafeParseResult { @@ -2747,57 +1327,6 @@ export const ApplicationStopRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const ApplicationStopRestartPolicySwarm$outboundSchema: z.ZodType< - ApplicationStopRestartPolicySwarm$Outbound, - z.ZodTypeDef, - ApplicationStopRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopRestartPolicySwarm$ { - /** @deprecated use `ApplicationStopRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopRestartPolicySwarm$inboundSchema; - /** @deprecated use `ApplicationStopRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStopRestartPolicySwarm$outboundSchema; - /** @deprecated use `ApplicationStopRestartPolicySwarm$Outbound` instead. */ - export type Outbound = ApplicationStopRestartPolicySwarm$Outbound; -} - -export function applicationStopRestartPolicySwarmToJSON( - applicationStopRestartPolicySwarm: ApplicationStopRestartPolicySwarm, -): string { - return JSON.stringify( - ApplicationStopRestartPolicySwarm$outboundSchema.parse( - applicationStopRestartPolicySwarm, - ), - ); -} - export function applicationStopRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2831,63 +1360,6 @@ export const ApplicationStopRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationStopRollbackConfigSwarm$outboundSchema: z.ZodType< - ApplicationStopRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationStopRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopRollbackConfigSwarm$ { - /** @deprecated use `ApplicationStopRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopRollbackConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationStopRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStopRollbackConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationStopRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationStopRollbackConfigSwarm$Outbound; -} - -export function applicationStopRollbackConfigSwarmToJSON( - applicationStopRollbackConfigSwarm: ApplicationStopRollbackConfigSwarm, -): string { - return JSON.stringify( - ApplicationStopRollbackConfigSwarm$outboundSchema.parse( - applicationStopRollbackConfigSwarm, - ), - ); -} - export function applicationStopRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2912,49 +1384,6 @@ export const ApplicationStopSecurity$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type ApplicationStopSecurity$Outbound = { - applicationId: string; - createdAt: string; - password: string; - securityId: string; - username: string; -}; - -/** @internal */ -export const ApplicationStopSecurity$outboundSchema: z.ZodType< - ApplicationStopSecurity$Outbound, - z.ZodTypeDef, - ApplicationStopSecurity -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopSecurity$ { - /** @deprecated use `ApplicationStopSecurity$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopSecurity$inboundSchema; - /** @deprecated use `ApplicationStopSecurity$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopSecurity$outboundSchema; - /** @deprecated use `ApplicationStopSecurity$Outbound` instead. */ - export type Outbound = ApplicationStopSecurity$Outbound; -} - -export function applicationStopSecurityToJSON( - applicationStopSecurity: ApplicationStopSecurity, -): string { - return JSON.stringify( - ApplicationStopSecurity$outboundSchema.parse(applicationStopSecurity), - ); -} - export function applicationStopSecurityFromJSON( jsonString: string, ): SafeParseResult { @@ -2970,22 +1399,6 @@ export const ApplicationStopMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopMetricsConfigEnum > = z.nativeEnum(ApplicationStopMetricsConfigEnum); -/** @internal */ -export const ApplicationStopMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopMetricsConfigEnum -> = ApplicationStopMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopMetricsConfigEnum$ { - /** @deprecated use `ApplicationStopMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopMetricsConfigEnum$inboundSchema; - /** @deprecated use `ApplicationStopMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const ApplicationStopMetricsConfigUnion1$inboundSchema: z.ZodType< ApplicationStopMetricsConfigUnion1, @@ -2998,49 +1411,6 @@ export const ApplicationStopMetricsConfigUnion1$inboundSchema: z.ZodType< ApplicationStopMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type ApplicationStopMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const ApplicationStopMetricsConfigUnion1$outboundSchema: z.ZodType< - ApplicationStopMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - ApplicationStopMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationStopMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopMetricsConfigUnion1$ { - /** @deprecated use `ApplicationStopMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopMetricsConfigUnion1$inboundSchema; - /** @deprecated use `ApplicationStopMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStopMetricsConfigUnion1$outboundSchema; - /** @deprecated use `ApplicationStopMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = ApplicationStopMetricsConfigUnion1$Outbound; -} - -export function applicationStopMetricsConfigUnion1ToJSON( - applicationStopMetricsConfigUnion1: ApplicationStopMetricsConfigUnion1, -): string { - return JSON.stringify( - ApplicationStopMetricsConfigUnion1$outboundSchema.parse( - applicationStopMetricsConfigUnion1, - ), - ); -} - export function applicationStopMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -3068,143 +1438,27 @@ export const ApplicationStopMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type ApplicationStopMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const ApplicationStopMetricsConfigUnion2$outboundSchema: z.ZodType< - ApplicationStopMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - ApplicationStopMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopMetricsConfigUnion2$ { - /** @deprecated use `ApplicationStopMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopMetricsConfigUnion2$inboundSchema; - /** @deprecated use `ApplicationStopMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - ApplicationStopMetricsConfigUnion2$outboundSchema; - /** @deprecated use `ApplicationStopMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = ApplicationStopMetricsConfigUnion2$Outbound; -} - -export function applicationStopMetricsConfigUnion2ToJSON( - applicationStopMetricsConfigUnion2: ApplicationStopMetricsConfigUnion2, -): string { - return JSON.stringify( - ApplicationStopMetricsConfigUnion2$outboundSchema.parse( - applicationStopMetricsConfigUnion2, - ), - ); -} - export function applicationStopMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => - ApplicationStopMetricsConfigUnion2$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationStopMetricsConfigUnion2' from JSON`, - ); -} - -/** @internal */ -export const ApplicationStopServerStatus$inboundSchema: z.ZodNativeEnum< - typeof ApplicationStopServerStatus -> = z.nativeEnum(ApplicationStopServerStatus); - -/** @internal */ -export const ApplicationStopServerStatus$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopServerStatus -> = ApplicationStopServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopServerStatus$ { - /** @deprecated use `ApplicationStopServerStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopServerStatus$inboundSchema; - /** @deprecated use `ApplicationStopServerStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopServerStatus$outboundSchema; -} - -/** @internal */ -export const ApplicationStopServer$inboundSchema: z.ZodType< - ApplicationStopServer, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - ApplicationStopMetricsConfigEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: ApplicationStopServerStatus$inboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** @internal */ -export type ApplicationStopServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; + ApplicationStopMetricsConfigUnion2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ApplicationStopMetricsConfigUnion2' from JSON`, + ); +} + +/** @internal */ +export const ApplicationStopServerStatus$inboundSchema: z.ZodNativeEnum< + typeof ApplicationStopServerStatus +> = z.nativeEnum(ApplicationStopServerStatus); /** @internal */ -export const ApplicationStopServer$outboundSchema: z.ZodType< - ApplicationStopServer$Outbound, +export const ApplicationStopServer$inboundSchema: z.ZodType< + ApplicationStopServer, z.ZodTypeDef, - ApplicationStopServer + unknown > = z.object({ appName: z.string(), command: z.string(), @@ -3217,7 +1471,7 @@ export const ApplicationStopServer$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - ApplicationStopMetricsConfigEnum$outboundSchema, + ApplicationStopMetricsConfigEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -3226,32 +1480,11 @@ export const ApplicationStopServer$outboundSchema: z.ZodType< organizationId: z.string(), port: z.number(), serverId: z.string(), - serverStatus: ApplicationStopServerStatus$outboundSchema, + serverStatus: ApplicationStopServerStatus$inboundSchema, sshKeyId: z.nullable(z.string()), username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopServer$ { - /** @deprecated use `ApplicationStopServer$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopServer$inboundSchema; - /** @deprecated use `ApplicationStopServer$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopServer$outboundSchema; - /** @deprecated use `ApplicationStopServer$Outbound` instead. */ - export type Outbound = ApplicationStopServer$Outbound; -} - -export function applicationStopServerToJSON( - applicationStopServer: ApplicationStopServer, -): string { - return JSON.stringify( - ApplicationStopServer$outboundSchema.parse(applicationStopServer), - ); -} - export function applicationStopServerFromJSON( jsonString: string, ): SafeParseResult { @@ -3267,43 +1500,11 @@ export const ApplicationStopSourceType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopSourceType > = z.nativeEnum(ApplicationStopSourceType); -/** @internal */ -export const ApplicationStopSourceType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopSourceType -> = ApplicationStopSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopSourceType$ { - /** @deprecated use `ApplicationStopSourceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopSourceType$inboundSchema; - /** @deprecated use `ApplicationStopSourceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopSourceType$outboundSchema; -} - /** @internal */ export const ApplicationStopTriggerType$inboundSchema: z.ZodNativeEnum< typeof ApplicationStopTriggerType > = z.nativeEnum(ApplicationStopTriggerType); -/** @internal */ -export const ApplicationStopTriggerType$outboundSchema: z.ZodNativeEnum< - typeof ApplicationStopTriggerType -> = ApplicationStopTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopTriggerType$ { - /** @deprecated use `ApplicationStopTriggerType$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopTriggerType$inboundSchema; - /** @deprecated use `ApplicationStopTriggerType$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopTriggerType$outboundSchema; -} - /** @internal */ export const ApplicationStopUpdateConfigSwarm$inboundSchema: z.ZodType< ApplicationStopUpdateConfigSwarm, @@ -3327,62 +1528,6 @@ export const ApplicationStopUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApplicationStopUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const ApplicationStopUpdateConfigSwarm$outboundSchema: z.ZodType< - ApplicationStopUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - ApplicationStopUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopUpdateConfigSwarm$ { - /** @deprecated use `ApplicationStopUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopUpdateConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationStopUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopUpdateConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationStopUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationStopUpdateConfigSwarm$Outbound; -} - -export function applicationStopUpdateConfigSwarmToJSON( - applicationStopUpdateConfigSwarm: ApplicationStopUpdateConfigSwarm, -): string { - return JSON.stringify( - ApplicationStopUpdateConfigSwarm$outboundSchema.parse( - applicationStopUpdateConfigSwarm, - ), - ); -} - export function applicationStopUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -3518,271 +1663,6 @@ export const ApplicationStopResponseBody$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** @internal */ -export type ApplicationStopResponseBody$Outbound = { - appName?: string | undefined; - applicationId?: string | undefined; - applicationStatus?: string | undefined; - autoDeploy?: boolean | null | undefined; - bitbucket: ApplicationStopBitbucket$Outbound | null; - bitbucketBranch?: string | null | undefined; - bitbucketBuildPath?: string | null | undefined; - bitbucketId?: string | null | undefined; - bitbucketOwner?: string | null | undefined; - bitbucketRepository?: string | null | undefined; - branch?: string | null | undefined; - buildArgs?: string | null | undefined; - buildPath?: string | null | undefined; - buildType?: string | undefined; - cleanCache?: boolean | null | undefined; - command?: string | null | undefined; - cpuLimit?: string | null | undefined; - cpuReservation?: string | null | undefined; - createdAt?: string | undefined; - customGitBranch?: string | null | undefined; - customGitBuildPath?: string | null | undefined; - customGitSSHKeyId?: string | null | undefined; - customGitUrl?: string | null | undefined; - deployments: Array; - description?: string | null | undefined; - dockerBuildStage?: string | null | undefined; - dockerContextPath?: string | null | undefined; - dockerImage?: string | null | undefined; - dockerfile?: string | null | undefined; - domains: Array; - dropBuildPath?: string | null | undefined; - enableSubmodules?: boolean | undefined; - enabled?: boolean | null | undefined; - env?: string | null | undefined; - environment: ApplicationStopEnvironment$Outbound; - environmentId: string; - gitea: ApplicationStopGitea$Outbound | null; - giteaBranch?: string | null | undefined; - giteaBuildPath?: string | null | undefined; - giteaId?: string | null | undefined; - giteaOwner?: string | null | undefined; - giteaRepository?: string | null | undefined; - github: ApplicationStopGithub$Outbound | null; - githubId?: string | null | undefined; - gitlab: ApplicationStopGitlab$Outbound | null; - gitlabBranch?: string | null | undefined; - gitlabBuildPath?: string | null | undefined; - gitlabId?: string | null | undefined; - gitlabOwner?: string | null | undefined; - gitlabPathNamespace?: string | null | undefined; - gitlabProjectId?: number | null | undefined; - gitlabRepository?: string | null | undefined; - healthCheckSwarm?: - | ApplicationStopHealthCheckSwarm$Outbound - | null - | undefined; - herokuVersion?: string | null | undefined; - isPreviewDeploymentsActive?: boolean | null | undefined; - isStaticSpa?: boolean | null | undefined; - labelsSwarm?: { [k: string]: string } | null | undefined; - memoryLimit?: string | null | undefined; - memoryReservation?: string | null | undefined; - modeSwarm?: ApplicationStopModeSwarm$Outbound | null | undefined; - mounts: Array; - name: string; - networkSwarm?: Array | null | undefined; - owner?: string | null | undefined; - password?: string | null | undefined; - placementSwarm?: ApplicationStopPlacementSwarm$Outbound | null | undefined; - ports: Array; - previewBuildArgs?: string | null | undefined; - previewCertificateType?: string | undefined; - previewCustomCertResolver?: string | null | undefined; - previewDeployments: Array; - previewEnv?: string | null | undefined; - previewHttps?: boolean | undefined; - previewLabels?: Array | null | undefined; - previewLimit?: number | null | undefined; - previewPath?: string | null | undefined; - previewPort?: number | null | undefined; - previewRequireCollaboratorPermissions?: boolean | null | undefined; - previewWildcard?: string | null | undefined; - publishDirectory?: string | null | undefined; - railpackVersion?: string | null | undefined; - redirects: Array; - refreshToken?: string | null | undefined; - registry: ApplicationStopRegistry$Outbound | null; - registryId?: string | null | undefined; - registryUrl?: string | null | undefined; - replicas?: number | undefined; - repository?: string | null | undefined; - restartPolicySwarm?: - | ApplicationStopRestartPolicySwarm$Outbound - | null - | undefined; - rollbackActive?: boolean | null | undefined; - rollbackConfigSwarm?: - | ApplicationStopRollbackConfigSwarm$Outbound - | null - | undefined; - security: Array; - server: ApplicationStopServer$Outbound | null; - serverId?: string | null | undefined; - sourceType?: string | undefined; - subtitle?: string | null | undefined; - title?: string | null | undefined; - triggerType?: string | null | undefined; - updateConfigSwarm?: - | ApplicationStopUpdateConfigSwarm$Outbound - | null - | undefined; - username?: string | null | undefined; - watchPaths?: Array | null | undefined; -}; - -/** @internal */ -export const ApplicationStopResponseBody$outboundSchema: z.ZodType< - ApplicationStopResponseBody$Outbound, - z.ZodTypeDef, - ApplicationStopResponseBody -> = z.object({ - appName: z.string().optional(), - applicationId: z.string().optional(), - applicationStatus: ApplicationStopApplicationStatus$outboundSchema.optional(), - autoDeploy: z.nullable(z.boolean()).optional(), - bitbucket: z.nullable(z.lazy(() => ApplicationStopBitbucket$outboundSchema)), - bitbucketBranch: z.nullable(z.string()).optional(), - bitbucketBuildPath: z.nullable(z.string()).optional(), - bitbucketId: z.nullable(z.string()).optional(), - bitbucketOwner: z.nullable(z.string()).optional(), - bitbucketRepository: z.nullable(z.string()).optional(), - branch: z.nullable(z.string()).optional(), - buildArgs: z.nullable(z.string()).optional(), - buildPath: z.nullable(z.string()).optional(), - buildType: ApplicationStopBuildType$outboundSchema.optional(), - cleanCache: z.nullable(z.boolean()).optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - customGitBranch: z.nullable(z.string()).optional(), - customGitBuildPath: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - deployments: z.array(z.lazy(() => ApplicationStopDeployment$outboundSchema)), - description: z.nullable(z.string()).optional(), - dockerBuildStage: z.nullable(z.string()).optional(), - dockerContextPath: z.nullable(z.string()).optional(), - dockerImage: z.nullable(z.string()).optional(), - dockerfile: z.nullable(z.string()).optional(), - domains: z.array(z.lazy(() => ApplicationStopDomain$outboundSchema)), - dropBuildPath: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean().optional(), - enabled: z.nullable(z.boolean()).optional(), - env: z.nullable(z.string()).optional(), - environment: z.lazy(() => ApplicationStopEnvironment$outboundSchema), - environmentId: z.string(), - gitea: z.nullable(z.lazy(() => ApplicationStopGitea$outboundSchema)), - giteaBranch: z.nullable(z.string()).optional(), - giteaBuildPath: z.nullable(z.string()).optional(), - giteaId: z.nullable(z.string()).optional(), - giteaOwner: z.nullable(z.string()).optional(), - giteaRepository: z.nullable(z.string()).optional(), - github: z.nullable(z.lazy(() => ApplicationStopGithub$outboundSchema)), - githubId: z.nullable(z.string()).optional(), - gitlab: z.nullable(z.lazy(() => ApplicationStopGitlab$outboundSchema)), - gitlabBranch: z.nullable(z.string()).optional(), - gitlabBuildPath: z.nullable(z.string()).optional(), - gitlabId: z.nullable(z.string()).optional(), - gitlabOwner: z.nullable(z.string()).optional(), - gitlabPathNamespace: z.nullable(z.string()).optional(), - gitlabProjectId: z.nullable(z.number()).optional(), - gitlabRepository: z.nullable(z.string()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => ApplicationStopHealthCheckSwarm$outboundSchema), - ).optional(), - herokuVersion: z.nullable(z.string()).optional(), - isPreviewDeploymentsActive: z.nullable(z.boolean()).optional(), - isStaticSpa: z.nullable(z.boolean()).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => ApplicationStopModeSwarm$outboundSchema)) - .optional(), - mounts: z.array(z.lazy(() => ApplicationStopMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => ApplicationStopNetworkSwarm$outboundSchema)), - ).optional(), - owner: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - placementSwarm: z.nullable( - z.lazy(() => ApplicationStopPlacementSwarm$outboundSchema), - ).optional(), - ports: z.array(z.lazy(() => ApplicationStopPort$outboundSchema)), - previewBuildArgs: z.nullable(z.string()).optional(), - previewCertificateType: ApplicationStopPreviewCertificateType$outboundSchema - .optional(), - previewCustomCertResolver: z.nullable(z.string()).optional(), - previewDeployments: z.array( - z.lazy(() => ApplicationStopPreviewDeployment$outboundSchema), - ), - previewEnv: z.nullable(z.string()).optional(), - previewHttps: z.boolean().optional(), - previewLabels: z.nullable(z.array(z.string())).optional(), - previewLimit: z.nullable(z.number()).optional(), - previewPath: z.nullable(z.string()).optional(), - previewPort: z.nullable(z.number()).optional(), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()).optional(), - previewWildcard: z.nullable(z.string()).optional(), - publishDirectory: z.nullable(z.string()).optional(), - railpackVersion: z.nullable(z.string()).optional(), - redirects: z.array(z.lazy(() => ApplicationStopRedirect$outboundSchema)), - refreshToken: z.nullable(z.string()).optional(), - registry: z.nullable(z.lazy(() => ApplicationStopRegistry$outboundSchema)), - registryId: z.nullable(z.string()).optional(), - registryUrl: z.nullable(z.string()).optional(), - replicas: z.number().optional(), - repository: z.nullable(z.string()).optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => ApplicationStopRestartPolicySwarm$outboundSchema), - ).optional(), - rollbackActive: z.nullable(z.boolean()).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => ApplicationStopRollbackConfigSwarm$outboundSchema), - ).optional(), - security: z.array(z.lazy(() => ApplicationStopSecurity$outboundSchema)), - server: z.nullable(z.lazy(() => ApplicationStopServer$outboundSchema)), - serverId: z.nullable(z.string()).optional(), - sourceType: ApplicationStopSourceType$outboundSchema.optional(), - subtitle: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - triggerType: z.nullable(ApplicationStopTriggerType$outboundSchema).optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => ApplicationStopUpdateConfigSwarm$outboundSchema), - ).optional(), - username: z.nullable(z.string()).optional(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopResponseBody$ { - /** @deprecated use `ApplicationStopResponseBody$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopResponseBody$inboundSchema; - /** @deprecated use `ApplicationStopResponseBody$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopResponseBody$outboundSchema; - /** @deprecated use `ApplicationStopResponseBody$Outbound` instead. */ - export type Outbound = ApplicationStopResponseBody$Outbound; -} - -export function applicationStopResponseBodyToJSON( - applicationStopResponseBody: ApplicationStopResponseBody, -): string { - return JSON.stringify( - ApplicationStopResponseBody$outboundSchema.parse( - applicationStopResponseBody, - ), - ); -} - export function applicationStopResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -3803,42 +1683,6 @@ export const ApplicationStopResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ApplicationStopResponse$Outbound = - | ApplicationStopResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ApplicationStopResponse$outboundSchema: z.ZodType< - ApplicationStopResponse$Outbound, - z.ZodTypeDef, - ApplicationStopResponse -> = z.union([ - z.lazy(() => ApplicationStopResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStopResponse$ { - /** @deprecated use `ApplicationStopResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationStopResponse$inboundSchema; - /** @deprecated use `ApplicationStopResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationStopResponse$outboundSchema; - /** @deprecated use `ApplicationStopResponse$Outbound` instead. */ - export type Outbound = ApplicationStopResponse$Outbound; -} - -export function applicationStopResponseToJSON( - applicationStopResponse: ApplicationStopResponse, -): string { - return JSON.stringify( - ApplicationStopResponse$outboundSchema.parse(applicationStopResponse), - ); -} - export function applicationStopResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationupdate.ts b/src/models/operations/applicationupdate.ts index f04a9cd..4fcf3f7 100644 --- a/src/models/operations/applicationupdate.ts +++ b/src/models/operations/applicationupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -234,69 +234,15 @@ export type ApplicationUpdateRequest = { export type ApplicationUpdateResponse = models.ErrorT | boolean; -/** @internal */ -export const ApplicationUpdateApplicationStatus$inboundSchema: z.ZodNativeEnum< - typeof ApplicationUpdateApplicationStatus -> = z.nativeEnum(ApplicationUpdateApplicationStatus); - /** @internal */ export const ApplicationUpdateApplicationStatus$outboundSchema: z.ZodNativeEnum< typeof ApplicationUpdateApplicationStatus -> = ApplicationUpdateApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateApplicationStatus$ { - /** @deprecated use `ApplicationUpdateApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateApplicationStatus$inboundSchema; - /** @deprecated use `ApplicationUpdateApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - ApplicationUpdateApplicationStatus$outboundSchema; -} - -/** @internal */ -export const ApplicationUpdateBuildType$inboundSchema: z.ZodNativeEnum< - typeof ApplicationUpdateBuildType -> = z.nativeEnum(ApplicationUpdateBuildType); +> = z.nativeEnum(ApplicationUpdateApplicationStatus); /** @internal */ export const ApplicationUpdateBuildType$outboundSchema: z.ZodNativeEnum< typeof ApplicationUpdateBuildType -> = ApplicationUpdateBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateBuildType$ { - /** @deprecated use `ApplicationUpdateBuildType$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateBuildType$inboundSchema; - /** @deprecated use `ApplicationUpdateBuildType$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateBuildType$outboundSchema; -} - -/** @internal */ -export const ApplicationUpdateHealthCheckSwarm$inboundSchema: z.ZodType< - ApplicationUpdateHealthCheckSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Interval: z.number().optional(), - Retries: z.number().optional(), - StartPeriod: z.number().optional(), - Test: z.array(z.string()).optional(), - Timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Interval": "interval", - "Retries": "retries", - "StartPeriod": "startPeriod", - "Test": "test", - "Timeout": "timeout", - }); -}); +> = z.nativeEnum(ApplicationUpdateBuildType); /** @internal */ export type ApplicationUpdateHealthCheckSwarm$Outbound = { @@ -328,20 +274,6 @@ export const ApplicationUpdateHealthCheckSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateHealthCheckSwarm$ { - /** @deprecated use `ApplicationUpdateHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateHealthCheckSwarm$inboundSchema; - /** @deprecated use `ApplicationUpdateHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationUpdateHealthCheckSwarm$outboundSchema; - /** @deprecated use `ApplicationUpdateHealthCheckSwarm$Outbound` instead. */ - export type Outbound = ApplicationUpdateHealthCheckSwarm$Outbound; -} - export function applicationUpdateHealthCheckSwarmToJSON( applicationUpdateHealthCheckSwarm: ApplicationUpdateHealthCheckSwarm, ): string { @@ -352,23 +284,6 @@ export function applicationUpdateHealthCheckSwarmToJSON( ); } -export function applicationUpdateHealthCheckSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateHealthCheckSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateHealthCheckSwarm' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateGlobal$inboundSchema: z.ZodType< - ApplicationUpdateGlobal, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type ApplicationUpdateGlobal$Outbound = {}; @@ -379,19 +294,6 @@ export const ApplicationUpdateGlobal$outboundSchema: z.ZodType< ApplicationUpdateGlobal > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateGlobal$ { - /** @deprecated use `ApplicationUpdateGlobal$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateGlobal$inboundSchema; - /** @deprecated use `ApplicationUpdateGlobal$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateGlobal$outboundSchema; - /** @deprecated use `ApplicationUpdateGlobal$Outbound` instead. */ - export type Outbound = ApplicationUpdateGlobal$Outbound; -} - export function applicationUpdateGlobalToJSON( applicationUpdateGlobal: ApplicationUpdateGlobal, ): string { @@ -400,23 +302,6 @@ export function applicationUpdateGlobalToJSON( ); } -export function applicationUpdateGlobalFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateGlobal$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateGlobal' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateGlobalJob$inboundSchema: z.ZodType< - ApplicationUpdateGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type ApplicationUpdateGlobalJob$Outbound = {}; @@ -427,19 +312,6 @@ export const ApplicationUpdateGlobalJob$outboundSchema: z.ZodType< ApplicationUpdateGlobalJob > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateGlobalJob$ { - /** @deprecated use `ApplicationUpdateGlobalJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateGlobalJob$inboundSchema; - /** @deprecated use `ApplicationUpdateGlobalJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateGlobalJob$outboundSchema; - /** @deprecated use `ApplicationUpdateGlobalJob$Outbound` instead. */ - export type Outbound = ApplicationUpdateGlobalJob$Outbound; -} - export function applicationUpdateGlobalJobToJSON( applicationUpdateGlobalJob: ApplicationUpdateGlobalJob, ): string { @@ -448,29 +320,6 @@ export function applicationUpdateGlobalJobToJSON( ); } -export function applicationUpdateGlobalJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateGlobalJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateGlobalJob' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateReplicated$inboundSchema: z.ZodType< - ApplicationUpdateReplicated, - z.ZodTypeDef, - unknown -> = z.object({ - Replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Replicas": "replicas", - }); -}); - /** @internal */ export type ApplicationUpdateReplicated$Outbound = { Replicas?: number | undefined; @@ -489,19 +338,6 @@ export const ApplicationUpdateReplicated$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateReplicated$ { - /** @deprecated use `ApplicationUpdateReplicated$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateReplicated$inboundSchema; - /** @deprecated use `ApplicationUpdateReplicated$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateReplicated$outboundSchema; - /** @deprecated use `ApplicationUpdateReplicated$Outbound` instead. */ - export type Outbound = ApplicationUpdateReplicated$Outbound; -} - export function applicationUpdateReplicatedToJSON( applicationUpdateReplicated: ApplicationUpdateReplicated, ): string { @@ -512,31 +348,6 @@ export function applicationUpdateReplicatedToJSON( ); } -export function applicationUpdateReplicatedFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateReplicated$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateReplicated' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateReplicatedJob$inboundSchema: z.ZodType< - ApplicationUpdateReplicatedJob, - z.ZodTypeDef, - unknown -> = z.object({ - MaxConcurrent: z.number().optional(), - TotalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "MaxConcurrent": "maxConcurrent", - "TotalCompletions": "totalCompletions", - }); -}); - /** @internal */ export type ApplicationUpdateReplicatedJob$Outbound = { MaxConcurrent?: number | undefined; @@ -558,19 +369,6 @@ export const ApplicationUpdateReplicatedJob$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateReplicatedJob$ { - /** @deprecated use `ApplicationUpdateReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateReplicatedJob$inboundSchema; - /** @deprecated use `ApplicationUpdateReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateReplicatedJob$outboundSchema; - /** @deprecated use `ApplicationUpdateReplicatedJob$Outbound` instead. */ - export type Outbound = ApplicationUpdateReplicatedJob$Outbound; -} - export function applicationUpdateReplicatedJobToJSON( applicationUpdateReplicatedJob: ApplicationUpdateReplicatedJob, ): string { @@ -581,37 +379,6 @@ export function applicationUpdateReplicatedJobToJSON( ); } -export function applicationUpdateReplicatedJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateReplicatedJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateReplicatedJob' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateModeSwarm$inboundSchema: z.ZodType< - ApplicationUpdateModeSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Global: z.lazy(() => ApplicationUpdateGlobal$inboundSchema).optional(), - GlobalJob: z.lazy(() => ApplicationUpdateGlobalJob$inboundSchema).optional(), - Replicated: z.lazy(() => ApplicationUpdateReplicated$inboundSchema) - .optional(), - ReplicatedJob: z.lazy(() => ApplicationUpdateReplicatedJob$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "Global": "global", - "GlobalJob": "globalJob", - "Replicated": "replicated", - "ReplicatedJob": "replicatedJob", - }); -}); - /** @internal */ export type ApplicationUpdateModeSwarm$Outbound = { Global?: ApplicationUpdateGlobal$Outbound | undefined; @@ -641,19 +408,6 @@ export const ApplicationUpdateModeSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateModeSwarm$ { - /** @deprecated use `ApplicationUpdateModeSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateModeSwarm$inboundSchema; - /** @deprecated use `ApplicationUpdateModeSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateModeSwarm$outboundSchema; - /** @deprecated use `ApplicationUpdateModeSwarm$Outbound` instead. */ - export type Outbound = ApplicationUpdateModeSwarm$Outbound; -} - export function applicationUpdateModeSwarmToJSON( applicationUpdateModeSwarm: ApplicationUpdateModeSwarm, ): string { @@ -662,23 +416,6 @@ export function applicationUpdateModeSwarmToJSON( ); } -export function applicationUpdateModeSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateModeSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateModeSwarm' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateDriverOpts$inboundSchema: z.ZodType< - ApplicationUpdateDriverOpts, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type ApplicationUpdateDriverOpts$Outbound = {}; @@ -689,19 +426,6 @@ export const ApplicationUpdateDriverOpts$outboundSchema: z.ZodType< ApplicationUpdateDriverOpts > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateDriverOpts$ { - /** @deprecated use `ApplicationUpdateDriverOpts$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateDriverOpts$inboundSchema; - /** @deprecated use `ApplicationUpdateDriverOpts$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateDriverOpts$outboundSchema; - /** @deprecated use `ApplicationUpdateDriverOpts$Outbound` instead. */ - export type Outbound = ApplicationUpdateDriverOpts$Outbound; -} - export function applicationUpdateDriverOptsToJSON( applicationUpdateDriverOpts: ApplicationUpdateDriverOpts, ): string { @@ -712,34 +436,6 @@ export function applicationUpdateDriverOptsToJSON( ); } -export function applicationUpdateDriverOptsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateDriverOpts$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateDriverOpts' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateNetworkSwarm$inboundSchema: z.ZodType< - ApplicationUpdateNetworkSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Aliases: z.array(z.string()).optional(), - DriverOpts: z.lazy(() => ApplicationUpdateDriverOpts$inboundSchema) - .optional(), - Target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Aliases": "aliases", - "DriverOpts": "driverOpts", - "Target": "target", - }); -}); - /** @internal */ export type ApplicationUpdateNetworkSwarm$Outbound = { Aliases?: Array | undefined; @@ -765,19 +461,6 @@ export const ApplicationUpdateNetworkSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateNetworkSwarm$ { - /** @deprecated use `ApplicationUpdateNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateNetworkSwarm$inboundSchema; - /** @deprecated use `ApplicationUpdateNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateNetworkSwarm$outboundSchema; - /** @deprecated use `ApplicationUpdateNetworkSwarm$Outbound` instead. */ - export type Outbound = ApplicationUpdateNetworkSwarm$Outbound; -} - export function applicationUpdateNetworkSwarmToJSON( applicationUpdateNetworkSwarm: ApplicationUpdateNetworkSwarm, ): string { @@ -788,31 +471,6 @@ export function applicationUpdateNetworkSwarmToJSON( ); } -export function applicationUpdateNetworkSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateNetworkSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateNetworkSwarm' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdatePlatform$inboundSchema: z.ZodType< - ApplicationUpdatePlatform, - z.ZodTypeDef, - unknown -> = z.object({ - Architecture: z.string(), - OS: z.string(), -}).transform((v) => { - return remap$(v, { - "Architecture": "architecture", - "OS": "os", - }); -}); - /** @internal */ export type ApplicationUpdatePlatform$Outbound = { Architecture: string; @@ -834,19 +492,6 @@ export const ApplicationUpdatePlatform$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdatePlatform$ { - /** @deprecated use `ApplicationUpdatePlatform$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdatePlatform$inboundSchema; - /** @deprecated use `ApplicationUpdatePlatform$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdatePlatform$outboundSchema; - /** @deprecated use `ApplicationUpdatePlatform$Outbound` instead. */ - export type Outbound = ApplicationUpdatePlatform$Outbound; -} - export function applicationUpdatePlatformToJSON( applicationUpdatePlatform: ApplicationUpdatePlatform, ): string { @@ -855,29 +500,6 @@ export function applicationUpdatePlatformToJSON( ); } -export function applicationUpdatePlatformFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdatePlatform$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdatePlatform' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateSpread$inboundSchema: z.ZodType< - ApplicationUpdateSpread, - z.ZodTypeDef, - unknown -> = z.object({ - SpreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - "SpreadDescriptor": "spreadDescriptor", - }); -}); - /** @internal */ export type ApplicationUpdateSpread$Outbound = { SpreadDescriptor: string; @@ -896,19 +518,6 @@ export const ApplicationUpdateSpread$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateSpread$ { - /** @deprecated use `ApplicationUpdateSpread$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateSpread$inboundSchema; - /** @deprecated use `ApplicationUpdateSpread$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateSpread$outboundSchema; - /** @deprecated use `ApplicationUpdateSpread$Outbound` instead. */ - export type Outbound = ApplicationUpdateSpread$Outbound; -} - export function applicationUpdateSpreadToJSON( applicationUpdateSpread: ApplicationUpdateSpread, ): string { @@ -917,29 +526,6 @@ export function applicationUpdateSpreadToJSON( ); } -export function applicationUpdateSpreadFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateSpread$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateSpread' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdatePreference$inboundSchema: z.ZodType< - ApplicationUpdatePreference, - z.ZodTypeDef, - unknown -> = z.object({ - Spread: z.lazy(() => ApplicationUpdateSpread$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Spread": "spread", - }); -}); - /** @internal */ export type ApplicationUpdatePreference$Outbound = { Spread: ApplicationUpdateSpread$Outbound; @@ -958,19 +544,6 @@ export const ApplicationUpdatePreference$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdatePreference$ { - /** @deprecated use `ApplicationUpdatePreference$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdatePreference$inboundSchema; - /** @deprecated use `ApplicationUpdatePreference$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdatePreference$outboundSchema; - /** @deprecated use `ApplicationUpdatePreference$Outbound` instead. */ - export type Outbound = ApplicationUpdatePreference$Outbound; -} - export function applicationUpdatePreferenceToJSON( applicationUpdatePreference: ApplicationUpdatePreference, ): string { @@ -981,37 +554,6 @@ export function applicationUpdatePreferenceToJSON( ); } -export function applicationUpdatePreferenceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdatePreference$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdatePreference' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdatePlacementSwarm$inboundSchema: z.ZodType< - ApplicationUpdatePlacementSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Constraints: z.array(z.string()).optional(), - MaxReplicas: z.number().optional(), - Platforms: z.array(z.lazy(() => ApplicationUpdatePlatform$inboundSchema)) - .optional(), - Preferences: z.array(z.lazy(() => ApplicationUpdatePreference$inboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - "Constraints": "constraints", - "MaxReplicas": "maxReplicas", - "Platforms": "platforms", - "Preferences": "preferences", - }); -}); - /** @internal */ export type ApplicationUpdatePlacementSwarm$Outbound = { Constraints?: Array | undefined; @@ -1041,19 +583,6 @@ export const ApplicationUpdatePlacementSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdatePlacementSwarm$ { - /** @deprecated use `ApplicationUpdatePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdatePlacementSwarm$inboundSchema; - /** @deprecated use `ApplicationUpdatePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdatePlacementSwarm$outboundSchema; - /** @deprecated use `ApplicationUpdatePlacementSwarm$Outbound` instead. */ - export type Outbound = ApplicationUpdatePlacementSwarm$Outbound; -} - export function applicationUpdatePlacementSwarmToJSON( applicationUpdatePlacementSwarm: ApplicationUpdatePlacementSwarm, ): string { @@ -1064,58 +593,11 @@ export function applicationUpdatePlacementSwarmToJSON( ); } -export function applicationUpdatePlacementSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdatePlacementSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdatePlacementSwarm' from JSON`, - ); -} - /** @internal */ -export const ApplicationUpdatePreviewCertificateType$inboundSchema: +export const ApplicationUpdatePreviewCertificateType$outboundSchema: z.ZodNativeEnum = z .nativeEnum(ApplicationUpdatePreviewCertificateType); -/** @internal */ -export const ApplicationUpdatePreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - ApplicationUpdatePreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdatePreviewCertificateType$ { - /** @deprecated use `ApplicationUpdatePreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - ApplicationUpdatePreviewCertificateType$inboundSchema; - /** @deprecated use `ApplicationUpdatePreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - ApplicationUpdatePreviewCertificateType$outboundSchema; -} - -/** @internal */ -export const ApplicationUpdateRestartPolicySwarm$inboundSchema: z.ZodType< - ApplicationUpdateRestartPolicySwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - /** @internal */ export type ApplicationUpdateRestartPolicySwarm$Outbound = { Condition?: string | undefined; @@ -1143,21 +625,6 @@ export const ApplicationUpdateRestartPolicySwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateRestartPolicySwarm$ { - /** @deprecated use `ApplicationUpdateRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - ApplicationUpdateRestartPolicySwarm$inboundSchema; - /** @deprecated use `ApplicationUpdateRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationUpdateRestartPolicySwarm$outboundSchema; - /** @deprecated use `ApplicationUpdateRestartPolicySwarm$Outbound` instead. */ - export type Outbound = ApplicationUpdateRestartPolicySwarm$Outbound; -} - export function applicationUpdateRestartPolicySwarmToJSON( applicationUpdateRestartPolicySwarm: ApplicationUpdateRestartPolicySwarm, ): string { @@ -1168,40 +635,6 @@ export function applicationUpdateRestartPolicySwarmToJSON( ); } -export function applicationUpdateRestartPolicySwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationUpdateRestartPolicySwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateRestartPolicySwarm' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateRollbackConfigSwarm$inboundSchema: z.ZodType< - ApplicationUpdateRollbackConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type ApplicationUpdateRollbackConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1235,21 +668,6 @@ export const ApplicationUpdateRollbackConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateRollbackConfigSwarm$ { - /** @deprecated use `ApplicationUpdateRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - ApplicationUpdateRollbackConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationUpdateRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationUpdateRollbackConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationUpdateRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationUpdateRollbackConfigSwarm$Outbound; -} - export function applicationUpdateRollbackConfigSwarmToJSON( applicationUpdateRollbackConfigSwarm: ApplicationUpdateRollbackConfigSwarm, ): string { @@ -1260,81 +678,15 @@ export function applicationUpdateRollbackConfigSwarmToJSON( ); } -export function applicationUpdateRollbackConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationUpdateRollbackConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateRollbackConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateSourceType$inboundSchema: z.ZodNativeEnum< - typeof ApplicationUpdateSourceType -> = z.nativeEnum(ApplicationUpdateSourceType); - /** @internal */ export const ApplicationUpdateSourceType$outboundSchema: z.ZodNativeEnum< typeof ApplicationUpdateSourceType -> = ApplicationUpdateSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateSourceType$ { - /** @deprecated use `ApplicationUpdateSourceType$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateSourceType$inboundSchema; - /** @deprecated use `ApplicationUpdateSourceType$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateSourceType$outboundSchema; -} - -/** @internal */ -export const ApplicationUpdateTriggerType$inboundSchema: z.ZodNativeEnum< - typeof ApplicationUpdateTriggerType -> = z.nativeEnum(ApplicationUpdateTriggerType); +> = z.nativeEnum(ApplicationUpdateSourceType); /** @internal */ export const ApplicationUpdateTriggerType$outboundSchema: z.ZodNativeEnum< typeof ApplicationUpdateTriggerType -> = ApplicationUpdateTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateTriggerType$ { - /** @deprecated use `ApplicationUpdateTriggerType$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateTriggerType$inboundSchema; - /** @deprecated use `ApplicationUpdateTriggerType$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateTriggerType$outboundSchema; -} - -/** @internal */ -export const ApplicationUpdateUpdateConfigSwarm$inboundSchema: z.ZodType< - ApplicationUpdateUpdateConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); +> = z.nativeEnum(ApplicationUpdateTriggerType); /** @internal */ export type ApplicationUpdateUpdateConfigSwarm$Outbound = { @@ -1369,20 +721,6 @@ export const ApplicationUpdateUpdateConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateUpdateConfigSwarm$ { - /** @deprecated use `ApplicationUpdateUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateUpdateConfigSwarm$inboundSchema; - /** @deprecated use `ApplicationUpdateUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - ApplicationUpdateUpdateConfigSwarm$outboundSchema; - /** @deprecated use `ApplicationUpdateUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = ApplicationUpdateUpdateConfigSwarm$Outbound; -} - export function applicationUpdateUpdateConfigSwarmToJSON( applicationUpdateUpdateConfigSwarm: ApplicationUpdateUpdateConfigSwarm, ): string { @@ -1393,127 +731,6 @@ export function applicationUpdateUpdateConfigSwarmToJSON( ); } -export function applicationUpdateUpdateConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationUpdateUpdateConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateUpdateConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const ApplicationUpdateRequest$inboundSchema: z.ZodType< - ApplicationUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationId: z.string(), - applicationStatus: ApplicationUpdateApplicationStatus$inboundSchema - .optional(), - autoDeploy: z.nullable(z.boolean()).optional(), - bitbucketBranch: z.nullable(z.string()).optional(), - bitbucketBuildPath: z.nullable(z.string()).optional(), - bitbucketId: z.nullable(z.string()).optional(), - bitbucketOwner: z.nullable(z.string()).optional(), - bitbucketRepository: z.nullable(z.string()).optional(), - branch: z.nullable(z.string()).optional(), - buildArgs: z.nullable(z.string()).optional(), - buildPath: z.nullable(z.string()).optional(), - buildType: ApplicationUpdateBuildType$inboundSchema.optional(), - cleanCache: z.nullable(z.boolean()).optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - customGitBranch: z.nullable(z.string()).optional(), - customGitBuildPath: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - dockerBuildStage: z.nullable(z.string()).optional(), - dockerContextPath: z.nullable(z.string()).optional(), - dockerImage: z.nullable(z.string()).optional(), - dockerfile: z.nullable(z.string()).optional(), - dropBuildPath: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean().optional(), - enabled: z.nullable(z.boolean()).optional(), - env: z.nullable(z.string()).optional(), - environmentId: z.string().optional(), - giteaBranch: z.nullable(z.string()).optional(), - giteaBuildPath: z.nullable(z.string()).optional(), - giteaId: z.nullable(z.string()).optional(), - giteaOwner: z.nullable(z.string()).optional(), - giteaRepository: z.nullable(z.string()).optional(), - githubId: z.nullable(z.string()).optional(), - gitlabBranch: z.nullable(z.string()).optional(), - gitlabBuildPath: z.nullable(z.string()).optional(), - gitlabId: z.nullable(z.string()).optional(), - gitlabOwner: z.nullable(z.string()).optional(), - gitlabPathNamespace: z.nullable(z.string()).optional(), - gitlabProjectId: z.nullable(z.number()).optional(), - gitlabRepository: z.nullable(z.string()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => ApplicationUpdateHealthCheckSwarm$inboundSchema), - ).optional(), - herokuVersion: z.nullable(z.string()).optional(), - isPreviewDeploymentsActive: z.nullable(z.boolean()).optional(), - isStaticSpa: z.nullable(z.boolean()).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => ApplicationUpdateModeSwarm$inboundSchema)) - .optional(), - name: z.string().optional(), - networkSwarm: z.nullable( - z.array(z.lazy(() => ApplicationUpdateNetworkSwarm$inboundSchema)), - ).optional(), - owner: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - placementSwarm: z.nullable( - z.lazy(() => ApplicationUpdatePlacementSwarm$inboundSchema), - ).optional(), - previewBuildArgs: z.nullable(z.string()).optional(), - previewCertificateType: ApplicationUpdatePreviewCertificateType$inboundSchema - .optional(), - previewCustomCertResolver: z.nullable(z.string()).optional(), - previewEnv: z.nullable(z.string()).optional(), - previewHttps: z.boolean().optional(), - previewLabels: z.nullable(z.array(z.string())).optional(), - previewLimit: z.nullable(z.number()).optional(), - previewPath: z.nullable(z.string()).optional(), - previewPort: z.nullable(z.number()).optional(), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()).optional(), - previewWildcard: z.nullable(z.string()).optional(), - publishDirectory: z.nullable(z.string()).optional(), - railpackVersion: z.nullable(z.string()).optional(), - refreshToken: z.nullable(z.string()).optional(), - registryId: z.nullable(z.string()).optional(), - registryUrl: z.nullable(z.string()).optional(), - replicas: z.number().optional(), - repository: z.nullable(z.string()).optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => ApplicationUpdateRestartPolicySwarm$inboundSchema), - ).optional(), - rollbackActive: z.nullable(z.boolean()).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => ApplicationUpdateRollbackConfigSwarm$inboundSchema), - ).optional(), - sourceType: ApplicationUpdateSourceType$inboundSchema.optional(), - subtitle: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - triggerType: z.nullable(ApplicationUpdateTriggerType$inboundSchema) - .optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => ApplicationUpdateUpdateConfigSwarm$inboundSchema), - ).optional(), - username: z.nullable(z.string()).optional(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); - /** @internal */ export type ApplicationUpdateRequest$Outbound = { appName?: string | undefined; @@ -1729,19 +946,6 @@ export const ApplicationUpdateRequest$outboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateRequest$ { - /** @deprecated use `ApplicationUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateRequest$inboundSchema; - /** @deprecated use `ApplicationUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateRequest$outboundSchema; - /** @deprecated use `ApplicationUpdateRequest$Outbound` instead. */ - export type Outbound = ApplicationUpdateRequest$Outbound; -} - export function applicationUpdateRequestToJSON( applicationUpdateRequest: ApplicationUpdateRequest, ): string { @@ -1750,16 +954,6 @@ export function applicationUpdateRequestToJSON( ); } -export function applicationUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateRequest' from JSON`, - ); -} - /** @internal */ export const ApplicationUpdateResponse$inboundSchema: z.ZodType< ApplicationUpdateResponse, @@ -1767,39 +961,6 @@ export const ApplicationUpdateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type ApplicationUpdateResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const ApplicationUpdateResponse$outboundSchema: z.ZodType< - ApplicationUpdateResponse$Outbound, - z.ZodTypeDef, - ApplicationUpdateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateResponse$ { - /** @deprecated use `ApplicationUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = ApplicationUpdateResponse$inboundSchema; - /** @deprecated use `ApplicationUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = ApplicationUpdateResponse$outboundSchema; - /** @deprecated use `ApplicationUpdateResponse$Outbound` instead. */ - export type Outbound = ApplicationUpdateResponse$Outbound; -} - -export function applicationUpdateResponseToJSON( - applicationUpdateResponse: ApplicationUpdateResponse, -): string { - return JSON.stringify( - ApplicationUpdateResponse$outboundSchema.parse(applicationUpdateResponse), - ); -} - export function applicationUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/applicationupdatetraefikconfig.ts b/src/models/operations/applicationupdatetraefikconfig.ts index 72e919f..f99cea3 100644 --- a/src/models/operations/applicationupdatetraefikconfig.ts +++ b/src/models/operations/applicationupdatetraefikconfig.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ApplicationUpdateTraefikConfigRequest = { applicationId: string; traefikConfig: string; }; -/** @internal */ -export const ApplicationUpdateTraefikConfigRequest$inboundSchema: z.ZodType< - ApplicationUpdateTraefikConfigRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - traefikConfig: z.string(), -}); - /** @internal */ export type ApplicationUpdateTraefikConfigRequest$Outbound = { applicationId: string; @@ -38,21 +25,6 @@ export const ApplicationUpdateTraefikConfigRequest$outboundSchema: z.ZodType< traefikConfig: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationUpdateTraefikConfigRequest$ { - /** @deprecated use `ApplicationUpdateTraefikConfigRequest$inboundSchema` instead. */ - export const inboundSchema = - ApplicationUpdateTraefikConfigRequest$inboundSchema; - /** @deprecated use `ApplicationUpdateTraefikConfigRequest$outboundSchema` instead. */ - export const outboundSchema = - ApplicationUpdateTraefikConfigRequest$outboundSchema; - /** @deprecated use `ApplicationUpdateTraefikConfigRequest$Outbound` instead. */ - export type Outbound = ApplicationUpdateTraefikConfigRequest$Outbound; -} - export function applicationUpdateTraefikConfigRequestToJSON( applicationUpdateTraefikConfigRequest: ApplicationUpdateTraefikConfigRequest, ): string { @@ -62,14 +34,3 @@ export function applicationUpdateTraefikConfigRequestToJSON( ), ); } - -export function applicationUpdateTraefikConfigRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ApplicationUpdateTraefikConfigRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationUpdateTraefikConfigRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupcreate.ts b/src/models/operations/backupcreate.ts index 9095e09..9e69616 100644 --- a/src/models/operations/backupcreate.ts +++ b/src/models/operations/backupcreate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const BackupCreateBackupType = { Database: "database", @@ -44,71 +41,15 @@ export type BackupCreateRequest = { userId?: string | null | undefined; }; -/** @internal */ -export const BackupCreateBackupType$inboundSchema: z.ZodNativeEnum< - typeof BackupCreateBackupType -> = z.nativeEnum(BackupCreateBackupType); - /** @internal */ export const BackupCreateBackupType$outboundSchema: z.ZodNativeEnum< typeof BackupCreateBackupType -> = BackupCreateBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupCreateBackupType$ { - /** @deprecated use `BackupCreateBackupType$inboundSchema` instead. */ - export const inboundSchema = BackupCreateBackupType$inboundSchema; - /** @deprecated use `BackupCreateBackupType$outboundSchema` instead. */ - export const outboundSchema = BackupCreateBackupType$outboundSchema; -} - -/** @internal */ -export const BackupCreateDatabaseType$inboundSchema: z.ZodNativeEnum< - typeof BackupCreateDatabaseType -> = z.nativeEnum(BackupCreateDatabaseType); +> = z.nativeEnum(BackupCreateBackupType); /** @internal */ export const BackupCreateDatabaseType$outboundSchema: z.ZodNativeEnum< typeof BackupCreateDatabaseType -> = BackupCreateDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupCreateDatabaseType$ { - /** @deprecated use `BackupCreateDatabaseType$inboundSchema` instead. */ - export const inboundSchema = BackupCreateDatabaseType$inboundSchema; - /** @deprecated use `BackupCreateDatabaseType$outboundSchema` instead. */ - export const outboundSchema = BackupCreateDatabaseType$outboundSchema; -} - -/** @internal */ -export const BackupCreateRequest$inboundSchema: z.ZodType< - BackupCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupType: BackupCreateBackupType$inboundSchema.optional(), - composeId: z.nullable(z.string()).optional(), - database: z.string(), - databaseType: BackupCreateDatabaseType$inboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()).optional(), - keepLatestCount: z.nullable(z.number()).optional(), - mariadbId: z.nullable(z.string()).optional(), - metadata: z.nullable(z.any()).optional(), - mongoId: z.nullable(z.string()).optional(), - mysqlId: z.nullable(z.string()).optional(), - postgresId: z.nullable(z.string()).optional(), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()).optional(), - userId: z.nullable(z.string()).optional(), -}); +> = z.nativeEnum(BackupCreateDatabaseType); /** @internal */ export type BackupCreateRequest$Outbound = { @@ -154,19 +95,6 @@ export const BackupCreateRequest$outboundSchema: z.ZodType< userId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupCreateRequest$ { - /** @deprecated use `BackupCreateRequest$inboundSchema` instead. */ - export const inboundSchema = BackupCreateRequest$inboundSchema; - /** @deprecated use `BackupCreateRequest$outboundSchema` instead. */ - export const outboundSchema = BackupCreateRequest$outboundSchema; - /** @deprecated use `BackupCreateRequest$Outbound` instead. */ - export type Outbound = BackupCreateRequest$Outbound; -} - export function backupCreateRequestToJSON( backupCreateRequest: BackupCreateRequest, ): string { @@ -174,13 +102,3 @@ export function backupCreateRequestToJSON( BackupCreateRequest$outboundSchema.parse(backupCreateRequest), ); } - -export function backupCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/backuplistbackupfiles.ts b/src/models/operations/backuplistbackupfiles.ts index 755d4d9..d0559f8 100644 --- a/src/models/operations/backuplistbackupfiles.ts +++ b/src/models/operations/backuplistbackupfiles.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupListBackupFilesRequest = { destinationId: string; @@ -13,17 +10,6 @@ export type BackupListBackupFilesRequest = { serverId?: string | undefined; }; -/** @internal */ -export const BackupListBackupFilesRequest$inboundSchema: z.ZodType< - BackupListBackupFilesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - destinationId: z.string(), - search: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type BackupListBackupFilesRequest$Outbound = { destinationId: string; @@ -42,19 +28,6 @@ export const BackupListBackupFilesRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupListBackupFilesRequest$ { - /** @deprecated use `BackupListBackupFilesRequest$inboundSchema` instead. */ - export const inboundSchema = BackupListBackupFilesRequest$inboundSchema; - /** @deprecated use `BackupListBackupFilesRequest$outboundSchema` instead. */ - export const outboundSchema = BackupListBackupFilesRequest$outboundSchema; - /** @deprecated use `BackupListBackupFilesRequest$Outbound` instead. */ - export type Outbound = BackupListBackupFilesRequest$Outbound; -} - export function backupListBackupFilesRequestToJSON( backupListBackupFilesRequest: BackupListBackupFilesRequest, ): string { @@ -64,13 +37,3 @@ export function backupListBackupFilesRequestToJSON( ), ); } - -export function backupListBackupFilesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupListBackupFilesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupListBackupFilesRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupmanualbackupcompose.ts b/src/models/operations/backupmanualbackupcompose.ts index df4c938..84cf6a1 100644 --- a/src/models/operations/backupmanualbackupcompose.ts +++ b/src/models/operations/backupmanualbackupcompose.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupManualBackupComposeRequest = { backupId: string; }; -/** @internal */ -export const BackupManualBackupComposeRequest$inboundSchema: z.ZodType< - BackupManualBackupComposeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), -}); - /** @internal */ export type BackupManualBackupComposeRequest$Outbound = { backupId: string; @@ -34,19 +22,6 @@ export const BackupManualBackupComposeRequest$outboundSchema: z.ZodType< backupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupManualBackupComposeRequest$ { - /** @deprecated use `BackupManualBackupComposeRequest$inboundSchema` instead. */ - export const inboundSchema = BackupManualBackupComposeRequest$inboundSchema; - /** @deprecated use `BackupManualBackupComposeRequest$outboundSchema` instead. */ - export const outboundSchema = BackupManualBackupComposeRequest$outboundSchema; - /** @deprecated use `BackupManualBackupComposeRequest$Outbound` instead. */ - export type Outbound = BackupManualBackupComposeRequest$Outbound; -} - export function backupManualBackupComposeRequestToJSON( backupManualBackupComposeRequest: BackupManualBackupComposeRequest, ): string { @@ -56,13 +31,3 @@ export function backupManualBackupComposeRequestToJSON( ), ); } - -export function backupManualBackupComposeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupManualBackupComposeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupManualBackupComposeRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupmanualbackupmariadb.ts b/src/models/operations/backupmanualbackupmariadb.ts index 58628ff..c40a1ab 100644 --- a/src/models/operations/backupmanualbackupmariadb.ts +++ b/src/models/operations/backupmanualbackupmariadb.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupManualBackupMariadbRequest = { backupId: string; }; -/** @internal */ -export const BackupManualBackupMariadbRequest$inboundSchema: z.ZodType< - BackupManualBackupMariadbRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), -}); - /** @internal */ export type BackupManualBackupMariadbRequest$Outbound = { backupId: string; @@ -34,19 +22,6 @@ export const BackupManualBackupMariadbRequest$outboundSchema: z.ZodType< backupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupManualBackupMariadbRequest$ { - /** @deprecated use `BackupManualBackupMariadbRequest$inboundSchema` instead. */ - export const inboundSchema = BackupManualBackupMariadbRequest$inboundSchema; - /** @deprecated use `BackupManualBackupMariadbRequest$outboundSchema` instead. */ - export const outboundSchema = BackupManualBackupMariadbRequest$outboundSchema; - /** @deprecated use `BackupManualBackupMariadbRequest$Outbound` instead. */ - export type Outbound = BackupManualBackupMariadbRequest$Outbound; -} - export function backupManualBackupMariadbRequestToJSON( backupManualBackupMariadbRequest: BackupManualBackupMariadbRequest, ): string { @@ -56,13 +31,3 @@ export function backupManualBackupMariadbRequestToJSON( ), ); } - -export function backupManualBackupMariadbRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupManualBackupMariadbRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupManualBackupMariadbRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupmanualbackupmongo.ts b/src/models/operations/backupmanualbackupmongo.ts index 159738f..f47b4f4 100644 --- a/src/models/operations/backupmanualbackupmongo.ts +++ b/src/models/operations/backupmanualbackupmongo.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupManualBackupMongoRequest = { backupId: string; }; -/** @internal */ -export const BackupManualBackupMongoRequest$inboundSchema: z.ZodType< - BackupManualBackupMongoRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), -}); - /** @internal */ export type BackupManualBackupMongoRequest$Outbound = { backupId: string; @@ -34,19 +22,6 @@ export const BackupManualBackupMongoRequest$outboundSchema: z.ZodType< backupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupManualBackupMongoRequest$ { - /** @deprecated use `BackupManualBackupMongoRequest$inboundSchema` instead. */ - export const inboundSchema = BackupManualBackupMongoRequest$inboundSchema; - /** @deprecated use `BackupManualBackupMongoRequest$outboundSchema` instead. */ - export const outboundSchema = BackupManualBackupMongoRequest$outboundSchema; - /** @deprecated use `BackupManualBackupMongoRequest$Outbound` instead. */ - export type Outbound = BackupManualBackupMongoRequest$Outbound; -} - export function backupManualBackupMongoRequestToJSON( backupManualBackupMongoRequest: BackupManualBackupMongoRequest, ): string { @@ -56,13 +31,3 @@ export function backupManualBackupMongoRequestToJSON( ), ); } - -export function backupManualBackupMongoRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupManualBackupMongoRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupManualBackupMongoRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupmanualbackupmysql.ts b/src/models/operations/backupmanualbackupmysql.ts index 458f4cd..80ccb5a 100644 --- a/src/models/operations/backupmanualbackupmysql.ts +++ b/src/models/operations/backupmanualbackupmysql.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupManualBackupMySqlRequest = { backupId: string; }; -/** @internal */ -export const BackupManualBackupMySqlRequest$inboundSchema: z.ZodType< - BackupManualBackupMySqlRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), -}); - /** @internal */ export type BackupManualBackupMySqlRequest$Outbound = { backupId: string; @@ -34,19 +22,6 @@ export const BackupManualBackupMySqlRequest$outboundSchema: z.ZodType< backupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupManualBackupMySqlRequest$ { - /** @deprecated use `BackupManualBackupMySqlRequest$inboundSchema` instead. */ - export const inboundSchema = BackupManualBackupMySqlRequest$inboundSchema; - /** @deprecated use `BackupManualBackupMySqlRequest$outboundSchema` instead. */ - export const outboundSchema = BackupManualBackupMySqlRequest$outboundSchema; - /** @deprecated use `BackupManualBackupMySqlRequest$Outbound` instead. */ - export type Outbound = BackupManualBackupMySqlRequest$Outbound; -} - export function backupManualBackupMySqlRequestToJSON( backupManualBackupMySqlRequest: BackupManualBackupMySqlRequest, ): string { @@ -56,13 +31,3 @@ export function backupManualBackupMySqlRequestToJSON( ), ); } - -export function backupManualBackupMySqlRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupManualBackupMySqlRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupManualBackupMySqlRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupmanualbackuppostgres.ts b/src/models/operations/backupmanualbackuppostgres.ts index 07e02ed..31e9853 100644 --- a/src/models/operations/backupmanualbackuppostgres.ts +++ b/src/models/operations/backupmanualbackuppostgres.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupManualBackupPostgresRequest = { backupId: string; }; -/** @internal */ -export const BackupManualBackupPostgresRequest$inboundSchema: z.ZodType< - BackupManualBackupPostgresRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), -}); - /** @internal */ export type BackupManualBackupPostgresRequest$Outbound = { backupId: string; @@ -34,20 +22,6 @@ export const BackupManualBackupPostgresRequest$outboundSchema: z.ZodType< backupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupManualBackupPostgresRequest$ { - /** @deprecated use `BackupManualBackupPostgresRequest$inboundSchema` instead. */ - export const inboundSchema = BackupManualBackupPostgresRequest$inboundSchema; - /** @deprecated use `BackupManualBackupPostgresRequest$outboundSchema` instead. */ - export const outboundSchema = - BackupManualBackupPostgresRequest$outboundSchema; - /** @deprecated use `BackupManualBackupPostgresRequest$Outbound` instead. */ - export type Outbound = BackupManualBackupPostgresRequest$Outbound; -} - export function backupManualBackupPostgresRequestToJSON( backupManualBackupPostgresRequest: BackupManualBackupPostgresRequest, ): string { @@ -57,13 +31,3 @@ export function backupManualBackupPostgresRequestToJSON( ), ); } - -export function backupManualBackupPostgresRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupManualBackupPostgresRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupManualBackupPostgresRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupmanualbackupwebserver.ts b/src/models/operations/backupmanualbackupwebserver.ts index 300c751..8810d3b 100644 --- a/src/models/operations/backupmanualbackupwebserver.ts +++ b/src/models/operations/backupmanualbackupwebserver.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupManualBackupWebServerRequest = { backupId: string; }; -/** @internal */ -export const BackupManualBackupWebServerRequest$inboundSchema: z.ZodType< - BackupManualBackupWebServerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), -}); - /** @internal */ export type BackupManualBackupWebServerRequest$Outbound = { backupId: string; @@ -34,20 +22,6 @@ export const BackupManualBackupWebServerRequest$outboundSchema: z.ZodType< backupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupManualBackupWebServerRequest$ { - /** @deprecated use `BackupManualBackupWebServerRequest$inboundSchema` instead. */ - export const inboundSchema = BackupManualBackupWebServerRequest$inboundSchema; - /** @deprecated use `BackupManualBackupWebServerRequest$outboundSchema` instead. */ - export const outboundSchema = - BackupManualBackupWebServerRequest$outboundSchema; - /** @deprecated use `BackupManualBackupWebServerRequest$Outbound` instead. */ - export type Outbound = BackupManualBackupWebServerRequest$Outbound; -} - export function backupManualBackupWebServerRequestToJSON( backupManualBackupWebServerRequest: BackupManualBackupWebServerRequest, ): string { @@ -57,14 +31,3 @@ export function backupManualBackupWebServerRequestToJSON( ), ); } - -export function backupManualBackupWebServerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - BackupManualBackupWebServerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupManualBackupWebServerRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupone.ts b/src/models/operations/backupone.ts index f4efca5..3c32ab4 100644 --- a/src/models/operations/backupone.ts +++ b/src/models/operations/backupone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupOneRequest = { backupId: string; }; -/** @internal */ -export const BackupOneRequest$inboundSchema: z.ZodType< - BackupOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), -}); - /** @internal */ export type BackupOneRequest$Outbound = { backupId: string; @@ -34,19 +22,6 @@ export const BackupOneRequest$outboundSchema: z.ZodType< backupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupOneRequest$ { - /** @deprecated use `BackupOneRequest$inboundSchema` instead. */ - export const inboundSchema = BackupOneRequest$inboundSchema; - /** @deprecated use `BackupOneRequest$outboundSchema` instead. */ - export const outboundSchema = BackupOneRequest$outboundSchema; - /** @deprecated use `BackupOneRequest$Outbound` instead. */ - export type Outbound = BackupOneRequest$Outbound; -} - export function backupOneRequestToJSON( backupOneRequest: BackupOneRequest, ): string { @@ -54,13 +29,3 @@ export function backupOneRequestToJSON( BackupOneRequest$outboundSchema.parse(backupOneRequest), ); } - -export function backupOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupremove.ts b/src/models/operations/backupremove.ts index e3e8b7a..3f3fa16 100644 --- a/src/models/operations/backupremove.ts +++ b/src/models/operations/backupremove.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BackupRemoveRequest = { backupId: string; }; -/** @internal */ -export const BackupRemoveRequest$inboundSchema: z.ZodType< - BackupRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), -}); - /** @internal */ export type BackupRemoveRequest$Outbound = { backupId: string; @@ -34,19 +22,6 @@ export const BackupRemoveRequest$outboundSchema: z.ZodType< backupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupRemoveRequest$ { - /** @deprecated use `BackupRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = BackupRemoveRequest$inboundSchema; - /** @deprecated use `BackupRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = BackupRemoveRequest$outboundSchema; - /** @deprecated use `BackupRemoveRequest$Outbound` instead. */ - export type Outbound = BackupRemoveRequest$Outbound; -} - export function backupRemoveRequestToJSON( backupRemoveRequest: BackupRemoveRequest, ): string { @@ -54,13 +29,3 @@ export function backupRemoveRequestToJSON( BackupRemoveRequest$outboundSchema.parse(backupRemoveRequest), ); } - -export function backupRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupRemoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/backupupdate.ts b/src/models/operations/backupupdate.ts index 8c83f4e..196925e 100644 --- a/src/models/operations/backupupdate.ts +++ b/src/models/operations/backupupdate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const BackupUpdateDatabaseType = { Postgres: "postgres", @@ -32,44 +29,10 @@ export type BackupUpdateRequest = { serviceName: string | null; }; -/** @internal */ -export const BackupUpdateDatabaseType$inboundSchema: z.ZodNativeEnum< - typeof BackupUpdateDatabaseType -> = z.nativeEnum(BackupUpdateDatabaseType); - /** @internal */ export const BackupUpdateDatabaseType$outboundSchema: z.ZodNativeEnum< typeof BackupUpdateDatabaseType -> = BackupUpdateDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupUpdateDatabaseType$ { - /** @deprecated use `BackupUpdateDatabaseType$inboundSchema` instead. */ - export const inboundSchema = BackupUpdateDatabaseType$inboundSchema; - /** @deprecated use `BackupUpdateDatabaseType$outboundSchema` instead. */ - export const outboundSchema = BackupUpdateDatabaseType$outboundSchema; -} - -/** @internal */ -export const BackupUpdateRequest$inboundSchema: z.ZodType< - BackupUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - backupId: z.string(), - database: z.string(), - databaseType: BackupUpdateDatabaseType$inboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()).optional(), - keepLatestCount: z.nullable(z.number()).optional(), - metadata: z.nullable(z.any()).optional(), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), -}); +> = z.nativeEnum(BackupUpdateDatabaseType); /** @internal */ export type BackupUpdateRequest$Outbound = { @@ -103,19 +66,6 @@ export const BackupUpdateRequest$outboundSchema: z.ZodType< serviceName: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BackupUpdateRequest$ { - /** @deprecated use `BackupUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = BackupUpdateRequest$inboundSchema; - /** @deprecated use `BackupUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = BackupUpdateRequest$outboundSchema; - /** @deprecated use `BackupUpdateRequest$Outbound` instead. */ - export type Outbound = BackupUpdateRequest$Outbound; -} - export function backupUpdateRequestToJSON( backupUpdateRequest: BackupUpdateRequest, ): string { @@ -123,13 +73,3 @@ export function backupUpdateRequestToJSON( BackupUpdateRequest$outboundSchema.parse(backupUpdateRequest), ); } - -export function backupUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BackupUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BackupUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/bitbucketbitbucketproviders.ts b/src/models/operations/bitbucketbitbucketproviders.ts index c0a9203..2ed1133 100644 --- a/src/models/operations/bitbucketbitbucketproviders.ts +++ b/src/models/operations/bitbucketbitbucketproviders.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -42,24 +42,6 @@ export const BitbucketBitbucketProvidersProviderType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(BitbucketBitbucketProvidersProviderType); -/** @internal */ -export const BitbucketBitbucketProvidersProviderType$outboundSchema: - z.ZodNativeEnum = - BitbucketBitbucketProvidersProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketBitbucketProvidersProviderType$ { - /** @deprecated use `BitbucketBitbucketProvidersProviderType$inboundSchema` instead. */ - export const inboundSchema = - BitbucketBitbucketProvidersProviderType$inboundSchema; - /** @deprecated use `BitbucketBitbucketProvidersProviderType$outboundSchema` instead. */ - export const outboundSchema = - BitbucketBitbucketProvidersProviderType$outboundSchema; -} - /** @internal */ export const BitbucketBitbucketProvidersGitProvider$inboundSchema: z.ZodType< BitbucketBitbucketProvidersGitProvider, @@ -74,56 +56,6 @@ export const BitbucketBitbucketProvidersGitProvider$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type BitbucketBitbucketProvidersGitProvider$Outbound = { - createdAt: string; - gitProviderId: string; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const BitbucketBitbucketProvidersGitProvider$outboundSchema: z.ZodType< - BitbucketBitbucketProvidersGitProvider$Outbound, - z.ZodTypeDef, - BitbucketBitbucketProvidersGitProvider -> = z.object({ - createdAt: z.string(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string(), - providerType: BitbucketBitbucketProvidersProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketBitbucketProvidersGitProvider$ { - /** @deprecated use `BitbucketBitbucketProvidersGitProvider$inboundSchema` instead. */ - export const inboundSchema = - BitbucketBitbucketProvidersGitProvider$inboundSchema; - /** @deprecated use `BitbucketBitbucketProvidersGitProvider$outboundSchema` instead. */ - export const outboundSchema = - BitbucketBitbucketProvidersGitProvider$outboundSchema; - /** @deprecated use `BitbucketBitbucketProvidersGitProvider$Outbound` instead. */ - export type Outbound = BitbucketBitbucketProvidersGitProvider$Outbound; -} - -export function bitbucketBitbucketProvidersGitProviderToJSON( - bitbucketBitbucketProvidersGitProvider: - BitbucketBitbucketProvidersGitProvider, -): string { - return JSON.stringify( - BitbucketBitbucketProvidersGitProvider$outboundSchema.parse( - bitbucketBitbucketProvidersGitProvider, - ), - ); -} - export function bitbucketBitbucketProvidersGitProviderFromJSON( jsonString: string, ): SafeParseResult { @@ -147,50 +79,6 @@ export const BitbucketBitbucketProvidersResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type BitbucketBitbucketProvidersResponseBody$Outbound = { - bitbucketId: string; - gitProvider: BitbucketBitbucketProvidersGitProvider$Outbound; -}; - -/** @internal */ -export const BitbucketBitbucketProvidersResponseBody$outboundSchema: z.ZodType< - BitbucketBitbucketProvidersResponseBody$Outbound, - z.ZodTypeDef, - BitbucketBitbucketProvidersResponseBody -> = z.object({ - bitbucketId: z.string(), - gitProvider: z.lazy(() => - BitbucketBitbucketProvidersGitProvider$outboundSchema - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketBitbucketProvidersResponseBody$ { - /** @deprecated use `BitbucketBitbucketProvidersResponseBody$inboundSchema` instead. */ - export const inboundSchema = - BitbucketBitbucketProvidersResponseBody$inboundSchema; - /** @deprecated use `BitbucketBitbucketProvidersResponseBody$outboundSchema` instead. */ - export const outboundSchema = - BitbucketBitbucketProvidersResponseBody$outboundSchema; - /** @deprecated use `BitbucketBitbucketProvidersResponseBody$Outbound` instead. */ - export type Outbound = BitbucketBitbucketProvidersResponseBody$Outbound; -} - -export function bitbucketBitbucketProvidersResponseBodyToJSON( - bitbucketBitbucketProvidersResponseBody: - BitbucketBitbucketProvidersResponseBody, -): string { - return JSON.stringify( - BitbucketBitbucketProvidersResponseBody$outboundSchema.parse( - bitbucketBitbucketProvidersResponseBody, - ), - ); -} - export function bitbucketBitbucketProvidersResponseBodyFromJSON( jsonString: string, ): SafeParseResult< @@ -217,46 +105,6 @@ export const BitbucketBitbucketProvidersResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => BitbucketBitbucketProvidersResponseBody$inboundSchema)), ]); -/** @internal */ -export type BitbucketBitbucketProvidersResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const BitbucketBitbucketProvidersResponse$outboundSchema: z.ZodType< - BitbucketBitbucketProvidersResponse$Outbound, - z.ZodTypeDef, - BitbucketBitbucketProvidersResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => BitbucketBitbucketProvidersResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketBitbucketProvidersResponse$ { - /** @deprecated use `BitbucketBitbucketProvidersResponse$inboundSchema` instead. */ - export const inboundSchema = - BitbucketBitbucketProvidersResponse$inboundSchema; - /** @deprecated use `BitbucketBitbucketProvidersResponse$outboundSchema` instead. */ - export const outboundSchema = - BitbucketBitbucketProvidersResponse$outboundSchema; - /** @deprecated use `BitbucketBitbucketProvidersResponse$Outbound` instead. */ - export type Outbound = BitbucketBitbucketProvidersResponse$Outbound; -} - -export function bitbucketBitbucketProvidersResponseToJSON( - bitbucketBitbucketProvidersResponse: BitbucketBitbucketProvidersResponse, -): string { - return JSON.stringify( - BitbucketBitbucketProvidersResponse$outboundSchema.parse( - bitbucketBitbucketProvidersResponse, - ), - ); -} - export function bitbucketBitbucketProvidersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/bitbucketcreate.ts b/src/models/operations/bitbucketcreate.ts index 76c8485..322cde7 100644 --- a/src/models/operations/bitbucketcreate.ts +++ b/src/models/operations/bitbucketcreate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BitbucketCreateRequest = { appPassword?: string | undefined; @@ -17,21 +14,6 @@ export type BitbucketCreateRequest = { name: string; }; -/** @internal */ -export const BitbucketCreateRequest$inboundSchema: z.ZodType< - BitbucketCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appPassword: z.string().optional(), - authId: z.string(), - bitbucketId: z.string().optional(), - bitbucketUsername: z.string().optional(), - bitbucketWorkspaceName: z.string().optional(), - gitProviderId: z.string().optional(), - name: z.string(), -}); - /** @internal */ export type BitbucketCreateRequest$Outbound = { appPassword?: string | undefined; @@ -58,19 +40,6 @@ export const BitbucketCreateRequest$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketCreateRequest$ { - /** @deprecated use `BitbucketCreateRequest$inboundSchema` instead. */ - export const inboundSchema = BitbucketCreateRequest$inboundSchema; - /** @deprecated use `BitbucketCreateRequest$outboundSchema` instead. */ - export const outboundSchema = BitbucketCreateRequest$outboundSchema; - /** @deprecated use `BitbucketCreateRequest$Outbound` instead. */ - export type Outbound = BitbucketCreateRequest$Outbound; -} - export function bitbucketCreateRequestToJSON( bitbucketCreateRequest: BitbucketCreateRequest, ): string { @@ -78,13 +47,3 @@ export function bitbucketCreateRequestToJSON( BitbucketCreateRequest$outboundSchema.parse(bitbucketCreateRequest), ); } - -export function bitbucketCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BitbucketCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BitbucketCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/bitbucketgetbitbucketbranches.ts b/src/models/operations/bitbucketgetbitbucketbranches.ts index 0416e33..0f2608b 100644 --- a/src/models/operations/bitbucketgetbitbucketbranches.ts +++ b/src/models/operations/bitbucketgetbitbucketbranches.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BitbucketGetBitbucketBranchesRequest = { owner: string; @@ -13,17 +10,6 @@ export type BitbucketGetBitbucketBranchesRequest = { bitbucketId?: string | undefined; }; -/** @internal */ -export const BitbucketGetBitbucketBranchesRequest$inboundSchema: z.ZodType< - BitbucketGetBitbucketBranchesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - owner: z.string(), - repo: z.string(), - bitbucketId: z.string().optional(), -}); - /** @internal */ export type BitbucketGetBitbucketBranchesRequest$Outbound = { owner: string; @@ -42,21 +28,6 @@ export const BitbucketGetBitbucketBranchesRequest$outboundSchema: z.ZodType< bitbucketId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketGetBitbucketBranchesRequest$ { - /** @deprecated use `BitbucketGetBitbucketBranchesRequest$inboundSchema` instead. */ - export const inboundSchema = - BitbucketGetBitbucketBranchesRequest$inboundSchema; - /** @deprecated use `BitbucketGetBitbucketBranchesRequest$outboundSchema` instead. */ - export const outboundSchema = - BitbucketGetBitbucketBranchesRequest$outboundSchema; - /** @deprecated use `BitbucketGetBitbucketBranchesRequest$Outbound` instead. */ - export type Outbound = BitbucketGetBitbucketBranchesRequest$Outbound; -} - export function bitbucketGetBitbucketBranchesRequestToJSON( bitbucketGetBitbucketBranchesRequest: BitbucketGetBitbucketBranchesRequest, ): string { @@ -66,14 +37,3 @@ export function bitbucketGetBitbucketBranchesRequestToJSON( ), ); } - -export function bitbucketGetBitbucketBranchesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - BitbucketGetBitbucketBranchesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BitbucketGetBitbucketBranchesRequest' from JSON`, - ); -} diff --git a/src/models/operations/bitbucketgetbitbucketrepositories.ts b/src/models/operations/bitbucketgetbitbucketrepositories.ts index ba01565..7ba5c93 100644 --- a/src/models/operations/bitbucketgetbitbucketrepositories.ts +++ b/src/models/operations/bitbucketgetbitbucketrepositories.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type BitbucketGetBitbucketRepositoriesRequest = { bitbucketId: string; }; -/** @internal */ -export const BitbucketGetBitbucketRepositoriesRequest$inboundSchema: z.ZodType< - BitbucketGetBitbucketRepositoriesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - bitbucketId: z.string(), -}); - /** @internal */ export type BitbucketGetBitbucketRepositoriesRequest$Outbound = { bitbucketId: string; @@ -34,21 +22,6 @@ export const BitbucketGetBitbucketRepositoriesRequest$outboundSchema: z.ZodType< bitbucketId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketGetBitbucketRepositoriesRequest$ { - /** @deprecated use `BitbucketGetBitbucketRepositoriesRequest$inboundSchema` instead. */ - export const inboundSchema = - BitbucketGetBitbucketRepositoriesRequest$inboundSchema; - /** @deprecated use `BitbucketGetBitbucketRepositoriesRequest$outboundSchema` instead. */ - export const outboundSchema = - BitbucketGetBitbucketRepositoriesRequest$outboundSchema; - /** @deprecated use `BitbucketGetBitbucketRepositoriesRequest$Outbound` instead. */ - export type Outbound = BitbucketGetBitbucketRepositoriesRequest$Outbound; -} - export function bitbucketGetBitbucketRepositoriesRequestToJSON( bitbucketGetBitbucketRepositoriesRequest: BitbucketGetBitbucketRepositoriesRequest, @@ -59,19 +32,3 @@ export function bitbucketGetBitbucketRepositoriesRequestToJSON( ), ); } - -export function bitbucketGetBitbucketRepositoriesRequestFromJSON( - jsonString: string, -): SafeParseResult< - BitbucketGetBitbucketRepositoriesRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - BitbucketGetBitbucketRepositoriesRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'BitbucketGetBitbucketRepositoriesRequest' from JSON`, - ); -} diff --git a/src/models/operations/bitbucketone.ts b/src/models/operations/bitbucketone.ts index 11042c9..1ca3adc 100644 --- a/src/models/operations/bitbucketone.ts +++ b/src/models/operations/bitbucketone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -46,15 +46,6 @@ export type BitbucketOneResponseBody = { export type BitbucketOneResponse = BitbucketOneResponseBody | models.ErrorT; -/** @internal */ -export const BitbucketOneRequest$inboundSchema: z.ZodType< - BitbucketOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - bitbucketId: z.string(), -}); - /** @internal */ export type BitbucketOneRequest$Outbound = { bitbucketId: string; @@ -69,19 +60,6 @@ export const BitbucketOneRequest$outboundSchema: z.ZodType< bitbucketId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketOneRequest$ { - /** @deprecated use `BitbucketOneRequest$inboundSchema` instead. */ - export const inboundSchema = BitbucketOneRequest$inboundSchema; - /** @deprecated use `BitbucketOneRequest$outboundSchema` instead. */ - export const outboundSchema = BitbucketOneRequest$outboundSchema; - /** @deprecated use `BitbucketOneRequest$Outbound` instead. */ - export type Outbound = BitbucketOneRequest$Outbound; -} - export function bitbucketOneRequestToJSON( bitbucketOneRequest: BitbucketOneRequest, ): string { @@ -90,37 +68,11 @@ export function bitbucketOneRequestToJSON( ); } -export function bitbucketOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BitbucketOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BitbucketOneRequest' from JSON`, - ); -} - /** @internal */ export const BitbucketOneProviderType$inboundSchema: z.ZodNativeEnum< typeof BitbucketOneProviderType > = z.nativeEnum(BitbucketOneProviderType); -/** @internal */ -export const BitbucketOneProviderType$outboundSchema: z.ZodNativeEnum< - typeof BitbucketOneProviderType -> = BitbucketOneProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketOneProviderType$ { - /** @deprecated use `BitbucketOneProviderType$inboundSchema` instead. */ - export const inboundSchema = BitbucketOneProviderType$inboundSchema; - /** @deprecated use `BitbucketOneProviderType$outboundSchema` instead. */ - export const outboundSchema = BitbucketOneProviderType$outboundSchema; -} - /** @internal */ export const BitbucketOneGitProvider$inboundSchema: z.ZodType< BitbucketOneGitProvider, @@ -135,51 +87,6 @@ export const BitbucketOneGitProvider$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type BitbucketOneGitProvider$Outbound = { - createdAt: string; - gitProviderId: string; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const BitbucketOneGitProvider$outboundSchema: z.ZodType< - BitbucketOneGitProvider$Outbound, - z.ZodTypeDef, - BitbucketOneGitProvider -> = z.object({ - createdAt: z.string(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string(), - providerType: BitbucketOneProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketOneGitProvider$ { - /** @deprecated use `BitbucketOneGitProvider$inboundSchema` instead. */ - export const inboundSchema = BitbucketOneGitProvider$inboundSchema; - /** @deprecated use `BitbucketOneGitProvider$outboundSchema` instead. */ - export const outboundSchema = BitbucketOneGitProvider$outboundSchema; - /** @deprecated use `BitbucketOneGitProvider$Outbound` instead. */ - export type Outbound = BitbucketOneGitProvider$Outbound; -} - -export function bitbucketOneGitProviderToJSON( - bitbucketOneGitProvider: BitbucketOneGitProvider, -): string { - return JSON.stringify( - BitbucketOneGitProvider$outboundSchema.parse(bitbucketOneGitProvider), - ); -} - export function bitbucketOneGitProviderFromJSON( jsonString: string, ): SafeParseResult { @@ -204,51 +111,6 @@ export const BitbucketOneResponseBody$inboundSchema: z.ZodType< gitProviderId: z.string(), }); -/** @internal */ -export type BitbucketOneResponseBody$Outbound = { - appPassword: string | null; - bitbucketId: string; - bitbucketUsername: string | null; - bitbucketWorkspaceName: string | null; - gitProvider: BitbucketOneGitProvider$Outbound; - gitProviderId: string; -}; - -/** @internal */ -export const BitbucketOneResponseBody$outboundSchema: z.ZodType< - BitbucketOneResponseBody$Outbound, - z.ZodTypeDef, - BitbucketOneResponseBody -> = z.object({ - appPassword: z.nullable(z.string()), - bitbucketId: z.string(), - bitbucketUsername: z.nullable(z.string()), - bitbucketWorkspaceName: z.nullable(z.string()), - gitProvider: z.lazy(() => BitbucketOneGitProvider$outboundSchema), - gitProviderId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketOneResponseBody$ { - /** @deprecated use `BitbucketOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = BitbucketOneResponseBody$inboundSchema; - /** @deprecated use `BitbucketOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = BitbucketOneResponseBody$outboundSchema; - /** @deprecated use `BitbucketOneResponseBody$Outbound` instead. */ - export type Outbound = BitbucketOneResponseBody$Outbound; -} - -export function bitbucketOneResponseBodyToJSON( - bitbucketOneResponseBody: BitbucketOneResponseBody, -): string { - return JSON.stringify( - BitbucketOneResponseBody$outboundSchema.parse(bitbucketOneResponseBody), - ); -} - export function bitbucketOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -269,42 +131,6 @@ export const BitbucketOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type BitbucketOneResponse$Outbound = - | BitbucketOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const BitbucketOneResponse$outboundSchema: z.ZodType< - BitbucketOneResponse$Outbound, - z.ZodTypeDef, - BitbucketOneResponse -> = z.union([ - z.lazy(() => BitbucketOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketOneResponse$ { - /** @deprecated use `BitbucketOneResponse$inboundSchema` instead. */ - export const inboundSchema = BitbucketOneResponse$inboundSchema; - /** @deprecated use `BitbucketOneResponse$outboundSchema` instead. */ - export const outboundSchema = BitbucketOneResponse$outboundSchema; - /** @deprecated use `BitbucketOneResponse$Outbound` instead. */ - export type Outbound = BitbucketOneResponse$Outbound; -} - -export function bitbucketOneResponseToJSON( - bitbucketOneResponse: BitbucketOneResponse, -): string { - return JSON.stringify( - BitbucketOneResponse$outboundSchema.parse(bitbucketOneResponse), - ); -} - export function bitbucketOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/bitbuckettestconnection.ts b/src/models/operations/bitbuckettestconnection.ts index cb7be2f..3185f87 100644 --- a/src/models/operations/bitbuckettestconnection.ts +++ b/src/models/operations/bitbuckettestconnection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -16,17 +16,6 @@ export type BitbucketTestConnectionRequest = { export type BitbucketTestConnectionResponse = models.ErrorT | string; -/** @internal */ -export const BitbucketTestConnectionRequest$inboundSchema: z.ZodType< - BitbucketTestConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - bitbucketId: z.string(), - bitbucketUsername: z.string().optional(), - workspaceName: z.string().optional(), -}); - /** @internal */ export type BitbucketTestConnectionRequest$Outbound = { bitbucketId: string; @@ -45,19 +34,6 @@ export const BitbucketTestConnectionRequest$outboundSchema: z.ZodType< workspaceName: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketTestConnectionRequest$ { - /** @deprecated use `BitbucketTestConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = BitbucketTestConnectionRequest$inboundSchema; - /** @deprecated use `BitbucketTestConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = BitbucketTestConnectionRequest$outboundSchema; - /** @deprecated use `BitbucketTestConnectionRequest$Outbound` instead. */ - export type Outbound = BitbucketTestConnectionRequest$Outbound; -} - export function bitbucketTestConnectionRequestToJSON( bitbucketTestConnectionRequest: BitbucketTestConnectionRequest, ): string { @@ -68,16 +44,6 @@ export function bitbucketTestConnectionRequestToJSON( ); } -export function bitbucketTestConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BitbucketTestConnectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BitbucketTestConnectionRequest' from JSON`, - ); -} - /** @internal */ export const BitbucketTestConnectionResponse$inboundSchema: z.ZodType< BitbucketTestConnectionResponse, @@ -85,41 +51,6 @@ export const BitbucketTestConnectionResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.string()]); -/** @internal */ -export type BitbucketTestConnectionResponse$Outbound = - | models.ErrorT$Outbound - | string; - -/** @internal */ -export const BitbucketTestConnectionResponse$outboundSchema: z.ZodType< - BitbucketTestConnectionResponse$Outbound, - z.ZodTypeDef, - BitbucketTestConnectionResponse -> = z.union([models.ErrorT$outboundSchema, z.string()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketTestConnectionResponse$ { - /** @deprecated use `BitbucketTestConnectionResponse$inboundSchema` instead. */ - export const inboundSchema = BitbucketTestConnectionResponse$inboundSchema; - /** @deprecated use `BitbucketTestConnectionResponse$outboundSchema` instead. */ - export const outboundSchema = BitbucketTestConnectionResponse$outboundSchema; - /** @deprecated use `BitbucketTestConnectionResponse$Outbound` instead. */ - export type Outbound = BitbucketTestConnectionResponse$Outbound; -} - -export function bitbucketTestConnectionResponseToJSON( - bitbucketTestConnectionResponse: BitbucketTestConnectionResponse, -): string { - return JSON.stringify( - BitbucketTestConnectionResponse$outboundSchema.parse( - bitbucketTestConnectionResponse, - ), - ); -} - export function bitbucketTestConnectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/bitbucketupdate.ts b/src/models/operations/bitbucketupdate.ts index bac438d..caf4ff1 100644 --- a/src/models/operations/bitbucketupdate.ts +++ b/src/models/operations/bitbucketupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,21 +33,6 @@ export type BitbucketUpdateResponse = | BitbucketUpdateResponseBody | models.ErrorT; -/** @internal */ -export const BitbucketUpdateRequest$inboundSchema: z.ZodType< - BitbucketUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appPassword: z.nullable(z.string()).optional(), - bitbucketId: z.string(), - bitbucketUsername: z.string().optional(), - bitbucketWorkspaceName: z.string().optional(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string().optional(), -}); - /** @internal */ export type BitbucketUpdateRequest$Outbound = { appPassword?: string | null | undefined; @@ -74,19 +59,6 @@ export const BitbucketUpdateRequest$outboundSchema: z.ZodType< organizationId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketUpdateRequest$ { - /** @deprecated use `BitbucketUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = BitbucketUpdateRequest$inboundSchema; - /** @deprecated use `BitbucketUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = BitbucketUpdateRequest$outboundSchema; - /** @deprecated use `BitbucketUpdateRequest$Outbound` instead. */ - export type Outbound = BitbucketUpdateRequest$Outbound; -} - export function bitbucketUpdateRequestToJSON( bitbucketUpdateRequest: BitbucketUpdateRequest, ): string { @@ -95,16 +67,6 @@ export function bitbucketUpdateRequestToJSON( ); } -export function bitbucketUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BitbucketUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BitbucketUpdateRequest' from JSON`, - ); -} - /** @internal */ export const BitbucketUpdateResponseBody$inboundSchema: z.ZodType< BitbucketUpdateResponseBody, @@ -118,51 +80,6 @@ export const BitbucketUpdateResponseBody$inboundSchema: z.ZodType< gitProviderId: z.string(), }); -/** @internal */ -export type BitbucketUpdateResponseBody$Outbound = { - appPassword: string | null; - bitbucketId: string; - bitbucketUsername: string | null; - bitbucketWorkspaceName: string | null; - gitProviderId: string; -}; - -/** @internal */ -export const BitbucketUpdateResponseBody$outboundSchema: z.ZodType< - BitbucketUpdateResponseBody$Outbound, - z.ZodTypeDef, - BitbucketUpdateResponseBody -> = z.object({ - appPassword: z.nullable(z.string()), - bitbucketId: z.string(), - bitbucketUsername: z.nullable(z.string()), - bitbucketWorkspaceName: z.nullable(z.string()), - gitProviderId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketUpdateResponseBody$ { - /** @deprecated use `BitbucketUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = BitbucketUpdateResponseBody$inboundSchema; - /** @deprecated use `BitbucketUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = BitbucketUpdateResponseBody$outboundSchema; - /** @deprecated use `BitbucketUpdateResponseBody$Outbound` instead. */ - export type Outbound = BitbucketUpdateResponseBody$Outbound; -} - -export function bitbucketUpdateResponseBodyToJSON( - bitbucketUpdateResponseBody: BitbucketUpdateResponseBody, -): string { - return JSON.stringify( - BitbucketUpdateResponseBody$outboundSchema.parse( - bitbucketUpdateResponseBody, - ), - ); -} - export function bitbucketUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -183,42 +100,6 @@ export const BitbucketUpdateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type BitbucketUpdateResponse$Outbound = - | BitbucketUpdateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const BitbucketUpdateResponse$outboundSchema: z.ZodType< - BitbucketUpdateResponse$Outbound, - z.ZodTypeDef, - BitbucketUpdateResponse -> = z.union([ - z.lazy(() => BitbucketUpdateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BitbucketUpdateResponse$ { - /** @deprecated use `BitbucketUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = BitbucketUpdateResponse$inboundSchema; - /** @deprecated use `BitbucketUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = BitbucketUpdateResponse$outboundSchema; - /** @deprecated use `BitbucketUpdateResponse$Outbound` instead. */ - export type Outbound = BitbucketUpdateResponse$Outbound; -} - -export function bitbucketUpdateResponseToJSON( - bitbucketUpdateResponse: BitbucketUpdateResponse, -): string { - return JSON.stringify( - BitbucketUpdateResponse$outboundSchema.parse(bitbucketUpdateResponse), - ); -} - export function bitbucketUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/certificatesall.ts b/src/models/operations/certificatesall.ts index 7d2c987..fa99b9b 100644 --- a/src/models/operations/certificatesall.ts +++ b/src/models/operations/certificatesall.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -39,57 +39,6 @@ export const CertificatesAllResponseBody$inboundSchema: z.ZodType< serverId: z.nullable(z.string()), }); -/** @internal */ -export type CertificatesAllResponseBody$Outbound = { - autoRenew: boolean | null; - certificateData: string; - certificateId: string; - certificatePath: string; - name: string; - organizationId: string; - privateKey: string; - serverId: string | null; -}; - -/** @internal */ -export const CertificatesAllResponseBody$outboundSchema: z.ZodType< - CertificatesAllResponseBody$Outbound, - z.ZodTypeDef, - CertificatesAllResponseBody -> = z.object({ - autoRenew: z.nullable(z.boolean()), - certificateData: z.string(), - certificateId: z.string(), - certificatePath: z.string(), - name: z.string(), - organizationId: z.string(), - privateKey: z.string(), - serverId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesAllResponseBody$ { - /** @deprecated use `CertificatesAllResponseBody$inboundSchema` instead. */ - export const inboundSchema = CertificatesAllResponseBody$inboundSchema; - /** @deprecated use `CertificatesAllResponseBody$outboundSchema` instead. */ - export const outboundSchema = CertificatesAllResponseBody$outboundSchema; - /** @deprecated use `CertificatesAllResponseBody$Outbound` instead. */ - export type Outbound = CertificatesAllResponseBody$Outbound; -} - -export function certificatesAllResponseBodyToJSON( - certificatesAllResponseBody: CertificatesAllResponseBody, -): string { - return JSON.stringify( - CertificatesAllResponseBody$outboundSchema.parse( - certificatesAllResponseBody, - ), - ); -} - export function certificatesAllResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -110,42 +59,6 @@ export const CertificatesAllResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => CertificatesAllResponseBody$inboundSchema)), ]); -/** @internal */ -export type CertificatesAllResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const CertificatesAllResponse$outboundSchema: z.ZodType< - CertificatesAllResponse$Outbound, - z.ZodTypeDef, - CertificatesAllResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => CertificatesAllResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesAllResponse$ { - /** @deprecated use `CertificatesAllResponse$inboundSchema` instead. */ - export const inboundSchema = CertificatesAllResponse$inboundSchema; - /** @deprecated use `CertificatesAllResponse$outboundSchema` instead. */ - export const outboundSchema = CertificatesAllResponse$outboundSchema; - /** @deprecated use `CertificatesAllResponse$Outbound` instead. */ - export type Outbound = CertificatesAllResponse$Outbound; -} - -export function certificatesAllResponseToJSON( - certificatesAllResponse: CertificatesAllResponse, -): string { - return JSON.stringify( - CertificatesAllResponse$outboundSchema.parse(certificatesAllResponse), - ); -} - export function certificatesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/certificatescreate.ts b/src/models/operations/certificatescreate.ts index c6abf5e..adf8b8e 100644 --- a/src/models/operations/certificatescreate.ts +++ b/src/models/operations/certificatescreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -37,22 +37,6 @@ export type CertificatesCreateResponse = | CertificatesCreateResponseBody | models.ErrorT; -/** @internal */ -export const CertificatesCreateRequest$inboundSchema: z.ZodType< - CertificatesCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - autoRenew: z.nullable(z.boolean()).optional(), - certificateData: z.string(), - certificateId: z.string().optional(), - certificatePath: z.string().optional(), - name: z.string(), - organizationId: z.string(), - privateKey: z.string(), - serverId: z.nullable(z.string()).optional(), -}); - /** @internal */ export type CertificatesCreateRequest$Outbound = { autoRenew?: boolean | null | undefined; @@ -81,19 +65,6 @@ export const CertificatesCreateRequest$outboundSchema: z.ZodType< serverId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesCreateRequest$ { - /** @deprecated use `CertificatesCreateRequest$inboundSchema` instead. */ - export const inboundSchema = CertificatesCreateRequest$inboundSchema; - /** @deprecated use `CertificatesCreateRequest$outboundSchema` instead. */ - export const outboundSchema = CertificatesCreateRequest$outboundSchema; - /** @deprecated use `CertificatesCreateRequest$Outbound` instead. */ - export type Outbound = CertificatesCreateRequest$Outbound; -} - export function certificatesCreateRequestToJSON( certificatesCreateRequest: CertificatesCreateRequest, ): string { @@ -102,16 +73,6 @@ export function certificatesCreateRequestToJSON( ); } -export function certificatesCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CertificatesCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CertificatesCreateRequest' from JSON`, - ); -} - /** @internal */ export const CertificatesCreateResponseBody$inboundSchema: z.ZodType< CertificatesCreateResponseBody, @@ -128,57 +89,6 @@ export const CertificatesCreateResponseBody$inboundSchema: z.ZodType< serverId: z.nullable(z.string()), }); -/** @internal */ -export type CertificatesCreateResponseBody$Outbound = { - autoRenew: boolean | null; - certificateData: string; - certificateId: string; - certificatePath: string; - name: string; - organizationId: string; - privateKey: string; - serverId: string | null; -}; - -/** @internal */ -export const CertificatesCreateResponseBody$outboundSchema: z.ZodType< - CertificatesCreateResponseBody$Outbound, - z.ZodTypeDef, - CertificatesCreateResponseBody -> = z.object({ - autoRenew: z.nullable(z.boolean()), - certificateData: z.string(), - certificateId: z.string(), - certificatePath: z.string(), - name: z.string(), - organizationId: z.string(), - privateKey: z.string(), - serverId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesCreateResponseBody$ { - /** @deprecated use `CertificatesCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = CertificatesCreateResponseBody$inboundSchema; - /** @deprecated use `CertificatesCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = CertificatesCreateResponseBody$outboundSchema; - /** @deprecated use `CertificatesCreateResponseBody$Outbound` instead. */ - export type Outbound = CertificatesCreateResponseBody$Outbound; -} - -export function certificatesCreateResponseBodyToJSON( - certificatesCreateResponseBody: CertificatesCreateResponseBody, -): string { - return JSON.stringify( - CertificatesCreateResponseBody$outboundSchema.parse( - certificatesCreateResponseBody, - ), - ); -} - export function certificatesCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -199,42 +109,6 @@ export const CertificatesCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type CertificatesCreateResponse$Outbound = - | CertificatesCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const CertificatesCreateResponse$outboundSchema: z.ZodType< - CertificatesCreateResponse$Outbound, - z.ZodTypeDef, - CertificatesCreateResponse -> = z.union([ - z.lazy(() => CertificatesCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesCreateResponse$ { - /** @deprecated use `CertificatesCreateResponse$inboundSchema` instead. */ - export const inboundSchema = CertificatesCreateResponse$inboundSchema; - /** @deprecated use `CertificatesCreateResponse$outboundSchema` instead. */ - export const outboundSchema = CertificatesCreateResponse$outboundSchema; - /** @deprecated use `CertificatesCreateResponse$Outbound` instead. */ - export type Outbound = CertificatesCreateResponse$Outbound; -} - -export function certificatesCreateResponseToJSON( - certificatesCreateResponse: CertificatesCreateResponse, -): string { - return JSON.stringify( - CertificatesCreateResponse$outboundSchema.parse(certificatesCreateResponse), - ); -} - export function certificatesCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/certificatesone.ts b/src/models/operations/certificatesone.ts index 33153e6..3322320 100644 --- a/src/models/operations/certificatesone.ts +++ b/src/models/operations/certificatesone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -30,15 +30,6 @@ export type CertificatesOneResponse = | CertificatesOneResponseBody | models.ErrorT; -/** @internal */ -export const CertificatesOneRequest$inboundSchema: z.ZodType< - CertificatesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - certificateId: z.string(), -}); - /** @internal */ export type CertificatesOneRequest$Outbound = { certificateId: string; @@ -53,19 +44,6 @@ export const CertificatesOneRequest$outboundSchema: z.ZodType< certificateId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesOneRequest$ { - /** @deprecated use `CertificatesOneRequest$inboundSchema` instead. */ - export const inboundSchema = CertificatesOneRequest$inboundSchema; - /** @deprecated use `CertificatesOneRequest$outboundSchema` instead. */ - export const outboundSchema = CertificatesOneRequest$outboundSchema; - /** @deprecated use `CertificatesOneRequest$Outbound` instead. */ - export type Outbound = CertificatesOneRequest$Outbound; -} - export function certificatesOneRequestToJSON( certificatesOneRequest: CertificatesOneRequest, ): string { @@ -74,16 +52,6 @@ export function certificatesOneRequestToJSON( ); } -export function certificatesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CertificatesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CertificatesOneRequest' from JSON`, - ); -} - /** @internal */ export const CertificatesOneResponseBody$inboundSchema: z.ZodType< CertificatesOneResponseBody, @@ -100,57 +68,6 @@ export const CertificatesOneResponseBody$inboundSchema: z.ZodType< serverId: z.nullable(z.string()), }); -/** @internal */ -export type CertificatesOneResponseBody$Outbound = { - autoRenew: boolean | null; - certificateData: string; - certificateId: string; - certificatePath: string; - name: string; - organizationId: string; - privateKey: string; - serverId: string | null; -}; - -/** @internal */ -export const CertificatesOneResponseBody$outboundSchema: z.ZodType< - CertificatesOneResponseBody$Outbound, - z.ZodTypeDef, - CertificatesOneResponseBody -> = z.object({ - autoRenew: z.nullable(z.boolean()), - certificateData: z.string(), - certificateId: z.string(), - certificatePath: z.string(), - name: z.string(), - organizationId: z.string(), - privateKey: z.string(), - serverId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesOneResponseBody$ { - /** @deprecated use `CertificatesOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = CertificatesOneResponseBody$inboundSchema; - /** @deprecated use `CertificatesOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = CertificatesOneResponseBody$outboundSchema; - /** @deprecated use `CertificatesOneResponseBody$Outbound` instead. */ - export type Outbound = CertificatesOneResponseBody$Outbound; -} - -export function certificatesOneResponseBodyToJSON( - certificatesOneResponseBody: CertificatesOneResponseBody, -): string { - return JSON.stringify( - CertificatesOneResponseBody$outboundSchema.parse( - certificatesOneResponseBody, - ), - ); -} - export function certificatesOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -171,42 +88,6 @@ export const CertificatesOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type CertificatesOneResponse$Outbound = - | CertificatesOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const CertificatesOneResponse$outboundSchema: z.ZodType< - CertificatesOneResponse$Outbound, - z.ZodTypeDef, - CertificatesOneResponse -> = z.union([ - z.lazy(() => CertificatesOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesOneResponse$ { - /** @deprecated use `CertificatesOneResponse$inboundSchema` instead. */ - export const inboundSchema = CertificatesOneResponse$inboundSchema; - /** @deprecated use `CertificatesOneResponse$outboundSchema` instead. */ - export const outboundSchema = CertificatesOneResponse$outboundSchema; - /** @deprecated use `CertificatesOneResponse$Outbound` instead. */ - export type Outbound = CertificatesOneResponse$Outbound; -} - -export function certificatesOneResponseToJSON( - certificatesOneResponse: CertificatesOneResponse, -): string { - return JSON.stringify( - CertificatesOneResponse$outboundSchema.parse(certificatesOneResponse), - ); -} - export function certificatesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/certificatesremove.ts b/src/models/operations/certificatesremove.ts index 911bc78..5bd5938 100644 --- a/src/models/operations/certificatesremove.ts +++ b/src/models/operations/certificatesremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -30,15 +30,6 @@ export type CertificatesRemoveResponse = | CertificatesRemoveResponseBody | models.ErrorT; -/** @internal */ -export const CertificatesRemoveRequest$inboundSchema: z.ZodType< - CertificatesRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - certificateId: z.string(), -}); - /** @internal */ export type CertificatesRemoveRequest$Outbound = { certificateId: string; @@ -53,19 +44,6 @@ export const CertificatesRemoveRequest$outboundSchema: z.ZodType< certificateId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesRemoveRequest$ { - /** @deprecated use `CertificatesRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = CertificatesRemoveRequest$inboundSchema; - /** @deprecated use `CertificatesRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = CertificatesRemoveRequest$outboundSchema; - /** @deprecated use `CertificatesRemoveRequest$Outbound` instead. */ - export type Outbound = CertificatesRemoveRequest$Outbound; -} - export function certificatesRemoveRequestToJSON( certificatesRemoveRequest: CertificatesRemoveRequest, ): string { @@ -74,16 +52,6 @@ export function certificatesRemoveRequestToJSON( ); } -export function certificatesRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CertificatesRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CertificatesRemoveRequest' from JSON`, - ); -} - /** @internal */ export const CertificatesRemoveResponseBody$inboundSchema: z.ZodType< CertificatesRemoveResponseBody, @@ -100,57 +68,6 @@ export const CertificatesRemoveResponseBody$inboundSchema: z.ZodType< serverId: z.nullable(z.string()), }); -/** @internal */ -export type CertificatesRemoveResponseBody$Outbound = { - autoRenew: boolean | null; - certificateData: string; - certificateId: string; - certificatePath: string; - name: string; - organizationId: string; - privateKey: string; - serverId: string | null; -}; - -/** @internal */ -export const CertificatesRemoveResponseBody$outboundSchema: z.ZodType< - CertificatesRemoveResponseBody$Outbound, - z.ZodTypeDef, - CertificatesRemoveResponseBody -> = z.object({ - autoRenew: z.nullable(z.boolean()), - certificateData: z.string(), - certificateId: z.string(), - certificatePath: z.string(), - name: z.string(), - organizationId: z.string(), - privateKey: z.string(), - serverId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesRemoveResponseBody$ { - /** @deprecated use `CertificatesRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = CertificatesRemoveResponseBody$inboundSchema; - /** @deprecated use `CertificatesRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = CertificatesRemoveResponseBody$outboundSchema; - /** @deprecated use `CertificatesRemoveResponseBody$Outbound` instead. */ - export type Outbound = CertificatesRemoveResponseBody$Outbound; -} - -export function certificatesRemoveResponseBodyToJSON( - certificatesRemoveResponseBody: CertificatesRemoveResponseBody, -): string { - return JSON.stringify( - CertificatesRemoveResponseBody$outboundSchema.parse( - certificatesRemoveResponseBody, - ), - ); -} - export function certificatesRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -171,42 +88,6 @@ export const CertificatesRemoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type CertificatesRemoveResponse$Outbound = - | CertificatesRemoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const CertificatesRemoveResponse$outboundSchema: z.ZodType< - CertificatesRemoveResponse$Outbound, - z.ZodTypeDef, - CertificatesRemoveResponse -> = z.union([ - z.lazy(() => CertificatesRemoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CertificatesRemoveResponse$ { - /** @deprecated use `CertificatesRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = CertificatesRemoveResponse$inboundSchema; - /** @deprecated use `CertificatesRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = CertificatesRemoveResponse$outboundSchema; - /** @deprecated use `CertificatesRemoveResponse$Outbound` instead. */ - export type Outbound = CertificatesRemoveResponse$Outbound; -} - -export function certificatesRemoveResponseToJSON( - certificatesRemoveResponse: CertificatesRemoveResponse, -): string { - return JSON.stringify( - CertificatesRemoveResponse$outboundSchema.parse(certificatesRemoveResponse), - ); -} - export function certificatesRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/clusteraddmanager.ts b/src/models/operations/clusteraddmanager.ts index 7b3765a..16c2087 100644 --- a/src/models/operations/clusteraddmanager.ts +++ b/src/models/operations/clusteraddmanager.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ClusterAddManagerRequest = { serverId?: string | undefined; }; -/** @internal */ -export const ClusterAddManagerRequest$inboundSchema: z.ZodType< - ClusterAddManagerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type ClusterAddManagerRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const ClusterAddManagerRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClusterAddManagerRequest$ { - /** @deprecated use `ClusterAddManagerRequest$inboundSchema` instead. */ - export const inboundSchema = ClusterAddManagerRequest$inboundSchema; - /** @deprecated use `ClusterAddManagerRequest$outboundSchema` instead. */ - export const outboundSchema = ClusterAddManagerRequest$outboundSchema; - /** @deprecated use `ClusterAddManagerRequest$Outbound` instead. */ - export type Outbound = ClusterAddManagerRequest$Outbound; -} - export function clusterAddManagerRequestToJSON( clusterAddManagerRequest: ClusterAddManagerRequest, ): string { @@ -54,13 +29,3 @@ export function clusterAddManagerRequestToJSON( ClusterAddManagerRequest$outboundSchema.parse(clusterAddManagerRequest), ); } - -export function clusterAddManagerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClusterAddManagerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClusterAddManagerRequest' from JSON`, - ); -} diff --git a/src/models/operations/clusteraddworker.ts b/src/models/operations/clusteraddworker.ts index d379dee..a4bb7bf 100644 --- a/src/models/operations/clusteraddworker.ts +++ b/src/models/operations/clusteraddworker.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ClusterAddWorkerRequest = { serverId?: string | undefined; }; -/** @internal */ -export const ClusterAddWorkerRequest$inboundSchema: z.ZodType< - ClusterAddWorkerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type ClusterAddWorkerRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const ClusterAddWorkerRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClusterAddWorkerRequest$ { - /** @deprecated use `ClusterAddWorkerRequest$inboundSchema` instead. */ - export const inboundSchema = ClusterAddWorkerRequest$inboundSchema; - /** @deprecated use `ClusterAddWorkerRequest$outboundSchema` instead. */ - export const outboundSchema = ClusterAddWorkerRequest$outboundSchema; - /** @deprecated use `ClusterAddWorkerRequest$Outbound` instead. */ - export type Outbound = ClusterAddWorkerRequest$Outbound; -} - export function clusterAddWorkerRequestToJSON( clusterAddWorkerRequest: ClusterAddWorkerRequest, ): string { @@ -54,13 +29,3 @@ export function clusterAddWorkerRequestToJSON( ClusterAddWorkerRequest$outboundSchema.parse(clusterAddWorkerRequest), ); } - -export function clusterAddWorkerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClusterAddWorkerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClusterAddWorkerRequest' from JSON`, - ); -} diff --git a/src/models/operations/clustergetnodes.ts b/src/models/operations/clustergetnodes.ts index d47509a..eccf6a7 100644 --- a/src/models/operations/clustergetnodes.ts +++ b/src/models/operations/clustergetnodes.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ClusterGetNodesRequest = { serverId?: string | undefined; }; -/** @internal */ -export const ClusterGetNodesRequest$inboundSchema: z.ZodType< - ClusterGetNodesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type ClusterGetNodesRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const ClusterGetNodesRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClusterGetNodesRequest$ { - /** @deprecated use `ClusterGetNodesRequest$inboundSchema` instead. */ - export const inboundSchema = ClusterGetNodesRequest$inboundSchema; - /** @deprecated use `ClusterGetNodesRequest$outboundSchema` instead. */ - export const outboundSchema = ClusterGetNodesRequest$outboundSchema; - /** @deprecated use `ClusterGetNodesRequest$Outbound` instead. */ - export type Outbound = ClusterGetNodesRequest$Outbound; -} - export function clusterGetNodesRequestToJSON( clusterGetNodesRequest: ClusterGetNodesRequest, ): string { @@ -54,13 +29,3 @@ export function clusterGetNodesRequestToJSON( ClusterGetNodesRequest$outboundSchema.parse(clusterGetNodesRequest), ); } - -export function clusterGetNodesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClusterGetNodesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClusterGetNodesRequest' from JSON`, - ); -} diff --git a/src/models/operations/clusterremoveworker.ts b/src/models/operations/clusterremoveworker.ts index b6ba5d3..e2b299f 100644 --- a/src/models/operations/clusterremoveworker.ts +++ b/src/models/operations/clusterremoveworker.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ClusterRemoveWorkerRequest = { nodeId: string; serverId?: string | undefined; }; -/** @internal */ -export const ClusterRemoveWorkerRequest$inboundSchema: z.ZodType< - ClusterRemoveWorkerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - nodeId: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type ClusterRemoveWorkerRequest$Outbound = { nodeId: string; @@ -38,19 +25,6 @@ export const ClusterRemoveWorkerRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ClusterRemoveWorkerRequest$ { - /** @deprecated use `ClusterRemoveWorkerRequest$inboundSchema` instead. */ - export const inboundSchema = ClusterRemoveWorkerRequest$inboundSchema; - /** @deprecated use `ClusterRemoveWorkerRequest$outboundSchema` instead. */ - export const outboundSchema = ClusterRemoveWorkerRequest$outboundSchema; - /** @deprecated use `ClusterRemoveWorkerRequest$Outbound` instead. */ - export type Outbound = ClusterRemoveWorkerRequest$Outbound; -} - export function clusterRemoveWorkerRequestToJSON( clusterRemoveWorkerRequest: ClusterRemoveWorkerRequest, ): string { @@ -58,13 +32,3 @@ export function clusterRemoveWorkerRequestToJSON( ClusterRemoveWorkerRequest$outboundSchema.parse(clusterRemoveWorkerRequest), ); } - -export function clusterRemoveWorkerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ClusterRemoveWorkerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ClusterRemoveWorkerRequest' from JSON`, - ); -} diff --git a/src/models/operations/composecanceldeployment.ts b/src/models/operations/composecanceldeployment.ts index 2fde409..4be2304 100644 --- a/src/models/operations/composecanceldeployment.ts +++ b/src/models/operations/composecanceldeployment.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeCancelDeploymentRequest = { composeId: string; }; -/** @internal */ -export const ComposeCancelDeploymentRequest$inboundSchema: z.ZodType< - ComposeCancelDeploymentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeCancelDeploymentRequest$Outbound = { composeId: string; @@ -34,19 +22,6 @@ export const ComposeCancelDeploymentRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeCancelDeploymentRequest$ { - /** @deprecated use `ComposeCancelDeploymentRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeCancelDeploymentRequest$inboundSchema; - /** @deprecated use `ComposeCancelDeploymentRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeCancelDeploymentRequest$outboundSchema; - /** @deprecated use `ComposeCancelDeploymentRequest$Outbound` instead. */ - export type Outbound = ComposeCancelDeploymentRequest$Outbound; -} - export function composeCancelDeploymentRequestToJSON( composeCancelDeploymentRequest: ComposeCancelDeploymentRequest, ): string { @@ -56,13 +31,3 @@ export function composeCancelDeploymentRequestToJSON( ), ); } - -export function composeCancelDeploymentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeCancelDeploymentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeCancelDeploymentRequest' from JSON`, - ); -} diff --git a/src/models/operations/composecleanqueues.ts b/src/models/operations/composecleanqueues.ts index 61c8235..5b63f00 100644 --- a/src/models/operations/composecleanqueues.ts +++ b/src/models/operations/composecleanqueues.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeCleanQueuesRequest = { composeId: string; }; -/** @internal */ -export const ComposeCleanQueuesRequest$inboundSchema: z.ZodType< - ComposeCleanQueuesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeCleanQueuesRequest$Outbound = { composeId: string; @@ -34,19 +22,6 @@ export const ComposeCleanQueuesRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeCleanQueuesRequest$ { - /** @deprecated use `ComposeCleanQueuesRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeCleanQueuesRequest$inboundSchema; - /** @deprecated use `ComposeCleanQueuesRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeCleanQueuesRequest$outboundSchema; - /** @deprecated use `ComposeCleanQueuesRequest$Outbound` instead. */ - export type Outbound = ComposeCleanQueuesRequest$Outbound; -} - export function composeCleanQueuesRequestToJSON( composeCleanQueuesRequest: ComposeCleanQueuesRequest, ): string { @@ -54,13 +29,3 @@ export function composeCleanQueuesRequestToJSON( ComposeCleanQueuesRequest$outboundSchema.parse(composeCleanQueuesRequest), ); } - -export function composeCleanQueuesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeCleanQueuesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeCleanQueuesRequest' from JSON`, - ); -} diff --git a/src/models/operations/composecreate.ts b/src/models/operations/composecreate.ts index c6aa0e0..a008330 100644 --- a/src/models/operations/composecreate.ts +++ b/src/models/operations/composecreate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ComposeCreateComposeType = { DockerCompose: "docker-compose", @@ -26,41 +23,10 @@ export type ComposeCreateRequest = { serverId?: string | null | undefined; }; -/** @internal */ -export const ComposeCreateComposeType$inboundSchema: z.ZodNativeEnum< - typeof ComposeCreateComposeType -> = z.nativeEnum(ComposeCreateComposeType); - /** @internal */ export const ComposeCreateComposeType$outboundSchema: z.ZodNativeEnum< typeof ComposeCreateComposeType -> = ComposeCreateComposeType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeCreateComposeType$ { - /** @deprecated use `ComposeCreateComposeType$inboundSchema` instead. */ - export const inboundSchema = ComposeCreateComposeType$inboundSchema; - /** @deprecated use `ComposeCreateComposeType$outboundSchema` instead. */ - export const outboundSchema = ComposeCreateComposeType$outboundSchema; -} - -/** @internal */ -export const ComposeCreateRequest$inboundSchema: z.ZodType< - ComposeCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - composeFile: z.string().optional(), - composeType: ComposeCreateComposeType$inboundSchema.optional(), - description: z.nullable(z.string()).optional(), - environmentId: z.string(), - name: z.string(), - serverId: z.nullable(z.string()).optional(), -}); +> = z.nativeEnum(ComposeCreateComposeType); /** @internal */ export type ComposeCreateRequest$Outbound = { @@ -88,19 +54,6 @@ export const ComposeCreateRequest$outboundSchema: z.ZodType< serverId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeCreateRequest$ { - /** @deprecated use `ComposeCreateRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeCreateRequest$inboundSchema; - /** @deprecated use `ComposeCreateRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeCreateRequest$outboundSchema; - /** @deprecated use `ComposeCreateRequest$Outbound` instead. */ - export type Outbound = ComposeCreateRequest$Outbound; -} - export function composeCreateRequestToJSON( composeCreateRequest: ComposeCreateRequest, ): string { @@ -108,13 +61,3 @@ export function composeCreateRequestToJSON( ComposeCreateRequest$outboundSchema.parse(composeCreateRequest), ); } - -export function composeCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/composedelete.ts b/src/models/operations/composedelete.ts index 09bd8cc..3fa52c8 100644 --- a/src/models/operations/composedelete.ts +++ b/src/models/operations/composedelete.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeDeleteRequest = { composeId: string; deleteVolumes: boolean; }; -/** @internal */ -export const ComposeDeleteRequest$inboundSchema: z.ZodType< - ComposeDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), - deleteVolumes: z.boolean(), -}); - /** @internal */ export type ComposeDeleteRequest$Outbound = { composeId: string; @@ -38,19 +25,6 @@ export const ComposeDeleteRequest$outboundSchema: z.ZodType< deleteVolumes: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeDeleteRequest$ { - /** @deprecated use `ComposeDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeDeleteRequest$inboundSchema; - /** @deprecated use `ComposeDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeDeleteRequest$outboundSchema; - /** @deprecated use `ComposeDeleteRequest$Outbound` instead. */ - export type Outbound = ComposeDeleteRequest$Outbound; -} - export function composeDeleteRequestToJSON( composeDeleteRequest: ComposeDeleteRequest, ): string { @@ -58,13 +32,3 @@ export function composeDeleteRequestToJSON( ComposeDeleteRequest$outboundSchema.parse(composeDeleteRequest), ); } - -export function composeDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeDeleteRequest' from JSON`, - ); -} diff --git a/src/models/operations/composedeploy.ts b/src/models/operations/composedeploy.ts index 440b1c1..b6d1cb7 100644 --- a/src/models/operations/composedeploy.ts +++ b/src/models/operations/composedeploy.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeDeployRequest = { composeId: string; @@ -13,17 +10,6 @@ export type ComposeDeployRequest = { title?: string | undefined; }; -/** @internal */ -export const ComposeDeployRequest$inboundSchema: z.ZodType< - ComposeDeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), - description: z.string().optional(), - title: z.string().optional(), -}); - /** @internal */ export type ComposeDeployRequest$Outbound = { composeId: string; @@ -42,19 +28,6 @@ export const ComposeDeployRequest$outboundSchema: z.ZodType< title: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeDeployRequest$ { - /** @deprecated use `ComposeDeployRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeDeployRequest$inboundSchema; - /** @deprecated use `ComposeDeployRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeDeployRequest$outboundSchema; - /** @deprecated use `ComposeDeployRequest$Outbound` instead. */ - export type Outbound = ComposeDeployRequest$Outbound; -} - export function composeDeployRequestToJSON( composeDeployRequest: ComposeDeployRequest, ): string { @@ -62,13 +35,3 @@ export function composeDeployRequestToJSON( ComposeDeployRequest$outboundSchema.parse(composeDeployRequest), ); } - -export function composeDeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeDeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeDeployRequest' from JSON`, - ); -} diff --git a/src/models/operations/composedeploytemplate.ts b/src/models/operations/composedeploytemplate.ts index df10bb2..28bf509 100644 --- a/src/models/operations/composedeploytemplate.ts +++ b/src/models/operations/composedeploytemplate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeDeployTemplateRequest = { baseUrl?: string | undefined; @@ -14,18 +11,6 @@ export type ComposeDeployTemplateRequest = { serverId?: string | undefined; }; -/** @internal */ -export const ComposeDeployTemplateRequest$inboundSchema: z.ZodType< - ComposeDeployTemplateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - baseUrl: z.string().optional(), - environmentId: z.string(), - id: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type ComposeDeployTemplateRequest$Outbound = { baseUrl?: string | undefined; @@ -46,19 +31,6 @@ export const ComposeDeployTemplateRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeDeployTemplateRequest$ { - /** @deprecated use `ComposeDeployTemplateRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeDeployTemplateRequest$inboundSchema; - /** @deprecated use `ComposeDeployTemplateRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeDeployTemplateRequest$outboundSchema; - /** @deprecated use `ComposeDeployTemplateRequest$Outbound` instead. */ - export type Outbound = ComposeDeployTemplateRequest$Outbound; -} - export function composeDeployTemplateRequestToJSON( composeDeployTemplateRequest: ComposeDeployTemplateRequest, ): string { @@ -68,13 +40,3 @@ export function composeDeployTemplateRequestToJSON( ), ); } - -export function composeDeployTemplateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeDeployTemplateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeDeployTemplateRequest' from JSON`, - ); -} diff --git a/src/models/operations/composedisconnectgitprovider.ts b/src/models/operations/composedisconnectgitprovider.ts index d8c35cb..25edf22 100644 --- a/src/models/operations/composedisconnectgitprovider.ts +++ b/src/models/operations/composedisconnectgitprovider.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeDisconnectGitProviderRequest = { composeId: string; }; -/** @internal */ -export const ComposeDisconnectGitProviderRequest$inboundSchema: z.ZodType< - ComposeDisconnectGitProviderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeDisconnectGitProviderRequest$Outbound = { composeId: string; @@ -34,21 +22,6 @@ export const ComposeDisconnectGitProviderRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeDisconnectGitProviderRequest$ { - /** @deprecated use `ComposeDisconnectGitProviderRequest$inboundSchema` instead. */ - export const inboundSchema = - ComposeDisconnectGitProviderRequest$inboundSchema; - /** @deprecated use `ComposeDisconnectGitProviderRequest$outboundSchema` instead. */ - export const outboundSchema = - ComposeDisconnectGitProviderRequest$outboundSchema; - /** @deprecated use `ComposeDisconnectGitProviderRequest$Outbound` instead. */ - export type Outbound = ComposeDisconnectGitProviderRequest$Outbound; -} - export function composeDisconnectGitProviderRequestToJSON( composeDisconnectGitProviderRequest: ComposeDisconnectGitProviderRequest, ): string { @@ -58,14 +31,3 @@ export function composeDisconnectGitProviderRequestToJSON( ), ); } - -export function composeDisconnectGitProviderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ComposeDisconnectGitProviderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeDisconnectGitProviderRequest' from JSON`, - ); -} diff --git a/src/models/operations/composefetchsourcetype.ts b/src/models/operations/composefetchsourcetype.ts index 649fe82..1f9569e 100644 --- a/src/models/operations/composefetchsourcetype.ts +++ b/src/models/operations/composefetchsourcetype.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeFetchSourceTypeRequest = { composeId: string; }; -/** @internal */ -export const ComposeFetchSourceTypeRequest$inboundSchema: z.ZodType< - ComposeFetchSourceTypeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeFetchSourceTypeRequest$Outbound = { composeId: string; @@ -34,19 +22,6 @@ export const ComposeFetchSourceTypeRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeFetchSourceTypeRequest$ { - /** @deprecated use `ComposeFetchSourceTypeRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeFetchSourceTypeRequest$inboundSchema; - /** @deprecated use `ComposeFetchSourceTypeRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeFetchSourceTypeRequest$outboundSchema; - /** @deprecated use `ComposeFetchSourceTypeRequest$Outbound` instead. */ - export type Outbound = ComposeFetchSourceTypeRequest$Outbound; -} - export function composeFetchSourceTypeRequestToJSON( composeFetchSourceTypeRequest: ComposeFetchSourceTypeRequest, ): string { @@ -56,13 +31,3 @@ export function composeFetchSourceTypeRequestToJSON( ), ); } - -export function composeFetchSourceTypeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeFetchSourceTypeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeFetchSourceTypeRequest' from JSON`, - ); -} diff --git a/src/models/operations/composegetconvertedcompose.ts b/src/models/operations/composegetconvertedcompose.ts index b2206b0..e8245da 100644 --- a/src/models/operations/composegetconvertedcompose.ts +++ b/src/models/operations/composegetconvertedcompose.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeGetConvertedComposeRequest = { composeId: string; }; -/** @internal */ -export const ComposeGetConvertedComposeRequest$inboundSchema: z.ZodType< - ComposeGetConvertedComposeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeGetConvertedComposeRequest$Outbound = { composeId: string; @@ -34,20 +22,6 @@ export const ComposeGetConvertedComposeRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeGetConvertedComposeRequest$ { - /** @deprecated use `ComposeGetConvertedComposeRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeGetConvertedComposeRequest$inboundSchema; - /** @deprecated use `ComposeGetConvertedComposeRequest$outboundSchema` instead. */ - export const outboundSchema = - ComposeGetConvertedComposeRequest$outboundSchema; - /** @deprecated use `ComposeGetConvertedComposeRequest$Outbound` instead. */ - export type Outbound = ComposeGetConvertedComposeRequest$Outbound; -} - export function composeGetConvertedComposeRequestToJSON( composeGetConvertedComposeRequest: ComposeGetConvertedComposeRequest, ): string { @@ -57,13 +31,3 @@ export function composeGetConvertedComposeRequestToJSON( ), ); } - -export function composeGetConvertedComposeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeGetConvertedComposeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeGetConvertedComposeRequest' from JSON`, - ); -} diff --git a/src/models/operations/composegetdefaultcommand.ts b/src/models/operations/composegetdefaultcommand.ts index 4afcddf..adff139 100644 --- a/src/models/operations/composegetdefaultcommand.ts +++ b/src/models/operations/composegetdefaultcommand.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeGetDefaultCommandRequest = { composeId: string; }; -/** @internal */ -export const ComposeGetDefaultCommandRequest$inboundSchema: z.ZodType< - ComposeGetDefaultCommandRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeGetDefaultCommandRequest$Outbound = { composeId: string; @@ -34,19 +22,6 @@ export const ComposeGetDefaultCommandRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeGetDefaultCommandRequest$ { - /** @deprecated use `ComposeGetDefaultCommandRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeGetDefaultCommandRequest$inboundSchema; - /** @deprecated use `ComposeGetDefaultCommandRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeGetDefaultCommandRequest$outboundSchema; - /** @deprecated use `ComposeGetDefaultCommandRequest$Outbound` instead. */ - export type Outbound = ComposeGetDefaultCommandRequest$Outbound; -} - export function composeGetDefaultCommandRequestToJSON( composeGetDefaultCommandRequest: ComposeGetDefaultCommandRequest, ): string { @@ -56,13 +31,3 @@ export function composeGetDefaultCommandRequestToJSON( ), ); } - -export function composeGetDefaultCommandRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeGetDefaultCommandRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeGetDefaultCommandRequest' from JSON`, - ); -} diff --git a/src/models/operations/composegettags.ts b/src/models/operations/composegettags.ts index ef2dc7a..05ca838 100644 --- a/src/models/operations/composegettags.ts +++ b/src/models/operations/composegettags.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeGetTagsRequest = { baseUrl?: string | undefined; }; -/** @internal */ -export const ComposeGetTagsRequest$inboundSchema: z.ZodType< - ComposeGetTagsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - baseUrl: z.string().optional(), -}); - /** @internal */ export type ComposeGetTagsRequest$Outbound = { baseUrl?: string | undefined; @@ -34,19 +22,6 @@ export const ComposeGetTagsRequest$outboundSchema: z.ZodType< baseUrl: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeGetTagsRequest$ { - /** @deprecated use `ComposeGetTagsRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeGetTagsRequest$inboundSchema; - /** @deprecated use `ComposeGetTagsRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeGetTagsRequest$outboundSchema; - /** @deprecated use `ComposeGetTagsRequest$Outbound` instead. */ - export type Outbound = ComposeGetTagsRequest$Outbound; -} - export function composeGetTagsRequestToJSON( composeGetTagsRequest: ComposeGetTagsRequest, ): string { @@ -54,13 +29,3 @@ export function composeGetTagsRequestToJSON( ComposeGetTagsRequest$outboundSchema.parse(composeGetTagsRequest), ); } - -export function composeGetTagsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeGetTagsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeGetTagsRequest' from JSON`, - ); -} diff --git a/src/models/operations/composeimport.ts b/src/models/operations/composeimport.ts index 1edab80..0f269e2 100644 --- a/src/models/operations/composeimport.ts +++ b/src/models/operations/composeimport.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeImportRequest = { base64: string; composeId: string; }; -/** @internal */ -export const ComposeImportRequest$inboundSchema: z.ZodType< - ComposeImportRequest, - z.ZodTypeDef, - unknown -> = z.object({ - base64: z.string(), - composeId: z.string(), -}); - /** @internal */ export type ComposeImportRequest$Outbound = { base64: string; @@ -38,19 +25,6 @@ export const ComposeImportRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeImportRequest$ { - /** @deprecated use `ComposeImportRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeImportRequest$inboundSchema; - /** @deprecated use `ComposeImportRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeImportRequest$outboundSchema; - /** @deprecated use `ComposeImportRequest$Outbound` instead. */ - export type Outbound = ComposeImportRequest$Outbound; -} - export function composeImportRequestToJSON( composeImportRequest: ComposeImportRequest, ): string { @@ -58,13 +32,3 @@ export function composeImportRequestToJSON( ComposeImportRequest$outboundSchema.parse(composeImportRequest), ); } - -export function composeImportRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeImportRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeImportRequest' from JSON`, - ); -} diff --git a/src/models/operations/composeisolateddeployment.ts b/src/models/operations/composeisolateddeployment.ts index 92fe05f..a28c04f 100644 --- a/src/models/operations/composeisolateddeployment.ts +++ b/src/models/operations/composeisolateddeployment.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeIsolatedDeploymentRequest = { composeId: string; suffix?: string | undefined; }; -/** @internal */ -export const ComposeIsolatedDeploymentRequest$inboundSchema: z.ZodType< - ComposeIsolatedDeploymentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), - suffix: z.string().optional(), -}); - /** @internal */ export type ComposeIsolatedDeploymentRequest$Outbound = { composeId: string; @@ -38,19 +25,6 @@ export const ComposeIsolatedDeploymentRequest$outboundSchema: z.ZodType< suffix: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeIsolatedDeploymentRequest$ { - /** @deprecated use `ComposeIsolatedDeploymentRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeIsolatedDeploymentRequest$inboundSchema; - /** @deprecated use `ComposeIsolatedDeploymentRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeIsolatedDeploymentRequest$outboundSchema; - /** @deprecated use `ComposeIsolatedDeploymentRequest$Outbound` instead. */ - export type Outbound = ComposeIsolatedDeploymentRequest$Outbound; -} - export function composeIsolatedDeploymentRequestToJSON( composeIsolatedDeploymentRequest: ComposeIsolatedDeploymentRequest, ): string { @@ -60,13 +34,3 @@ export function composeIsolatedDeploymentRequestToJSON( ), ); } - -export function composeIsolatedDeploymentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeIsolatedDeploymentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeIsolatedDeploymentRequest' from JSON`, - ); -} diff --git a/src/models/operations/composeloadmountsbyservice.ts b/src/models/operations/composeloadmountsbyservice.ts index da3fe23..6638586 100644 --- a/src/models/operations/composeloadmountsbyservice.ts +++ b/src/models/operations/composeloadmountsbyservice.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeLoadMountsByServiceRequest = { composeId: string; serviceName: string; }; -/** @internal */ -export const ComposeLoadMountsByServiceRequest$inboundSchema: z.ZodType< - ComposeLoadMountsByServiceRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), - serviceName: z.string(), -}); - /** @internal */ export type ComposeLoadMountsByServiceRequest$Outbound = { composeId: string; @@ -38,20 +25,6 @@ export const ComposeLoadMountsByServiceRequest$outboundSchema: z.ZodType< serviceName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeLoadMountsByServiceRequest$ { - /** @deprecated use `ComposeLoadMountsByServiceRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeLoadMountsByServiceRequest$inboundSchema; - /** @deprecated use `ComposeLoadMountsByServiceRequest$outboundSchema` instead. */ - export const outboundSchema = - ComposeLoadMountsByServiceRequest$outboundSchema; - /** @deprecated use `ComposeLoadMountsByServiceRequest$Outbound` instead. */ - export type Outbound = ComposeLoadMountsByServiceRequest$Outbound; -} - export function composeLoadMountsByServiceRequestToJSON( composeLoadMountsByServiceRequest: ComposeLoadMountsByServiceRequest, ): string { @@ -61,13 +34,3 @@ export function composeLoadMountsByServiceRequestToJSON( ), ); } - -export function composeLoadMountsByServiceRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeLoadMountsByServiceRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeLoadMountsByServiceRequest' from JSON`, - ); -} diff --git a/src/models/operations/composemove.ts b/src/models/operations/composemove.ts index 62b8678..87ad625 100644 --- a/src/models/operations/composemove.ts +++ b/src/models/operations/composemove.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeMoveRequest = { composeId: string; targetEnvironmentId: string; }; -/** @internal */ -export const ComposeMoveRequest$inboundSchema: z.ZodType< - ComposeMoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), - targetEnvironmentId: z.string(), -}); - /** @internal */ export type ComposeMoveRequest$Outbound = { composeId: string; @@ -38,19 +25,6 @@ export const ComposeMoveRequest$outboundSchema: z.ZodType< targetEnvironmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeMoveRequest$ { - /** @deprecated use `ComposeMoveRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeMoveRequest$inboundSchema; - /** @deprecated use `ComposeMoveRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeMoveRequest$outboundSchema; - /** @deprecated use `ComposeMoveRequest$Outbound` instead. */ - export type Outbound = ComposeMoveRequest$Outbound; -} - export function composeMoveRequestToJSON( composeMoveRequest: ComposeMoveRequest, ): string { @@ -58,13 +32,3 @@ export function composeMoveRequestToJSON( ComposeMoveRequest$outboundSchema.parse(composeMoveRequest), ); } - -export function composeMoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeMoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeMoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/composeone.ts b/src/models/operations/composeone.ts index a2778d5..7d3fc7f 100644 --- a/src/models/operations/composeone.ts +++ b/src/models/operations/composeone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeOneRequest = { composeId: string; }; -/** @internal */ -export const ComposeOneRequest$inboundSchema: z.ZodType< - ComposeOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeOneRequest$Outbound = { composeId: string; @@ -34,19 +22,6 @@ export const ComposeOneRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeOneRequest$ { - /** @deprecated use `ComposeOneRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeOneRequest$inboundSchema; - /** @deprecated use `ComposeOneRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeOneRequest$outboundSchema; - /** @deprecated use `ComposeOneRequest$Outbound` instead. */ - export type Outbound = ComposeOneRequest$Outbound; -} - export function composeOneRequestToJSON( composeOneRequest: ComposeOneRequest, ): string { @@ -54,13 +29,3 @@ export function composeOneRequestToJSON( ComposeOneRequest$outboundSchema.parse(composeOneRequest), ); } - -export function composeOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/composeprocesstemplate.ts b/src/models/operations/composeprocesstemplate.ts index d40315a..1c794ff 100644 --- a/src/models/operations/composeprocesstemplate.ts +++ b/src/models/operations/composeprocesstemplate.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeProcessTemplateRequest = { base64: string; composeId: string; }; -/** @internal */ -export const ComposeProcessTemplateRequest$inboundSchema: z.ZodType< - ComposeProcessTemplateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - base64: z.string(), - composeId: z.string(), -}); - /** @internal */ export type ComposeProcessTemplateRequest$Outbound = { base64: string; @@ -38,19 +25,6 @@ export const ComposeProcessTemplateRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeProcessTemplateRequest$ { - /** @deprecated use `ComposeProcessTemplateRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeProcessTemplateRequest$inboundSchema; - /** @deprecated use `ComposeProcessTemplateRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeProcessTemplateRequest$outboundSchema; - /** @deprecated use `ComposeProcessTemplateRequest$Outbound` instead. */ - export type Outbound = ComposeProcessTemplateRequest$Outbound; -} - export function composeProcessTemplateRequestToJSON( composeProcessTemplateRequest: ComposeProcessTemplateRequest, ): string { @@ -60,13 +34,3 @@ export function composeProcessTemplateRequestToJSON( ), ); } - -export function composeProcessTemplateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeProcessTemplateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeProcessTemplateRequest' from JSON`, - ); -} diff --git a/src/models/operations/composerandomizecompose.ts b/src/models/operations/composerandomizecompose.ts index d2bfdee..60538d2 100644 --- a/src/models/operations/composerandomizecompose.ts +++ b/src/models/operations/composerandomizecompose.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeRandomizeComposeRequest = { composeId: string; suffix?: string | undefined; }; -/** @internal */ -export const ComposeRandomizeComposeRequest$inboundSchema: z.ZodType< - ComposeRandomizeComposeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), - suffix: z.string().optional(), -}); - /** @internal */ export type ComposeRandomizeComposeRequest$Outbound = { composeId: string; @@ -38,19 +25,6 @@ export const ComposeRandomizeComposeRequest$outboundSchema: z.ZodType< suffix: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeRandomizeComposeRequest$ { - /** @deprecated use `ComposeRandomizeComposeRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeRandomizeComposeRequest$inboundSchema; - /** @deprecated use `ComposeRandomizeComposeRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeRandomizeComposeRequest$outboundSchema; - /** @deprecated use `ComposeRandomizeComposeRequest$Outbound` instead. */ - export type Outbound = ComposeRandomizeComposeRequest$Outbound; -} - export function composeRandomizeComposeRequestToJSON( composeRandomizeComposeRequest: ComposeRandomizeComposeRequest, ): string { @@ -60,13 +34,3 @@ export function composeRandomizeComposeRequestToJSON( ), ); } - -export function composeRandomizeComposeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeRandomizeComposeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeRandomizeComposeRequest' from JSON`, - ); -} diff --git a/src/models/operations/composeredeploy.ts b/src/models/operations/composeredeploy.ts index 5e44298..29606bf 100644 --- a/src/models/operations/composeredeploy.ts +++ b/src/models/operations/composeredeploy.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeRedeployRequest = { composeId: string; @@ -13,17 +10,6 @@ export type ComposeRedeployRequest = { title?: string | undefined; }; -/** @internal */ -export const ComposeRedeployRequest$inboundSchema: z.ZodType< - ComposeRedeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), - description: z.string().optional(), - title: z.string().optional(), -}); - /** @internal */ export type ComposeRedeployRequest$Outbound = { composeId: string; @@ -42,19 +28,6 @@ export const ComposeRedeployRequest$outboundSchema: z.ZodType< title: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeRedeployRequest$ { - /** @deprecated use `ComposeRedeployRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeRedeployRequest$inboundSchema; - /** @deprecated use `ComposeRedeployRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeRedeployRequest$outboundSchema; - /** @deprecated use `ComposeRedeployRequest$Outbound` instead. */ - export type Outbound = ComposeRedeployRequest$Outbound; -} - export function composeRedeployRequestToJSON( composeRedeployRequest: ComposeRedeployRequest, ): string { @@ -62,13 +35,3 @@ export function composeRedeployRequestToJSON( ComposeRedeployRequest$outboundSchema.parse(composeRedeployRequest), ); } - -export function composeRedeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeRedeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeRedeployRequest' from JSON`, - ); -} diff --git a/src/models/operations/composerefreshtoken.ts b/src/models/operations/composerefreshtoken.ts index 5ac0f82..e8dd447 100644 --- a/src/models/operations/composerefreshtoken.ts +++ b/src/models/operations/composerefreshtoken.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeRefreshTokenRequest = { composeId: string; }; -/** @internal */ -export const ComposeRefreshTokenRequest$inboundSchema: z.ZodType< - ComposeRefreshTokenRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeRefreshTokenRequest$Outbound = { composeId: string; @@ -34,19 +22,6 @@ export const ComposeRefreshTokenRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeRefreshTokenRequest$ { - /** @deprecated use `ComposeRefreshTokenRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeRefreshTokenRequest$inboundSchema; - /** @deprecated use `ComposeRefreshTokenRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeRefreshTokenRequest$outboundSchema; - /** @deprecated use `ComposeRefreshTokenRequest$Outbound` instead. */ - export type Outbound = ComposeRefreshTokenRequest$Outbound; -} - export function composeRefreshTokenRequestToJSON( composeRefreshTokenRequest: ComposeRefreshTokenRequest, ): string { @@ -54,13 +29,3 @@ export function composeRefreshTokenRequestToJSON( ComposeRefreshTokenRequest$outboundSchema.parse(composeRefreshTokenRequest), ); } - -export function composeRefreshTokenRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeRefreshTokenRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeRefreshTokenRequest' from JSON`, - ); -} diff --git a/src/models/operations/composestart.ts b/src/models/operations/composestart.ts index edda8a4..f936e87 100644 --- a/src/models/operations/composestart.ts +++ b/src/models/operations/composestart.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeStartRequest = { composeId: string; }; -/** @internal */ -export const ComposeStartRequest$inboundSchema: z.ZodType< - ComposeStartRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeStartRequest$Outbound = { composeId: string; @@ -34,19 +22,6 @@ export const ComposeStartRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeStartRequest$ { - /** @deprecated use `ComposeStartRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeStartRequest$inboundSchema; - /** @deprecated use `ComposeStartRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeStartRequest$outboundSchema; - /** @deprecated use `ComposeStartRequest$Outbound` instead. */ - export type Outbound = ComposeStartRequest$Outbound; -} - export function composeStartRequestToJSON( composeStartRequest: ComposeStartRequest, ): string { @@ -54,13 +29,3 @@ export function composeStartRequestToJSON( ComposeStartRequest$outboundSchema.parse(composeStartRequest), ); } - -export function composeStartRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeStartRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeStartRequest' from JSON`, - ); -} diff --git a/src/models/operations/composestop.ts b/src/models/operations/composestop.ts index 422070f..0e6103d 100644 --- a/src/models/operations/composestop.ts +++ b/src/models/operations/composestop.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeStopRequest = { composeId: string; }; -/** @internal */ -export const ComposeStopRequest$inboundSchema: z.ZodType< - ComposeStopRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type ComposeStopRequest$Outbound = { composeId: string; @@ -34,19 +22,6 @@ export const ComposeStopRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeStopRequest$ { - /** @deprecated use `ComposeStopRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeStopRequest$inboundSchema; - /** @deprecated use `ComposeStopRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeStopRequest$outboundSchema; - /** @deprecated use `ComposeStopRequest$Outbound` instead. */ - export type Outbound = ComposeStopRequest$Outbound; -} - export function composeStopRequestToJSON( composeStopRequest: ComposeStopRequest, ): string { @@ -54,13 +29,3 @@ export function composeStopRequestToJSON( ComposeStopRequest$outboundSchema.parse(composeStopRequest), ); } - -export function composeStopRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeStopRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeStopRequest' from JSON`, - ); -} diff --git a/src/models/operations/composetemplates.ts b/src/models/operations/composetemplates.ts index 08ce192..d3cc9ad 100644 --- a/src/models/operations/composetemplates.ts +++ b/src/models/operations/composetemplates.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ComposeTemplatesRequest = { baseUrl?: string | undefined; }; -/** @internal */ -export const ComposeTemplatesRequest$inboundSchema: z.ZodType< - ComposeTemplatesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - baseUrl: z.string().optional(), -}); - /** @internal */ export type ComposeTemplatesRequest$Outbound = { baseUrl?: string | undefined; @@ -34,19 +22,6 @@ export const ComposeTemplatesRequest$outboundSchema: z.ZodType< baseUrl: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeTemplatesRequest$ { - /** @deprecated use `ComposeTemplatesRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeTemplatesRequest$inboundSchema; - /** @deprecated use `ComposeTemplatesRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeTemplatesRequest$outboundSchema; - /** @deprecated use `ComposeTemplatesRequest$Outbound` instead. */ - export type Outbound = ComposeTemplatesRequest$Outbound; -} - export function composeTemplatesRequestToJSON( composeTemplatesRequest: ComposeTemplatesRequest, ): string { @@ -54,13 +29,3 @@ export function composeTemplatesRequestToJSON( ComposeTemplatesRequest$outboundSchema.parse(composeTemplatesRequest), ); } - -export function composeTemplatesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeTemplatesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeTemplatesRequest' from JSON`, - ); -} diff --git a/src/models/operations/composeupdate.ts b/src/models/operations/composeupdate.ts index 4ecde13..2f8493b 100644 --- a/src/models/operations/composeupdate.ts +++ b/src/models/operations/composeupdate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ComposeUpdateComposeStatus = { Idle: "idle", @@ -92,140 +89,25 @@ export type ComposeUpdateRequest = { watchPaths?: Array | null | undefined; }; -/** @internal */ -export const ComposeUpdateComposeStatus$inboundSchema: z.ZodNativeEnum< - typeof ComposeUpdateComposeStatus -> = z.nativeEnum(ComposeUpdateComposeStatus); - /** @internal */ export const ComposeUpdateComposeStatus$outboundSchema: z.ZodNativeEnum< typeof ComposeUpdateComposeStatus -> = ComposeUpdateComposeStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeUpdateComposeStatus$ { - /** @deprecated use `ComposeUpdateComposeStatus$inboundSchema` instead. */ - export const inboundSchema = ComposeUpdateComposeStatus$inboundSchema; - /** @deprecated use `ComposeUpdateComposeStatus$outboundSchema` instead. */ - export const outboundSchema = ComposeUpdateComposeStatus$outboundSchema; -} - -/** @internal */ -export const ComposeUpdateComposeType$inboundSchema: z.ZodNativeEnum< - typeof ComposeUpdateComposeType -> = z.nativeEnum(ComposeUpdateComposeType); +> = z.nativeEnum(ComposeUpdateComposeStatus); /** @internal */ export const ComposeUpdateComposeType$outboundSchema: z.ZodNativeEnum< typeof ComposeUpdateComposeType -> = ComposeUpdateComposeType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeUpdateComposeType$ { - /** @deprecated use `ComposeUpdateComposeType$inboundSchema` instead. */ - export const inboundSchema = ComposeUpdateComposeType$inboundSchema; - /** @deprecated use `ComposeUpdateComposeType$outboundSchema` instead. */ - export const outboundSchema = ComposeUpdateComposeType$outboundSchema; -} - -/** @internal */ -export const ComposeUpdateSourceType$inboundSchema: z.ZodNativeEnum< - typeof ComposeUpdateSourceType -> = z.nativeEnum(ComposeUpdateSourceType); +> = z.nativeEnum(ComposeUpdateComposeType); /** @internal */ export const ComposeUpdateSourceType$outboundSchema: z.ZodNativeEnum< typeof ComposeUpdateSourceType -> = ComposeUpdateSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeUpdateSourceType$ { - /** @deprecated use `ComposeUpdateSourceType$inboundSchema` instead. */ - export const inboundSchema = ComposeUpdateSourceType$inboundSchema; - /** @deprecated use `ComposeUpdateSourceType$outboundSchema` instead. */ - export const outboundSchema = ComposeUpdateSourceType$outboundSchema; -} - -/** @internal */ -export const ComposeUpdateTriggerType$inboundSchema: z.ZodNativeEnum< - typeof ComposeUpdateTriggerType -> = z.nativeEnum(ComposeUpdateTriggerType); +> = z.nativeEnum(ComposeUpdateSourceType); /** @internal */ export const ComposeUpdateTriggerType$outboundSchema: z.ZodNativeEnum< typeof ComposeUpdateTriggerType -> = ComposeUpdateTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeUpdateTriggerType$ { - /** @deprecated use `ComposeUpdateTriggerType$inboundSchema` instead. */ - export const inboundSchema = ComposeUpdateTriggerType$inboundSchema; - /** @deprecated use `ComposeUpdateTriggerType$outboundSchema` instead. */ - export const outboundSchema = ComposeUpdateTriggerType$outboundSchema; -} - -/** @internal */ -export const ComposeUpdateRequest$inboundSchema: z.ZodType< - ComposeUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - autoDeploy: z.nullable(z.boolean()).optional(), - bitbucketBranch: z.nullable(z.string()).optional(), - bitbucketId: z.nullable(z.string()).optional(), - bitbucketOwner: z.nullable(z.string()).optional(), - bitbucketRepository: z.nullable(z.string()).optional(), - branch: z.nullable(z.string()).optional(), - command: z.string().optional(), - composeFile: z.string().optional(), - composeId: z.string(), - composePath: z.string().optional(), - composeStatus: ComposeUpdateComposeStatus$inboundSchema.optional(), - composeType: ComposeUpdateComposeType$inboundSchema.optional(), - createdAt: z.string().optional(), - customGitBranch: z.nullable(z.string()).optional(), - customGitSSHKeyId: z.nullable(z.string()).optional(), - customGitUrl: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - enableSubmodules: z.boolean().optional(), - env: z.nullable(z.string()).optional(), - environmentId: z.string().optional(), - giteaBranch: z.nullable(z.string()).optional(), - giteaId: z.nullable(z.string()).optional(), - giteaOwner: z.nullable(z.string()).optional(), - giteaRepository: z.nullable(z.string()).optional(), - githubId: z.nullable(z.string()).optional(), - gitlabBranch: z.nullable(z.string()).optional(), - gitlabId: z.nullable(z.string()).optional(), - gitlabOwner: z.nullable(z.string()).optional(), - gitlabPathNamespace: z.nullable(z.string()).optional(), - gitlabProjectId: z.nullable(z.number()).optional(), - gitlabRepository: z.nullable(z.string()).optional(), - isolatedDeployment: z.boolean().optional(), - isolatedDeploymentsVolume: z.boolean().optional(), - name: z.string().optional(), - owner: z.nullable(z.string()).optional(), - randomize: z.boolean().optional(), - refreshToken: z.nullable(z.string()).optional(), - repository: z.nullable(z.string()).optional(), - sourceType: ComposeUpdateSourceType$inboundSchema.optional(), - suffix: z.string().optional(), - triggerType: z.nullable(ComposeUpdateTriggerType$inboundSchema).optional(), - watchPaths: z.nullable(z.array(z.string())).optional(), -}); +> = z.nativeEnum(ComposeUpdateTriggerType); /** @internal */ export type ComposeUpdateRequest$Outbound = { @@ -325,19 +207,6 @@ export const ComposeUpdateRequest$outboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ComposeUpdateRequest$ { - /** @deprecated use `ComposeUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = ComposeUpdateRequest$inboundSchema; - /** @deprecated use `ComposeUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = ComposeUpdateRequest$outboundSchema; - /** @deprecated use `ComposeUpdateRequest$Outbound` instead. */ - export type Outbound = ComposeUpdateRequest$Outbound; -} - export function composeUpdateRequestToJSON( composeUpdateRequest: ComposeUpdateRequest, ): string { @@ -345,13 +214,3 @@ export function composeUpdateRequestToJSON( ComposeUpdateRequest$outboundSchema.parse(composeUpdateRequest), ); } - -export function composeUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ComposeUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ComposeUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/deploymentall.ts b/src/models/operations/deploymentall.ts index be519b4..b9e0826 100644 --- a/src/models/operations/deploymentall.ts +++ b/src/models/operations/deploymentall.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -46,15 +46,6 @@ export type DeploymentAllResponse = | models.ErrorT | Array; -/** @internal */ -export const DeploymentAllRequest$inboundSchema: z.ZodType< - DeploymentAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type DeploymentAllRequest$Outbound = { applicationId: string; @@ -69,19 +60,6 @@ export const DeploymentAllRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllRequest$ { - /** @deprecated use `DeploymentAllRequest$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllRequest$inboundSchema; - /** @deprecated use `DeploymentAllRequest$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllRequest$outboundSchema; - /** @deprecated use `DeploymentAllRequest$Outbound` instead. */ - export type Outbound = DeploymentAllRequest$Outbound; -} - export function deploymentAllRequestToJSON( deploymentAllRequest: DeploymentAllRequest, ): string { @@ -90,37 +68,11 @@ export function deploymentAllRequestToJSON( ); } -export function deploymentAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeploymentAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeploymentAllRequest' from JSON`, - ); -} - /** @internal */ export const DeploymentAllStatus$inboundSchema: z.ZodNativeEnum< typeof DeploymentAllStatus > = z.nativeEnum(DeploymentAllStatus); -/** @internal */ -export const DeploymentAllStatus$outboundSchema: z.ZodNativeEnum< - typeof DeploymentAllStatus -> = DeploymentAllStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllStatus$ { - /** @deprecated use `DeploymentAllStatus$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllStatus$inboundSchema; - /** @deprecated use `DeploymentAllStatus$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllStatus$outboundSchema; -} - /** @internal */ export const DeploymentAllResponseBody$inboundSchema: z.ZodType< DeploymentAllResponseBody, @@ -148,77 +100,6 @@ export const DeploymentAllResponseBody$inboundSchema: z.ZodType< volumeBackupId: z.nullable(z.string()), }); -/** @internal */ -export type DeploymentAllResponseBody$Outbound = { - applicationId: string | null; - backupId: string | null; - composeId: string | null; - createdAt: string; - deploymentId: string; - description: string | null; - errorMessage: string | null; - finishedAt: string | null; - isPreviewDeployment: boolean | null; - logPath: string; - pid: string | null; - previewDeploymentId: string | null; - rollbackId: string | null; - scheduleId: string | null; - serverId: string | null; - startedAt: string | null; - status: string | null; - title: string; - volumeBackupId: string | null; -}; - -/** @internal */ -export const DeploymentAllResponseBody$outboundSchema: z.ZodType< - DeploymentAllResponseBody$Outbound, - z.ZodTypeDef, - DeploymentAllResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - backupId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - createdAt: z.string(), - deploymentId: z.string(), - description: z.nullable(z.string()), - errorMessage: z.nullable(z.string()), - finishedAt: z.nullable(z.string()), - isPreviewDeployment: z.nullable(z.boolean()), - logPath: z.string(), - pid: z.nullable(z.string()), - previewDeploymentId: z.nullable(z.string()), - rollbackId: z.nullable(z.string()), - scheduleId: z.nullable(z.string()), - serverId: z.nullable(z.string()), - startedAt: z.nullable(z.string()), - status: z.nullable(DeploymentAllStatus$outboundSchema), - title: z.string(), - volumeBackupId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllResponseBody$ { - /** @deprecated use `DeploymentAllResponseBody$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllResponseBody$inboundSchema; - /** @deprecated use `DeploymentAllResponseBody$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllResponseBody$outboundSchema; - /** @deprecated use `DeploymentAllResponseBody$Outbound` instead. */ - export type Outbound = DeploymentAllResponseBody$Outbound; -} - -export function deploymentAllResponseBodyToJSON( - deploymentAllResponseBody: DeploymentAllResponseBody, -): string { - return JSON.stringify( - DeploymentAllResponseBody$outboundSchema.parse(deploymentAllResponseBody), - ); -} - export function deploymentAllResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -239,42 +120,6 @@ export const DeploymentAllResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => DeploymentAllResponseBody$inboundSchema)), ]); -/** @internal */ -export type DeploymentAllResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const DeploymentAllResponse$outboundSchema: z.ZodType< - DeploymentAllResponse$Outbound, - z.ZodTypeDef, - DeploymentAllResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => DeploymentAllResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllResponse$ { - /** @deprecated use `DeploymentAllResponse$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllResponse$inboundSchema; - /** @deprecated use `DeploymentAllResponse$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllResponse$outboundSchema; - /** @deprecated use `DeploymentAllResponse$Outbound` instead. */ - export type Outbound = DeploymentAllResponse$Outbound; -} - -export function deploymentAllResponseToJSON( - deploymentAllResponse: DeploymentAllResponse, -): string { - return JSON.stringify( - DeploymentAllResponse$outboundSchema.parse(deploymentAllResponse), - ); -} - export function deploymentAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deploymentallbycompose.ts b/src/models/operations/deploymentallbycompose.ts index 6718b17..a64c936 100644 --- a/src/models/operations/deploymentallbycompose.ts +++ b/src/models/operations/deploymentallbycompose.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,15 +48,6 @@ export type DeploymentAllByComposeResponse = | models.ErrorT | Array; -/** @internal */ -export const DeploymentAllByComposeRequest$inboundSchema: z.ZodType< - DeploymentAllByComposeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type DeploymentAllByComposeRequest$Outbound = { composeId: string; @@ -71,19 +62,6 @@ export const DeploymentAllByComposeRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByComposeRequest$ { - /** @deprecated use `DeploymentAllByComposeRequest$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByComposeRequest$inboundSchema; - /** @deprecated use `DeploymentAllByComposeRequest$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByComposeRequest$outboundSchema; - /** @deprecated use `DeploymentAllByComposeRequest$Outbound` instead. */ - export type Outbound = DeploymentAllByComposeRequest$Outbound; -} - export function deploymentAllByComposeRequestToJSON( deploymentAllByComposeRequest: DeploymentAllByComposeRequest, ): string { @@ -94,37 +72,11 @@ export function deploymentAllByComposeRequestToJSON( ); } -export function deploymentAllByComposeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeploymentAllByComposeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeploymentAllByComposeRequest' from JSON`, - ); -} - /** @internal */ export const DeploymentAllByComposeStatus$inboundSchema: z.ZodNativeEnum< typeof DeploymentAllByComposeStatus > = z.nativeEnum(DeploymentAllByComposeStatus); -/** @internal */ -export const DeploymentAllByComposeStatus$outboundSchema: z.ZodNativeEnum< - typeof DeploymentAllByComposeStatus -> = DeploymentAllByComposeStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByComposeStatus$ { - /** @deprecated use `DeploymentAllByComposeStatus$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByComposeStatus$inboundSchema; - /** @deprecated use `DeploymentAllByComposeStatus$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByComposeStatus$outboundSchema; -} - /** @internal */ export const DeploymentAllByComposeResponseBody$inboundSchema: z.ZodType< DeploymentAllByComposeResponseBody, @@ -152,80 +104,6 @@ export const DeploymentAllByComposeResponseBody$inboundSchema: z.ZodType< volumeBackupId: z.nullable(z.string()), }); -/** @internal */ -export type DeploymentAllByComposeResponseBody$Outbound = { - applicationId: string | null; - backupId: string | null; - composeId: string | null; - createdAt: string; - deploymentId: string; - description: string | null; - errorMessage: string | null; - finishedAt: string | null; - isPreviewDeployment: boolean | null; - logPath: string; - pid: string | null; - previewDeploymentId: string | null; - rollbackId: string | null; - scheduleId: string | null; - serverId: string | null; - startedAt: string | null; - status: string | null; - title: string; - volumeBackupId: string | null; -}; - -/** @internal */ -export const DeploymentAllByComposeResponseBody$outboundSchema: z.ZodType< - DeploymentAllByComposeResponseBody$Outbound, - z.ZodTypeDef, - DeploymentAllByComposeResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - backupId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - createdAt: z.string(), - deploymentId: z.string(), - description: z.nullable(z.string()), - errorMessage: z.nullable(z.string()), - finishedAt: z.nullable(z.string()), - isPreviewDeployment: z.nullable(z.boolean()), - logPath: z.string(), - pid: z.nullable(z.string()), - previewDeploymentId: z.nullable(z.string()), - rollbackId: z.nullable(z.string()), - scheduleId: z.nullable(z.string()), - serverId: z.nullable(z.string()), - startedAt: z.nullable(z.string()), - status: z.nullable(DeploymentAllByComposeStatus$outboundSchema), - title: z.string(), - volumeBackupId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByComposeResponseBody$ { - /** @deprecated use `DeploymentAllByComposeResponseBody$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByComposeResponseBody$inboundSchema; - /** @deprecated use `DeploymentAllByComposeResponseBody$outboundSchema` instead. */ - export const outboundSchema = - DeploymentAllByComposeResponseBody$outboundSchema; - /** @deprecated use `DeploymentAllByComposeResponseBody$Outbound` instead. */ - export type Outbound = DeploymentAllByComposeResponseBody$Outbound; -} - -export function deploymentAllByComposeResponseBodyToJSON( - deploymentAllByComposeResponseBody: DeploymentAllByComposeResponseBody, -): string { - return JSON.stringify( - DeploymentAllByComposeResponseBody$outboundSchema.parse( - deploymentAllByComposeResponseBody, - ), - ); -} - export function deploymentAllByComposeResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -247,44 +125,6 @@ export const DeploymentAllByComposeResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => DeploymentAllByComposeResponseBody$inboundSchema)), ]); -/** @internal */ -export type DeploymentAllByComposeResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const DeploymentAllByComposeResponse$outboundSchema: z.ZodType< - DeploymentAllByComposeResponse$Outbound, - z.ZodTypeDef, - DeploymentAllByComposeResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => DeploymentAllByComposeResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByComposeResponse$ { - /** @deprecated use `DeploymentAllByComposeResponse$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByComposeResponse$inboundSchema; - /** @deprecated use `DeploymentAllByComposeResponse$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByComposeResponse$outboundSchema; - /** @deprecated use `DeploymentAllByComposeResponse$Outbound` instead. */ - export type Outbound = DeploymentAllByComposeResponse$Outbound; -} - -export function deploymentAllByComposeResponseToJSON( - deploymentAllByComposeResponse: DeploymentAllByComposeResponse, -): string { - return JSON.stringify( - DeploymentAllByComposeResponse$outboundSchema.parse( - deploymentAllByComposeResponse, - ), - ); -} - export function deploymentAllByComposeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deploymentallbyserver.ts b/src/models/operations/deploymentallbyserver.ts index a25df57..be68e29 100644 --- a/src/models/operations/deploymentallbyserver.ts +++ b/src/models/operations/deploymentallbyserver.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,15 +48,6 @@ export type DeploymentAllByServerResponse = | models.ErrorT | Array; -/** @internal */ -export const DeploymentAllByServerRequest$inboundSchema: z.ZodType< - DeploymentAllByServerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string(), -}); - /** @internal */ export type DeploymentAllByServerRequest$Outbound = { serverId: string; @@ -71,19 +62,6 @@ export const DeploymentAllByServerRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByServerRequest$ { - /** @deprecated use `DeploymentAllByServerRequest$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByServerRequest$inboundSchema; - /** @deprecated use `DeploymentAllByServerRequest$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByServerRequest$outboundSchema; - /** @deprecated use `DeploymentAllByServerRequest$Outbound` instead. */ - export type Outbound = DeploymentAllByServerRequest$Outbound; -} - export function deploymentAllByServerRequestToJSON( deploymentAllByServerRequest: DeploymentAllByServerRequest, ): string { @@ -94,37 +72,11 @@ export function deploymentAllByServerRequestToJSON( ); } -export function deploymentAllByServerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeploymentAllByServerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeploymentAllByServerRequest' from JSON`, - ); -} - /** @internal */ export const DeploymentAllByServerStatus$inboundSchema: z.ZodNativeEnum< typeof DeploymentAllByServerStatus > = z.nativeEnum(DeploymentAllByServerStatus); -/** @internal */ -export const DeploymentAllByServerStatus$outboundSchema: z.ZodNativeEnum< - typeof DeploymentAllByServerStatus -> = DeploymentAllByServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByServerStatus$ { - /** @deprecated use `DeploymentAllByServerStatus$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByServerStatus$inboundSchema; - /** @deprecated use `DeploymentAllByServerStatus$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByServerStatus$outboundSchema; -} - /** @internal */ export const DeploymentAllByServerResponseBody$inboundSchema: z.ZodType< DeploymentAllByServerResponseBody, @@ -152,80 +104,6 @@ export const DeploymentAllByServerResponseBody$inboundSchema: z.ZodType< volumeBackupId: z.nullable(z.string()), }); -/** @internal */ -export type DeploymentAllByServerResponseBody$Outbound = { - applicationId: string | null; - backupId: string | null; - composeId: string | null; - createdAt: string; - deploymentId: string; - description: string | null; - errorMessage: string | null; - finishedAt: string | null; - isPreviewDeployment: boolean | null; - logPath: string; - pid: string | null; - previewDeploymentId: string | null; - rollbackId: string | null; - scheduleId: string | null; - serverId: string | null; - startedAt: string | null; - status: string | null; - title: string; - volumeBackupId: string | null; -}; - -/** @internal */ -export const DeploymentAllByServerResponseBody$outboundSchema: z.ZodType< - DeploymentAllByServerResponseBody$Outbound, - z.ZodTypeDef, - DeploymentAllByServerResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - backupId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - createdAt: z.string(), - deploymentId: z.string(), - description: z.nullable(z.string()), - errorMessage: z.nullable(z.string()), - finishedAt: z.nullable(z.string()), - isPreviewDeployment: z.nullable(z.boolean()), - logPath: z.string(), - pid: z.nullable(z.string()), - previewDeploymentId: z.nullable(z.string()), - rollbackId: z.nullable(z.string()), - scheduleId: z.nullable(z.string()), - serverId: z.nullable(z.string()), - startedAt: z.nullable(z.string()), - status: z.nullable(DeploymentAllByServerStatus$outboundSchema), - title: z.string(), - volumeBackupId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByServerResponseBody$ { - /** @deprecated use `DeploymentAllByServerResponseBody$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByServerResponseBody$inboundSchema; - /** @deprecated use `DeploymentAllByServerResponseBody$outboundSchema` instead. */ - export const outboundSchema = - DeploymentAllByServerResponseBody$outboundSchema; - /** @deprecated use `DeploymentAllByServerResponseBody$Outbound` instead. */ - export type Outbound = DeploymentAllByServerResponseBody$Outbound; -} - -export function deploymentAllByServerResponseBodyToJSON( - deploymentAllByServerResponseBody: DeploymentAllByServerResponseBody, -): string { - return JSON.stringify( - DeploymentAllByServerResponseBody$outboundSchema.parse( - deploymentAllByServerResponseBody, - ), - ); -} - export function deploymentAllByServerResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -246,44 +124,6 @@ export const DeploymentAllByServerResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => DeploymentAllByServerResponseBody$inboundSchema)), ]); -/** @internal */ -export type DeploymentAllByServerResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const DeploymentAllByServerResponse$outboundSchema: z.ZodType< - DeploymentAllByServerResponse$Outbound, - z.ZodTypeDef, - DeploymentAllByServerResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => DeploymentAllByServerResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByServerResponse$ { - /** @deprecated use `DeploymentAllByServerResponse$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByServerResponse$inboundSchema; - /** @deprecated use `DeploymentAllByServerResponse$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByServerResponse$outboundSchema; - /** @deprecated use `DeploymentAllByServerResponse$Outbound` instead. */ - export type Outbound = DeploymentAllByServerResponse$Outbound; -} - -export function deploymentAllByServerResponseToJSON( - deploymentAllByServerResponse: DeploymentAllByServerResponse, -): string { - return JSON.stringify( - DeploymentAllByServerResponse$outboundSchema.parse( - deploymentAllByServerResponse, - ), - ); -} - export function deploymentAllByServerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deploymentallbytype.ts b/src/models/operations/deploymentallbytype.ts index a71453a..f03e60e 100644 --- a/src/models/operations/deploymentallbytype.ts +++ b/src/models/operations/deploymentallbytype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -62,36 +62,10 @@ export type DeploymentAllByTypeResponse = | models.ErrorT | Array; -/** @internal */ -export const DeploymentAllByTypeType$inboundSchema: z.ZodNativeEnum< - typeof DeploymentAllByTypeType -> = z.nativeEnum(DeploymentAllByTypeType); - /** @internal */ export const DeploymentAllByTypeType$outboundSchema: z.ZodNativeEnum< typeof DeploymentAllByTypeType -> = DeploymentAllByTypeType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByTypeType$ { - /** @deprecated use `DeploymentAllByTypeType$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByTypeType$inboundSchema; - /** @deprecated use `DeploymentAllByTypeType$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByTypeType$outboundSchema; -} - -/** @internal */ -export const DeploymentAllByTypeRequest$inboundSchema: z.ZodType< - DeploymentAllByTypeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - type: DeploymentAllByTypeType$inboundSchema, -}); +> = z.nativeEnum(DeploymentAllByTypeType); /** @internal */ export type DeploymentAllByTypeRequest$Outbound = { @@ -109,19 +83,6 @@ export const DeploymentAllByTypeRequest$outboundSchema: z.ZodType< type: DeploymentAllByTypeType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByTypeRequest$ { - /** @deprecated use `DeploymentAllByTypeRequest$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByTypeRequest$inboundSchema; - /** @deprecated use `DeploymentAllByTypeRequest$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByTypeRequest$outboundSchema; - /** @deprecated use `DeploymentAllByTypeRequest$Outbound` instead. */ - export type Outbound = DeploymentAllByTypeRequest$Outbound; -} - export function deploymentAllByTypeRequestToJSON( deploymentAllByTypeRequest: DeploymentAllByTypeRequest, ): string { @@ -130,37 +91,11 @@ export function deploymentAllByTypeRequestToJSON( ); } -export function deploymentAllByTypeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeploymentAllByTypeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeploymentAllByTypeRequest' from JSON`, - ); -} - /** @internal */ export const DeploymentAllByTypeStatus$inboundSchema: z.ZodNativeEnum< typeof DeploymentAllByTypeStatus > = z.nativeEnum(DeploymentAllByTypeStatus); -/** @internal */ -export const DeploymentAllByTypeStatus$outboundSchema: z.ZodNativeEnum< - typeof DeploymentAllByTypeStatus -> = DeploymentAllByTypeStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByTypeStatus$ { - /** @deprecated use `DeploymentAllByTypeStatus$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByTypeStatus$inboundSchema; - /** @deprecated use `DeploymentAllByTypeStatus$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByTypeStatus$outboundSchema; -} - /** @internal */ export const DeploymentAllByTypeResponseBody$inboundSchema: z.ZodType< DeploymentAllByTypeResponseBody, @@ -188,79 +123,6 @@ export const DeploymentAllByTypeResponseBody$inboundSchema: z.ZodType< volumeBackupId: z.nullable(z.string()), }); -/** @internal */ -export type DeploymentAllByTypeResponseBody$Outbound = { - applicationId: string | null; - backupId: string | null; - composeId: string | null; - createdAt: string; - deploymentId: string; - description: string | null; - errorMessage: string | null; - finishedAt: string | null; - isPreviewDeployment: boolean | null; - logPath: string; - pid: string | null; - previewDeploymentId: string | null; - rollbackId: string | null; - scheduleId: string | null; - serverId: string | null; - startedAt: string | null; - status: string | null; - title: string; - volumeBackupId: string | null; -}; - -/** @internal */ -export const DeploymentAllByTypeResponseBody$outboundSchema: z.ZodType< - DeploymentAllByTypeResponseBody$Outbound, - z.ZodTypeDef, - DeploymentAllByTypeResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - backupId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - createdAt: z.string(), - deploymentId: z.string(), - description: z.nullable(z.string()), - errorMessage: z.nullable(z.string()), - finishedAt: z.nullable(z.string()), - isPreviewDeployment: z.nullable(z.boolean()), - logPath: z.string(), - pid: z.nullable(z.string()), - previewDeploymentId: z.nullable(z.string()), - rollbackId: z.nullable(z.string()), - scheduleId: z.nullable(z.string()), - serverId: z.nullable(z.string()), - startedAt: z.nullable(z.string()), - status: z.nullable(DeploymentAllByTypeStatus$outboundSchema), - title: z.string(), - volumeBackupId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByTypeResponseBody$ { - /** @deprecated use `DeploymentAllByTypeResponseBody$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByTypeResponseBody$inboundSchema; - /** @deprecated use `DeploymentAllByTypeResponseBody$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByTypeResponseBody$outboundSchema; - /** @deprecated use `DeploymentAllByTypeResponseBody$Outbound` instead. */ - export type Outbound = DeploymentAllByTypeResponseBody$Outbound; -} - -export function deploymentAllByTypeResponseBodyToJSON( - deploymentAllByTypeResponseBody: DeploymentAllByTypeResponseBody, -): string { - return JSON.stringify( - DeploymentAllByTypeResponseBody$outboundSchema.parse( - deploymentAllByTypeResponseBody, - ), - ); -} - export function deploymentAllByTypeResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -281,44 +143,6 @@ export const DeploymentAllByTypeResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => DeploymentAllByTypeResponseBody$inboundSchema)), ]); -/** @internal */ -export type DeploymentAllByTypeResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const DeploymentAllByTypeResponse$outboundSchema: z.ZodType< - DeploymentAllByTypeResponse$Outbound, - z.ZodTypeDef, - DeploymentAllByTypeResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => DeploymentAllByTypeResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentAllByTypeResponse$ { - /** @deprecated use `DeploymentAllByTypeResponse$inboundSchema` instead. */ - export const inboundSchema = DeploymentAllByTypeResponse$inboundSchema; - /** @deprecated use `DeploymentAllByTypeResponse$outboundSchema` instead. */ - export const outboundSchema = DeploymentAllByTypeResponse$outboundSchema; - /** @deprecated use `DeploymentAllByTypeResponse$Outbound` instead. */ - export type Outbound = DeploymentAllByTypeResponse$Outbound; -} - -export function deploymentAllByTypeResponseToJSON( - deploymentAllByTypeResponse: DeploymentAllByTypeResponse, -): string { - return JSON.stringify( - DeploymentAllByTypeResponse$outboundSchema.parse( - deploymentAllByTypeResponse, - ), - ); -} - export function deploymentAllByTypeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deploymentkillprocess.ts b/src/models/operations/deploymentkillprocess.ts index 088d2b6..5340f74 100644 --- a/src/models/operations/deploymentkillprocess.ts +++ b/src/models/operations/deploymentkillprocess.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DeploymentKillProcessRequest = { deploymentId: string; }; -/** @internal */ -export const DeploymentKillProcessRequest$inboundSchema: z.ZodType< - DeploymentKillProcessRequest, - z.ZodTypeDef, - unknown -> = z.object({ - deploymentId: z.string(), -}); - /** @internal */ export type DeploymentKillProcessRequest$Outbound = { deploymentId: string; @@ -34,19 +22,6 @@ export const DeploymentKillProcessRequest$outboundSchema: z.ZodType< deploymentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeploymentKillProcessRequest$ { - /** @deprecated use `DeploymentKillProcessRequest$inboundSchema` instead. */ - export const inboundSchema = DeploymentKillProcessRequest$inboundSchema; - /** @deprecated use `DeploymentKillProcessRequest$outboundSchema` instead. */ - export const outboundSchema = DeploymentKillProcessRequest$outboundSchema; - /** @deprecated use `DeploymentKillProcessRequest$Outbound` instead. */ - export type Outbound = DeploymentKillProcessRequest$Outbound; -} - export function deploymentKillProcessRequestToJSON( deploymentKillProcessRequest: DeploymentKillProcessRequest, ): string { @@ -56,13 +31,3 @@ export function deploymentKillProcessRequestToJSON( ), ); } - -export function deploymentKillProcessRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeploymentKillProcessRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeploymentKillProcessRequest' from JSON`, - ); -} diff --git a/src/models/operations/destinationcreate.ts b/src/models/operations/destinationcreate.ts index 5461362..3821689 100644 --- a/src/models/operations/destinationcreate.ts +++ b/src/models/operations/destinationcreate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DestinationCreateRequest = { accessKey: string; @@ -18,22 +15,6 @@ export type DestinationCreateRequest = { serverId?: string | undefined; }; -/** @internal */ -export const DestinationCreateRequest$inboundSchema: z.ZodType< - DestinationCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessKey: z.string(), - bucket: z.string(), - endpoint: z.string(), - name: z.string(), - provider: z.nullable(z.string()), - region: z.string(), - secretAccessKey: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type DestinationCreateRequest$Outbound = { accessKey: string; @@ -62,19 +43,6 @@ export const DestinationCreateRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DestinationCreateRequest$ { - /** @deprecated use `DestinationCreateRequest$inboundSchema` instead. */ - export const inboundSchema = DestinationCreateRequest$inboundSchema; - /** @deprecated use `DestinationCreateRequest$outboundSchema` instead. */ - export const outboundSchema = DestinationCreateRequest$outboundSchema; - /** @deprecated use `DestinationCreateRequest$Outbound` instead. */ - export type Outbound = DestinationCreateRequest$Outbound; -} - export function destinationCreateRequestToJSON( destinationCreateRequest: DestinationCreateRequest, ): string { @@ -82,13 +50,3 @@ export function destinationCreateRequestToJSON( DestinationCreateRequest$outboundSchema.parse(destinationCreateRequest), ); } - -export function destinationCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DestinationCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DestinationCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/destinationone.ts b/src/models/operations/destinationone.ts index 27c3f7e..124bbc4 100644 --- a/src/models/operations/destinationone.ts +++ b/src/models/operations/destinationone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DestinationOneRequest = { destinationId: string; }; -/** @internal */ -export const DestinationOneRequest$inboundSchema: z.ZodType< - DestinationOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - destinationId: z.string(), -}); - /** @internal */ export type DestinationOneRequest$Outbound = { destinationId: string; @@ -34,19 +22,6 @@ export const DestinationOneRequest$outboundSchema: z.ZodType< destinationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DestinationOneRequest$ { - /** @deprecated use `DestinationOneRequest$inboundSchema` instead. */ - export const inboundSchema = DestinationOneRequest$inboundSchema; - /** @deprecated use `DestinationOneRequest$outboundSchema` instead. */ - export const outboundSchema = DestinationOneRequest$outboundSchema; - /** @deprecated use `DestinationOneRequest$Outbound` instead. */ - export type Outbound = DestinationOneRequest$Outbound; -} - export function destinationOneRequestToJSON( destinationOneRequest: DestinationOneRequest, ): string { @@ -54,13 +29,3 @@ export function destinationOneRequestToJSON( DestinationOneRequest$outboundSchema.parse(destinationOneRequest), ); } - -export function destinationOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DestinationOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DestinationOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/destinationremove.ts b/src/models/operations/destinationremove.ts index b6fe26d..2fb1bdd 100644 --- a/src/models/operations/destinationremove.ts +++ b/src/models/operations/destinationremove.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DestinationRemoveRequest = { destinationId: string; }; -/** @internal */ -export const DestinationRemoveRequest$inboundSchema: z.ZodType< - DestinationRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - destinationId: z.string(), -}); - /** @internal */ export type DestinationRemoveRequest$Outbound = { destinationId: string; @@ -34,19 +22,6 @@ export const DestinationRemoveRequest$outboundSchema: z.ZodType< destinationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DestinationRemoveRequest$ { - /** @deprecated use `DestinationRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = DestinationRemoveRequest$inboundSchema; - /** @deprecated use `DestinationRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = DestinationRemoveRequest$outboundSchema; - /** @deprecated use `DestinationRemoveRequest$Outbound` instead. */ - export type Outbound = DestinationRemoveRequest$Outbound; -} - export function destinationRemoveRequestToJSON( destinationRemoveRequest: DestinationRemoveRequest, ): string { @@ -54,13 +29,3 @@ export function destinationRemoveRequestToJSON( DestinationRemoveRequest$outboundSchema.parse(destinationRemoveRequest), ); } - -export function destinationRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DestinationRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DestinationRemoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/destinationtestconnection.ts b/src/models/operations/destinationtestconnection.ts index 5ddd8f8..c39640b 100644 --- a/src/models/operations/destinationtestconnection.ts +++ b/src/models/operations/destinationtestconnection.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DestinationTestConnectionRequest = { accessKey: string; @@ -18,22 +15,6 @@ export type DestinationTestConnectionRequest = { serverId?: string | undefined; }; -/** @internal */ -export const DestinationTestConnectionRequest$inboundSchema: z.ZodType< - DestinationTestConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessKey: z.string(), - bucket: z.string(), - endpoint: z.string(), - name: z.string(), - provider: z.nullable(z.string()), - region: z.string(), - secretAccessKey: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type DestinationTestConnectionRequest$Outbound = { accessKey: string; @@ -62,19 +43,6 @@ export const DestinationTestConnectionRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DestinationTestConnectionRequest$ { - /** @deprecated use `DestinationTestConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = DestinationTestConnectionRequest$inboundSchema; - /** @deprecated use `DestinationTestConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = DestinationTestConnectionRequest$outboundSchema; - /** @deprecated use `DestinationTestConnectionRequest$Outbound` instead. */ - export type Outbound = DestinationTestConnectionRequest$Outbound; -} - export function destinationTestConnectionRequestToJSON( destinationTestConnectionRequest: DestinationTestConnectionRequest, ): string { @@ -84,13 +52,3 @@ export function destinationTestConnectionRequestToJSON( ), ); } - -export function destinationTestConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DestinationTestConnectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DestinationTestConnectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/destinationupdate.ts b/src/models/operations/destinationupdate.ts index 29bba23..c01793e 100644 --- a/src/models/operations/destinationupdate.ts +++ b/src/models/operations/destinationupdate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DestinationUpdateRequest = { accessKey: string; @@ -19,23 +16,6 @@ export type DestinationUpdateRequest = { serverId?: string | undefined; }; -/** @internal */ -export const DestinationUpdateRequest$inboundSchema: z.ZodType< - DestinationUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessKey: z.string(), - bucket: z.string(), - destinationId: z.string(), - endpoint: z.string(), - name: z.string(), - provider: z.nullable(z.string()), - region: z.string(), - secretAccessKey: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type DestinationUpdateRequest$Outbound = { accessKey: string; @@ -66,19 +46,6 @@ export const DestinationUpdateRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DestinationUpdateRequest$ { - /** @deprecated use `DestinationUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = DestinationUpdateRequest$inboundSchema; - /** @deprecated use `DestinationUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = DestinationUpdateRequest$outboundSchema; - /** @deprecated use `DestinationUpdateRequest$Outbound` instead. */ - export type Outbound = DestinationUpdateRequest$Outbound; -} - export function destinationUpdateRequestToJSON( destinationUpdateRequest: DestinationUpdateRequest, ): string { @@ -86,13 +53,3 @@ export function destinationUpdateRequestToJSON( DestinationUpdateRequest$outboundSchema.parse(destinationUpdateRequest), ); } - -export function destinationUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DestinationUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DestinationUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/dockergetconfig.ts b/src/models/operations/dockergetconfig.ts index 4a6de77..e1bdd6f 100644 --- a/src/models/operations/dockergetconfig.ts +++ b/src/models/operations/dockergetconfig.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DockerGetConfigRequest = { containerId: string; serverId?: string | undefined; }; -/** @internal */ -export const DockerGetConfigRequest$inboundSchema: z.ZodType< - DockerGetConfigRequest, - z.ZodTypeDef, - unknown -> = z.object({ - containerId: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type DockerGetConfigRequest$Outbound = { containerId: string; @@ -38,19 +25,6 @@ export const DockerGetConfigRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DockerGetConfigRequest$ { - /** @deprecated use `DockerGetConfigRequest$inboundSchema` instead. */ - export const inboundSchema = DockerGetConfigRequest$inboundSchema; - /** @deprecated use `DockerGetConfigRequest$outboundSchema` instead. */ - export const outboundSchema = DockerGetConfigRequest$outboundSchema; - /** @deprecated use `DockerGetConfigRequest$Outbound` instead. */ - export type Outbound = DockerGetConfigRequest$Outbound; -} - export function dockerGetConfigRequestToJSON( dockerGetConfigRequest: DockerGetConfigRequest, ): string { @@ -58,13 +32,3 @@ export function dockerGetConfigRequestToJSON( DockerGetConfigRequest$outboundSchema.parse(dockerGetConfigRequest), ); } - -export function dockerGetConfigRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DockerGetConfigRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DockerGetConfigRequest' from JSON`, - ); -} diff --git a/src/models/operations/dockergetcontainers.ts b/src/models/operations/dockergetcontainers.ts index 9374b9b..4fa441f 100644 --- a/src/models/operations/dockergetcontainers.ts +++ b/src/models/operations/dockergetcontainers.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DockerGetContainersRequest = { serverId?: string | undefined; }; -/** @internal */ -export const DockerGetContainersRequest$inboundSchema: z.ZodType< - DockerGetContainersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type DockerGetContainersRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const DockerGetContainersRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DockerGetContainersRequest$ { - /** @deprecated use `DockerGetContainersRequest$inboundSchema` instead. */ - export const inboundSchema = DockerGetContainersRequest$inboundSchema; - /** @deprecated use `DockerGetContainersRequest$outboundSchema` instead. */ - export const outboundSchema = DockerGetContainersRequest$outboundSchema; - /** @deprecated use `DockerGetContainersRequest$Outbound` instead. */ - export type Outbound = DockerGetContainersRequest$Outbound; -} - export function dockerGetContainersRequestToJSON( dockerGetContainersRequest: DockerGetContainersRequest, ): string { @@ -54,13 +29,3 @@ export function dockerGetContainersRequestToJSON( DockerGetContainersRequest$outboundSchema.parse(dockerGetContainersRequest), ); } - -export function dockerGetContainersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DockerGetContainersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DockerGetContainersRequest' from JSON`, - ); -} diff --git a/src/models/operations/dockergetcontainersbyapplabel.ts b/src/models/operations/dockergetcontainersbyapplabel.ts index 3279969..6b597e7 100644 --- a/src/models/operations/dockergetcontainersbyapplabel.ts +++ b/src/models/operations/dockergetcontainersbyapplabel.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const DockerGetContainersByAppLabelType = { Standalone: "standalone", @@ -22,38 +19,10 @@ export type DockerGetContainersByAppLabelRequest = { type: DockerGetContainersByAppLabelType; }; -/** @internal */ -export const DockerGetContainersByAppLabelType$inboundSchema: z.ZodNativeEnum< - typeof DockerGetContainersByAppLabelType -> = z.nativeEnum(DockerGetContainersByAppLabelType); - /** @internal */ export const DockerGetContainersByAppLabelType$outboundSchema: z.ZodNativeEnum< typeof DockerGetContainersByAppLabelType -> = DockerGetContainersByAppLabelType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DockerGetContainersByAppLabelType$ { - /** @deprecated use `DockerGetContainersByAppLabelType$inboundSchema` instead. */ - export const inboundSchema = DockerGetContainersByAppLabelType$inboundSchema; - /** @deprecated use `DockerGetContainersByAppLabelType$outboundSchema` instead. */ - export const outboundSchema = - DockerGetContainersByAppLabelType$outboundSchema; -} - -/** @internal */ -export const DockerGetContainersByAppLabelRequest$inboundSchema: z.ZodType< - DockerGetContainersByAppLabelRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - serverId: z.string().optional(), - type: DockerGetContainersByAppLabelType$inboundSchema, -}); +> = z.nativeEnum(DockerGetContainersByAppLabelType); /** @internal */ export type DockerGetContainersByAppLabelRequest$Outbound = { @@ -73,21 +42,6 @@ export const DockerGetContainersByAppLabelRequest$outboundSchema: z.ZodType< type: DockerGetContainersByAppLabelType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DockerGetContainersByAppLabelRequest$ { - /** @deprecated use `DockerGetContainersByAppLabelRequest$inboundSchema` instead. */ - export const inboundSchema = - DockerGetContainersByAppLabelRequest$inboundSchema; - /** @deprecated use `DockerGetContainersByAppLabelRequest$outboundSchema` instead. */ - export const outboundSchema = - DockerGetContainersByAppLabelRequest$outboundSchema; - /** @deprecated use `DockerGetContainersByAppLabelRequest$Outbound` instead. */ - export type Outbound = DockerGetContainersByAppLabelRequest$Outbound; -} - export function dockerGetContainersByAppLabelRequestToJSON( dockerGetContainersByAppLabelRequest: DockerGetContainersByAppLabelRequest, ): string { @@ -97,14 +51,3 @@ export function dockerGetContainersByAppLabelRequestToJSON( ), ); } - -export function dockerGetContainersByAppLabelRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - DockerGetContainersByAppLabelRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DockerGetContainersByAppLabelRequest' from JSON`, - ); -} diff --git a/src/models/operations/dockergetcontainersbyappnamematch.ts b/src/models/operations/dockergetcontainersbyappnamematch.ts index 8103d17..d9dddd2 100644 --- a/src/models/operations/dockergetcontainersbyappnamematch.ts +++ b/src/models/operations/dockergetcontainersbyappnamematch.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const AppTypeDockerCompose = { DockerCompose: "docker-compose", @@ -26,49 +23,14 @@ export type DockerGetContainersByAppNameMatchRequest = { serverId?: string | undefined; }; -/** @internal */ -export const AppTypeDockerCompose$inboundSchema: z.ZodNativeEnum< - typeof AppTypeDockerCompose -> = z.nativeEnum(AppTypeDockerCompose); - /** @internal */ export const AppTypeDockerCompose$outboundSchema: z.ZodNativeEnum< typeof AppTypeDockerCompose -> = AppTypeDockerCompose$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AppTypeDockerCompose$ { - /** @deprecated use `AppTypeDockerCompose$inboundSchema` instead. */ - export const inboundSchema = AppTypeDockerCompose$inboundSchema; - /** @deprecated use `AppTypeDockerCompose$outboundSchema` instead. */ - export const outboundSchema = AppTypeDockerCompose$outboundSchema; -} - -/** @internal */ -export const AppTypeStack$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(AppTypeStack); +> = z.nativeEnum(AppTypeDockerCompose); /** @internal */ export const AppTypeStack$outboundSchema: z.ZodNativeEnum = - AppTypeStack$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AppTypeStack$ { - /** @deprecated use `AppTypeStack$inboundSchema` instead. */ - export const inboundSchema = AppTypeStack$inboundSchema; - /** @deprecated use `AppTypeStack$outboundSchema` instead. */ - export const outboundSchema = AppTypeStack$outboundSchema; -} - -/** @internal */ -export const AppType$inboundSchema: z.ZodType = - z.union([AppTypeStack$inboundSchema, AppTypeDockerCompose$inboundSchema]); + z.nativeEnum(AppTypeStack); /** @internal */ export type AppType$Outbound = string | string; @@ -80,47 +42,10 @@ export const AppType$outboundSchema: z.ZodType< AppType > = z.union([AppTypeStack$outboundSchema, AppTypeDockerCompose$outboundSchema]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AppType$ { - /** @deprecated use `AppType$inboundSchema` instead. */ - export const inboundSchema = AppType$inboundSchema; - /** @deprecated use `AppType$outboundSchema` instead. */ - export const outboundSchema = AppType$outboundSchema; - /** @deprecated use `AppType$Outbound` instead. */ - export type Outbound = AppType$Outbound; -} - export function appTypeToJSON(appType: AppType): string { return JSON.stringify(AppType$outboundSchema.parse(appType)); } -export function appTypeFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AppType$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AppType' from JSON`, - ); -} - -/** @internal */ -export const DockerGetContainersByAppNameMatchRequest$inboundSchema: z.ZodType< - DockerGetContainersByAppNameMatchRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appType: z.union([ - AppTypeStack$inboundSchema, - AppTypeDockerCompose$inboundSchema, - ]).optional(), - appName: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type DockerGetContainersByAppNameMatchRequest$Outbound = { appType?: string | string | undefined; @@ -142,21 +67,6 @@ export const DockerGetContainersByAppNameMatchRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DockerGetContainersByAppNameMatchRequest$ { - /** @deprecated use `DockerGetContainersByAppNameMatchRequest$inboundSchema` instead. */ - export const inboundSchema = - DockerGetContainersByAppNameMatchRequest$inboundSchema; - /** @deprecated use `DockerGetContainersByAppNameMatchRequest$outboundSchema` instead. */ - export const outboundSchema = - DockerGetContainersByAppNameMatchRequest$outboundSchema; - /** @deprecated use `DockerGetContainersByAppNameMatchRequest$Outbound` instead. */ - export type Outbound = DockerGetContainersByAppNameMatchRequest$Outbound; -} - export function dockerGetContainersByAppNameMatchRequestToJSON( dockerGetContainersByAppNameMatchRequest: DockerGetContainersByAppNameMatchRequest, @@ -167,19 +77,3 @@ export function dockerGetContainersByAppNameMatchRequestToJSON( ), ); } - -export function dockerGetContainersByAppNameMatchRequestFromJSON( - jsonString: string, -): SafeParseResult< - DockerGetContainersByAppNameMatchRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DockerGetContainersByAppNameMatchRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DockerGetContainersByAppNameMatchRequest' from JSON`, - ); -} diff --git a/src/models/operations/dockergetservicecontainersbyappname.ts b/src/models/operations/dockergetservicecontainersbyappname.ts index 5ebe472..c9f9cb9 100644 --- a/src/models/operations/dockergetservicecontainersbyappname.ts +++ b/src/models/operations/dockergetservicecontainersbyappname.ts @@ -2,24 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DockerGetServiceContainersByAppNameRequest = { appName: string; serverId?: string | undefined; }; -/** @internal */ -export const DockerGetServiceContainersByAppNameRequest$inboundSchema: - z.ZodType = - z.object({ - appName: z.string(), - serverId: z.string().optional(), - }); - /** @internal */ export type DockerGetServiceContainersByAppNameRequest$Outbound = { appName: string; @@ -37,21 +26,6 @@ export const DockerGetServiceContainersByAppNameRequest$outboundSchema: serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DockerGetServiceContainersByAppNameRequest$ { - /** @deprecated use `DockerGetServiceContainersByAppNameRequest$inboundSchema` instead. */ - export const inboundSchema = - DockerGetServiceContainersByAppNameRequest$inboundSchema; - /** @deprecated use `DockerGetServiceContainersByAppNameRequest$outboundSchema` instead. */ - export const outboundSchema = - DockerGetServiceContainersByAppNameRequest$outboundSchema; - /** @deprecated use `DockerGetServiceContainersByAppNameRequest$Outbound` instead. */ - export type Outbound = DockerGetServiceContainersByAppNameRequest$Outbound; -} - export function dockerGetServiceContainersByAppNameRequestToJSON( dockerGetServiceContainersByAppNameRequest: DockerGetServiceContainersByAppNameRequest, @@ -62,19 +36,3 @@ export function dockerGetServiceContainersByAppNameRequestToJSON( ), ); } - -export function dockerGetServiceContainersByAppNameRequestFromJSON( - jsonString: string, -): SafeParseResult< - DockerGetServiceContainersByAppNameRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DockerGetServiceContainersByAppNameRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DockerGetServiceContainersByAppNameRequest' from JSON`, - ); -} diff --git a/src/models/operations/dockergetstackcontainersbyappname.ts b/src/models/operations/dockergetstackcontainersbyappname.ts index a31548f..6990a39 100644 --- a/src/models/operations/dockergetstackcontainersbyappname.ts +++ b/src/models/operations/dockergetstackcontainersbyappname.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DockerGetStackContainersByAppNameRequest = { appName: string; serverId?: string | undefined; }; -/** @internal */ -export const DockerGetStackContainersByAppNameRequest$inboundSchema: z.ZodType< - DockerGetStackContainersByAppNameRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type DockerGetStackContainersByAppNameRequest$Outbound = { appName: string; @@ -38,21 +25,6 @@ export const DockerGetStackContainersByAppNameRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DockerGetStackContainersByAppNameRequest$ { - /** @deprecated use `DockerGetStackContainersByAppNameRequest$inboundSchema` instead. */ - export const inboundSchema = - DockerGetStackContainersByAppNameRequest$inboundSchema; - /** @deprecated use `DockerGetStackContainersByAppNameRequest$outboundSchema` instead. */ - export const outboundSchema = - DockerGetStackContainersByAppNameRequest$outboundSchema; - /** @deprecated use `DockerGetStackContainersByAppNameRequest$Outbound` instead. */ - export type Outbound = DockerGetStackContainersByAppNameRequest$Outbound; -} - export function dockerGetStackContainersByAppNameRequestToJSON( dockerGetStackContainersByAppNameRequest: DockerGetStackContainersByAppNameRequest, @@ -63,19 +35,3 @@ export function dockerGetStackContainersByAppNameRequestToJSON( ), ); } - -export function dockerGetStackContainersByAppNameRequestFromJSON( - jsonString: string, -): SafeParseResult< - DockerGetStackContainersByAppNameRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DockerGetStackContainersByAppNameRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DockerGetStackContainersByAppNameRequest' from JSON`, - ); -} diff --git a/src/models/operations/dockerrestartcontainer.ts b/src/models/operations/dockerrestartcontainer.ts index add8164..6f5106b 100644 --- a/src/models/operations/dockerrestartcontainer.ts +++ b/src/models/operations/dockerrestartcontainer.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DockerRestartContainerRequest = { containerId: string; }; -/** @internal */ -export const DockerRestartContainerRequest$inboundSchema: z.ZodType< - DockerRestartContainerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - containerId: z.string(), -}); - /** @internal */ export type DockerRestartContainerRequest$Outbound = { containerId: string; @@ -34,19 +22,6 @@ export const DockerRestartContainerRequest$outboundSchema: z.ZodType< containerId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DockerRestartContainerRequest$ { - /** @deprecated use `DockerRestartContainerRequest$inboundSchema` instead. */ - export const inboundSchema = DockerRestartContainerRequest$inboundSchema; - /** @deprecated use `DockerRestartContainerRequest$outboundSchema` instead. */ - export const outboundSchema = DockerRestartContainerRequest$outboundSchema; - /** @deprecated use `DockerRestartContainerRequest$Outbound` instead. */ - export type Outbound = DockerRestartContainerRequest$Outbound; -} - export function dockerRestartContainerRequestToJSON( dockerRestartContainerRequest: DockerRestartContainerRequest, ): string { @@ -56,13 +31,3 @@ export function dockerRestartContainerRequestToJSON( ), ); } - -export function dockerRestartContainerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DockerRestartContainerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DockerRestartContainerRequest' from JSON`, - ); -} diff --git a/src/models/operations/domainbyapplicationid.ts b/src/models/operations/domainbyapplicationid.ts index cb58815..8c8f3b0 100644 --- a/src/models/operations/domainbyapplicationid.ts +++ b/src/models/operations/domainbyapplicationid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -54,15 +54,6 @@ export type DomainByApplicationIdResponse = | models.ErrorT | Array; -/** @internal */ -export const DomainByApplicationIdRequest$inboundSchema: z.ZodType< - DomainByApplicationIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type DomainByApplicationIdRequest$Outbound = { applicationId: string; @@ -77,19 +68,6 @@ export const DomainByApplicationIdRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByApplicationIdRequest$ { - /** @deprecated use `DomainByApplicationIdRequest$inboundSchema` instead. */ - export const inboundSchema = DomainByApplicationIdRequest$inboundSchema; - /** @deprecated use `DomainByApplicationIdRequest$outboundSchema` instead. */ - export const outboundSchema = DomainByApplicationIdRequest$outboundSchema; - /** @deprecated use `DomainByApplicationIdRequest$Outbound` instead. */ - export type Outbound = DomainByApplicationIdRequest$Outbound; -} - export function domainByApplicationIdRequestToJSON( domainByApplicationIdRequest: DomainByApplicationIdRequest, ): string { @@ -100,61 +78,17 @@ export function domainByApplicationIdRequestToJSON( ); } -export function domainByApplicationIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DomainByApplicationIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DomainByApplicationIdRequest' from JSON`, - ); -} - /** @internal */ export const DomainByApplicationIdCertificateType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( DomainByApplicationIdCertificateType, ); -/** @internal */ -export const DomainByApplicationIdCertificateType$outboundSchema: - z.ZodNativeEnum = - DomainByApplicationIdCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByApplicationIdCertificateType$ { - /** @deprecated use `DomainByApplicationIdCertificateType$inboundSchema` instead. */ - export const inboundSchema = - DomainByApplicationIdCertificateType$inboundSchema; - /** @deprecated use `DomainByApplicationIdCertificateType$outboundSchema` instead. */ - export const outboundSchema = - DomainByApplicationIdCertificateType$outboundSchema; -} - /** @internal */ export const DomainByApplicationIdDomainType$inboundSchema: z.ZodNativeEnum< typeof DomainByApplicationIdDomainType > = z.nativeEnum(DomainByApplicationIdDomainType); -/** @internal */ -export const DomainByApplicationIdDomainType$outboundSchema: z.ZodNativeEnum< - typeof DomainByApplicationIdDomainType -> = DomainByApplicationIdDomainType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByApplicationIdDomainType$ { - /** @deprecated use `DomainByApplicationIdDomainType$inboundSchema` instead. */ - export const inboundSchema = DomainByApplicationIdDomainType$inboundSchema; - /** @deprecated use `DomainByApplicationIdDomainType$outboundSchema` instead. */ - export const outboundSchema = DomainByApplicationIdDomainType$outboundSchema; -} - /** @internal */ export const DomainByApplicationIdResponseBody$inboundSchema: z.ZodType< DomainByApplicationIdResponseBody, @@ -179,74 +113,6 @@ export const DomainByApplicationIdResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type DomainByApplicationIdResponseBody$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const DomainByApplicationIdResponseBody$outboundSchema: z.ZodType< - DomainByApplicationIdResponseBody$Outbound, - z.ZodTypeDef, - DomainByApplicationIdResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: DomainByApplicationIdCertificateType$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(DomainByApplicationIdDomainType$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByApplicationIdResponseBody$ { - /** @deprecated use `DomainByApplicationIdResponseBody$inboundSchema` instead. */ - export const inboundSchema = DomainByApplicationIdResponseBody$inboundSchema; - /** @deprecated use `DomainByApplicationIdResponseBody$outboundSchema` instead. */ - export const outboundSchema = - DomainByApplicationIdResponseBody$outboundSchema; - /** @deprecated use `DomainByApplicationIdResponseBody$Outbound` instead. */ - export type Outbound = DomainByApplicationIdResponseBody$Outbound; -} - -export function domainByApplicationIdResponseBodyToJSON( - domainByApplicationIdResponseBody: DomainByApplicationIdResponseBody, -): string { - return JSON.stringify( - DomainByApplicationIdResponseBody$outboundSchema.parse( - domainByApplicationIdResponseBody, - ), - ); -} - export function domainByApplicationIdResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -267,44 +133,6 @@ export const DomainByApplicationIdResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => DomainByApplicationIdResponseBody$inboundSchema)), ]); -/** @internal */ -export type DomainByApplicationIdResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const DomainByApplicationIdResponse$outboundSchema: z.ZodType< - DomainByApplicationIdResponse$Outbound, - z.ZodTypeDef, - DomainByApplicationIdResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => DomainByApplicationIdResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByApplicationIdResponse$ { - /** @deprecated use `DomainByApplicationIdResponse$inboundSchema` instead. */ - export const inboundSchema = DomainByApplicationIdResponse$inboundSchema; - /** @deprecated use `DomainByApplicationIdResponse$outboundSchema` instead. */ - export const outboundSchema = DomainByApplicationIdResponse$outboundSchema; - /** @deprecated use `DomainByApplicationIdResponse$Outbound` instead. */ - export type Outbound = DomainByApplicationIdResponse$Outbound; -} - -export function domainByApplicationIdResponseToJSON( - domainByApplicationIdResponse: DomainByApplicationIdResponse, -): string { - return JSON.stringify( - DomainByApplicationIdResponse$outboundSchema.parse( - domainByApplicationIdResponse, - ), - ); -} - export function domainByApplicationIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/domainbycomposeid.ts b/src/models/operations/domainbycomposeid.ts index f1cbfde..c1f0459 100644 --- a/src/models/operations/domainbycomposeid.ts +++ b/src/models/operations/domainbycomposeid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -54,15 +54,6 @@ export type DomainByComposeIdResponse = | models.ErrorT | Array; -/** @internal */ -export const DomainByComposeIdRequest$inboundSchema: z.ZodType< - DomainByComposeIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - composeId: z.string(), -}); - /** @internal */ export type DomainByComposeIdRequest$Outbound = { composeId: string; @@ -77,19 +68,6 @@ export const DomainByComposeIdRequest$outboundSchema: z.ZodType< composeId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByComposeIdRequest$ { - /** @deprecated use `DomainByComposeIdRequest$inboundSchema` instead. */ - export const inboundSchema = DomainByComposeIdRequest$inboundSchema; - /** @deprecated use `DomainByComposeIdRequest$outboundSchema` instead. */ - export const outboundSchema = DomainByComposeIdRequest$outboundSchema; - /** @deprecated use `DomainByComposeIdRequest$Outbound` instead. */ - export type Outbound = DomainByComposeIdRequest$Outbound; -} - export function domainByComposeIdRequestToJSON( domainByComposeIdRequest: DomainByComposeIdRequest, ): string { @@ -98,58 +76,16 @@ export function domainByComposeIdRequestToJSON( ); } -export function domainByComposeIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DomainByComposeIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DomainByComposeIdRequest' from JSON`, - ); -} - /** @internal */ export const DomainByComposeIdCertificateType$inboundSchema: z.ZodNativeEnum< typeof DomainByComposeIdCertificateType > = z.nativeEnum(DomainByComposeIdCertificateType); -/** @internal */ -export const DomainByComposeIdCertificateType$outboundSchema: z.ZodNativeEnum< - typeof DomainByComposeIdCertificateType -> = DomainByComposeIdCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByComposeIdCertificateType$ { - /** @deprecated use `DomainByComposeIdCertificateType$inboundSchema` instead. */ - export const inboundSchema = DomainByComposeIdCertificateType$inboundSchema; - /** @deprecated use `DomainByComposeIdCertificateType$outboundSchema` instead. */ - export const outboundSchema = DomainByComposeIdCertificateType$outboundSchema; -} - /** @internal */ export const DomainByComposeIdDomainType$inboundSchema: z.ZodNativeEnum< typeof DomainByComposeIdDomainType > = z.nativeEnum(DomainByComposeIdDomainType); -/** @internal */ -export const DomainByComposeIdDomainType$outboundSchema: z.ZodNativeEnum< - typeof DomainByComposeIdDomainType -> = DomainByComposeIdDomainType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByComposeIdDomainType$ { - /** @deprecated use `DomainByComposeIdDomainType$inboundSchema` instead. */ - export const inboundSchema = DomainByComposeIdDomainType$inboundSchema; - /** @deprecated use `DomainByComposeIdDomainType$outboundSchema` instead. */ - export const outboundSchema = DomainByComposeIdDomainType$outboundSchema; -} - /** @internal */ export const DomainByComposeIdResponseBody$inboundSchema: z.ZodType< DomainByComposeIdResponseBody, @@ -174,73 +110,6 @@ export const DomainByComposeIdResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type DomainByComposeIdResponseBody$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const DomainByComposeIdResponseBody$outboundSchema: z.ZodType< - DomainByComposeIdResponseBody$Outbound, - z.ZodTypeDef, - DomainByComposeIdResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: DomainByComposeIdCertificateType$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(DomainByComposeIdDomainType$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByComposeIdResponseBody$ { - /** @deprecated use `DomainByComposeIdResponseBody$inboundSchema` instead. */ - export const inboundSchema = DomainByComposeIdResponseBody$inboundSchema; - /** @deprecated use `DomainByComposeIdResponseBody$outboundSchema` instead. */ - export const outboundSchema = DomainByComposeIdResponseBody$outboundSchema; - /** @deprecated use `DomainByComposeIdResponseBody$Outbound` instead. */ - export type Outbound = DomainByComposeIdResponseBody$Outbound; -} - -export function domainByComposeIdResponseBodyToJSON( - domainByComposeIdResponseBody: DomainByComposeIdResponseBody, -): string { - return JSON.stringify( - DomainByComposeIdResponseBody$outboundSchema.parse( - domainByComposeIdResponseBody, - ), - ); -} - export function domainByComposeIdResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -261,42 +130,6 @@ export const DomainByComposeIdResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => DomainByComposeIdResponseBody$inboundSchema)), ]); -/** @internal */ -export type DomainByComposeIdResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const DomainByComposeIdResponse$outboundSchema: z.ZodType< - DomainByComposeIdResponse$Outbound, - z.ZodTypeDef, - DomainByComposeIdResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => DomainByComposeIdResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainByComposeIdResponse$ { - /** @deprecated use `DomainByComposeIdResponse$inboundSchema` instead. */ - export const inboundSchema = DomainByComposeIdResponse$inboundSchema; - /** @deprecated use `DomainByComposeIdResponse$outboundSchema` instead. */ - export const outboundSchema = DomainByComposeIdResponse$outboundSchema; - /** @deprecated use `DomainByComposeIdResponse$Outbound` instead. */ - export type Outbound = DomainByComposeIdResponse$Outbound; -} - -export function domainByComposeIdResponseToJSON( - domainByComposeIdResponse: DomainByComposeIdResponse, -): string { - return JSON.stringify( - DomainByComposeIdResponse$outboundSchema.parse(domainByComposeIdResponse), - ); -} - export function domainByComposeIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/domaincangeneratetraefikmedomains.ts b/src/models/operations/domaincangeneratetraefikmedomains.ts index 95a1202..6cc4ae3 100644 --- a/src/models/operations/domaincangeneratetraefikmedomains.ts +++ b/src/models/operations/domaincangeneratetraefikmedomains.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DomainCanGenerateTraefikMeDomainsRequest = { serverId: string; }; -/** @internal */ -export const DomainCanGenerateTraefikMeDomainsRequest$inboundSchema: z.ZodType< - DomainCanGenerateTraefikMeDomainsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string(), -}); - /** @internal */ export type DomainCanGenerateTraefikMeDomainsRequest$Outbound = { serverId: string; @@ -34,21 +22,6 @@ export const DomainCanGenerateTraefikMeDomainsRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainCanGenerateTraefikMeDomainsRequest$ { - /** @deprecated use `DomainCanGenerateTraefikMeDomainsRequest$inboundSchema` instead. */ - export const inboundSchema = - DomainCanGenerateTraefikMeDomainsRequest$inboundSchema; - /** @deprecated use `DomainCanGenerateTraefikMeDomainsRequest$outboundSchema` instead. */ - export const outboundSchema = - DomainCanGenerateTraefikMeDomainsRequest$outboundSchema; - /** @deprecated use `DomainCanGenerateTraefikMeDomainsRequest$Outbound` instead. */ - export type Outbound = DomainCanGenerateTraefikMeDomainsRequest$Outbound; -} - export function domainCanGenerateTraefikMeDomainsRequestToJSON( domainCanGenerateTraefikMeDomainsRequest: DomainCanGenerateTraefikMeDomainsRequest, @@ -59,19 +32,3 @@ export function domainCanGenerateTraefikMeDomainsRequestToJSON( ), ); } - -export function domainCanGenerateTraefikMeDomainsRequestFromJSON( - jsonString: string, -): SafeParseResult< - DomainCanGenerateTraefikMeDomainsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DomainCanGenerateTraefikMeDomainsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DomainCanGenerateTraefikMeDomainsRequest' from JSON`, - ); -} diff --git a/src/models/operations/domaincreate.ts b/src/models/operations/domaincreate.ts index f5f9e9c..b75e859 100644 --- a/src/models/operations/domaincreate.ts +++ b/src/models/operations/domaincreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -85,70 +85,15 @@ export type DomainCreateResponseBody = { export type DomainCreateResponse = DomainCreateResponseBody | models.ErrorT; -/** @internal */ -export const DomainCreateCertificateTypeRequest$inboundSchema: z.ZodNativeEnum< - typeof DomainCreateCertificateTypeRequest -> = z.nativeEnum(DomainCreateCertificateTypeRequest); - /** @internal */ export const DomainCreateCertificateTypeRequest$outboundSchema: z.ZodNativeEnum< typeof DomainCreateCertificateTypeRequest -> = DomainCreateCertificateTypeRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainCreateCertificateTypeRequest$ { - /** @deprecated use `DomainCreateCertificateTypeRequest$inboundSchema` instead. */ - export const inboundSchema = DomainCreateCertificateTypeRequest$inboundSchema; - /** @deprecated use `DomainCreateCertificateTypeRequest$outboundSchema` instead. */ - export const outboundSchema = - DomainCreateCertificateTypeRequest$outboundSchema; -} - -/** @internal */ -export const DomainCreateDomainTypeRequest$inboundSchema: z.ZodNativeEnum< - typeof DomainCreateDomainTypeRequest -> = z.nativeEnum(DomainCreateDomainTypeRequest); +> = z.nativeEnum(DomainCreateCertificateTypeRequest); /** @internal */ export const DomainCreateDomainTypeRequest$outboundSchema: z.ZodNativeEnum< typeof DomainCreateDomainTypeRequest -> = DomainCreateDomainTypeRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainCreateDomainTypeRequest$ { - /** @deprecated use `DomainCreateDomainTypeRequest$inboundSchema` instead. */ - export const inboundSchema = DomainCreateDomainTypeRequest$inboundSchema; - /** @deprecated use `DomainCreateDomainTypeRequest$outboundSchema` instead. */ - export const outboundSchema = DomainCreateDomainTypeRequest$outboundSchema; -} - -/** @internal */ -export const DomainCreateRequest$inboundSchema: z.ZodType< - DomainCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.nullable(z.string()).optional(), - certificateType: DomainCreateCertificateTypeRequest$inboundSchema.optional(), - composeId: z.nullable(z.string()).optional(), - customCertResolver: z.nullable(z.string()).optional(), - domainType: z.nullable(DomainCreateDomainTypeRequest$inboundSchema) - .optional(), - host: z.string(), - https: z.boolean().optional(), - internalPath: z.nullable(z.string()).optional(), - path: z.nullable(z.string()).optional(), - port: z.nullable(z.number()).optional(), - previewDeploymentId: z.nullable(z.string()).optional(), - serviceName: z.nullable(z.string()).optional(), - stripPath: z.boolean().optional(), -}); +> = z.nativeEnum(DomainCreateDomainTypeRequest); /** @internal */ export type DomainCreateRequest$Outbound = { @@ -189,19 +134,6 @@ export const DomainCreateRequest$outboundSchema: z.ZodType< stripPath: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainCreateRequest$ { - /** @deprecated use `DomainCreateRequest$inboundSchema` instead. */ - export const inboundSchema = DomainCreateRequest$inboundSchema; - /** @deprecated use `DomainCreateRequest$outboundSchema` instead. */ - export const outboundSchema = DomainCreateRequest$outboundSchema; - /** @deprecated use `DomainCreateRequest$Outbound` instead. */ - export type Outbound = DomainCreateRequest$Outbound; -} - export function domainCreateRequestToJSON( domainCreateRequest: DomainCreateRequest, ): string { @@ -210,60 +142,16 @@ export function domainCreateRequestToJSON( ); } -export function domainCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DomainCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DomainCreateRequest' from JSON`, - ); -} - /** @internal */ export const DomainCreateCertificateTypeResponse$inboundSchema: z.ZodNativeEnum< typeof DomainCreateCertificateTypeResponse > = z.nativeEnum(DomainCreateCertificateTypeResponse); -/** @internal */ -export const DomainCreateCertificateTypeResponse$outboundSchema: - z.ZodNativeEnum = - DomainCreateCertificateTypeResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainCreateCertificateTypeResponse$ { - /** @deprecated use `DomainCreateCertificateTypeResponse$inboundSchema` instead. */ - export const inboundSchema = - DomainCreateCertificateTypeResponse$inboundSchema; - /** @deprecated use `DomainCreateCertificateTypeResponse$outboundSchema` instead. */ - export const outboundSchema = - DomainCreateCertificateTypeResponse$outboundSchema; -} - /** @internal */ export const DomainCreateDomainTypeResponse$inboundSchema: z.ZodNativeEnum< typeof DomainCreateDomainTypeResponse > = z.nativeEnum(DomainCreateDomainTypeResponse); -/** @internal */ -export const DomainCreateDomainTypeResponse$outboundSchema: z.ZodNativeEnum< - typeof DomainCreateDomainTypeResponse -> = DomainCreateDomainTypeResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainCreateDomainTypeResponse$ { - /** @deprecated use `DomainCreateDomainTypeResponse$inboundSchema` instead. */ - export const inboundSchema = DomainCreateDomainTypeResponse$inboundSchema; - /** @deprecated use `DomainCreateDomainTypeResponse$outboundSchema` instead. */ - export const outboundSchema = DomainCreateDomainTypeResponse$outboundSchema; -} - /** @internal */ export const DomainCreateResponseBody$inboundSchema: z.ZodType< DomainCreateResponseBody, @@ -288,71 +176,6 @@ export const DomainCreateResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type DomainCreateResponseBody$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const DomainCreateResponseBody$outboundSchema: z.ZodType< - DomainCreateResponseBody$Outbound, - z.ZodTypeDef, - DomainCreateResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: DomainCreateCertificateTypeResponse$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(DomainCreateDomainTypeResponse$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainCreateResponseBody$ { - /** @deprecated use `DomainCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = DomainCreateResponseBody$inboundSchema; - /** @deprecated use `DomainCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = DomainCreateResponseBody$outboundSchema; - /** @deprecated use `DomainCreateResponseBody$Outbound` instead. */ - export type Outbound = DomainCreateResponseBody$Outbound; -} - -export function domainCreateResponseBodyToJSON( - domainCreateResponseBody: DomainCreateResponseBody, -): string { - return JSON.stringify( - DomainCreateResponseBody$outboundSchema.parse(domainCreateResponseBody), - ); -} - export function domainCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -373,42 +196,6 @@ export const DomainCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type DomainCreateResponse$Outbound = - | DomainCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const DomainCreateResponse$outboundSchema: z.ZodType< - DomainCreateResponse$Outbound, - z.ZodTypeDef, - DomainCreateResponse -> = z.union([ - z.lazy(() => DomainCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainCreateResponse$ { - /** @deprecated use `DomainCreateResponse$inboundSchema` instead. */ - export const inboundSchema = DomainCreateResponse$inboundSchema; - /** @deprecated use `DomainCreateResponse$outboundSchema` instead. */ - export const outboundSchema = DomainCreateResponse$outboundSchema; - /** @deprecated use `DomainCreateResponse$Outbound` instead. */ - export type Outbound = DomainCreateResponse$Outbound; -} - -export function domainCreateResponseToJSON( - domainCreateResponse: DomainCreateResponse, -): string { - return JSON.stringify( - DomainCreateResponse$outboundSchema.parse(domainCreateResponse), - ); -} - export function domainCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/domaindelete.ts b/src/models/operations/domaindelete.ts index 489869e..b1a5d89 100644 --- a/src/models/operations/domaindelete.ts +++ b/src/models/operations/domaindelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -53,15 +53,6 @@ export type DomainDeleteResponseBody = { export type DomainDeleteResponse = DomainDeleteResponseBody | models.ErrorT; -/** @internal */ -export const DomainDeleteRequest$inboundSchema: z.ZodType< - DomainDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - domainId: z.string(), -}); - /** @internal */ export type DomainDeleteRequest$Outbound = { domainId: string; @@ -76,19 +67,6 @@ export const DomainDeleteRequest$outboundSchema: z.ZodType< domainId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainDeleteRequest$ { - /** @deprecated use `DomainDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = DomainDeleteRequest$inboundSchema; - /** @deprecated use `DomainDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = DomainDeleteRequest$outboundSchema; - /** @deprecated use `DomainDeleteRequest$Outbound` instead. */ - export type Outbound = DomainDeleteRequest$Outbound; -} - export function domainDeleteRequestToJSON( domainDeleteRequest: DomainDeleteRequest, ): string { @@ -97,58 +75,16 @@ export function domainDeleteRequestToJSON( ); } -export function domainDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DomainDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DomainDeleteRequest' from JSON`, - ); -} - /** @internal */ export const DomainDeleteCertificateType$inboundSchema: z.ZodNativeEnum< typeof DomainDeleteCertificateType > = z.nativeEnum(DomainDeleteCertificateType); -/** @internal */ -export const DomainDeleteCertificateType$outboundSchema: z.ZodNativeEnum< - typeof DomainDeleteCertificateType -> = DomainDeleteCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainDeleteCertificateType$ { - /** @deprecated use `DomainDeleteCertificateType$inboundSchema` instead. */ - export const inboundSchema = DomainDeleteCertificateType$inboundSchema; - /** @deprecated use `DomainDeleteCertificateType$outboundSchema` instead. */ - export const outboundSchema = DomainDeleteCertificateType$outboundSchema; -} - /** @internal */ export const DomainDeleteDomainType$inboundSchema: z.ZodNativeEnum< typeof DomainDeleteDomainType > = z.nativeEnum(DomainDeleteDomainType); -/** @internal */ -export const DomainDeleteDomainType$outboundSchema: z.ZodNativeEnum< - typeof DomainDeleteDomainType -> = DomainDeleteDomainType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainDeleteDomainType$ { - /** @deprecated use `DomainDeleteDomainType$inboundSchema` instead. */ - export const inboundSchema = DomainDeleteDomainType$inboundSchema; - /** @deprecated use `DomainDeleteDomainType$outboundSchema` instead. */ - export const outboundSchema = DomainDeleteDomainType$outboundSchema; -} - /** @internal */ export const DomainDeleteResponseBody$inboundSchema: z.ZodType< DomainDeleteResponseBody, @@ -173,71 +109,6 @@ export const DomainDeleteResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type DomainDeleteResponseBody$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const DomainDeleteResponseBody$outboundSchema: z.ZodType< - DomainDeleteResponseBody$Outbound, - z.ZodTypeDef, - DomainDeleteResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: DomainDeleteCertificateType$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(DomainDeleteDomainType$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainDeleteResponseBody$ { - /** @deprecated use `DomainDeleteResponseBody$inboundSchema` instead. */ - export const inboundSchema = DomainDeleteResponseBody$inboundSchema; - /** @deprecated use `DomainDeleteResponseBody$outboundSchema` instead. */ - export const outboundSchema = DomainDeleteResponseBody$outboundSchema; - /** @deprecated use `DomainDeleteResponseBody$Outbound` instead. */ - export type Outbound = DomainDeleteResponseBody$Outbound; -} - -export function domainDeleteResponseBodyToJSON( - domainDeleteResponseBody: DomainDeleteResponseBody, -): string { - return JSON.stringify( - DomainDeleteResponseBody$outboundSchema.parse(domainDeleteResponseBody), - ); -} - export function domainDeleteResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -258,42 +129,6 @@ export const DomainDeleteResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type DomainDeleteResponse$Outbound = - | DomainDeleteResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const DomainDeleteResponse$outboundSchema: z.ZodType< - DomainDeleteResponse$Outbound, - z.ZodTypeDef, - DomainDeleteResponse -> = z.union([ - z.lazy(() => DomainDeleteResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainDeleteResponse$ { - /** @deprecated use `DomainDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = DomainDeleteResponse$inboundSchema; - /** @deprecated use `DomainDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = DomainDeleteResponse$outboundSchema; - /** @deprecated use `DomainDeleteResponse$Outbound` instead. */ - export type Outbound = DomainDeleteResponse$Outbound; -} - -export function domainDeleteResponseToJSON( - domainDeleteResponse: DomainDeleteResponse, -): string { - return JSON.stringify( - DomainDeleteResponse$outboundSchema.parse(domainDeleteResponse), - ); -} - export function domainDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/domaingeneratedomain.ts b/src/models/operations/domaingeneratedomain.ts index 322f141..cc57a09 100644 --- a/src/models/operations/domaingeneratedomain.ts +++ b/src/models/operations/domaingeneratedomain.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DomainGenerateDomainRequest = { appName: string; serverId?: string | undefined; }; -/** @internal */ -export const DomainGenerateDomainRequest$inboundSchema: z.ZodType< - DomainGenerateDomainRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type DomainGenerateDomainRequest$Outbound = { appName: string; @@ -38,19 +25,6 @@ export const DomainGenerateDomainRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainGenerateDomainRequest$ { - /** @deprecated use `DomainGenerateDomainRequest$inboundSchema` instead. */ - export const inboundSchema = DomainGenerateDomainRequest$inboundSchema; - /** @deprecated use `DomainGenerateDomainRequest$outboundSchema` instead. */ - export const outboundSchema = DomainGenerateDomainRequest$outboundSchema; - /** @deprecated use `DomainGenerateDomainRequest$Outbound` instead. */ - export type Outbound = DomainGenerateDomainRequest$Outbound; -} - export function domainGenerateDomainRequestToJSON( domainGenerateDomainRequest: DomainGenerateDomainRequest, ): string { @@ -60,13 +34,3 @@ export function domainGenerateDomainRequestToJSON( ), ); } - -export function domainGenerateDomainRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DomainGenerateDomainRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DomainGenerateDomainRequest' from JSON`, - ); -} diff --git a/src/models/operations/domainone.ts b/src/models/operations/domainone.ts index ee3095f..120b99b 100644 --- a/src/models/operations/domainone.ts +++ b/src/models/operations/domainone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -53,15 +53,6 @@ export type DomainOneResponseBody = { export type DomainOneResponse = DomainOneResponseBody | models.ErrorT; -/** @internal */ -export const DomainOneRequest$inboundSchema: z.ZodType< - DomainOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - domainId: z.string(), -}); - /** @internal */ export type DomainOneRequest$Outbound = { domainId: string; @@ -76,19 +67,6 @@ export const DomainOneRequest$outboundSchema: z.ZodType< domainId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainOneRequest$ { - /** @deprecated use `DomainOneRequest$inboundSchema` instead. */ - export const inboundSchema = DomainOneRequest$inboundSchema; - /** @deprecated use `DomainOneRequest$outboundSchema` instead. */ - export const outboundSchema = DomainOneRequest$outboundSchema; - /** @deprecated use `DomainOneRequest$Outbound` instead. */ - export type Outbound = DomainOneRequest$Outbound; -} - export function domainOneRequestToJSON( domainOneRequest: DomainOneRequest, ): string { @@ -97,58 +75,16 @@ export function domainOneRequestToJSON( ); } -export function domainOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DomainOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DomainOneRequest' from JSON`, - ); -} - /** @internal */ export const DomainOneCertificateType$inboundSchema: z.ZodNativeEnum< typeof DomainOneCertificateType > = z.nativeEnum(DomainOneCertificateType); -/** @internal */ -export const DomainOneCertificateType$outboundSchema: z.ZodNativeEnum< - typeof DomainOneCertificateType -> = DomainOneCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainOneCertificateType$ { - /** @deprecated use `DomainOneCertificateType$inboundSchema` instead. */ - export const inboundSchema = DomainOneCertificateType$inboundSchema; - /** @deprecated use `DomainOneCertificateType$outboundSchema` instead. */ - export const outboundSchema = DomainOneCertificateType$outboundSchema; -} - /** @internal */ export const DomainOneDomainType$inboundSchema: z.ZodNativeEnum< typeof DomainOneDomainType > = z.nativeEnum(DomainOneDomainType); -/** @internal */ -export const DomainOneDomainType$outboundSchema: z.ZodNativeEnum< - typeof DomainOneDomainType -> = DomainOneDomainType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainOneDomainType$ { - /** @deprecated use `DomainOneDomainType$inboundSchema` instead. */ - export const inboundSchema = DomainOneDomainType$inboundSchema; - /** @deprecated use `DomainOneDomainType$outboundSchema` instead. */ - export const outboundSchema = DomainOneDomainType$outboundSchema; -} - /** @internal */ export const DomainOneResponseBody$inboundSchema: z.ZodType< DomainOneResponseBody, @@ -173,71 +109,6 @@ export const DomainOneResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type DomainOneResponseBody$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const DomainOneResponseBody$outboundSchema: z.ZodType< - DomainOneResponseBody$Outbound, - z.ZodTypeDef, - DomainOneResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: DomainOneCertificateType$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(DomainOneDomainType$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainOneResponseBody$ { - /** @deprecated use `DomainOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = DomainOneResponseBody$inboundSchema; - /** @deprecated use `DomainOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = DomainOneResponseBody$outboundSchema; - /** @deprecated use `DomainOneResponseBody$Outbound` instead. */ - export type Outbound = DomainOneResponseBody$Outbound; -} - -export function domainOneResponseBodyToJSON( - domainOneResponseBody: DomainOneResponseBody, -): string { - return JSON.stringify( - DomainOneResponseBody$outboundSchema.parse(domainOneResponseBody), - ); -} - export function domainOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -258,42 +129,6 @@ export const DomainOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type DomainOneResponse$Outbound = - | DomainOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const DomainOneResponse$outboundSchema: z.ZodType< - DomainOneResponse$Outbound, - z.ZodTypeDef, - DomainOneResponse -> = z.union([ - z.lazy(() => DomainOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainOneResponse$ { - /** @deprecated use `DomainOneResponse$inboundSchema` instead. */ - export const inboundSchema = DomainOneResponse$inboundSchema; - /** @deprecated use `DomainOneResponse$outboundSchema` instead. */ - export const outboundSchema = DomainOneResponse$outboundSchema; - /** @deprecated use `DomainOneResponse$Outbound` instead. */ - export type Outbound = DomainOneResponse$Outbound; -} - -export function domainOneResponseToJSON( - domainOneResponse: DomainOneResponse, -): string { - return JSON.stringify( - DomainOneResponse$outboundSchema.parse(domainOneResponse), - ); -} - export function domainOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/domainupdate.ts b/src/models/operations/domainupdate.ts index c546643..eb37eca 100644 --- a/src/models/operations/domainupdate.ts +++ b/src/models/operations/domainupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -83,68 +83,15 @@ export type DomainUpdateResponseBody = { export type DomainUpdateResponse = DomainUpdateResponseBody | models.ErrorT; -/** @internal */ -export const DomainUpdateCertificateTypeRequest$inboundSchema: z.ZodNativeEnum< - typeof DomainUpdateCertificateTypeRequest -> = z.nativeEnum(DomainUpdateCertificateTypeRequest); - /** @internal */ export const DomainUpdateCertificateTypeRequest$outboundSchema: z.ZodNativeEnum< typeof DomainUpdateCertificateTypeRequest -> = DomainUpdateCertificateTypeRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainUpdateCertificateTypeRequest$ { - /** @deprecated use `DomainUpdateCertificateTypeRequest$inboundSchema` instead. */ - export const inboundSchema = DomainUpdateCertificateTypeRequest$inboundSchema; - /** @deprecated use `DomainUpdateCertificateTypeRequest$outboundSchema` instead. */ - export const outboundSchema = - DomainUpdateCertificateTypeRequest$outboundSchema; -} - -/** @internal */ -export const DomainUpdateDomainTypeRequest$inboundSchema: z.ZodNativeEnum< - typeof DomainUpdateDomainTypeRequest -> = z.nativeEnum(DomainUpdateDomainTypeRequest); +> = z.nativeEnum(DomainUpdateCertificateTypeRequest); /** @internal */ export const DomainUpdateDomainTypeRequest$outboundSchema: z.ZodNativeEnum< typeof DomainUpdateDomainTypeRequest -> = DomainUpdateDomainTypeRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainUpdateDomainTypeRequest$ { - /** @deprecated use `DomainUpdateDomainTypeRequest$inboundSchema` instead. */ - export const inboundSchema = DomainUpdateDomainTypeRequest$inboundSchema; - /** @deprecated use `DomainUpdateDomainTypeRequest$outboundSchema` instead. */ - export const outboundSchema = DomainUpdateDomainTypeRequest$outboundSchema; -} - -/** @internal */ -export const DomainUpdateRequest$inboundSchema: z.ZodType< - DomainUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - certificateType: DomainUpdateCertificateTypeRequest$inboundSchema.optional(), - customCertResolver: z.nullable(z.string()).optional(), - domainId: z.string(), - domainType: z.nullable(DomainUpdateDomainTypeRequest$inboundSchema) - .optional(), - host: z.string(), - https: z.boolean().optional(), - internalPath: z.nullable(z.string()).optional(), - path: z.nullable(z.string()).optional(), - port: z.nullable(z.number()).optional(), - serviceName: z.nullable(z.string()).optional(), - stripPath: z.boolean().optional(), -}); +> = z.nativeEnum(DomainUpdateDomainTypeRequest); /** @internal */ export type DomainUpdateRequest$Outbound = { @@ -181,19 +128,6 @@ export const DomainUpdateRequest$outboundSchema: z.ZodType< stripPath: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainUpdateRequest$ { - /** @deprecated use `DomainUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = DomainUpdateRequest$inboundSchema; - /** @deprecated use `DomainUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = DomainUpdateRequest$outboundSchema; - /** @deprecated use `DomainUpdateRequest$Outbound` instead. */ - export type Outbound = DomainUpdateRequest$Outbound; -} - export function domainUpdateRequestToJSON( domainUpdateRequest: DomainUpdateRequest, ): string { @@ -202,60 +136,16 @@ export function domainUpdateRequestToJSON( ); } -export function domainUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DomainUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DomainUpdateRequest' from JSON`, - ); -} - /** @internal */ export const DomainUpdateCertificateTypeResponse$inboundSchema: z.ZodNativeEnum< typeof DomainUpdateCertificateTypeResponse > = z.nativeEnum(DomainUpdateCertificateTypeResponse); -/** @internal */ -export const DomainUpdateCertificateTypeResponse$outboundSchema: - z.ZodNativeEnum = - DomainUpdateCertificateTypeResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainUpdateCertificateTypeResponse$ { - /** @deprecated use `DomainUpdateCertificateTypeResponse$inboundSchema` instead. */ - export const inboundSchema = - DomainUpdateCertificateTypeResponse$inboundSchema; - /** @deprecated use `DomainUpdateCertificateTypeResponse$outboundSchema` instead. */ - export const outboundSchema = - DomainUpdateCertificateTypeResponse$outboundSchema; -} - /** @internal */ export const DomainUpdateDomainTypeResponse$inboundSchema: z.ZodNativeEnum< typeof DomainUpdateDomainTypeResponse > = z.nativeEnum(DomainUpdateDomainTypeResponse); -/** @internal */ -export const DomainUpdateDomainTypeResponse$outboundSchema: z.ZodNativeEnum< - typeof DomainUpdateDomainTypeResponse -> = DomainUpdateDomainTypeResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainUpdateDomainTypeResponse$ { - /** @deprecated use `DomainUpdateDomainTypeResponse$inboundSchema` instead. */ - export const inboundSchema = DomainUpdateDomainTypeResponse$inboundSchema; - /** @deprecated use `DomainUpdateDomainTypeResponse$outboundSchema` instead. */ - export const outboundSchema = DomainUpdateDomainTypeResponse$outboundSchema; -} - /** @internal */ export const DomainUpdateResponseBody$inboundSchema: z.ZodType< DomainUpdateResponseBody, @@ -280,71 +170,6 @@ export const DomainUpdateResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type DomainUpdateResponseBody$Outbound = { - applicationId: string | null; - certificateType: string; - composeId: string | null; - createdAt: string; - customCertResolver: string | null; - domainId: string; - domainType: string | null; - host: string; - https: boolean; - internalPath: string | null; - path: string | null; - port: number | null; - previewDeploymentId: string | null; - serviceName: string | null; - stripPath: boolean; - uniqueConfigKey: number; -}; - -/** @internal */ -export const DomainUpdateResponseBody$outboundSchema: z.ZodType< - DomainUpdateResponseBody$Outbound, - z.ZodTypeDef, - DomainUpdateResponseBody -> = z.object({ - applicationId: z.nullable(z.string()), - certificateType: DomainUpdateCertificateTypeResponse$outboundSchema, - composeId: z.nullable(z.string()), - createdAt: z.string(), - customCertResolver: z.nullable(z.string()), - domainId: z.string(), - domainType: z.nullable(DomainUpdateDomainTypeResponse$outboundSchema), - host: z.string(), - https: z.boolean(), - internalPath: z.nullable(z.string()), - path: z.nullable(z.string()), - port: z.nullable(z.number()), - previewDeploymentId: z.nullable(z.string()), - serviceName: z.nullable(z.string()), - stripPath: z.boolean(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainUpdateResponseBody$ { - /** @deprecated use `DomainUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = DomainUpdateResponseBody$inboundSchema; - /** @deprecated use `DomainUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = DomainUpdateResponseBody$outboundSchema; - /** @deprecated use `DomainUpdateResponseBody$Outbound` instead. */ - export type Outbound = DomainUpdateResponseBody$Outbound; -} - -export function domainUpdateResponseBodyToJSON( - domainUpdateResponseBody: DomainUpdateResponseBody, -): string { - return JSON.stringify( - DomainUpdateResponseBody$outboundSchema.parse(domainUpdateResponseBody), - ); -} - export function domainUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -365,42 +190,6 @@ export const DomainUpdateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type DomainUpdateResponse$Outbound = - | DomainUpdateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const DomainUpdateResponse$outboundSchema: z.ZodType< - DomainUpdateResponse$Outbound, - z.ZodTypeDef, - DomainUpdateResponse -> = z.union([ - z.lazy(() => DomainUpdateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainUpdateResponse$ { - /** @deprecated use `DomainUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = DomainUpdateResponse$inboundSchema; - /** @deprecated use `DomainUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = DomainUpdateResponse$outboundSchema; - /** @deprecated use `DomainUpdateResponse$Outbound` instead. */ - export type Outbound = DomainUpdateResponse$Outbound; -} - -export function domainUpdateResponseToJSON( - domainUpdateResponse: DomainUpdateResponse, -): string { - return JSON.stringify( - DomainUpdateResponse$outboundSchema.parse(domainUpdateResponse), - ); -} - export function domainUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/domainvalidatedomain.ts b/src/models/operations/domainvalidatedomain.ts index 9eae049..38c1e60 100644 --- a/src/models/operations/domainvalidatedomain.ts +++ b/src/models/operations/domainvalidatedomain.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type DomainValidateDomainRequest = { domain: string; serverIp?: string | undefined; }; -/** @internal */ -export const DomainValidateDomainRequest$inboundSchema: z.ZodType< - DomainValidateDomainRequest, - z.ZodTypeDef, - unknown -> = z.object({ - domain: z.string(), - serverIp: z.string().optional(), -}); - /** @internal */ export type DomainValidateDomainRequest$Outbound = { domain: string; @@ -38,19 +25,6 @@ export const DomainValidateDomainRequest$outboundSchema: z.ZodType< serverIp: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomainValidateDomainRequest$ { - /** @deprecated use `DomainValidateDomainRequest$inboundSchema` instead. */ - export const inboundSchema = DomainValidateDomainRequest$inboundSchema; - /** @deprecated use `DomainValidateDomainRequest$outboundSchema` instead. */ - export const outboundSchema = DomainValidateDomainRequest$outboundSchema; - /** @deprecated use `DomainValidateDomainRequest$Outbound` instead. */ - export type Outbound = DomainValidateDomainRequest$Outbound; -} - export function domainValidateDomainRequestToJSON( domainValidateDomainRequest: DomainValidateDomainRequest, ): string { @@ -60,13 +34,3 @@ export function domainValidateDomainRequestToJSON( ), ); } - -export function domainValidateDomainRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DomainValidateDomainRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DomainValidateDomainRequest' from JSON`, - ); -} diff --git a/src/models/operations/environmentbyprojectid.ts b/src/models/operations/environmentbyprojectid.ts index 546ddc5..b6670f0 100644 --- a/src/models/operations/environmentbyprojectid.ts +++ b/src/models/operations/environmentbyprojectid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -1817,15 +1817,6 @@ export type EnvironmentByProjectIdResponse = | models.ErrorT | Array; -/** @internal */ -export const EnvironmentByProjectIdRequest$inboundSchema: z.ZodType< - EnvironmentByProjectIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - projectId: z.string(), -}); - /** @internal */ export type EnvironmentByProjectIdRequest$Outbound = { projectId: string; @@ -1840,19 +1831,6 @@ export const EnvironmentByProjectIdRequest$outboundSchema: z.ZodType< projectId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRequest$ { - /** @deprecated use `EnvironmentByProjectIdRequest$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdRequest$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRequest$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdRequest$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRequest$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdRequest$Outbound; -} - export function environmentByProjectIdRequestToJSON( environmentByProjectIdRequest: EnvironmentByProjectIdRequest, ): string { @@ -1863,85 +1841,22 @@ export function environmentByProjectIdRequestToJSON( ); } -export function environmentByProjectIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentByProjectIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentByProjectIdRequest' from JSON`, - ); -} - /** @internal */ export const EnvironmentByProjectIdApplicationApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdApplicationApplicationStatus); -/** @internal */ -export const EnvironmentByProjectIdApplicationApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdApplicationApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationApplicationStatus$ { - /** @deprecated use `EnvironmentByProjectIdApplicationApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdBuildType$inboundSchema: z.ZodNativeEnum< typeof EnvironmentByProjectIdBuildType > = z.nativeEnum(EnvironmentByProjectIdBuildType); -/** @internal */ -export const EnvironmentByProjectIdBuildType$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentByProjectIdBuildType -> = EnvironmentByProjectIdBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdBuildType$ { - /** @deprecated use `EnvironmentByProjectIdBuildType$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdBuildType$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdBuildType$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdBuildType$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentByProjectIdHealthCheckSwarmApplicationEnum > = z.nativeEnum(EnvironmentByProjectIdHealthCheckSwarmApplicationEnum); -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum< - typeof EnvironmentByProjectIdHealthCheckSwarmApplicationEnum - > = EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -1955,53 +1870,6 @@ export const EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$inboundSchem EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdHealthCheckSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$Outbound; -} - -export function environmentByProjectIdHealthCheckSwarmApplicationUnionToJSON( - environmentByProjectIdHealthCheckSwarmApplicationUnion: - EnvironmentByProjectIdHealthCheckSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdHealthCheckSwarmApplicationUnion$outboundSchema.parse( - environmentByProjectIdHealthCheckSwarmApplicationUnion, - ), - ); -} - export function environmentByProjectIdHealthCheckSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2034,59 +1902,6 @@ export const EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$inboundSchem z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdApplicationHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$Outbound; -} - -export function environmentByProjectIdApplicationHealthCheckSwarmUnionToJSON( - environmentByProjectIdApplicationHealthCheckSwarmUnion: - EnvironmentByProjectIdApplicationHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplicationHealthCheckSwarmUnion$outboundSchema.parse( - environmentByProjectIdApplicationHealthCheckSwarmUnion, - ), - ); -} - export function environmentByProjectIdApplicationHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2107,24 +1922,6 @@ export const EnvironmentByProjectIdLabelsSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdLabelsSwarmApplicationEnum); -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdLabelsSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdLabelsSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -2138,53 +1935,6 @@ export const EnvironmentByProjectIdLabelsSwarmApplicationUnion$inboundSchema: EnvironmentByProjectIdLabelsSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdLabelsSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdLabelsSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdLabelsSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdLabelsSwarmApplicationUnion$Outbound; -} - -export function environmentByProjectIdLabelsSwarmApplicationUnionToJSON( - environmentByProjectIdLabelsSwarmApplicationUnion: - EnvironmentByProjectIdLabelsSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdLabelsSwarmApplicationUnion$outboundSchema.parse( - environmentByProjectIdLabelsSwarmApplicationUnion, - ), - ); -} - export function environmentByProjectIdLabelsSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2218,59 +1968,6 @@ export const EnvironmentByProjectIdApplicationLabelsSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdApplicationLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdApplicationLabelsSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdApplicationLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdApplicationLabelsSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdApplicationLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdApplicationLabelsSwarmUnion$Outbound; -} - -export function environmentByProjectIdApplicationLabelsSwarmUnionToJSON( - environmentByProjectIdApplicationLabelsSwarmUnion: - EnvironmentByProjectIdApplicationLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplicationLabelsSwarmUnion$outboundSchema.parse( - environmentByProjectIdApplicationLabelsSwarmUnion, - ), - ); -} - export function environmentByProjectIdApplicationLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2292,24 +1989,6 @@ export const EnvironmentByProjectIdModeSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdModeSwarmApplicationEnum); -/** @internal */ -export const EnvironmentByProjectIdModeSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdModeSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdModeSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -2323,53 +2002,6 @@ export const EnvironmentByProjectIdModeSwarmApplicationUnion$inboundSchema: EnvironmentByProjectIdModeSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdModeSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdModeSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdModeSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdModeSwarmApplicationUnion$Outbound; -} - -export function environmentByProjectIdModeSwarmApplicationUnionToJSON( - environmentByProjectIdModeSwarmApplicationUnion: - EnvironmentByProjectIdModeSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdModeSwarmApplicationUnion$outboundSchema.parse( - environmentByProjectIdModeSwarmApplicationUnion, - ), - ); -} - export function environmentByProjectIdModeSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2403,59 +2035,6 @@ export const EnvironmentByProjectIdApplicationModeSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdApplicationModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdApplicationModeSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdApplicationModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdApplicationModeSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationModeSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdApplicationModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationModeSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdApplicationModeSwarmUnion$Outbound; -} - -export function environmentByProjectIdApplicationModeSwarmUnionToJSON( - environmentByProjectIdApplicationModeSwarmUnion: - EnvironmentByProjectIdApplicationModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplicationModeSwarmUnion$outboundSchema.parse( - environmentByProjectIdApplicationModeSwarmUnion, - ), - ); -} - export function environmentByProjectIdApplicationModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2477,24 +2056,6 @@ export const EnvironmentByProjectIdNetworkSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdNetworkSwarmApplicationEnum); -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdNetworkSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdNetworkSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -2508,53 +2069,6 @@ export const EnvironmentByProjectIdNetworkSwarmApplicationUnion$inboundSchema: EnvironmentByProjectIdNetworkSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdNetworkSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdNetworkSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdNetworkSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdNetworkSwarmApplicationUnion$Outbound; -} - -export function environmentByProjectIdNetworkSwarmApplicationUnionToJSON( - environmentByProjectIdNetworkSwarmApplicationUnion: - EnvironmentByProjectIdNetworkSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdNetworkSwarmApplicationUnion$outboundSchema.parse( - environmentByProjectIdNetworkSwarmApplicationUnion, - ), - ); -} - export function environmentByProjectIdNetworkSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2587,99 +2101,28 @@ export const EnvironmentByProjectIdApplicationNetworkSwarmUnion$inboundSchema: z.array(z.any()), z.record(z.any()), ]); - -/** @internal */ -export type EnvironmentByProjectIdApplicationNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdApplicationNetworkSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdApplicationNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdApplicationNetworkSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdApplicationNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdApplicationNetworkSwarmUnion$Outbound; -} - -export function environmentByProjectIdApplicationNetworkSwarmUnionToJSON( - environmentByProjectIdApplicationNetworkSwarmUnion: - EnvironmentByProjectIdApplicationNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplicationNetworkSwarmUnion$outboundSchema.parse( - environmentByProjectIdApplicationNetworkSwarmUnion, - ), - ); -} - -export function environmentByProjectIdApplicationNetworkSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentByProjectIdApplicationNetworkSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentByProjectIdApplicationNetworkSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdApplicationNetworkSwarmUnion' from JSON`, - ); -} + +export function environmentByProjectIdApplicationNetworkSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentByProjectIdApplicationNetworkSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentByProjectIdApplicationNetworkSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdApplicationNetworkSwarmUnion' from JSON`, + ); +} /** @internal */ export const EnvironmentByProjectIdPlacementSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z.nativeEnum(EnvironmentByProjectIdPlacementSwarmApplicationEnum); -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdPlacementSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdPlacementSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -2693,53 +2136,6 @@ export const EnvironmentByProjectIdPlacementSwarmApplicationUnion$inboundSchema: EnvironmentByProjectIdPlacementSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdPlacementSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPlacementSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPlacementSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPlacementSwarmApplicationUnion$Outbound; -} - -export function environmentByProjectIdPlacementSwarmApplicationUnionToJSON( - environmentByProjectIdPlacementSwarmApplicationUnion: - EnvironmentByProjectIdPlacementSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPlacementSwarmApplicationUnion$outboundSchema.parse( - environmentByProjectIdPlacementSwarmApplicationUnion, - ), - ); -} - export function environmentByProjectIdPlacementSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2773,59 +2169,6 @@ export const EnvironmentByProjectIdApplicationPlacementSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdApplicationPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdApplicationPlacementSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdApplicationPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdApplicationPlacementSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdApplicationPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdApplicationPlacementSwarmUnion$Outbound; -} - -export function environmentByProjectIdApplicationPlacementSwarmUnionToJSON( - environmentByProjectIdApplicationPlacementSwarmUnion: - EnvironmentByProjectIdApplicationPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplicationPlacementSwarmUnion$outboundSchema.parse( - environmentByProjectIdApplicationPlacementSwarmUnion, - ), - ); -} - export function environmentByProjectIdApplicationPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2847,49 +2190,12 @@ export const EnvironmentByProjectIdPreviewCertificateType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdPreviewCertificateType); -/** @internal */ -export const EnvironmentByProjectIdPreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdPreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPreviewCertificateType$ { - /** @deprecated use `EnvironmentByProjectIdPreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPreviewCertificateType$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPreviewCertificateType$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentByProjectIdRestartPolicySwarmApplicationEnum > = z.nativeEnum(EnvironmentByProjectIdRestartPolicySwarmApplicationEnum); -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum< - typeof EnvironmentByProjectIdRestartPolicySwarmApplicationEnum - > = EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$inboundSchema: z.ZodType< @@ -2903,52 +2209,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$inboundSch EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRestartPolicySwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$Outbound; -} - -export function environmentByProjectIdRestartPolicySwarmApplicationUnionToJSON( - environmentByProjectIdRestartPolicySwarmApplicationUnion: - EnvironmentByProjectIdRestartPolicySwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRestartPolicySwarmApplicationUnion$outboundSchema - .parse(environmentByProjectIdRestartPolicySwarmApplicationUnion), - ); -} - export function environmentByProjectIdRestartPolicySwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2981,58 +2241,6 @@ export const EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$inboundSch z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdApplicationRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$Outbound; -} - -export function environmentByProjectIdApplicationRestartPolicySwarmUnionToJSON( - environmentByProjectIdApplicationRestartPolicySwarmUnion: - EnvironmentByProjectIdApplicationRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplicationRestartPolicySwarmUnion$outboundSchema - .parse(environmentByProjectIdApplicationRestartPolicySwarmUnion), - ); -} - export function environmentByProjectIdApplicationRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3054,25 +2262,6 @@ export const EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$inboundSch typeof EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum > = z.nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum); -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum< - typeof EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum - > = EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -3086,52 +2275,6 @@ export const EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$inboundSc EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$Outbound; -} - -export function environmentByProjectIdRollbackConfigSwarmApplicationUnionToJSON( - environmentByProjectIdRollbackConfigSwarmApplicationUnion: - EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRollbackConfigSwarmApplicationUnion$outboundSchema - .parse(environmentByProjectIdRollbackConfigSwarmApplicationUnion), - ); -} - export function environmentByProjectIdRollbackConfigSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3164,58 +2307,6 @@ export const EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$inboundSc z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdApplicationRollbackConfigSwarmUnionToJSON( - environmentByProjectIdApplicationRollbackConfigSwarmUnion: - EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplicationRollbackConfigSwarmUnion$outboundSchema - .parse(environmentByProjectIdApplicationRollbackConfigSwarmUnion), - ); -} - export function environmentByProjectIdApplicationRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3236,72 +2327,17 @@ export const EnvironmentByProjectIdApplicationSourceType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdApplicationSourceType); -/** @internal */ -export const EnvironmentByProjectIdApplicationSourceType$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdApplicationSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationSourceType$ { - /** @deprecated use `EnvironmentByProjectIdApplicationSourceType$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationSourceType$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationSourceType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationSourceType$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdApplicationTriggerType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdApplicationTriggerType); -/** @internal */ -export const EnvironmentByProjectIdApplicationTriggerType$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdApplicationTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationTriggerType$ { - /** @deprecated use `EnvironmentByProjectIdApplicationTriggerType$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationTriggerType$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationTriggerType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationTriggerType$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum > = z.nativeEnum(EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum); -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum< - typeof EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum - > = EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -3315,52 +2351,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$inboundSche EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$Outbound; -} - -export function environmentByProjectIdUpdateConfigSwarmApplicationUnionToJSON( - environmentByProjectIdUpdateConfigSwarmApplicationUnion: - EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdUpdateConfigSwarmApplicationUnion$outboundSchema - .parse(environmentByProjectIdUpdateConfigSwarmApplicationUnion), - ); -} - export function environmentByProjectIdUpdateConfigSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3393,58 +2383,6 @@ export const EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$inboundSche z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdApplicationUpdateConfigSwarmUnionToJSON( - environmentByProjectIdApplicationUpdateConfigSwarmUnion: - EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplicationUpdateConfigSwarmUnion$outboundSchema - .parse(environmentByProjectIdApplicationUpdateConfigSwarmUnion), - ); -} - export function environmentByProjectIdApplicationUpdateConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3647,468 +2585,79 @@ export const EnvironmentByProjectIdApplication$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())), }); +export function environmentByProjectIdApplicationFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EnvironmentByProjectIdApplication$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentByProjectIdApplication' from JSON`, + ); +} + /** @internal */ -export type EnvironmentByProjectIdApplication$Outbound = { - appName: string; - applicationId: string; - applicationStatus: string; - autoDeploy: boolean | null; - bitbucketBranch: string | null; - bitbucketBuildPath: string | null; - bitbucketId: string | null; - bitbucketOwner: string | null; - bitbucketRepository: string | null; - branch: string | null; - buildArgs: string | null; - buildPath: string | null; - buildType: string; - cleanCache: boolean | null; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - customGitBranch: string | null; - customGitBuildPath: string | null; - customGitSSHKeyId: string | null; - customGitUrl: string | null; - description: string | null; - dockerBuildStage: string | null; - dockerContextPath: string | null; - dockerImage: string | null; - dockerfile: string | null; - dropBuildPath: string | null; - enableSubmodules: boolean; - enabled: boolean | null; - env: string | null; - environmentId: string; - giteaBranch: string | null; - giteaBuildPath: string | null; - giteaId: string | null; - giteaOwner: string | null; - giteaRepository: string | null; - githubId: string | null; - gitlabBranch: string | null; - gitlabBuildPath: string | null; - gitlabId: string | null; - gitlabOwner: string | null; - gitlabPathNamespace: string | null; - gitlabProjectId: number | null; - gitlabRepository: string | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - herokuVersion: string | null; - isPreviewDeploymentsActive: boolean | null; - isStaticSpa: boolean | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - owner: string | null; - password: string | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - previewBuildArgs: string | null; - previewCertificateType: string; - previewCustomCertResolver: string | null; - previewEnv: string | null; - previewHttps: boolean; - previewLabels: Array | null; - previewLimit: number | null; - previewPath: string | null; - previewPort: number | null; - previewRequireCollaboratorPermissions: boolean | null; - previewWildcard: string | null; - publishDirectory: string | null; - railpackVersion: string | null; - refreshToken: string | null; - registryId: string | null; - registryUrl: string | null; - replicas: number; - repository: string | null; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackActive: boolean | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - sourceType: string; - subtitle: string | null; - title: string | null; - triggerType: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - username: string | null; - watchPaths: Array | null; -}; +export const EnvironmentByProjectIdComposeStatus$inboundSchema: z.ZodNativeEnum< + typeof EnvironmentByProjectIdComposeStatus +> = z.nativeEnum(EnvironmentByProjectIdComposeStatus); + +/** @internal */ +export const EnvironmentByProjectIdComposeType$inboundSchema: z.ZodNativeEnum< + typeof EnvironmentByProjectIdComposeType +> = z.nativeEnum(EnvironmentByProjectIdComposeType); + +/** @internal */ +export const EnvironmentByProjectIdComposeSourceType$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentByProjectIdComposeSourceType); + +/** @internal */ +export const EnvironmentByProjectIdComposeTriggerType$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentByProjectIdComposeTriggerType); /** @internal */ -export const EnvironmentByProjectIdApplication$outboundSchema: z.ZodType< - EnvironmentByProjectIdApplication$Outbound, +export const EnvironmentByProjectIdCompose$inboundSchema: z.ZodType< + EnvironmentByProjectIdCompose, z.ZodTypeDef, - EnvironmentByProjectIdApplication + unknown > = z.object({ appName: z.string(), - applicationId: z.string(), - applicationStatus: - EnvironmentByProjectIdApplicationApplicationStatus$outboundSchema, autoDeploy: z.nullable(z.boolean()), bitbucketBranch: z.nullable(z.string()), - bitbucketBuildPath: z.nullable(z.string()), bitbucketId: z.nullable(z.string()), bitbucketOwner: z.nullable(z.string()), bitbucketRepository: z.nullable(z.string()), branch: z.nullable(z.string()), - buildArgs: z.nullable(z.string()), - buildPath: z.nullable(z.string()), - buildType: EnvironmentByProjectIdBuildType$outboundSchema, - cleanCache: z.nullable(z.boolean()), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), + command: z.string(), + composeFile: z.string(), + composeId: z.string(), + composePath: z.string(), + composeStatus: EnvironmentByProjectIdComposeStatus$inboundSchema, + composeType: EnvironmentByProjectIdComposeType$inboundSchema, createdAt: z.string(), customGitBranch: z.nullable(z.string()), - customGitBuildPath: z.nullable(z.string()), customGitSSHKeyId: z.nullable(z.string()), customGitUrl: z.nullable(z.string()), description: z.nullable(z.string()), - dockerBuildStage: z.nullable(z.string()), - dockerContextPath: z.nullable(z.string()), - dockerImage: z.nullable(z.string()), - dockerfile: z.nullable(z.string()), - dropBuildPath: z.nullable(z.string()), enableSubmodules: z.boolean(), - enabled: z.nullable(z.boolean()), env: z.nullable(z.string()), environmentId: z.string(), giteaBranch: z.nullable(z.string()), - giteaBuildPath: z.nullable(z.string()), giteaId: z.nullable(z.string()), giteaOwner: z.nullable(z.string()), giteaRepository: z.nullable(z.string()), githubId: z.nullable(z.string()), gitlabBranch: z.nullable(z.string()), - gitlabBuildPath: z.nullable(z.string()), gitlabId: z.nullable(z.string()), gitlabOwner: z.nullable(z.string()), gitlabPathNamespace: z.nullable(z.string()), gitlabProjectId: z.nullable(z.number()), gitlabRepository: z.nullable(z.string()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - herokuVersion: z.nullable(z.string()), - isPreviewDeploymentsActive: z.nullable(z.boolean()), - isStaticSpa: z.nullable(z.boolean()), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), + isolatedDeployment: z.boolean(), + isolatedDeploymentsVolume: z.boolean(), name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), owner: z.nullable(z.string()), - password: z.nullable(z.string()), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - previewBuildArgs: z.nullable(z.string()), - previewCertificateType: - EnvironmentByProjectIdPreviewCertificateType$outboundSchema, - previewCustomCertResolver: z.nullable(z.string()), - previewEnv: z.nullable(z.string()), - previewHttps: z.boolean(), - previewLabels: z.nullable(z.array(z.string())), - previewLimit: z.nullable(z.number()), - previewPath: z.nullable(z.string()), - previewPort: z.nullable(z.number()), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()), - previewWildcard: z.nullable(z.string()), - publishDirectory: z.nullable(z.string()), - railpackVersion: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - registryId: z.nullable(z.string()), - registryUrl: z.nullable(z.string()), - replicas: z.number(), - repository: z.nullable(z.string()), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackActive: z.nullable(z.boolean()), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - sourceType: EnvironmentByProjectIdApplicationSourceType$outboundSchema, - subtitle: z.nullable(z.string()), - title: z.nullable(z.string()), - triggerType: z.nullable( - EnvironmentByProjectIdApplicationTriggerType$outboundSchema, - ), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - username: z.nullable(z.string()), - watchPaths: z.nullable(z.array(z.string())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdApplication$ { - /** @deprecated use `EnvironmentByProjectIdApplication$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdApplication$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplication$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdApplication$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdApplication$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdApplication$Outbound; -} - -export function environmentByProjectIdApplicationToJSON( - environmentByProjectIdApplication: EnvironmentByProjectIdApplication, -): string { - return JSON.stringify( - EnvironmentByProjectIdApplication$outboundSchema.parse( - environmentByProjectIdApplication, - ), - ); -} - -export function environmentByProjectIdApplicationFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentByProjectIdApplication$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentByProjectIdApplication' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdComposeStatus$inboundSchema: z.ZodNativeEnum< - typeof EnvironmentByProjectIdComposeStatus -> = z.nativeEnum(EnvironmentByProjectIdComposeStatus); - -/** @internal */ -export const EnvironmentByProjectIdComposeStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdComposeStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdComposeStatus$ { - /** @deprecated use `EnvironmentByProjectIdComposeStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdComposeStatus$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdComposeStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdComposeStatus$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdComposeType$inboundSchema: z.ZodNativeEnum< - typeof EnvironmentByProjectIdComposeType -> = z.nativeEnum(EnvironmentByProjectIdComposeType); - -/** @internal */ -export const EnvironmentByProjectIdComposeType$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentByProjectIdComposeType -> = EnvironmentByProjectIdComposeType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdComposeType$ { - /** @deprecated use `EnvironmentByProjectIdComposeType$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdComposeType$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdComposeType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdComposeType$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdComposeSourceType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentByProjectIdComposeSourceType); - -/** @internal */ -export const EnvironmentByProjectIdComposeSourceType$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdComposeSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdComposeSourceType$ { - /** @deprecated use `EnvironmentByProjectIdComposeSourceType$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdComposeSourceType$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdComposeSourceType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdComposeSourceType$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdComposeTriggerType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentByProjectIdComposeTriggerType); - -/** @internal */ -export const EnvironmentByProjectIdComposeTriggerType$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdComposeTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdComposeTriggerType$ { - /** @deprecated use `EnvironmentByProjectIdComposeTriggerType$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdComposeTriggerType$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdComposeTriggerType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdComposeTriggerType$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdCompose$inboundSchema: z.ZodType< - EnvironmentByProjectIdCompose, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - autoDeploy: z.nullable(z.boolean()), - bitbucketBranch: z.nullable(z.string()), - bitbucketId: z.nullable(z.string()), - bitbucketOwner: z.nullable(z.string()), - bitbucketRepository: z.nullable(z.string()), - branch: z.nullable(z.string()), - command: z.string(), - composeFile: z.string(), - composeId: z.string(), - composePath: z.string(), - composeStatus: EnvironmentByProjectIdComposeStatus$inboundSchema, - composeType: EnvironmentByProjectIdComposeType$inboundSchema, - createdAt: z.string(), - customGitBranch: z.nullable(z.string()), - customGitSSHKeyId: z.nullable(z.string()), - customGitUrl: z.nullable(z.string()), - description: z.nullable(z.string()), - enableSubmodules: z.boolean(), - env: z.nullable(z.string()), - environmentId: z.string(), - giteaBranch: z.nullable(z.string()), - giteaId: z.nullable(z.string()), - giteaOwner: z.nullable(z.string()), - giteaRepository: z.nullable(z.string()), - githubId: z.nullable(z.string()), - gitlabBranch: z.nullable(z.string()), - gitlabId: z.nullable(z.string()), - gitlabOwner: z.nullable(z.string()), - gitlabPathNamespace: z.nullable(z.string()), - gitlabProjectId: z.nullable(z.number()), - gitlabRepository: z.nullable(z.string()), - isolatedDeployment: z.boolean(), - isolatedDeploymentsVolume: z.boolean(), - name: z.string(), - owner: z.nullable(z.string()), - randomize: z.boolean(), + randomize: z.boolean(), refreshToken: z.nullable(z.string()), repository: z.nullable(z.string()), serverId: z.nullable(z.string()), @@ -4120,131 +2669,6 @@ export const EnvironmentByProjectIdCompose$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())), }); -/** @internal */ -export type EnvironmentByProjectIdCompose$Outbound = { - appName: string; - autoDeploy: boolean | null; - bitbucketBranch: string | null; - bitbucketId: string | null; - bitbucketOwner: string | null; - bitbucketRepository: string | null; - branch: string | null; - command: string; - composeFile: string; - composeId: string; - composePath: string; - composeStatus: string; - composeType: string; - createdAt: string; - customGitBranch: string | null; - customGitSSHKeyId: string | null; - customGitUrl: string | null; - description: string | null; - enableSubmodules: boolean; - env: string | null; - environmentId: string; - giteaBranch: string | null; - giteaId: string | null; - giteaOwner: string | null; - giteaRepository: string | null; - githubId: string | null; - gitlabBranch: string | null; - gitlabId: string | null; - gitlabOwner: string | null; - gitlabPathNamespace: string | null; - gitlabProjectId: number | null; - gitlabRepository: string | null; - isolatedDeployment: boolean; - isolatedDeploymentsVolume: boolean; - name: string; - owner: string | null; - randomize: boolean; - refreshToken: string | null; - repository: string | null; - serverId: string | null; - sourceType: string; - suffix: string; - triggerType: string | null; - watchPaths: Array | null; -}; - -/** @internal */ -export const EnvironmentByProjectIdCompose$outboundSchema: z.ZodType< - EnvironmentByProjectIdCompose$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdCompose -> = z.object({ - appName: z.string(), - autoDeploy: z.nullable(z.boolean()), - bitbucketBranch: z.nullable(z.string()), - bitbucketId: z.nullable(z.string()), - bitbucketOwner: z.nullable(z.string()), - bitbucketRepository: z.nullable(z.string()), - branch: z.nullable(z.string()), - command: z.string(), - composeFile: z.string(), - composeId: z.string(), - composePath: z.string(), - composeStatus: EnvironmentByProjectIdComposeStatus$outboundSchema, - composeType: EnvironmentByProjectIdComposeType$outboundSchema, - createdAt: z.string(), - customGitBranch: z.nullable(z.string()), - customGitSSHKeyId: z.nullable(z.string()), - customGitUrl: z.nullable(z.string()), - description: z.nullable(z.string()), - enableSubmodules: z.boolean(), - env: z.nullable(z.string()), - environmentId: z.string(), - giteaBranch: z.nullable(z.string()), - giteaId: z.nullable(z.string()), - giteaOwner: z.nullable(z.string()), - giteaRepository: z.nullable(z.string()), - githubId: z.nullable(z.string()), - gitlabBranch: z.nullable(z.string()), - gitlabId: z.nullable(z.string()), - gitlabOwner: z.nullable(z.string()), - gitlabPathNamespace: z.nullable(z.string()), - gitlabProjectId: z.nullable(z.number()), - gitlabRepository: z.nullable(z.string()), - isolatedDeployment: z.boolean(), - isolatedDeploymentsVolume: z.boolean(), - name: z.string(), - owner: z.nullable(z.string()), - randomize: z.boolean(), - refreshToken: z.nullable(z.string()), - repository: z.nullable(z.string()), - serverId: z.nullable(z.string()), - sourceType: EnvironmentByProjectIdComposeSourceType$outboundSchema, - suffix: z.string(), - triggerType: z.nullable( - EnvironmentByProjectIdComposeTriggerType$outboundSchema, - ), - watchPaths: z.nullable(z.array(z.string())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdCompose$ { - /** @deprecated use `EnvironmentByProjectIdCompose$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdCompose$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdCompose$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdCompose$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdCompose$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdCompose$Outbound; -} - -export function environmentByProjectIdComposeToJSON( - environmentByProjectIdCompose: EnvironmentByProjectIdCompose, -): string { - return JSON.stringify( - EnvironmentByProjectIdCompose$outboundSchema.parse( - environmentByProjectIdCompose, - ), - ); -} - export function environmentByProjectIdComposeFromJSON( jsonString: string, ): SafeParseResult { @@ -4260,47 +2684,11 @@ export const EnvironmentByProjectIdMariadbApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdMariadbApplicationStatus); -/** @internal */ -export const EnvironmentByProjectIdMariadbApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdMariadbApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbApplicationStatus$ { - /** @deprecated use `EnvironmentByProjectIdMariadbApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdHealthCheckSwarmMariadbEnum); -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$inboundSchema: z.ZodType< @@ -4314,53 +2702,6 @@ export const EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$inboundSchema: EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdHealthCheckSwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$Outbound; -} - -export function environmentByProjectIdHealthCheckSwarmMariadbUnionToJSON( - environmentByProjectIdHealthCheckSwarmMariadbUnion: - EnvironmentByProjectIdHealthCheckSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdHealthCheckSwarmMariadbUnion$outboundSchema.parse( - environmentByProjectIdHealthCheckSwarmMariadbUnion, - ), - ); -} - export function environmentByProjectIdHealthCheckSwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -4394,59 +2735,6 @@ export const EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMariadbHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$Outbound; -} - -export function environmentByProjectIdMariadbHealthCheckSwarmUnionToJSON( - environmentByProjectIdMariadbHealthCheckSwarmUnion: - EnvironmentByProjectIdMariadbHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadbHealthCheckSwarmUnion$outboundSchema.parse( - environmentByProjectIdMariadbHealthCheckSwarmUnion, - ), - ); -} - export function environmentByProjectIdMariadbHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -4468,24 +2756,6 @@ export const EnvironmentByProjectIdLabelsSwarmMariadbEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdLabelsSwarmMariadbEnum); -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdLabelsSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmMariadbEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdLabelsSwarmMariadbUnion$inboundSchema: z.ZodType< @@ -4499,52 +2769,6 @@ export const EnvironmentByProjectIdLabelsSwarmMariadbUnion$inboundSchema: EnvironmentByProjectIdLabelsSwarmMariadbEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdLabelsSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdLabelsSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdLabelsSwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMariadbEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdLabelsSwarmMariadbUnion$Outbound; -} - -export function environmentByProjectIdLabelsSwarmMariadbUnionToJSON( - environmentByProjectIdLabelsSwarmMariadbUnion: - EnvironmentByProjectIdLabelsSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdLabelsSwarmMariadbUnion$outboundSchema.parse( - environmentByProjectIdLabelsSwarmMariadbUnion, - ), - ); -} - export function environmentByProjectIdLabelsSwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -4578,58 +2802,6 @@ export const EnvironmentByProjectIdMariadbLabelsSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMariadbLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMariadbLabelsSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMariadbLabelsSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMariadbLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMariadbLabelsSwarmUnion$Outbound; -} - -export function environmentByProjectIdMariadbLabelsSwarmUnionToJSON( - environmentByProjectIdMariadbLabelsSwarmUnion: - EnvironmentByProjectIdMariadbLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadbLabelsSwarmUnion$outboundSchema.parse( - environmentByProjectIdMariadbLabelsSwarmUnion, - ), - ); -} - export function environmentByProjectIdMariadbLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -4649,85 +2821,21 @@ export function environmentByProjectIdMariadbLabelsSwarmUnionFromJSON( /** @internal */ export const EnvironmentByProjectIdModeSwarmMariadbEnum$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(EnvironmentByProjectIdModeSwarmMariadbEnum); - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdModeSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmMariadbEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMariadbUnion$inboundSchema: - z.ZodType< - EnvironmentByProjectIdModeSwarmMariadbUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMariadbEnum$inboundSchema, - ]); - -/** @internal */ -export type EnvironmentByProjectIdModeSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; + .nativeEnum(EnvironmentByProjectIdModeSwarmMariadbEnum); /** @internal */ -export const EnvironmentByProjectIdModeSwarmMariadbUnion$outboundSchema: +export const EnvironmentByProjectIdModeSwarmMariadbUnion$inboundSchema: z.ZodType< - EnvironmentByProjectIdModeSwarmMariadbUnion$Outbound, + EnvironmentByProjectIdModeSwarmMariadbUnion, z.ZodTypeDef, - EnvironmentByProjectIdModeSwarmMariadbUnion + unknown > = z.union([ z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdModeSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdModeSwarmMariadbEnum$inboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdModeSwarmMariadbUnion$Outbound; -} - -export function environmentByProjectIdModeSwarmMariadbUnionToJSON( - environmentByProjectIdModeSwarmMariadbUnion: - EnvironmentByProjectIdModeSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdModeSwarmMariadbUnion$outboundSchema.parse( - environmentByProjectIdModeSwarmMariadbUnion, - ), - ); -} - export function environmentByProjectIdModeSwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -4761,58 +2869,6 @@ export const EnvironmentByProjectIdMariadbModeSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMariadbModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMariadbModeSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMariadbModeSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbModeSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMariadbModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMariadbModeSwarmUnion$Outbound; -} - -export function environmentByProjectIdMariadbModeSwarmUnionToJSON( - environmentByProjectIdMariadbModeSwarmUnion: - EnvironmentByProjectIdMariadbModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadbModeSwarmUnion$outboundSchema.parse( - environmentByProjectIdMariadbModeSwarmUnion, - ), - ); -} - export function environmentByProjectIdMariadbModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -4834,24 +2890,6 @@ export const EnvironmentByProjectIdNetworkSwarmMariadbEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdNetworkSwarmMariadbEnum); -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdNetworkSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmMariadbEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdNetworkSwarmMariadbUnion$inboundSchema: z.ZodType< @@ -4865,53 +2903,6 @@ export const EnvironmentByProjectIdNetworkSwarmMariadbUnion$inboundSchema: EnvironmentByProjectIdNetworkSwarmMariadbEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdNetworkSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdNetworkSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdNetworkSwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMariadbEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdNetworkSwarmMariadbUnion$Outbound; -} - -export function environmentByProjectIdNetworkSwarmMariadbUnionToJSON( - environmentByProjectIdNetworkSwarmMariadbUnion: - EnvironmentByProjectIdNetworkSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdNetworkSwarmMariadbUnion$outboundSchema.parse( - environmentByProjectIdNetworkSwarmMariadbUnion, - ), - ); -} - export function environmentByProjectIdNetworkSwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -4945,59 +2936,6 @@ export const EnvironmentByProjectIdMariadbNetworkSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMariadbNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMariadbNetworkSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMariadbNetworkSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMariadbNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMariadbNetworkSwarmUnion$Outbound; -} - -export function environmentByProjectIdMariadbNetworkSwarmUnionToJSON( - environmentByProjectIdMariadbNetworkSwarmUnion: - EnvironmentByProjectIdMariadbNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadbNetworkSwarmUnion$outboundSchema.parse( - environmentByProjectIdMariadbNetworkSwarmUnion, - ), - ); -} - export function environmentByProjectIdMariadbNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -5019,24 +2957,6 @@ export const EnvironmentByProjectIdPlacementSwarmMariadbEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdPlacementSwarmMariadbEnum); -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdPlacementSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmMariadbEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdPlacementSwarmMariadbUnion$inboundSchema: z.ZodType< @@ -5050,53 +2970,6 @@ export const EnvironmentByProjectIdPlacementSwarmMariadbUnion$inboundSchema: EnvironmentByProjectIdPlacementSwarmMariadbEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdPlacementSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPlacementSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPlacementSwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMariadbEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPlacementSwarmMariadbUnion$Outbound; -} - -export function environmentByProjectIdPlacementSwarmMariadbUnionToJSON( - environmentByProjectIdPlacementSwarmMariadbUnion: - EnvironmentByProjectIdPlacementSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPlacementSwarmMariadbUnion$outboundSchema.parse( - environmentByProjectIdPlacementSwarmMariadbUnion, - ), - ); -} - export function environmentByProjectIdPlacementSwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -5130,59 +3003,6 @@ export const EnvironmentByProjectIdMariadbPlacementSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMariadbPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMariadbPlacementSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMariadbPlacementSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMariadbPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMariadbPlacementSwarmUnion$Outbound; -} - -export function environmentByProjectIdMariadbPlacementSwarmUnionToJSON( - environmentByProjectIdMariadbPlacementSwarmUnion: - EnvironmentByProjectIdMariadbPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadbPlacementSwarmUnion$outboundSchema.parse( - environmentByProjectIdMariadbPlacementSwarmUnion, - ), - ); -} - export function environmentByProjectIdMariadbPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -5204,24 +3024,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$inboundSchema: z.ZodNativeEnum = z.nativeEnum(EnvironmentByProjectIdRestartPolicySwarmMariadbEnum); -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$inboundSchema: z.ZodType< @@ -5235,53 +3037,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$inboundSchema: EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRestartPolicySwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$Outbound; -} - -export function environmentByProjectIdRestartPolicySwarmMariadbUnionToJSON( - environmentByProjectIdRestartPolicySwarmMariadbUnion: - EnvironmentByProjectIdRestartPolicySwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRestartPolicySwarmMariadbUnion$outboundSchema.parse( - environmentByProjectIdRestartPolicySwarmMariadbUnion, - ), - ); -} - export function environmentByProjectIdRestartPolicySwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -5315,59 +3070,6 @@ export const EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMariadbRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$Outbound; -} - -export function environmentByProjectIdMariadbRestartPolicySwarmUnionToJSON( - environmentByProjectIdMariadbRestartPolicySwarmUnion: - EnvironmentByProjectIdMariadbRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadbRestartPolicySwarmUnion$outboundSchema.parse( - environmentByProjectIdMariadbRestartPolicySwarmUnion, - ), - ); -} - export function environmentByProjectIdMariadbRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -5385,88 +3087,23 @@ export function environmentByProjectIdMariadbRestartPolicySwarmUnionFromJSON( } /** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema: - z.ZodNativeEnum = - z.nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum); - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$inboundSchema: - z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema, - ]); - -/** @internal */ -export type EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$outboundSchema: +export const EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema: + z.ZodNativeEnum = + z.nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum); + +/** @internal */ +export const EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$inboundSchema: z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$Outbound, + EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion, z.ZodTypeDef, - EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion + unknown > = z.union([ z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$Outbound; -} - -export function environmentByProjectIdRollbackConfigSwarmMariadbUnionToJSON( - environmentByProjectIdRollbackConfigSwarmMariadbUnion: - EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRollbackConfigSwarmMariadbUnion$outboundSchema.parse( - environmentByProjectIdRollbackConfigSwarmMariadbUnion, - ), - ); -} - export function environmentByProjectIdRollbackConfigSwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -5500,59 +3137,6 @@ export const EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$inboundSchema z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdMariadbRollbackConfigSwarmUnionToJSON( - environmentByProjectIdMariadbRollbackConfigSwarmUnion: - EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadbRollbackConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdMariadbRollbackConfigSwarmUnion, - ), - ); -} - export function environmentByProjectIdMariadbRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -5574,24 +3158,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum); -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$inboundSchema: z.ZodType< @@ -5605,53 +3171,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$inboundSchema: EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$Outbound; -} - -export function environmentByProjectIdUpdateConfigSwarmMariadbUnionToJSON( - environmentByProjectIdUpdateConfigSwarmMariadbUnion: - EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdUpdateConfigSwarmMariadbUnion$outboundSchema.parse( - environmentByProjectIdUpdateConfigSwarmMariadbUnion, - ), - ); -} - export function environmentByProjectIdUpdateConfigSwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -5668,276 +3187,48 @@ export function environmentByProjectIdUpdateConfigSwarmMariadbUnionFromJSON( ); } -/** @internal */ -export const EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$inboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdMariadbUpdateConfigSwarmUnionToJSON( - environmentByProjectIdMariadbUpdateConfigSwarmUnion: - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdMariadbUpdateConfigSwarmUnion, - ), - ); -} - -export function environmentByProjectIdMariadbUpdateConfigSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdMariadb$inboundSchema: z.ZodType< - EnvironmentByProjectIdMariadb, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - applicationStatus: - EnvironmentByProjectIdMariadbApplicationStatus$inboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( +/** @internal */ +export const EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$inboundSchema: + z.ZodType< + EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion, + z.ZodTypeDef, + unknown + > = z.union([ z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), + z.string(), + z.number(), + z.boolean(), + EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema, ]), - ), -}); + z.array(z.any()), + z.record(z.any()), + ]); -/** @internal */ -export type EnvironmentByProjectIdMariadb$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; +export function environmentByProjectIdMariadbUpdateConfigSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdMariadbUpdateConfigSwarmUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< - EnvironmentByProjectIdMariadb$Outbound, +export const EnvironmentByProjectIdMariadb$inboundSchema: z.ZodType< + EnvironmentByProjectIdMariadb, z.ZodTypeDef, - EnvironmentByProjectIdMariadb + unknown > = z.object({ appName: z.string(), applicationStatus: - EnvironmentByProjectIdMariadbApplicationStatus$outboundSchema, + EnvironmentByProjectIdMariadbApplicationStatus$inboundSchema, command: z.nullable(z.string()), cpuLimit: z.nullable(z.string()), cpuReservation: z.nullable(z.string()), @@ -5957,7 +3248,7 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdHealthCheckSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5969,7 +3260,7 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdLabelsSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdLabelsSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5984,7 +3275,7 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdModeSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdModeSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5997,7 +3288,7 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdNetworkSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdNetworkSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -6009,7 +3300,7 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdPlacementSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdPlacementSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -6022,7 +3313,7 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdRestartPolicySwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -6034,7 +3325,7 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -6047,7 +3338,7 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$outboundSchema, + EnvironmentByProjectIdUpdateConfigSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -6055,29 +3346,6 @@ export const EnvironmentByProjectIdMariadb$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMariadb$ { - /** @deprecated use `EnvironmentByProjectIdMariadb$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdMariadb$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadb$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdMariadb$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMariadb$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMariadb$Outbound; -} - -export function environmentByProjectIdMariadbToJSON( - environmentByProjectIdMariadb: EnvironmentByProjectIdMariadb, -): string { - return JSON.stringify( - EnvironmentByProjectIdMariadb$outboundSchema.parse( - environmentByProjectIdMariadb, - ), - ); -} - export function environmentByProjectIdMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -6093,47 +3361,11 @@ export const EnvironmentByProjectIdMongoApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdMongoApplicationStatus); -/** @internal */ -export const EnvironmentByProjectIdMongoApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdMongoApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoApplicationStatus$ { - /** @deprecated use `EnvironmentByProjectIdMongoApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdHealthCheckSwarmMongoEnum); -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdHealthCheckSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmMongoEnum$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmMongoUnion$inboundSchema: z.ZodType< @@ -6147,53 +3379,6 @@ export const EnvironmentByProjectIdHealthCheckSwarmMongoUnion$inboundSchema: EnvironmentByProjectIdHealthCheckSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdHealthCheckSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdHealthCheckSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdHealthCheckSwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmMongoUnion$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMongoUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdHealthCheckSwarmMongoUnion$Outbound; -} - -export function environmentByProjectIdHealthCheckSwarmMongoUnionToJSON( - environmentByProjectIdHealthCheckSwarmMongoUnion: - EnvironmentByProjectIdHealthCheckSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdHealthCheckSwarmMongoUnion$outboundSchema.parse( - environmentByProjectIdHealthCheckSwarmMongoUnion, - ), - ); -} - export function environmentByProjectIdHealthCheckSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6227,59 +3412,6 @@ export const EnvironmentByProjectIdMongoHealthCheckSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMongoHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMongoHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMongoHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMongoHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMongoHealthCheckSwarmUnion$Outbound; -} - -export function environmentByProjectIdMongoHealthCheckSwarmUnionToJSON( - environmentByProjectIdMongoHealthCheckSwarmUnion: - EnvironmentByProjectIdMongoHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongoHealthCheckSwarmUnion$outboundSchema.parse( - environmentByProjectIdMongoHealthCheckSwarmUnion, - ), - ); -} - export function environmentByProjectIdMongoHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6301,24 +3433,6 @@ export const EnvironmentByProjectIdLabelsSwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdLabelsSwarmMongoEnum); -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdLabelsSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmMongoEnum$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdLabelsSwarmMongoUnion$inboundSchema: z.ZodType< @@ -6332,52 +3446,6 @@ export const EnvironmentByProjectIdLabelsSwarmMongoUnion$inboundSchema: EnvironmentByProjectIdLabelsSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdLabelsSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdLabelsSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdLabelsSwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmMongoUnion$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdLabelsSwarmMongoUnion$Outbound; -} - -export function environmentByProjectIdLabelsSwarmMongoUnionToJSON( - environmentByProjectIdLabelsSwarmMongoUnion: - EnvironmentByProjectIdLabelsSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdLabelsSwarmMongoUnion$outboundSchema.parse( - environmentByProjectIdLabelsSwarmMongoUnion, - ), - ); -} - export function environmentByProjectIdLabelsSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6411,58 +3479,6 @@ export const EnvironmentByProjectIdMongoLabelsSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMongoLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMongoLabelsSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMongoLabelsSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMongoLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMongoLabelsSwarmUnion$Outbound; -} - -export function environmentByProjectIdMongoLabelsSwarmUnionToJSON( - environmentByProjectIdMongoLabelsSwarmUnion: - EnvironmentByProjectIdMongoLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongoLabelsSwarmUnion$outboundSchema.parse( - environmentByProjectIdMongoLabelsSwarmUnion, - ), - ); -} - export function environmentByProjectIdMongoLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6472,94 +3488,30 @@ export function environmentByProjectIdMongoLabelsSwarmUnionFromJSON( return safeParse( jsonString, (x) => - EnvironmentByProjectIdMongoLabelsSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdMongoLabelsSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentByProjectIdModeSwarmMongoEnum); - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmMongoEnum$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmMongoEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMongoUnion$inboundSchema: z.ZodType< - EnvironmentByProjectIdModeSwarmMongoUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema, -]); - -/** @internal */ -export type EnvironmentByProjectIdModeSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdModeSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdModeSwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmMongoUnion$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdModeSwarmMongoUnion$Outbound; -} - -export function environmentByProjectIdModeSwarmMongoUnionToJSON( - environmentByProjectIdModeSwarmMongoUnion: - EnvironmentByProjectIdModeSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdModeSwarmMongoUnion$outboundSchema.parse( - environmentByProjectIdModeSwarmMongoUnion, - ), + EnvironmentByProjectIdMongoLabelsSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdMongoLabelsSwarmUnion' from JSON`, ); } +/** @internal */ +export const EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentByProjectIdModeSwarmMongoEnum); + +/** @internal */ +export const EnvironmentByProjectIdModeSwarmMongoUnion$inboundSchema: z.ZodType< + EnvironmentByProjectIdModeSwarmMongoUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema, +]); + export function environmentByProjectIdModeSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6592,58 +3544,6 @@ export const EnvironmentByProjectIdMongoModeSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMongoModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMongoModeSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMongoModeSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoModeSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMongoModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMongoModeSwarmUnion$Outbound; -} - -export function environmentByProjectIdMongoModeSwarmUnionToJSON( - environmentByProjectIdMongoModeSwarmUnion: - EnvironmentByProjectIdMongoModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongoModeSwarmUnion$outboundSchema.parse( - environmentByProjectIdMongoModeSwarmUnion, - ), - ); -} - export function environmentByProjectIdMongoModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6665,24 +3565,6 @@ export const EnvironmentByProjectIdNetworkSwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdNetworkSwarmMongoEnum); -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdNetworkSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmMongoEnum$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdNetworkSwarmMongoUnion$inboundSchema: z.ZodType< @@ -6696,52 +3578,6 @@ export const EnvironmentByProjectIdNetworkSwarmMongoUnion$inboundSchema: EnvironmentByProjectIdNetworkSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdNetworkSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdNetworkSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdNetworkSwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmMongoUnion$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdNetworkSwarmMongoUnion$Outbound; -} - -export function environmentByProjectIdNetworkSwarmMongoUnionToJSON( - environmentByProjectIdNetworkSwarmMongoUnion: - EnvironmentByProjectIdNetworkSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdNetworkSwarmMongoUnion$outboundSchema.parse( - environmentByProjectIdNetworkSwarmMongoUnion, - ), - ); -} - export function environmentByProjectIdNetworkSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6775,58 +3611,6 @@ export const EnvironmentByProjectIdMongoNetworkSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMongoNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMongoNetworkSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMongoNetworkSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMongoNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMongoNetworkSwarmUnion$Outbound; -} - -export function environmentByProjectIdMongoNetworkSwarmUnionToJSON( - environmentByProjectIdMongoNetworkSwarmUnion: - EnvironmentByProjectIdMongoNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongoNetworkSwarmUnion$outboundSchema.parse( - environmentByProjectIdMongoNetworkSwarmUnion, - ), - ); -} - export function environmentByProjectIdMongoNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6848,24 +3632,6 @@ export const EnvironmentByProjectIdPlacementSwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdPlacementSwarmMongoEnum); -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdPlacementSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmMongoEnum$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdPlacementSwarmMongoUnion$inboundSchema: z.ZodType< @@ -6879,53 +3645,6 @@ export const EnvironmentByProjectIdPlacementSwarmMongoUnion$inboundSchema: EnvironmentByProjectIdPlacementSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdPlacementSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPlacementSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPlacementSwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmMongoUnion$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMongoUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPlacementSwarmMongoUnion$Outbound; -} - -export function environmentByProjectIdPlacementSwarmMongoUnionToJSON( - environmentByProjectIdPlacementSwarmMongoUnion: - EnvironmentByProjectIdPlacementSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPlacementSwarmMongoUnion$outboundSchema.parse( - environmentByProjectIdPlacementSwarmMongoUnion, - ), - ); -} - export function environmentByProjectIdPlacementSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6959,59 +3678,6 @@ export const EnvironmentByProjectIdMongoPlacementSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMongoPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMongoPlacementSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMongoPlacementSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMongoPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMongoPlacementSwarmUnion$Outbound; -} - -export function environmentByProjectIdMongoPlacementSwarmUnionToJSON( - environmentByProjectIdMongoPlacementSwarmUnion: - EnvironmentByProjectIdMongoPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongoPlacementSwarmUnion$outboundSchema.parse( - environmentByProjectIdMongoPlacementSwarmUnion, - ), - ); -} - export function environmentByProjectIdMongoPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7033,24 +3699,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdRestartPolicySwarmMongoEnum); -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRestartPolicySwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmMongoEnum$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRestartPolicySwarmMongoUnion$inboundSchema: z.ZodType< @@ -7064,53 +3712,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmMongoUnion$inboundSchema: EnvironmentByProjectIdRestartPolicySwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRestartPolicySwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRestartPolicySwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRestartPolicySwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmMongoUnion$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMongoUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRestartPolicySwarmMongoUnion$Outbound; -} - -export function environmentByProjectIdRestartPolicySwarmMongoUnionToJSON( - environmentByProjectIdRestartPolicySwarmMongoUnion: - EnvironmentByProjectIdRestartPolicySwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRestartPolicySwarmMongoUnion$outboundSchema.parse( - environmentByProjectIdRestartPolicySwarmMongoUnion, - ), - ); -} - export function environmentByProjectIdRestartPolicySwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7144,59 +3745,6 @@ export const EnvironmentByProjectIdMongoRestartPolicySwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMongoRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMongoRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMongoRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMongoRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMongoRestartPolicySwarmUnion$Outbound; -} - -export function environmentByProjectIdMongoRestartPolicySwarmUnionToJSON( - environmentByProjectIdMongoRestartPolicySwarmUnion: - EnvironmentByProjectIdMongoRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongoRestartPolicySwarmUnion$outboundSchema.parse( - environmentByProjectIdMongoRestartPolicySwarmUnion, - ), - ); -} - export function environmentByProjectIdMongoRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7210,92 +3758,27 @@ export function environmentByProjectIdMongoRestartPolicySwarmUnionFromJSON( JSON.parse(x), ), `Failed to parse 'EnvironmentByProjectIdMongoRestartPolicySwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmMongoEnum); - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$inboundSchema: - z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmMongoUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema, - ]); + ); +} /** @internal */ -export type EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; +export const EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmMongoEnum); /** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$outboundSchema: +export const EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$inboundSchema: z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$Outbound, + EnvironmentByProjectIdRollbackConfigSwarmMongoUnion, z.ZodTypeDef, - EnvironmentByProjectIdRollbackConfigSwarmMongoUnion + unknown > = z.union([ z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$Outbound; -} - -export function environmentByProjectIdRollbackConfigSwarmMongoUnionToJSON( - environmentByProjectIdRollbackConfigSwarmMongoUnion: - EnvironmentByProjectIdRollbackConfigSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRollbackConfigSwarmMongoUnion$outboundSchema.parse( - environmentByProjectIdRollbackConfigSwarmMongoUnion, - ), - ); -} - export function environmentByProjectIdRollbackConfigSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7329,59 +3812,6 @@ export const EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMongoRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdMongoRollbackConfigSwarmUnionToJSON( - environmentByProjectIdMongoRollbackConfigSwarmUnion: - EnvironmentByProjectIdMongoRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongoRollbackConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdMongoRollbackConfigSwarmUnion, - ), - ); -} - export function environmentByProjectIdMongoRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7403,24 +3833,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdUpdateConfigSwarmMongoEnum); -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$inboundSchema: z.ZodType< @@ -7434,53 +3846,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$inboundSchema: EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdUpdateConfigSwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$Outbound; -} - -export function environmentByProjectIdUpdateConfigSwarmMongoUnionToJSON( - environmentByProjectIdUpdateConfigSwarmMongoUnion: - EnvironmentByProjectIdUpdateConfigSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdUpdateConfigSwarmMongoUnion$outboundSchema.parse( - environmentByProjectIdUpdateConfigSwarmMongoUnion, - ), - ); -} - export function environmentByProjectIdUpdateConfigSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7498,272 +3863,46 @@ export function environmentByProjectIdUpdateConfigSwarmMongoUnionFromJSON( } /** @internal */ -export const EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$inboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdMongoUpdateConfigSwarmUnionToJSON( - environmentByProjectIdMongoUpdateConfigSwarmUnion: - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdMongoUpdateConfigSwarmUnion, - ), - ); -} - -export function environmentByProjectIdMongoUpdateConfigSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdMongoUpdateConfigSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdMongo$inboundSchema: z.ZodType< - EnvironmentByProjectIdMongo, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - applicationStatus: EnvironmentByProjectIdMongoApplicationStatus$inboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - mongoId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( +export const EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$inboundSchema: + z.ZodType< + EnvironmentByProjectIdMongoUpdateConfigSwarmUnion, + z.ZodTypeDef, + unknown + > = z.union([ z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), + z.string(), + z.number(), + z.boolean(), + EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema, ]), - ), -}); + z.array(z.any()), + z.record(z.any()), + ]); -/** @internal */ -export type EnvironmentByProjectIdMongo$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - mongoId: string; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; +export function environmentByProjectIdMongoUpdateConfigSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentByProjectIdMongoUpdateConfigSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentByProjectIdMongoUpdateConfigSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdMongoUpdateConfigSwarmUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< - EnvironmentByProjectIdMongo$Outbound, +export const EnvironmentByProjectIdMongo$inboundSchema: z.ZodType< + EnvironmentByProjectIdMongo, z.ZodTypeDef, - EnvironmentByProjectIdMongo + unknown > = z.object({ appName: z.string(), - applicationStatus: - EnvironmentByProjectIdMongoApplicationStatus$outboundSchema, + applicationStatus: EnvironmentByProjectIdMongoApplicationStatus$inboundSchema, command: z.nullable(z.string()), cpuLimit: z.nullable(z.string()), cpuReservation: z.nullable(z.string()), @@ -7781,7 +3920,7 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdHealthCheckSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7793,7 +3932,7 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdLabelsSwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdLabelsSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7807,7 +3946,7 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdModeSwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdModeSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7821,7 +3960,7 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdNetworkSwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdNetworkSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7833,7 +3972,7 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdPlacementSwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdPlacementSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7847,7 +3986,7 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdRestartPolicySwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7859,7 +3998,7 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7872,7 +4011,7 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$outboundSchema, + EnvironmentByProjectIdUpdateConfigSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7880,29 +4019,6 @@ export const EnvironmentByProjectIdMongo$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMongo$ { - /** @deprecated use `EnvironmentByProjectIdMongo$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdMongo$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongo$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdMongo$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMongo$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMongo$Outbound; -} - -export function environmentByProjectIdMongoToJSON( - environmentByProjectIdMongo: EnvironmentByProjectIdMongo, -): string { - return JSON.stringify( - EnvironmentByProjectIdMongo$outboundSchema.parse( - environmentByProjectIdMongo, - ), - ); -} - export function environmentByProjectIdMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -7918,47 +4034,11 @@ export const EnvironmentByProjectIdMysqlApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdMysqlApplicationStatus); -/** @internal */ -export const EnvironmentByProjectIdMysqlApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdMysqlApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlApplicationStatus$ { - /** @deprecated use `EnvironmentByProjectIdMysqlApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdHealthCheckSwarmMysqlEnum); -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$inboundSchema: z.ZodType< @@ -7972,53 +4052,6 @@ export const EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$inboundSchema: EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdHealthCheckSwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$Outbound; -} - -export function environmentByProjectIdHealthCheckSwarmMysqlUnionToJSON( - environmentByProjectIdHealthCheckSwarmMysqlUnion: - EnvironmentByProjectIdHealthCheckSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdHealthCheckSwarmMysqlUnion$outboundSchema.parse( - environmentByProjectIdHealthCheckSwarmMysqlUnion, - ), - ); -} - export function environmentByProjectIdHealthCheckSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8052,59 +4085,6 @@ export const EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMysqlHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$Outbound; -} - -export function environmentByProjectIdMysqlHealthCheckSwarmUnionToJSON( - environmentByProjectIdMysqlHealthCheckSwarmUnion: - EnvironmentByProjectIdMysqlHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysqlHealthCheckSwarmUnion$outboundSchema.parse( - environmentByProjectIdMysqlHealthCheckSwarmUnion, - ), - ); -} - export function environmentByProjectIdMysqlHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8126,24 +4106,6 @@ export const EnvironmentByProjectIdLabelsSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdLabelsSwarmMysqlEnum); -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdLabelsSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdLabelsSwarmMysqlUnion$inboundSchema: z.ZodType< @@ -8157,52 +4119,6 @@ export const EnvironmentByProjectIdLabelsSwarmMysqlUnion$inboundSchema: EnvironmentByProjectIdLabelsSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdLabelsSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdLabelsSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdLabelsSwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdLabelsSwarmMysqlUnion$Outbound; -} - -export function environmentByProjectIdLabelsSwarmMysqlUnionToJSON( - environmentByProjectIdLabelsSwarmMysqlUnion: - EnvironmentByProjectIdLabelsSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdLabelsSwarmMysqlUnion$outboundSchema.parse( - environmentByProjectIdLabelsSwarmMysqlUnion, - ), - ); -} - export function environmentByProjectIdLabelsSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8236,58 +4152,6 @@ export const EnvironmentByProjectIdMysqlLabelsSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMysqlLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMysqlLabelsSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMysqlLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMysqlLabelsSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMysqlLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMysqlLabelsSwarmUnion$Outbound; -} - -export function environmentByProjectIdMysqlLabelsSwarmUnionToJSON( - environmentByProjectIdMysqlLabelsSwarmUnion: - EnvironmentByProjectIdMysqlLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysqlLabelsSwarmUnion$outboundSchema.parse( - environmentByProjectIdMysqlLabelsSwarmUnion, - ), - ); -} - export function environmentByProjectIdMysqlLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8296,95 +4160,31 @@ export function environmentByProjectIdMysqlLabelsSwarmUnionFromJSON( > { return safeParse( jsonString, - (x) => - EnvironmentByProjectIdMysqlLabelsSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdMysqlLabelsSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentByProjectIdModeSwarmMysqlEnum); - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmMysqlEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMysqlUnion$inboundSchema: z.ZodType< - EnvironmentByProjectIdModeSwarmMysqlUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema, -]); - -/** @internal */ -export type EnvironmentByProjectIdModeSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdModeSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdModeSwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdModeSwarmMysqlUnion$Outbound; -} - -export function environmentByProjectIdModeSwarmMysqlUnionToJSON( - environmentByProjectIdModeSwarmMysqlUnion: - EnvironmentByProjectIdModeSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdModeSwarmMysqlUnion$outboundSchema.parse( - environmentByProjectIdModeSwarmMysqlUnion, - ), + (x) => + EnvironmentByProjectIdMysqlLabelsSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdMysqlLabelsSwarmUnion' from JSON`, ); } +/** @internal */ +export const EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentByProjectIdModeSwarmMysqlEnum); + +/** @internal */ +export const EnvironmentByProjectIdModeSwarmMysqlUnion$inboundSchema: z.ZodType< + EnvironmentByProjectIdModeSwarmMysqlUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema, +]); + export function environmentByProjectIdModeSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8417,58 +4217,6 @@ export const EnvironmentByProjectIdMysqlModeSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMysqlModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMysqlModeSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMysqlModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMysqlModeSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlModeSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMysqlModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMysqlModeSwarmUnion$Outbound; -} - -export function environmentByProjectIdMysqlModeSwarmUnionToJSON( - environmentByProjectIdMysqlModeSwarmUnion: - EnvironmentByProjectIdMysqlModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysqlModeSwarmUnion$outboundSchema.parse( - environmentByProjectIdMysqlModeSwarmUnion, - ), - ); -} - export function environmentByProjectIdMysqlModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8490,24 +4238,6 @@ export const EnvironmentByProjectIdNetworkSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdNetworkSwarmMysqlEnum); -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdNetworkSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdNetworkSwarmMysqlUnion$inboundSchema: z.ZodType< @@ -8521,52 +4251,6 @@ export const EnvironmentByProjectIdNetworkSwarmMysqlUnion$inboundSchema: EnvironmentByProjectIdNetworkSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdNetworkSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdNetworkSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdNetworkSwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdNetworkSwarmMysqlUnion$Outbound; -} - -export function environmentByProjectIdNetworkSwarmMysqlUnionToJSON( - environmentByProjectIdNetworkSwarmMysqlUnion: - EnvironmentByProjectIdNetworkSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdNetworkSwarmMysqlUnion$outboundSchema.parse( - environmentByProjectIdNetworkSwarmMysqlUnion, - ), - ); -} - export function environmentByProjectIdNetworkSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8600,58 +4284,6 @@ export const EnvironmentByProjectIdMysqlNetworkSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMysqlNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMysqlNetworkSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMysqlNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMysqlNetworkSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMysqlNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMysqlNetworkSwarmUnion$Outbound; -} - -export function environmentByProjectIdMysqlNetworkSwarmUnionToJSON( - environmentByProjectIdMysqlNetworkSwarmUnion: - EnvironmentByProjectIdMysqlNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysqlNetworkSwarmUnion$outboundSchema.parse( - environmentByProjectIdMysqlNetworkSwarmUnion, - ), - ); -} - export function environmentByProjectIdMysqlNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8673,24 +4305,6 @@ export const EnvironmentByProjectIdPlacementSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdPlacementSwarmMysqlEnum); -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdPlacementSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdPlacementSwarmMysqlUnion$inboundSchema: z.ZodType< @@ -8704,53 +4318,6 @@ export const EnvironmentByProjectIdPlacementSwarmMysqlUnion$inboundSchema: EnvironmentByProjectIdPlacementSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdPlacementSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPlacementSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPlacementSwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPlacementSwarmMysqlUnion$Outbound; -} - -export function environmentByProjectIdPlacementSwarmMysqlUnionToJSON( - environmentByProjectIdPlacementSwarmMysqlUnion: - EnvironmentByProjectIdPlacementSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPlacementSwarmMysqlUnion$outboundSchema.parse( - environmentByProjectIdPlacementSwarmMysqlUnion, - ), - ); -} - export function environmentByProjectIdPlacementSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8784,59 +4351,6 @@ export const EnvironmentByProjectIdMysqlPlacementSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMysqlPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMysqlPlacementSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMysqlPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMysqlPlacementSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMysqlPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMysqlPlacementSwarmUnion$Outbound; -} - -export function environmentByProjectIdMysqlPlacementSwarmUnionToJSON( - environmentByProjectIdMysqlPlacementSwarmUnion: - EnvironmentByProjectIdMysqlPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysqlPlacementSwarmUnion$outboundSchema.parse( - environmentByProjectIdMysqlPlacementSwarmUnion, - ), - ); -} - export function environmentByProjectIdMysqlPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8858,24 +4372,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdRestartPolicySwarmMysqlEnum); -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$inboundSchema: z.ZodType< @@ -8889,53 +4385,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$inboundSchema: EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRestartPolicySwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$Outbound; -} - -export function environmentByProjectIdRestartPolicySwarmMysqlUnionToJSON( - environmentByProjectIdRestartPolicySwarmMysqlUnion: - EnvironmentByProjectIdRestartPolicySwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRestartPolicySwarmMysqlUnion$outboundSchema.parse( - environmentByProjectIdRestartPolicySwarmMysqlUnion, - ), - ); -} - export function environmentByProjectIdRestartPolicySwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8969,59 +4418,6 @@ export const EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMysqlRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$Outbound; -} - -export function environmentByProjectIdMysqlRestartPolicySwarmUnionToJSON( - environmentByProjectIdMysqlRestartPolicySwarmUnion: - EnvironmentByProjectIdMysqlRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysqlRestartPolicySwarmUnion$outboundSchema.parse( - environmentByProjectIdMysqlRestartPolicySwarmUnion, - ), - ); -} - export function environmentByProjectIdMysqlRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -9036,91 +4432,26 @@ export function environmentByProjectIdMysqlRestartPolicySwarmUnionFromJSON( ), `Failed to parse 'EnvironmentByProjectIdMysqlRestartPolicySwarmUnion' from JSON`, ); -} - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum); - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$inboundSchema: - z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema, - ]); +} /** @internal */ -export type EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; +export const EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum); /** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$outboundSchema: +export const EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$inboundSchema: z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$Outbound, + EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion, z.ZodTypeDef, - EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion + unknown > = z.union([ z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$Outbound; -} - -export function environmentByProjectIdRollbackConfigSwarmMysqlUnionToJSON( - environmentByProjectIdRollbackConfigSwarmMysqlUnion: - EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRollbackConfigSwarmMysqlUnion$outboundSchema.parse( - environmentByProjectIdRollbackConfigSwarmMysqlUnion, - ), - ); -} - export function environmentByProjectIdRollbackConfigSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -9154,59 +4485,6 @@ export const EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdMysqlRollbackConfigSwarmUnionToJSON( - environmentByProjectIdMysqlRollbackConfigSwarmUnion: - EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysqlRollbackConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdMysqlRollbackConfigSwarmUnion, - ), - ); -} - export function environmentByProjectIdMysqlRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -9228,24 +4506,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum); -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$inboundSchema: z.ZodType< @@ -9259,53 +4519,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$inboundSchema: EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$Outbound; -} - -export function environmentByProjectIdUpdateConfigSwarmMysqlUnionToJSON( - environmentByProjectIdUpdateConfigSwarmMysqlUnion: - EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdUpdateConfigSwarmMysqlUnion$outboundSchema.parse( - environmentByProjectIdUpdateConfigSwarmMysqlUnion, - ), - ); -} - export function environmentByProjectIdUpdateConfigSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -9332,265 +4545,37 @@ export const EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$inboundSchema: z.union([ z.string(), z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdMysqlUpdateConfigSwarmUnionToJSON( - environmentByProjectIdMysqlUpdateConfigSwarmUnion: - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdMysqlUpdateConfigSwarmUnion, - ), - ); -} - -export function environmentByProjectIdMysqlUpdateConfigSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdMysql$inboundSchema: z.ZodType< - EnvironmentByProjectIdMysql, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - applicationStatus: EnvironmentByProjectIdMysqlApplicationStatus$inboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), + z.boolean(), + EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema, ]), - ), -}); + z.array(z.any()), + z.record(z.any()), + ]); -/** @internal */ -export type EnvironmentByProjectIdMysql$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - mysqlId: string; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; +export function environmentByProjectIdMysqlUpdateConfigSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdMysqlUpdateConfigSwarmUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< - EnvironmentByProjectIdMysql$Outbound, +export const EnvironmentByProjectIdMysql$inboundSchema: z.ZodType< + EnvironmentByProjectIdMysql, z.ZodTypeDef, - EnvironmentByProjectIdMysql + unknown > = z.object({ appName: z.string(), - applicationStatus: - EnvironmentByProjectIdMysqlApplicationStatus$outboundSchema, + applicationStatus: EnvironmentByProjectIdMysqlApplicationStatus$inboundSchema, command: z.nullable(z.string()), cpuLimit: z.nullable(z.string()), cpuReservation: z.nullable(z.string()), @@ -9610,7 +4595,7 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdHealthCheckSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9622,7 +4607,7 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdLabelsSwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdLabelsSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9636,7 +4621,7 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdModeSwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdModeSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9650,7 +4635,7 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdNetworkSwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdNetworkSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9662,7 +4647,7 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdPlacementSwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdPlacementSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9675,7 +4660,7 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdRestartPolicySwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9687,7 +4672,7 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9700,7 +4685,7 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$outboundSchema, + EnvironmentByProjectIdUpdateConfigSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9708,29 +4693,6 @@ export const EnvironmentByProjectIdMysql$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdMysql$ { - /** @deprecated use `EnvironmentByProjectIdMysql$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdMysql$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysql$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdMysql$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdMysql$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdMysql$Outbound; -} - -export function environmentByProjectIdMysqlToJSON( - environmentByProjectIdMysql: EnvironmentByProjectIdMysql, -): string { - return JSON.stringify( - EnvironmentByProjectIdMysql$outboundSchema.parse( - environmentByProjectIdMysql, - ), - ); -} - export function environmentByProjectIdMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -9746,47 +4708,11 @@ export const EnvironmentByProjectIdPostgreApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdPostgreApplicationStatus); -/** @internal */ -export const EnvironmentByProjectIdPostgreApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdPostgreApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgreApplicationStatus$ { - /** @deprecated use `EnvironmentByProjectIdPostgreApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgreApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgreApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdHealthCheckSwarmPostgreEnum); -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -9800,53 +4726,6 @@ export const EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$inboundSchema: EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdHealthCheckSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$Outbound; -} - -export function environmentByProjectIdHealthCheckSwarmPostgreUnionToJSON( - environmentByProjectIdHealthCheckSwarmPostgreUnion: - EnvironmentByProjectIdHealthCheckSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdHealthCheckSwarmPostgreUnion$outboundSchema.parse( - environmentByProjectIdHealthCheckSwarmPostgreUnion, - ), - ); -} - export function environmentByProjectIdHealthCheckSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -9880,59 +4759,6 @@ export const EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPostgreHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$Outbound; -} - -export function environmentByProjectIdPostgreHealthCheckSwarmUnionToJSON( - environmentByProjectIdPostgreHealthCheckSwarmUnion: - EnvironmentByProjectIdPostgreHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgreHealthCheckSwarmUnion$outboundSchema.parse( - environmentByProjectIdPostgreHealthCheckSwarmUnion, - ), - ); -} - export function environmentByProjectIdPostgreHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -9954,24 +4780,6 @@ export const EnvironmentByProjectIdLabelsSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdLabelsSwarmPostgreEnum); -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdLabelsSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdLabelsSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -9985,52 +4793,6 @@ export const EnvironmentByProjectIdLabelsSwarmPostgreUnion$inboundSchema: EnvironmentByProjectIdLabelsSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdLabelsSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdLabelsSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdLabelsSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdLabelsSwarmPostgreUnion$Outbound; -} - -export function environmentByProjectIdLabelsSwarmPostgreUnionToJSON( - environmentByProjectIdLabelsSwarmPostgreUnion: - EnvironmentByProjectIdLabelsSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdLabelsSwarmPostgreUnion$outboundSchema.parse( - environmentByProjectIdLabelsSwarmPostgreUnion, - ), - ); -} - export function environmentByProjectIdLabelsSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10064,58 +4826,6 @@ export const EnvironmentByProjectIdPostgreLabelsSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdPostgreLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdPostgreLabelsSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPostgreLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPostgreLabelsSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgreLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdPostgreLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgreLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgreLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdPostgreLabelsSwarmUnion$Outbound; -} - -export function environmentByProjectIdPostgreLabelsSwarmUnionToJSON( - environmentByProjectIdPostgreLabelsSwarmUnion: - EnvironmentByProjectIdPostgreLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgreLabelsSwarmUnion$outboundSchema.parse( - environmentByProjectIdPostgreLabelsSwarmUnion, - ), - ); -} - export function environmentByProjectIdPostgreLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10137,24 +4847,6 @@ export const EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdModeSwarmPostgreEnum); -/** @internal */ -export const EnvironmentByProjectIdModeSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdModeSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -10168,52 +4860,6 @@ export const EnvironmentByProjectIdModeSwarmPostgreUnion$inboundSchema: EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdModeSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdModeSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdModeSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdModeSwarmPostgreUnion$Outbound; -} - -export function environmentByProjectIdModeSwarmPostgreUnionToJSON( - environmentByProjectIdModeSwarmPostgreUnion: - EnvironmentByProjectIdModeSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdModeSwarmPostgreUnion$outboundSchema.parse( - environmentByProjectIdModeSwarmPostgreUnion, - ), - ); -} - export function environmentByProjectIdModeSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10241,63 +4887,11 @@ export const EnvironmentByProjectIdPostgreModeSwarmUnion$inboundSchema: z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentByProjectIdPostgreModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdPostgreModeSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPostgreModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPostgreModeSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgreModeSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdPostgreModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgreModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgreModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdPostgreModeSwarmUnion$Outbound; -} - -export function environmentByProjectIdPostgreModeSwarmUnionToJSON( - environmentByProjectIdPostgreModeSwarmUnion: - EnvironmentByProjectIdPostgreModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgreModeSwarmUnion$outboundSchema.parse( - environmentByProjectIdPostgreModeSwarmUnion, - ), - ); -} + EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), + ]); export function environmentByProjectIdPostgreModeSwarmUnionFromJSON( jsonString: string, @@ -10320,24 +4914,6 @@ export const EnvironmentByProjectIdNetworkSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdNetworkSwarmPostgreEnum); -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdNetworkSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdNetworkSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -10351,53 +4927,6 @@ export const EnvironmentByProjectIdNetworkSwarmPostgreUnion$inboundSchema: EnvironmentByProjectIdNetworkSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdNetworkSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdNetworkSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdNetworkSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdNetworkSwarmPostgreUnion$Outbound; -} - -export function environmentByProjectIdNetworkSwarmPostgreUnionToJSON( - environmentByProjectIdNetworkSwarmPostgreUnion: - EnvironmentByProjectIdNetworkSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdNetworkSwarmPostgreUnion$outboundSchema.parse( - environmentByProjectIdNetworkSwarmPostgreUnion, - ), - ); -} - export function environmentByProjectIdNetworkSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10431,59 +4960,6 @@ export const EnvironmentByProjectIdPostgreNetworkSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdPostgreNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdPostgreNetworkSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPostgreNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPostgreNetworkSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgreNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdPostgreNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgreNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgreNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPostgreNetworkSwarmUnion$Outbound; -} - -export function environmentByProjectIdPostgreNetworkSwarmUnionToJSON( - environmentByProjectIdPostgreNetworkSwarmUnion: - EnvironmentByProjectIdPostgreNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgreNetworkSwarmUnion$outboundSchema.parse( - environmentByProjectIdPostgreNetworkSwarmUnion, - ), - ); -} - export function environmentByProjectIdPostgreNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10505,24 +4981,6 @@ export const EnvironmentByProjectIdPlacementSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdPlacementSwarmPostgreEnum); -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdPlacementSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdPlacementSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -10536,53 +4994,6 @@ export const EnvironmentByProjectIdPlacementSwarmPostgreUnion$inboundSchema: EnvironmentByProjectIdPlacementSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdPlacementSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPlacementSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPlacementSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPlacementSwarmPostgreUnion$Outbound; -} - -export function environmentByProjectIdPlacementSwarmPostgreUnionToJSON( - environmentByProjectIdPlacementSwarmPostgreUnion: - EnvironmentByProjectIdPlacementSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPlacementSwarmPostgreUnion$outboundSchema.parse( - environmentByProjectIdPlacementSwarmPostgreUnion, - ), - ); -} - export function environmentByProjectIdPlacementSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10616,59 +5027,6 @@ export const EnvironmentByProjectIdPostgrePlacementSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdPostgrePlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdPostgrePlacementSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPostgrePlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPostgrePlacementSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgrePlacementSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdPostgrePlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgrePlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgrePlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgrePlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgrePlacementSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPostgrePlacementSwarmUnion$Outbound; -} - -export function environmentByProjectIdPostgrePlacementSwarmUnionToJSON( - environmentByProjectIdPostgrePlacementSwarmUnion: - EnvironmentByProjectIdPostgrePlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgrePlacementSwarmUnion$outboundSchema.parse( - environmentByProjectIdPostgrePlacementSwarmUnion, - ), - ); -} - export function environmentByProjectIdPostgrePlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10690,24 +5048,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z.nativeEnum(EnvironmentByProjectIdRestartPolicySwarmPostgreEnum); -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$inboundSchema: z.ZodType< @@ -10721,53 +5061,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$inboundSchema: EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRestartPolicySwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$Outbound; -} - -export function environmentByProjectIdRestartPolicySwarmPostgreUnionToJSON( - environmentByProjectIdRestartPolicySwarmPostgreUnion: - EnvironmentByProjectIdRestartPolicySwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRestartPolicySwarmPostgreUnion$outboundSchema.parse( - environmentByProjectIdRestartPolicySwarmPostgreUnion, - ), - ); -} - export function environmentByProjectIdRestartPolicySwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10801,59 +5094,6 @@ export const EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPostgreRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$Outbound; -} - -export function environmentByProjectIdPostgreRestartPolicySwarmUnionToJSON( - environmentByProjectIdPostgreRestartPolicySwarmUnion: - EnvironmentByProjectIdPostgreRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgreRestartPolicySwarmUnion$outboundSchema.parse( - environmentByProjectIdPostgreRestartPolicySwarmUnion, - ), - ); -} - export function environmentByProjectIdPostgreRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10875,24 +5115,6 @@ export const EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z.nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum); -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -10906,139 +5128,39 @@ export const EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$inboundSchema EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$Outbound; -} - -export function environmentByProjectIdRollbackConfigSwarmPostgreUnionToJSON( - environmentByProjectIdRollbackConfigSwarmPostgreUnion: - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$outboundSchema.parse( - environmentByProjectIdRollbackConfigSwarmPostgreUnion, - ), - ); -} - -export function environmentByProjectIdRollbackConfigSwarmPostgreUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$inboundSchema: - z.ZodType< - EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; +export function environmentByProjectIdRollbackConfigSwarmPostgreUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdRollbackConfigSwarmPostgreUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$outboundSchema: +export const EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$inboundSchema: z.ZodType< - EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$Outbound, + EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion, z.ZodTypeDef, - EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion + unknown > = z.union([ z.union([ z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdPostgreRollbackConfigSwarmUnionToJSON( - environmentByProjectIdPostgreRollbackConfigSwarmUnion: - EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgreRollbackConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdPostgreRollbackConfigSwarmUnion, - ), - ); -} - export function environmentByProjectIdPostgreRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -11060,24 +5182,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum); -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -11091,53 +5195,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$inboundSchema: EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$Outbound; -} - -export function environmentByProjectIdUpdateConfigSwarmPostgreUnionToJSON( - environmentByProjectIdUpdateConfigSwarmPostgreUnion: - EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdUpdateConfigSwarmPostgreUnion$outboundSchema.parse( - environmentByProjectIdUpdateConfigSwarmPostgreUnion, - ), - ); -} - export function environmentByProjectIdUpdateConfigSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -11166,262 +5223,36 @@ export const EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$inboundSchema: z.number(), z.boolean(), EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdPostgreUpdateConfigSwarmUnionToJSON( - environmentByProjectIdPostgreUpdateConfigSwarmUnion: - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdPostgreUpdateConfigSwarmUnion, - ), - ); -} - -export function environmentByProjectIdPostgreUpdateConfigSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdPostgre$inboundSchema: z.ZodType< - EnvironmentByProjectIdPostgre, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - applicationStatus: - EnvironmentByProjectIdPostgreApplicationStatus$inboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), -}); - -/** @internal */ -export type EnvironmentByProjectIdPostgre$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - postgresId: string; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; + ]), + z.array(z.any()), + z.record(z.any()), + ]); + +export function environmentByProjectIdPostgreUpdateConfigSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdPostgreUpdateConfigSwarmUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< - EnvironmentByProjectIdPostgre$Outbound, +export const EnvironmentByProjectIdPostgre$inboundSchema: z.ZodType< + EnvironmentByProjectIdPostgre, z.ZodTypeDef, - EnvironmentByProjectIdPostgre + unknown > = z.object({ appName: z.string(), applicationStatus: - EnvironmentByProjectIdPostgreApplicationStatus$outboundSchema, + EnvironmentByProjectIdPostgreApplicationStatus$inboundSchema, command: z.nullable(z.string()), cpuLimit: z.nullable(z.string()), cpuReservation: z.nullable(z.string()), @@ -11440,7 +5271,7 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdHealthCheckSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11452,7 +5283,7 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdLabelsSwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdLabelsSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11466,7 +5297,7 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdModeSwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdModeSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11479,7 +5310,7 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdNetworkSwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdNetworkSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11491,7 +5322,7 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdPlacementSwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdPlacementSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11505,7 +5336,7 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdRestartPolicySwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11517,7 +5348,7 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11530,7 +5361,7 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$outboundSchema, + EnvironmentByProjectIdUpdateConfigSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11538,29 +5369,6 @@ export const EnvironmentByProjectIdPostgre$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPostgre$ { - /** @deprecated use `EnvironmentByProjectIdPostgre$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdPostgre$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgre$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdPostgre$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPostgre$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdPostgre$Outbound; -} - -export function environmentByProjectIdPostgreToJSON( - environmentByProjectIdPostgre: EnvironmentByProjectIdPostgre, -): string { - return JSON.stringify( - EnvironmentByProjectIdPostgre$outboundSchema.parse( - environmentByProjectIdPostgre, - ), - ); -} - export function environmentByProjectIdPostgreFromJSON( jsonString: string, ): SafeParseResult { @@ -11585,53 +5393,6 @@ export const EnvironmentByProjectIdProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type EnvironmentByProjectIdProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const EnvironmentByProjectIdProject$outboundSchema: z.ZodType< - EnvironmentByProjectIdProject$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdProject$ { - /** @deprecated use `EnvironmentByProjectIdProject$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdProject$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdProject$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdProject$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdProject$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdProject$Outbound; -} - -export function environmentByProjectIdProjectToJSON( - environmentByProjectIdProject: EnvironmentByProjectIdProject, -): string { - return JSON.stringify( - EnvironmentByProjectIdProject$outboundSchema.parse( - environmentByProjectIdProject, - ), - ); -} - export function environmentByProjectIdProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -11647,47 +5408,11 @@ export const EnvironmentByProjectIdRediApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdRediApplicationStatus); -/** @internal */ -export const EnvironmentByProjectIdRediApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRediApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediApplicationStatus$ { - /** @deprecated use `EnvironmentByProjectIdRediApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdHealthCheckSwarmRediEnum); -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdHealthCheckSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmRediEnum$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdHealthCheckSwarmRediUnion$inboundSchema: z.ZodType< @@ -11701,53 +5426,6 @@ export const EnvironmentByProjectIdHealthCheckSwarmRediUnion$inboundSchema: EnvironmentByProjectIdHealthCheckSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdHealthCheckSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdHealthCheckSwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdHealthCheckSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdHealthCheckSwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdHealthCheckSwarmRediUnion$ { - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdHealthCheckSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdHealthCheckSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdHealthCheckSwarmRediUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdHealthCheckSwarmRediUnion$Outbound; -} - -export function environmentByProjectIdHealthCheckSwarmRediUnionToJSON( - environmentByProjectIdHealthCheckSwarmRediUnion: - EnvironmentByProjectIdHealthCheckSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdHealthCheckSwarmRediUnion$outboundSchema.parse( - environmentByProjectIdHealthCheckSwarmRediUnion, - ), - ); -} - export function environmentByProjectIdHealthCheckSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -11781,59 +5459,6 @@ export const EnvironmentByProjectIdRediHealthCheckSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdRediHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdRediHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRediHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRediHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdRediHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRediHealthCheckSwarmUnion$Outbound; -} - -export function environmentByProjectIdRediHealthCheckSwarmUnionToJSON( - environmentByProjectIdRediHealthCheckSwarmUnion: - EnvironmentByProjectIdRediHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRediHealthCheckSwarmUnion$outboundSchema.parse( - environmentByProjectIdRediHealthCheckSwarmUnion, - ), - ); -} - export function environmentByProjectIdRediHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -11855,24 +5480,6 @@ export const EnvironmentByProjectIdLabelsSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdLabelsSwarmRediEnum); -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdLabelsSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmRediEnum$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdLabelsSwarmRediUnion$inboundSchema: z.ZodType = @@ -11883,52 +5490,6 @@ export const EnvironmentByProjectIdLabelsSwarmRediUnion$inboundSchema: EnvironmentByProjectIdLabelsSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdLabelsSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdLabelsSwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdLabelsSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdLabelsSwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdLabelsSwarmRediUnion$ { - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdLabelsSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdLabelsSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdLabelsSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdLabelsSwarmRediUnion$Outbound; -} - -export function environmentByProjectIdLabelsSwarmRediUnionToJSON( - environmentByProjectIdLabelsSwarmRediUnion: - EnvironmentByProjectIdLabelsSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdLabelsSwarmRediUnion$outboundSchema.parse( - environmentByProjectIdLabelsSwarmRediUnion, - ), - ); -} - export function environmentByProjectIdLabelsSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -11959,58 +5520,6 @@ export const EnvironmentByProjectIdRediLabelsSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdRediLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdRediLabelsSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRediLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRediLabelsSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdRediLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdRediLabelsSwarmUnion$Outbound; -} - -export function environmentByProjectIdRediLabelsSwarmUnionToJSON( - environmentByProjectIdRediLabelsSwarmUnion: - EnvironmentByProjectIdRediLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRediLabelsSwarmUnion$outboundSchema.parse( - environmentByProjectIdRediLabelsSwarmUnion, - ), - ); -} - export function environmentByProjectIdRediLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12032,24 +5541,6 @@ export const EnvironmentByProjectIdModeSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdModeSwarmRediEnum); -/** @internal */ -export const EnvironmentByProjectIdModeSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdModeSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmRediEnum$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdModeSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentByProjectIdModeSwarmRediUnion, @@ -12062,134 +5553,38 @@ export const EnvironmentByProjectIdModeSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentByProjectIdModeSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdModeSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdModeSwarmRediUnion$outboundSchema: z.ZodType< - EnvironmentByProjectIdModeSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdModeSwarmRediUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmRediEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdModeSwarmRediUnion$ { - /** @deprecated use `EnvironmentByProjectIdModeSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdModeSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdModeSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdModeSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdModeSwarmRediUnion$Outbound; -} - -export function environmentByProjectIdModeSwarmRediUnionToJSON( - environmentByProjectIdModeSwarmRediUnion: - EnvironmentByProjectIdModeSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdModeSwarmRediUnion$outboundSchema.parse( - environmentByProjectIdModeSwarmRediUnion, - ), - ); -} - export function environmentByProjectIdModeSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< - EnvironmentByProjectIdModeSwarmRediUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentByProjectIdModeSwarmRediUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentByProjectIdModeSwarmRediUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentByProjectIdRediModeSwarmUnion$inboundSchema: z.ZodType< - EnvironmentByProjectIdRediModeSwarmUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmRediEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentByProjectIdRediModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; + EnvironmentByProjectIdModeSwarmRediUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentByProjectIdModeSwarmRediUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentByProjectIdModeSwarmRediUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentByProjectIdRediModeSwarmUnion$outboundSchema: z.ZodType< - EnvironmentByProjectIdRediModeSwarmUnion$Outbound, +export const EnvironmentByProjectIdRediModeSwarmUnion$inboundSchema: z.ZodType< + EnvironmentByProjectIdRediModeSwarmUnion, z.ZodTypeDef, - EnvironmentByProjectIdRediModeSwarmUnion + unknown > = z.union([ z.union([ z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdModeSwarmRediEnum$outboundSchema, + EnvironmentByProjectIdModeSwarmRediEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediModeSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdRediModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdRediModeSwarmUnion$Outbound; -} - -export function environmentByProjectIdRediModeSwarmUnionToJSON( - environmentByProjectIdRediModeSwarmUnion: - EnvironmentByProjectIdRediModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRediModeSwarmUnion$outboundSchema.parse( - environmentByProjectIdRediModeSwarmUnion, - ), - ); -} - export function environmentByProjectIdRediModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12211,24 +5606,6 @@ export const EnvironmentByProjectIdNetworkSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdNetworkSwarmRediEnum); -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdNetworkSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmRediEnum$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdNetworkSwarmRediUnion$inboundSchema: z.ZodType< @@ -12242,52 +5619,6 @@ export const EnvironmentByProjectIdNetworkSwarmRediUnion$inboundSchema: EnvironmentByProjectIdNetworkSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdNetworkSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdNetworkSwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdNetworkSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdNetworkSwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdNetworkSwarmRediUnion$ { - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdNetworkSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdNetworkSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdNetworkSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdNetworkSwarmRediUnion$Outbound; -} - -export function environmentByProjectIdNetworkSwarmRediUnionToJSON( - environmentByProjectIdNetworkSwarmRediUnion: - EnvironmentByProjectIdNetworkSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdNetworkSwarmRediUnion$outboundSchema.parse( - environmentByProjectIdNetworkSwarmRediUnion, - ), - ); -} - export function environmentByProjectIdNetworkSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12321,58 +5652,6 @@ export const EnvironmentByProjectIdRediNetworkSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdRediNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdRediNetworkSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRediNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRediNetworkSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdRediNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdRediNetworkSwarmUnion$Outbound; -} - -export function environmentByProjectIdRediNetworkSwarmUnionToJSON( - environmentByProjectIdRediNetworkSwarmUnion: - EnvironmentByProjectIdRediNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRediNetworkSwarmUnion$outboundSchema.parse( - environmentByProjectIdRediNetworkSwarmUnion, - ), - ); -} - export function environmentByProjectIdRediNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12394,24 +5673,6 @@ export const EnvironmentByProjectIdPlacementSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdPlacementSwarmRediEnum); -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdPlacementSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmRediEnum$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdPlacementSwarmRediUnion$inboundSchema: z.ZodType< @@ -12425,52 +5686,6 @@ export const EnvironmentByProjectIdPlacementSwarmRediUnion$inboundSchema: EnvironmentByProjectIdPlacementSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdPlacementSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdPlacementSwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdPlacementSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdPlacementSwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdPlacementSwarmRediUnion$ { - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdPlacementSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdPlacementSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdPlacementSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdPlacementSwarmRediUnion$Outbound; -} - -export function environmentByProjectIdPlacementSwarmRediUnionToJSON( - environmentByProjectIdPlacementSwarmRediUnion: - EnvironmentByProjectIdPlacementSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdPlacementSwarmRediUnion$outboundSchema.parse( - environmentByProjectIdPlacementSwarmRediUnion, - ), - ); -} - export function environmentByProjectIdPlacementSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12504,58 +5719,6 @@ export const EnvironmentByProjectIdRediPlacementSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdRediPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdRediPlacementSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRediPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRediPlacementSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdRediPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdRediPlacementSwarmUnion$Outbound; -} - -export function environmentByProjectIdRediPlacementSwarmUnionToJSON( - environmentByProjectIdRediPlacementSwarmUnion: - EnvironmentByProjectIdRediPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRediPlacementSwarmUnion$outboundSchema.parse( - environmentByProjectIdRediPlacementSwarmUnion, - ), - ); -} - export function environmentByProjectIdRediPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12577,24 +5740,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdRestartPolicySwarmRediEnum); -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRestartPolicySwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmRediEnum$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRestartPolicySwarmRediUnion$inboundSchema: z.ZodType< @@ -12608,53 +5753,6 @@ export const EnvironmentByProjectIdRestartPolicySwarmRediUnion$inboundSchema: EnvironmentByProjectIdRestartPolicySwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRestartPolicySwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRestartPolicySwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRestartPolicySwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRestartPolicySwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRestartPolicySwarmRediUnion$ { - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRestartPolicySwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRestartPolicySwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRestartPolicySwarmRediUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRestartPolicySwarmRediUnion$Outbound; -} - -export function environmentByProjectIdRestartPolicySwarmRediUnionToJSON( - environmentByProjectIdRestartPolicySwarmRediUnion: - EnvironmentByProjectIdRestartPolicySwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRestartPolicySwarmRediUnion$outboundSchema.parse( - environmentByProjectIdRestartPolicySwarmRediUnion, - ), - ); -} - export function environmentByProjectIdRestartPolicySwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12688,59 +5786,6 @@ export const EnvironmentByProjectIdRediRestartPolicySwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdRediRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdRediRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRediRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRediRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdRediRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRediRestartPolicySwarmUnion$Outbound; -} - -export function environmentByProjectIdRediRestartPolicySwarmUnionToJSON( - environmentByProjectIdRediRestartPolicySwarmUnion: - EnvironmentByProjectIdRediRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRediRestartPolicySwarmUnion$outboundSchema.parse( - environmentByProjectIdRediRestartPolicySwarmUnion, - ), - ); -} - export function environmentByProjectIdRediRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12762,24 +5807,6 @@ export const EnvironmentByProjectIdRollbackConfigSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdRollbackConfigSwarmRediEnum); -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdRollbackConfigSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmRediEnum$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdRollbackConfigSwarmRediUnion$inboundSchema: z.ZodType< @@ -12793,53 +5820,6 @@ export const EnvironmentByProjectIdRollbackConfigSwarmRediUnion$inboundSchema: EnvironmentByProjectIdRollbackConfigSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdRollbackConfigSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdRollbackConfigSwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRollbackConfigSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRollbackConfigSwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRollbackConfigSwarmRediUnion$ { - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRollbackConfigSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRollbackConfigSwarmRediUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRollbackConfigSwarmRediUnion$Outbound; -} - -export function environmentByProjectIdRollbackConfigSwarmRediUnionToJSON( - environmentByProjectIdRollbackConfigSwarmRediUnion: - EnvironmentByProjectIdRollbackConfigSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRollbackConfigSwarmRediUnion$outboundSchema.parse( - environmentByProjectIdRollbackConfigSwarmRediUnion, - ), - ); -} - export function environmentByProjectIdRollbackConfigSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12867,65 +5847,12 @@ export const EnvironmentByProjectIdRediRollbackConfigSwarmUnion$inboundSchema: z.string(), z.number(), z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmRediEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentByProjectIdRediRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdRediRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRediRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRediRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmRediEnum$outboundSchema, + EnvironmentByProjectIdRollbackConfigSwarmRediEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdRediRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRediRollbackConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdRediRollbackConfigSwarmUnionToJSON( - environmentByProjectIdRediRollbackConfigSwarmUnion: - EnvironmentByProjectIdRediRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRediRollbackConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdRediRollbackConfigSwarmUnion, - ), - ); -} - export function environmentByProjectIdRediRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12947,24 +5874,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentByProjectIdUpdateConfigSwarmRediEnum); -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentByProjectIdUpdateConfigSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmRediEnum$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentByProjectIdUpdateConfigSwarmRediUnion$inboundSchema: z.ZodType< @@ -12978,53 +5887,6 @@ export const EnvironmentByProjectIdUpdateConfigSwarmRediUnion$inboundSchema: EnvironmentByProjectIdUpdateConfigSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentByProjectIdUpdateConfigSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentByProjectIdUpdateConfigSwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdUpdateConfigSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdUpdateConfigSwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdUpdateConfigSwarmRediUnion$ { - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdUpdateConfigSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdUpdateConfigSwarmRediUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdUpdateConfigSwarmRediUnion$Outbound; -} - -export function environmentByProjectIdUpdateConfigSwarmRediUnionToJSON( - environmentByProjectIdUpdateConfigSwarmRediUnion: - EnvironmentByProjectIdUpdateConfigSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdUpdateConfigSwarmRediUnion$outboundSchema.parse( - environmentByProjectIdUpdateConfigSwarmRediUnion, - ), - ); -} - export function environmentByProjectIdUpdateConfigSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -13058,59 +5920,6 @@ export const EnvironmentByProjectIdRediUpdateConfigSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentByProjectIdRediUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentByProjectIdRediUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentByProjectIdRediUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRediUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRediUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentByProjectIdRediUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentByProjectIdRediUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdRediUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRediUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentByProjectIdRediUpdateConfigSwarmUnion$Outbound; -} - -export function environmentByProjectIdRediUpdateConfigSwarmUnionToJSON( - environmentByProjectIdRediUpdateConfigSwarmUnion: - EnvironmentByProjectIdRediUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentByProjectIdRediUpdateConfigSwarmUnion$outboundSchema.parse( - environmentByProjectIdRediUpdateConfigSwarmUnion, - ), - ); -} - export function environmentByProjectIdRediUpdateConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -13249,195 +6058,6 @@ export const EnvironmentByProjectIdRedi$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type EnvironmentByProjectIdRedi$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - redisId: string; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; - -/** @internal */ -export const EnvironmentByProjectIdRedi$outboundSchema: z.ZodType< - EnvironmentByProjectIdRedi$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdRedi -> = z.object({ - appName: z.string(), - applicationStatus: EnvironmentByProjectIdRediApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdHealthCheckSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdLabelsSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdModeSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdNetworkSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdPlacementSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRestartPolicySwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdRollbackConfigSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentByProjectIdUpdateConfigSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdRedi$ { - /** @deprecated use `EnvironmentByProjectIdRedi$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdRedi$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdRedi$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdRedi$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdRedi$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdRedi$Outbound; -} - -export function environmentByProjectIdRediToJSON( - environmentByProjectIdRedi: EnvironmentByProjectIdRedi, -): string { - return JSON.stringify( - EnvironmentByProjectIdRedi$outboundSchema.parse(environmentByProjectIdRedi), - ); -} - export function environmentByProjectIdRediFromJSON( jsonString: string, ): SafeParseResult { @@ -13472,72 +6092,6 @@ export const EnvironmentByProjectIdResponseBody$inboundSchema: z.ZodType< redis: z.array(z.lazy(() => EnvironmentByProjectIdRedi$inboundSchema)), }); -/** @internal */ -export type EnvironmentByProjectIdResponseBody$Outbound = { - applications: Array; - compose: Array; - createdAt: string; - description: string | null; - env: string; - environmentId: string; - mariadb: Array; - mongo: Array; - mysql: Array; - name: string; - postgres: Array; - project: EnvironmentByProjectIdProject$Outbound; - projectId: string; - redis: Array; -}; - -/** @internal */ -export const EnvironmentByProjectIdResponseBody$outboundSchema: z.ZodType< - EnvironmentByProjectIdResponseBody$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdResponseBody -> = z.object({ - applications: z.array( - z.lazy(() => EnvironmentByProjectIdApplication$outboundSchema), - ), - compose: z.array(z.lazy(() => EnvironmentByProjectIdCompose$outboundSchema)), - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - mariadb: z.array(z.lazy(() => EnvironmentByProjectIdMariadb$outboundSchema)), - mongo: z.array(z.lazy(() => EnvironmentByProjectIdMongo$outboundSchema)), - mysql: z.array(z.lazy(() => EnvironmentByProjectIdMysql$outboundSchema)), - name: z.string(), - postgres: z.array(z.lazy(() => EnvironmentByProjectIdPostgre$outboundSchema)), - project: z.lazy(() => EnvironmentByProjectIdProject$outboundSchema), - projectId: z.string(), - redis: z.array(z.lazy(() => EnvironmentByProjectIdRedi$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdResponseBody$ { - /** @deprecated use `EnvironmentByProjectIdResponseBody$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdResponseBody$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdResponseBody$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentByProjectIdResponseBody$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdResponseBody$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdResponseBody$Outbound; -} - -export function environmentByProjectIdResponseBodyToJSON( - environmentByProjectIdResponseBody: EnvironmentByProjectIdResponseBody, -): string { - return JSON.stringify( - EnvironmentByProjectIdResponseBody$outboundSchema.parse( - environmentByProjectIdResponseBody, - ), - ); -} - export function environmentByProjectIdResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -13559,44 +6113,6 @@ export const EnvironmentByProjectIdResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => EnvironmentByProjectIdResponseBody$inboundSchema)), ]); -/** @internal */ -export type EnvironmentByProjectIdResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const EnvironmentByProjectIdResponse$outboundSchema: z.ZodType< - EnvironmentByProjectIdResponse$Outbound, - z.ZodTypeDef, - EnvironmentByProjectIdResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => EnvironmentByProjectIdResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentByProjectIdResponse$ { - /** @deprecated use `EnvironmentByProjectIdResponse$inboundSchema` instead. */ - export const inboundSchema = EnvironmentByProjectIdResponse$inboundSchema; - /** @deprecated use `EnvironmentByProjectIdResponse$outboundSchema` instead. */ - export const outboundSchema = EnvironmentByProjectIdResponse$outboundSchema; - /** @deprecated use `EnvironmentByProjectIdResponse$Outbound` instead. */ - export type Outbound = EnvironmentByProjectIdResponse$Outbound; -} - -export function environmentByProjectIdResponseToJSON( - environmentByProjectIdResponse: EnvironmentByProjectIdResponse, -): string { - return JSON.stringify( - EnvironmentByProjectIdResponse$outboundSchema.parse( - environmentByProjectIdResponse, - ), - ); -} - export function environmentByProjectIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/environmentcreate.ts b/src/models/operations/environmentcreate.ts index 6569407..7732cd2 100644 --- a/src/models/operations/environmentcreate.ts +++ b/src/models/operations/environmentcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -30,17 +30,6 @@ export type EnvironmentCreateResponse = | EnvironmentCreateResponseBody | models.ErrorT; -/** @internal */ -export const EnvironmentCreateRequest$inboundSchema: z.ZodType< - EnvironmentCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - name: z.string(), - projectId: z.string(), -}); - /** @internal */ export type EnvironmentCreateRequest$Outbound = { description?: string | null | undefined; @@ -59,19 +48,6 @@ export const EnvironmentCreateRequest$outboundSchema: z.ZodType< projectId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentCreateRequest$ { - /** @deprecated use `EnvironmentCreateRequest$inboundSchema` instead. */ - export const inboundSchema = EnvironmentCreateRequest$inboundSchema; - /** @deprecated use `EnvironmentCreateRequest$outboundSchema` instead. */ - export const outboundSchema = EnvironmentCreateRequest$outboundSchema; - /** @deprecated use `EnvironmentCreateRequest$Outbound` instead. */ - export type Outbound = EnvironmentCreateRequest$Outbound; -} - export function environmentCreateRequestToJSON( environmentCreateRequest: EnvironmentCreateRequest, ): string { @@ -80,16 +56,6 @@ export function environmentCreateRequestToJSON( ); } -export function environmentCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentCreateRequest' from JSON`, - ); -} - /** @internal */ export const EnvironmentCreateResponseBody$inboundSchema: z.ZodType< EnvironmentCreateResponseBody, @@ -104,53 +70,6 @@ export const EnvironmentCreateResponseBody$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type EnvironmentCreateResponseBody$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - projectId: string; -}; - -/** @internal */ -export const EnvironmentCreateResponseBody$outboundSchema: z.ZodType< - EnvironmentCreateResponseBody$Outbound, - z.ZodTypeDef, - EnvironmentCreateResponseBody -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentCreateResponseBody$ { - /** @deprecated use `EnvironmentCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = EnvironmentCreateResponseBody$inboundSchema; - /** @deprecated use `EnvironmentCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = EnvironmentCreateResponseBody$outboundSchema; - /** @deprecated use `EnvironmentCreateResponseBody$Outbound` instead. */ - export type Outbound = EnvironmentCreateResponseBody$Outbound; -} - -export function environmentCreateResponseBodyToJSON( - environmentCreateResponseBody: EnvironmentCreateResponseBody, -): string { - return JSON.stringify( - EnvironmentCreateResponseBody$outboundSchema.parse( - environmentCreateResponseBody, - ), - ); -} - export function environmentCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -171,42 +90,6 @@ export const EnvironmentCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type EnvironmentCreateResponse$Outbound = - | EnvironmentCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const EnvironmentCreateResponse$outboundSchema: z.ZodType< - EnvironmentCreateResponse$Outbound, - z.ZodTypeDef, - EnvironmentCreateResponse -> = z.union([ - z.lazy(() => EnvironmentCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentCreateResponse$ { - /** @deprecated use `EnvironmentCreateResponse$inboundSchema` instead. */ - export const inboundSchema = EnvironmentCreateResponse$inboundSchema; - /** @deprecated use `EnvironmentCreateResponse$outboundSchema` instead. */ - export const outboundSchema = EnvironmentCreateResponse$outboundSchema; - /** @deprecated use `EnvironmentCreateResponse$Outbound` instead. */ - export type Outbound = EnvironmentCreateResponse$Outbound; -} - -export function environmentCreateResponseToJSON( - environmentCreateResponse: EnvironmentCreateResponse, -): string { - return JSON.stringify( - EnvironmentCreateResponse$outboundSchema.parse(environmentCreateResponse), - ); -} - export function environmentCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/environmentduplicate.ts b/src/models/operations/environmentduplicate.ts index 48db494..27ddc0f 100644 --- a/src/models/operations/environmentduplicate.ts +++ b/src/models/operations/environmentduplicate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -30,17 +30,6 @@ export type EnvironmentDuplicateResponse = | EnvironmentDuplicateResponseBody | models.ErrorT; -/** @internal */ -export const EnvironmentDuplicateRequest$inboundSchema: z.ZodType< - EnvironmentDuplicateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - environmentId: z.string(), - name: z.string(), -}); - /** @internal */ export type EnvironmentDuplicateRequest$Outbound = { description?: string | null | undefined; @@ -59,19 +48,6 @@ export const EnvironmentDuplicateRequest$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentDuplicateRequest$ { - /** @deprecated use `EnvironmentDuplicateRequest$inboundSchema` instead. */ - export const inboundSchema = EnvironmentDuplicateRequest$inboundSchema; - /** @deprecated use `EnvironmentDuplicateRequest$outboundSchema` instead. */ - export const outboundSchema = EnvironmentDuplicateRequest$outboundSchema; - /** @deprecated use `EnvironmentDuplicateRequest$Outbound` instead. */ - export type Outbound = EnvironmentDuplicateRequest$Outbound; -} - export function environmentDuplicateRequestToJSON( environmentDuplicateRequest: EnvironmentDuplicateRequest, ): string { @@ -82,16 +58,6 @@ export function environmentDuplicateRequestToJSON( ); } -export function environmentDuplicateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentDuplicateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentDuplicateRequest' from JSON`, - ); -} - /** @internal */ export const EnvironmentDuplicateResponseBody$inboundSchema: z.ZodType< EnvironmentDuplicateResponseBody, @@ -106,53 +72,6 @@ export const EnvironmentDuplicateResponseBody$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type EnvironmentDuplicateResponseBody$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - projectId: string; -}; - -/** @internal */ -export const EnvironmentDuplicateResponseBody$outboundSchema: z.ZodType< - EnvironmentDuplicateResponseBody$Outbound, - z.ZodTypeDef, - EnvironmentDuplicateResponseBody -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentDuplicateResponseBody$ { - /** @deprecated use `EnvironmentDuplicateResponseBody$inboundSchema` instead. */ - export const inboundSchema = EnvironmentDuplicateResponseBody$inboundSchema; - /** @deprecated use `EnvironmentDuplicateResponseBody$outboundSchema` instead. */ - export const outboundSchema = EnvironmentDuplicateResponseBody$outboundSchema; - /** @deprecated use `EnvironmentDuplicateResponseBody$Outbound` instead. */ - export type Outbound = EnvironmentDuplicateResponseBody$Outbound; -} - -export function environmentDuplicateResponseBodyToJSON( - environmentDuplicateResponseBody: EnvironmentDuplicateResponseBody, -): string { - return JSON.stringify( - EnvironmentDuplicateResponseBody$outboundSchema.parse( - environmentDuplicateResponseBody, - ), - ); -} - export function environmentDuplicateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -173,44 +92,6 @@ export const EnvironmentDuplicateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type EnvironmentDuplicateResponse$Outbound = - | EnvironmentDuplicateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const EnvironmentDuplicateResponse$outboundSchema: z.ZodType< - EnvironmentDuplicateResponse$Outbound, - z.ZodTypeDef, - EnvironmentDuplicateResponse -> = z.union([ - z.lazy(() => EnvironmentDuplicateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentDuplicateResponse$ { - /** @deprecated use `EnvironmentDuplicateResponse$inboundSchema` instead. */ - export const inboundSchema = EnvironmentDuplicateResponse$inboundSchema; - /** @deprecated use `EnvironmentDuplicateResponse$outboundSchema` instead. */ - export const outboundSchema = EnvironmentDuplicateResponse$outboundSchema; - /** @deprecated use `EnvironmentDuplicateResponse$Outbound` instead. */ - export type Outbound = EnvironmentDuplicateResponse$Outbound; -} - -export function environmentDuplicateResponseToJSON( - environmentDuplicateResponse: EnvironmentDuplicateResponse, -): string { - return JSON.stringify( - EnvironmentDuplicateResponse$outboundSchema.parse( - environmentDuplicateResponse, - ), - ); -} - export function environmentDuplicateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/environmentone.ts b/src/models/operations/environmentone.ts index 0061a18..866ba45 100644 --- a/src/models/operations/environmentone.ts +++ b/src/models/operations/environmentone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -1820,15 +1820,6 @@ export type EnvironmentOneResponseBody = { export type EnvironmentOneResponse = EnvironmentOneResponseBody | models.ErrorT; -/** @internal */ -export const EnvironmentOneRequest$inboundSchema: z.ZodType< - EnvironmentOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - environmentId: z.string(), -}); - /** @internal */ export type EnvironmentOneRequest$Outbound = { environmentId: string; @@ -1843,19 +1834,6 @@ export const EnvironmentOneRequest$outboundSchema: z.ZodType< environmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRequest$ { - /** @deprecated use `EnvironmentOneRequest$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneRequest$inboundSchema; - /** @deprecated use `EnvironmentOneRequest$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneRequest$outboundSchema; - /** @deprecated use `EnvironmentOneRequest$Outbound` instead. */ - export type Outbound = EnvironmentOneRequest$Outbound; -} - export function environmentOneRequestToJSON( environmentOneRequest: EnvironmentOneRequest, ): string { @@ -1864,83 +1842,21 @@ export function environmentOneRequestToJSON( ); } -export function environmentOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneRequest' from JSON`, - ); -} - /** @internal */ export const EnvironmentOneApplicationApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneApplicationApplicationStatus); -/** @internal */ -export const EnvironmentOneApplicationApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneApplicationApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationApplicationStatus$ { - /** @deprecated use `EnvironmentOneApplicationApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentOneBuildType$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneBuildType > = z.nativeEnum(EnvironmentOneBuildType); -/** @internal */ -export const EnvironmentOneBuildType$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneBuildType -> = EnvironmentOneBuildType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneBuildType$ { - /** @deprecated use `EnvironmentOneBuildType$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneBuildType$inboundSchema; - /** @deprecated use `EnvironmentOneBuildType$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneBuildType$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneHealthCheckSwarmApplicationEnum); -/** @internal */ -export const EnvironmentOneHealthCheckSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneHealthCheckSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -1954,53 +1870,6 @@ export const EnvironmentOneHealthCheckSwarmApplicationUnion$inboundSchema: EnvironmentOneHealthCheckSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneHealthCheckSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentOneHealthCheckSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneHealthCheckSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentOneHealthCheckSwarmApplicationUnion$Outbound; -} - -export function environmentOneHealthCheckSwarmApplicationUnionToJSON( - environmentOneHealthCheckSwarmApplicationUnion: - EnvironmentOneHealthCheckSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentOneHealthCheckSwarmApplicationUnion$outboundSchema.parse( - environmentOneHealthCheckSwarmApplicationUnion, - ), - ); -} - export function environmentOneHealthCheckSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2034,59 +1903,6 @@ export const EnvironmentOneApplicationHealthCheckSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneApplicationHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneApplicationHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneApplicationHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneApplicationHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentOneApplicationHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneApplicationHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentOneApplicationHealthCheckSwarmUnion$Outbound; -} - -export function environmentOneApplicationHealthCheckSwarmUnionToJSON( - environmentOneApplicationHealthCheckSwarmUnion: - EnvironmentOneApplicationHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneApplicationHealthCheckSwarmUnion$outboundSchema.parse( - environmentOneApplicationHealthCheckSwarmUnion, - ), - ); -} - export function environmentOneApplicationHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2108,24 +1924,6 @@ export const EnvironmentOneLabelsSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneLabelsSwarmApplicationEnum); -/** @internal */ -export const EnvironmentOneLabelsSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneLabelsSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentOneLabelsSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneLabelsSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneLabelsSwarmApplicationUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmApplicationUnion, @@ -2138,52 +1936,6 @@ export const EnvironmentOneLabelsSwarmApplicationUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneLabelsSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneLabelsSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentOneLabelsSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneLabelsSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentOneLabelsSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneLabelsSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneLabelsSwarmApplicationUnion$Outbound; -} - -export function environmentOneLabelsSwarmApplicationUnionToJSON( - environmentOneLabelsSwarmApplicationUnion: - EnvironmentOneLabelsSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentOneLabelsSwarmApplicationUnion$outboundSchema.parse( - environmentOneLabelsSwarmApplicationUnion, - ), - ); -} - export function environmentOneLabelsSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2216,58 +1968,6 @@ export const EnvironmentOneApplicationLabelsSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneApplicationLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneApplicationLabelsSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneApplicationLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneApplicationLabelsSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentOneApplicationLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneApplicationLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneApplicationLabelsSwarmUnion$Outbound; -} - -export function environmentOneApplicationLabelsSwarmUnionToJSON( - environmentOneApplicationLabelsSwarmUnion: - EnvironmentOneApplicationLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneApplicationLabelsSwarmUnion$outboundSchema.parse( - environmentOneApplicationLabelsSwarmUnion, - ), - ); -} - export function environmentOneApplicationLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2290,24 +1990,6 @@ export const EnvironmentOneModeSwarmApplicationEnum$inboundSchema: EnvironmentOneModeSwarmApplicationEnum, ); -/** @internal */ -export const EnvironmentOneModeSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneModeSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentOneModeSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneModeSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneModeSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneModeSwarmApplicationUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmApplicationUnion, @@ -2320,51 +2002,6 @@ export const EnvironmentOneModeSwarmApplicationUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneModeSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneModeSwarmApplicationUnion$outboundSchema: z.ZodType< - EnvironmentOneModeSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneModeSwarmApplicationUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmApplicationEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentOneModeSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneModeSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneModeSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneModeSwarmApplicationUnion$Outbound; -} - -export function environmentOneModeSwarmApplicationUnionToJSON( - environmentOneModeSwarmApplicationUnion: - EnvironmentOneModeSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentOneModeSwarmApplicationUnion$outboundSchema.parse( - environmentOneModeSwarmApplicationUnion, - ), - ); -} - export function environmentOneModeSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2397,57 +2034,6 @@ export const EnvironmentOneApplicationModeSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneApplicationModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneApplicationModeSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneApplicationModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneApplicationModeSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationModeSwarmUnion$ { - /** @deprecated use `EnvironmentOneApplicationModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneApplicationModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneApplicationModeSwarmUnion$Outbound; -} - -export function environmentOneApplicationModeSwarmUnionToJSON( - environmentOneApplicationModeSwarmUnion: - EnvironmentOneApplicationModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneApplicationModeSwarmUnion$outboundSchema.parse( - environmentOneApplicationModeSwarmUnion, - ), - ); -} - export function environmentOneApplicationModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2469,24 +2055,6 @@ export const EnvironmentOneNetworkSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneNetworkSwarmApplicationEnum); -/** @internal */ -export const EnvironmentOneNetworkSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneNetworkSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentOneNetworkSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneNetworkSwarmApplicationUnion$inboundSchema: z.ZodType = @@ -2497,52 +2065,6 @@ export const EnvironmentOneNetworkSwarmApplicationUnion$inboundSchema: EnvironmentOneNetworkSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneNetworkSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneNetworkSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentOneNetworkSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneNetworkSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentOneNetworkSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneNetworkSwarmApplicationUnion$Outbound; -} - -export function environmentOneNetworkSwarmApplicationUnionToJSON( - environmentOneNetworkSwarmApplicationUnion: - EnvironmentOneNetworkSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentOneNetworkSwarmApplicationUnion$outboundSchema.parse( - environmentOneNetworkSwarmApplicationUnion, - ), - ); -} - export function environmentOneNetworkSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2572,98 +2094,28 @@ export const EnvironmentOneApplicationNetworkSwarmUnion$inboundSchema: z.array(z.any()), z.record(z.any()), ]); - -/** @internal */ -export type EnvironmentOneApplicationNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneApplicationNetworkSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneApplicationNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneApplicationNetworkSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentOneApplicationNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneApplicationNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneApplicationNetworkSwarmUnion$Outbound; -} - -export function environmentOneApplicationNetworkSwarmUnionToJSON( - environmentOneApplicationNetworkSwarmUnion: - EnvironmentOneApplicationNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneApplicationNetworkSwarmUnion$outboundSchema.parse( - environmentOneApplicationNetworkSwarmUnion, - ), - ); -} - -export function environmentOneApplicationNetworkSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOneApplicationNetworkSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOneApplicationNetworkSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneApplicationNetworkSwarmUnion' from JSON`, - ); -} + +export function environmentOneApplicationNetworkSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneApplicationNetworkSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneApplicationNetworkSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneApplicationNetworkSwarmUnion' from JSON`, + ); +} /** @internal */ export const EnvironmentOnePlacementSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOnePlacementSwarmApplicationEnum); -/** @internal */ -export const EnvironmentOnePlacementSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOnePlacementSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentOnePlacementSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOnePlacementSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -2677,52 +2129,6 @@ export const EnvironmentOnePlacementSwarmApplicationUnion$inboundSchema: EnvironmentOnePlacementSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOnePlacementSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOnePlacementSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentOnePlacementSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePlacementSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentOnePlacementSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePlacementSwarmApplicationUnion$Outbound; -} - -export function environmentOnePlacementSwarmApplicationUnionToJSON( - environmentOnePlacementSwarmApplicationUnion: - EnvironmentOnePlacementSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentOnePlacementSwarmApplicationUnion$outboundSchema.parse( - environmentOnePlacementSwarmApplicationUnion, - ), - ); -} - export function environmentOnePlacementSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2756,58 +2162,6 @@ export const EnvironmentOneApplicationPlacementSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneApplicationPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneApplicationPlacementSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneApplicationPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneApplicationPlacementSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentOneApplicationPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneApplicationPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneApplicationPlacementSwarmUnion$Outbound; -} - -export function environmentOneApplicationPlacementSwarmUnionToJSON( - environmentOneApplicationPlacementSwarmUnion: - EnvironmentOneApplicationPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneApplicationPlacementSwarmUnion$outboundSchema.parse( - environmentOneApplicationPlacementSwarmUnion, - ), - ); -} - export function environmentOneApplicationPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2830,47 +2184,11 @@ export const EnvironmentOnePreviewCertificateType$inboundSchema: EnvironmentOnePreviewCertificateType, ); -/** @internal */ -export const EnvironmentOnePreviewCertificateType$outboundSchema: - z.ZodNativeEnum = - EnvironmentOnePreviewCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePreviewCertificateType$ { - /** @deprecated use `EnvironmentOnePreviewCertificateType$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePreviewCertificateType$inboundSchema; - /** @deprecated use `EnvironmentOnePreviewCertificateType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePreviewCertificateType$outboundSchema; -} - /** @internal */ export const EnvironmentOneRestartPolicySwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRestartPolicySwarmApplicationEnum); -/** @internal */ -export const EnvironmentOneRestartPolicySwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRestartPolicySwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmApplicationEnum$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRestartPolicySwarmApplicationUnion$inboundSchema: z.ZodType< @@ -2884,53 +2202,6 @@ export const EnvironmentOneRestartPolicySwarmApplicationUnion$inboundSchema: EnvironmentOneRestartPolicySwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneRestartPolicySwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentOneRestartPolicySwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRestartPolicySwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmApplicationUnion$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentOneRestartPolicySwarmApplicationUnion$Outbound; -} - -export function environmentOneRestartPolicySwarmApplicationUnionToJSON( - environmentOneRestartPolicySwarmApplicationUnion: - EnvironmentOneRestartPolicySwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentOneRestartPolicySwarmApplicationUnion$outboundSchema.parse( - environmentOneRestartPolicySwarmApplicationUnion, - ), - ); -} - export function environmentOneRestartPolicySwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2964,59 +2235,6 @@ export const EnvironmentOneApplicationRestartPolicySwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneApplicationRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneApplicationRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneApplicationRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneApplicationRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentOneApplicationRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneApplicationRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentOneApplicationRestartPolicySwarmUnion$Outbound; -} - -export function environmentOneApplicationRestartPolicySwarmUnionToJSON( - environmentOneApplicationRestartPolicySwarmUnion: - EnvironmentOneApplicationRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneApplicationRestartPolicySwarmUnion$outboundSchema.parse( - environmentOneApplicationRestartPolicySwarmUnion, - ), - ); -} - export function environmentOneApplicationRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3038,24 +2256,6 @@ export const EnvironmentOneRollbackConfigSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRollbackConfigSwarmApplicationEnum); -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRollbackConfigSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRollbackConfigSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -3069,53 +2269,6 @@ export const EnvironmentOneRollbackConfigSwarmApplicationUnion$inboundSchema: EnvironmentOneRollbackConfigSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneRollbackConfigSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentOneRollbackConfigSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRollbackConfigSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentOneRollbackConfigSwarmApplicationUnion$Outbound; -} - -export function environmentOneRollbackConfigSwarmApplicationUnionToJSON( - environmentOneRollbackConfigSwarmApplicationUnion: - EnvironmentOneRollbackConfigSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentOneRollbackConfigSwarmApplicationUnion$outboundSchema.parse( - environmentOneRollbackConfigSwarmApplicationUnion, - ), - ); -} - export function environmentOneRollbackConfigSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3149,59 +2302,6 @@ export const EnvironmentOneApplicationRollbackConfigSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneApplicationRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneApplicationRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneApplicationRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneApplicationRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneApplicationRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneApplicationRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentOneApplicationRollbackConfigSwarmUnion$Outbound; -} - -export function environmentOneApplicationRollbackConfigSwarmUnionToJSON( - environmentOneApplicationRollbackConfigSwarmUnion: - EnvironmentOneApplicationRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneApplicationRollbackConfigSwarmUnion$outboundSchema.parse( - environmentOneApplicationRollbackConfigSwarmUnion, - ), - ); -} - export function environmentOneApplicationRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3223,71 +2323,17 @@ export const EnvironmentOneApplicationSourceType$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneApplicationSourceType > = z.nativeEnum(EnvironmentOneApplicationSourceType); -/** @internal */ -export const EnvironmentOneApplicationSourceType$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneApplicationSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationSourceType$ { - /** @deprecated use `EnvironmentOneApplicationSourceType$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationSourceType$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationSourceType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationSourceType$outboundSchema; -} - /** @internal */ export const EnvironmentOneApplicationTriggerType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( EnvironmentOneApplicationTriggerType, ); -/** @internal */ -export const EnvironmentOneApplicationTriggerType$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneApplicationTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationTriggerType$ { - /** @deprecated use `EnvironmentOneApplicationTriggerType$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationTriggerType$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationTriggerType$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationTriggerType$outboundSchema; -} - /** @internal */ export const EnvironmentOneUpdateConfigSwarmApplicationEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneUpdateConfigSwarmApplicationEnum); -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmApplicationEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneUpdateConfigSwarmApplicationEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmApplicationEnum$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmApplicationEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmApplicationEnum$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmApplicationEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmApplicationEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneUpdateConfigSwarmApplicationUnion$inboundSchema: z.ZodType< @@ -3301,53 +2347,6 @@ export const EnvironmentOneUpdateConfigSwarmApplicationUnion$inboundSchema: EnvironmentOneUpdateConfigSwarmApplicationEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneUpdateConfigSwarmApplicationUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmApplicationUnion$outboundSchema: - z.ZodType< - EnvironmentOneUpdateConfigSwarmApplicationUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneUpdateConfigSwarmApplicationUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmApplicationEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmApplicationUnion$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmApplicationUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmApplicationUnion$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmApplicationUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmApplicationUnion$outboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmApplicationUnion$Outbound` instead. */ - export type Outbound = - EnvironmentOneUpdateConfigSwarmApplicationUnion$Outbound; -} - -export function environmentOneUpdateConfigSwarmApplicationUnionToJSON( - environmentOneUpdateConfigSwarmApplicationUnion: - EnvironmentOneUpdateConfigSwarmApplicationUnion, -): string { - return JSON.stringify( - EnvironmentOneUpdateConfigSwarmApplicationUnion$outboundSchema.parse( - environmentOneUpdateConfigSwarmApplicationUnion, - ), - ); -} - export function environmentOneUpdateConfigSwarmApplicationUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3381,59 +2380,6 @@ export const EnvironmentOneApplicationUpdateConfigSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneApplicationUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneApplicationUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneApplicationUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneApplicationUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplicationUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneApplicationUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneApplicationUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneApplicationUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneApplicationUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneApplicationUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = - EnvironmentOneApplicationUpdateConfigSwarmUnion$Outbound; -} - -export function environmentOneApplicationUpdateConfigSwarmUnionToJSON( - environmentOneApplicationUpdateConfigSwarmUnion: - EnvironmentOneApplicationUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneApplicationUpdateConfigSwarmUnion$outboundSchema.parse( - environmentOneApplicationUpdateConfigSwarmUnion, - ), - ); -} - export function environmentOneApplicationUpdateConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -3633,1946 +2579,435 @@ export const EnvironmentOneApplication$inboundSchema: z.ZodType< watchPaths: z.nullable(z.array(z.string())), }); +export function environmentOneApplicationFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EnvironmentOneApplication$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneApplication' from JSON`, + ); +} + /** @internal */ -export type EnvironmentOneApplication$Outbound = { - appName: string; - applicationId: string; - applicationStatus: string; - autoDeploy: boolean | null; - bitbucketBranch: string | null; - bitbucketBuildPath: string | null; - bitbucketId: string | null; - bitbucketOwner: string | null; - bitbucketRepository: string | null; - branch: string | null; - buildArgs: string | null; - buildPath: string | null; - buildType: string; - cleanCache: boolean | null; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - customGitBranch: string | null; - customGitBuildPath: string | null; - customGitSSHKeyId: string | null; - customGitUrl: string | null; - description: string | null; - dockerBuildStage: string | null; - dockerContextPath: string | null; - dockerImage: string | null; - dockerfile: string | null; - dropBuildPath: string | null; - enableSubmodules: boolean; - enabled: boolean | null; - env: string | null; - environmentId: string; - giteaBranch: string | null; - giteaBuildPath: string | null; - giteaId: string | null; - giteaOwner: string | null; - giteaRepository: string | null; - githubId: string | null; - gitlabBranch: string | null; - gitlabBuildPath: string | null; - gitlabId: string | null; - gitlabOwner: string | null; - gitlabPathNamespace: string | null; - gitlabProjectId: number | null; - gitlabRepository: string | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - herokuVersion: string | null; - isPreviewDeploymentsActive: boolean | null; - isStaticSpa: boolean | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - owner: string | null; - password: string | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - previewBuildArgs: string | null; - previewCertificateType: string; - previewCustomCertResolver: string | null; - previewEnv: string | null; - previewHttps: boolean; - previewLabels: Array | null; - previewLimit: number | null; - previewPath: string | null; - previewPort: number | null; - previewRequireCollaboratorPermissions: boolean | null; - previewWildcard: string | null; - publishDirectory: string | null; - railpackVersion: string | null; - refreshToken: string | null; - registryId: string | null; - registryUrl: string | null; - replicas: number; - repository: string | null; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackActive: boolean | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - sourceType: string; - subtitle: string | null; - title: string | null; - triggerType: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - username: string | null; - watchPaths: Array | null; -}; +export const EnvironmentOneComposeStatus$inboundSchema: z.ZodNativeEnum< + typeof EnvironmentOneComposeStatus +> = z.nativeEnum(EnvironmentOneComposeStatus); + +/** @internal */ +export const EnvironmentOneComposeType$inboundSchema: z.ZodNativeEnum< + typeof EnvironmentOneComposeType +> = z.nativeEnum(EnvironmentOneComposeType); + +/** @internal */ +export const EnvironmentOneComposeSourceType$inboundSchema: z.ZodNativeEnum< + typeof EnvironmentOneComposeSourceType +> = z.nativeEnum(EnvironmentOneComposeSourceType); + +/** @internal */ +export const EnvironmentOneComposeTriggerType$inboundSchema: z.ZodNativeEnum< + typeof EnvironmentOneComposeTriggerType +> = z.nativeEnum(EnvironmentOneComposeTriggerType); /** @internal */ -export const EnvironmentOneApplication$outboundSchema: z.ZodType< - EnvironmentOneApplication$Outbound, +export const EnvironmentOneCompose$inboundSchema: z.ZodType< + EnvironmentOneCompose, z.ZodTypeDef, - EnvironmentOneApplication + unknown > = z.object({ appName: z.string(), - applicationId: z.string(), - applicationStatus: EnvironmentOneApplicationApplicationStatus$outboundSchema, autoDeploy: z.nullable(z.boolean()), bitbucketBranch: z.nullable(z.string()), - bitbucketBuildPath: z.nullable(z.string()), bitbucketId: z.nullable(z.string()), bitbucketOwner: z.nullable(z.string()), bitbucketRepository: z.nullable(z.string()), branch: z.nullable(z.string()), - buildArgs: z.nullable(z.string()), - buildPath: z.nullable(z.string()), - buildType: EnvironmentOneBuildType$outboundSchema, - cleanCache: z.nullable(z.boolean()), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), + command: z.string(), + composeFile: z.string(), + composeId: z.string(), + composePath: z.string(), + composeStatus: EnvironmentOneComposeStatus$inboundSchema, + composeType: EnvironmentOneComposeType$inboundSchema, createdAt: z.string(), customGitBranch: z.nullable(z.string()), - customGitBuildPath: z.nullable(z.string()), customGitSSHKeyId: z.nullable(z.string()), customGitUrl: z.nullable(z.string()), description: z.nullable(z.string()), - dockerBuildStage: z.nullable(z.string()), - dockerContextPath: z.nullable(z.string()), - dockerImage: z.nullable(z.string()), - dockerfile: z.nullable(z.string()), - dropBuildPath: z.nullable(z.string()), enableSubmodules: z.boolean(), - enabled: z.nullable(z.boolean()), env: z.nullable(z.string()), environmentId: z.string(), giteaBranch: z.nullable(z.string()), - giteaBuildPath: z.nullable(z.string()), giteaId: z.nullable(z.string()), giteaOwner: z.nullable(z.string()), giteaRepository: z.nullable(z.string()), githubId: z.nullable(z.string()), gitlabBranch: z.nullable(z.string()), - gitlabBuildPath: z.nullable(z.string()), gitlabId: z.nullable(z.string()), gitlabOwner: z.nullable(z.string()), gitlabPathNamespace: z.nullable(z.string()), gitlabProjectId: z.nullable(z.number()), gitlabRepository: z.nullable(z.string()), - healthCheckSwarm: z.nullable( + isolatedDeployment: z.boolean(), + isolatedDeploymentsVolume: z.boolean(), + name: z.string(), + owner: z.nullable(z.string()), + randomize: z.boolean(), + refreshToken: z.nullable(z.string()), + repository: z.nullable(z.string()), + serverId: z.nullable(z.string()), + sourceType: EnvironmentOneComposeSourceType$inboundSchema, + suffix: z.string(), + triggerType: z.nullable(EnvironmentOneComposeTriggerType$inboundSchema), + watchPaths: z.nullable(z.array(z.string())), +}); + +export function environmentOneComposeFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EnvironmentOneCompose$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneCompose' from JSON`, + ); +} + +/** @internal */ +export const EnvironmentOneMariadbApplicationStatus$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + EnvironmentOneMariadbApplicationStatus, + ); + +/** @internal */ +export const EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentOneHealthCheckSwarmMariadbEnum); + +/** @internal */ +export const EnvironmentOneHealthCheckSwarmMariadbUnion$inboundSchema: + z.ZodType = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - herokuVersion: z.nullable(z.string()), - isPreviewDeploymentsActive: z.nullable(z.boolean()), - isStaticSpa: z.nullable(z.boolean()), - labelsSwarm: z.nullable( + z.string(), + z.number(), + z.boolean(), + EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema, + ]); + +export function environmentOneHealthCheckSwarmMariadbUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneHealthCheckSwarmMariadbUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneHealthCheckSwarmMariadbUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneHealthCheckSwarmMariadbUnion' from JSON`, + ); +} + +/** @internal */ +export const EnvironmentOneMariadbHealthCheckSwarmUnion$inboundSchema: + z.ZodType = z.union([ z.union([ z.string(), z.number(), z.boolean(), - EnvironmentOneLabelsSwarmApplicationEnum$outboundSchema, + EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - owner: z.nullable(z.string()), - password: z.nullable(z.string()), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - previewBuildArgs: z.nullable(z.string()), - previewCertificateType: EnvironmentOnePreviewCertificateType$outboundSchema, - previewCustomCertResolver: z.nullable(z.string()), - previewEnv: z.nullable(z.string()), - previewHttps: z.boolean(), - previewLabels: z.nullable(z.array(z.string())), - previewLimit: z.nullable(z.number()), - previewPath: z.nullable(z.string()), - previewPort: z.nullable(z.number()), - previewRequireCollaboratorPermissions: z.nullable(z.boolean()), - previewWildcard: z.nullable(z.string()), - publishDirectory: z.nullable(z.string()), - railpackVersion: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - registryId: z.nullable(z.string()), - registryUrl: z.nullable(z.string()), - replicas: z.number(), - repository: z.nullable(z.string()), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackActive: z.nullable(z.boolean()), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - sourceType: EnvironmentOneApplicationSourceType$outboundSchema, - subtitle: z.nullable(z.string()), - title: z.nullable(z.string()), - triggerType: z.nullable(EnvironmentOneApplicationTriggerType$outboundSchema), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmApplicationEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - username: z.nullable(z.string()), - watchPaths: z.nullable(z.array(z.string())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneApplication$ { - /** @deprecated use `EnvironmentOneApplication$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneApplication$inboundSchema; - /** @deprecated use `EnvironmentOneApplication$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneApplication$outboundSchema; - /** @deprecated use `EnvironmentOneApplication$Outbound` instead. */ - export type Outbound = EnvironmentOneApplication$Outbound; -} - -export function environmentOneApplicationToJSON( - environmentOneApplication: EnvironmentOneApplication, -): string { - return JSON.stringify( - EnvironmentOneApplication$outboundSchema.parse(environmentOneApplication), - ); -} - -export function environmentOneApplicationFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentOneApplication$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneApplication' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneComposeStatus$inboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneComposeStatus -> = z.nativeEnum(EnvironmentOneComposeStatus); - -/** @internal */ -export const EnvironmentOneComposeStatus$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneComposeStatus -> = EnvironmentOneComposeStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneComposeStatus$ { - /** @deprecated use `EnvironmentOneComposeStatus$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneComposeStatus$inboundSchema; - /** @deprecated use `EnvironmentOneComposeStatus$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneComposeStatus$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneComposeType$inboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneComposeType -> = z.nativeEnum(EnvironmentOneComposeType); - -/** @internal */ -export const EnvironmentOneComposeType$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneComposeType -> = EnvironmentOneComposeType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneComposeType$ { - /** @deprecated use `EnvironmentOneComposeType$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneComposeType$inboundSchema; - /** @deprecated use `EnvironmentOneComposeType$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneComposeType$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneComposeSourceType$inboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneComposeSourceType -> = z.nativeEnum(EnvironmentOneComposeSourceType); - -/** @internal */ -export const EnvironmentOneComposeSourceType$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneComposeSourceType -> = EnvironmentOneComposeSourceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneComposeSourceType$ { - /** @deprecated use `EnvironmentOneComposeSourceType$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneComposeSourceType$inboundSchema; - /** @deprecated use `EnvironmentOneComposeSourceType$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneComposeSourceType$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneComposeTriggerType$inboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneComposeTriggerType -> = z.nativeEnum(EnvironmentOneComposeTriggerType); - -/** @internal */ -export const EnvironmentOneComposeTriggerType$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneComposeTriggerType -> = EnvironmentOneComposeTriggerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneComposeTriggerType$ { - /** @deprecated use `EnvironmentOneComposeTriggerType$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneComposeTriggerType$inboundSchema; - /** @deprecated use `EnvironmentOneComposeTriggerType$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneComposeTriggerType$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneCompose$inboundSchema: z.ZodType< - EnvironmentOneCompose, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - autoDeploy: z.nullable(z.boolean()), - bitbucketBranch: z.nullable(z.string()), - bitbucketId: z.nullable(z.string()), - bitbucketOwner: z.nullable(z.string()), - bitbucketRepository: z.nullable(z.string()), - branch: z.nullable(z.string()), - command: z.string(), - composeFile: z.string(), - composeId: z.string(), - composePath: z.string(), - composeStatus: EnvironmentOneComposeStatus$inboundSchema, - composeType: EnvironmentOneComposeType$inboundSchema, - createdAt: z.string(), - customGitBranch: z.nullable(z.string()), - customGitSSHKeyId: z.nullable(z.string()), - customGitUrl: z.nullable(z.string()), - description: z.nullable(z.string()), - enableSubmodules: z.boolean(), - env: z.nullable(z.string()), - environmentId: z.string(), - giteaBranch: z.nullable(z.string()), - giteaId: z.nullable(z.string()), - giteaOwner: z.nullable(z.string()), - giteaRepository: z.nullable(z.string()), - githubId: z.nullable(z.string()), - gitlabBranch: z.nullable(z.string()), - gitlabId: z.nullable(z.string()), - gitlabOwner: z.nullable(z.string()), - gitlabPathNamespace: z.nullable(z.string()), - gitlabProjectId: z.nullable(z.number()), - gitlabRepository: z.nullable(z.string()), - isolatedDeployment: z.boolean(), - isolatedDeploymentsVolume: z.boolean(), - name: z.string(), - owner: z.nullable(z.string()), - randomize: z.boolean(), - refreshToken: z.nullable(z.string()), - repository: z.nullable(z.string()), - serverId: z.nullable(z.string()), - sourceType: EnvironmentOneComposeSourceType$inboundSchema, - suffix: z.string(), - triggerType: z.nullable(EnvironmentOneComposeTriggerType$inboundSchema), - watchPaths: z.nullable(z.array(z.string())), -}); - -/** @internal */ -export type EnvironmentOneCompose$Outbound = { - appName: string; - autoDeploy: boolean | null; - bitbucketBranch: string | null; - bitbucketId: string | null; - bitbucketOwner: string | null; - bitbucketRepository: string | null; - branch: string | null; - command: string; - composeFile: string; - composeId: string; - composePath: string; - composeStatus: string; - composeType: string; - createdAt: string; - customGitBranch: string | null; - customGitSSHKeyId: string | null; - customGitUrl: string | null; - description: string | null; - enableSubmodules: boolean; - env: string | null; - environmentId: string; - giteaBranch: string | null; - giteaId: string | null; - giteaOwner: string | null; - giteaRepository: string | null; - githubId: string | null; - gitlabBranch: string | null; - gitlabId: string | null; - gitlabOwner: string | null; - gitlabPathNamespace: string | null; - gitlabProjectId: number | null; - gitlabRepository: string | null; - isolatedDeployment: boolean; - isolatedDeploymentsVolume: boolean; - name: string; - owner: string | null; - randomize: boolean; - refreshToken: string | null; - repository: string | null; - serverId: string | null; - sourceType: string; - suffix: string; - triggerType: string | null; - watchPaths: Array | null; -}; - -/** @internal */ -export const EnvironmentOneCompose$outboundSchema: z.ZodType< - EnvironmentOneCompose$Outbound, - z.ZodTypeDef, - EnvironmentOneCompose -> = z.object({ - appName: z.string(), - autoDeploy: z.nullable(z.boolean()), - bitbucketBranch: z.nullable(z.string()), - bitbucketId: z.nullable(z.string()), - bitbucketOwner: z.nullable(z.string()), - bitbucketRepository: z.nullable(z.string()), - branch: z.nullable(z.string()), - command: z.string(), - composeFile: z.string(), - composeId: z.string(), - composePath: z.string(), - composeStatus: EnvironmentOneComposeStatus$outboundSchema, - composeType: EnvironmentOneComposeType$outboundSchema, - createdAt: z.string(), - customGitBranch: z.nullable(z.string()), - customGitSSHKeyId: z.nullable(z.string()), - customGitUrl: z.nullable(z.string()), - description: z.nullable(z.string()), - enableSubmodules: z.boolean(), - env: z.nullable(z.string()), - environmentId: z.string(), - giteaBranch: z.nullable(z.string()), - giteaId: z.nullable(z.string()), - giteaOwner: z.nullable(z.string()), - giteaRepository: z.nullable(z.string()), - githubId: z.nullable(z.string()), - gitlabBranch: z.nullable(z.string()), - gitlabId: z.nullable(z.string()), - gitlabOwner: z.nullable(z.string()), - gitlabPathNamespace: z.nullable(z.string()), - gitlabProjectId: z.nullable(z.number()), - gitlabRepository: z.nullable(z.string()), - isolatedDeployment: z.boolean(), - isolatedDeploymentsVolume: z.boolean(), - name: z.string(), - owner: z.nullable(z.string()), - randomize: z.boolean(), - refreshToken: z.nullable(z.string()), - repository: z.nullable(z.string()), - serverId: z.nullable(z.string()), - sourceType: EnvironmentOneComposeSourceType$outboundSchema, - suffix: z.string(), - triggerType: z.nullable(EnvironmentOneComposeTriggerType$outboundSchema), - watchPaths: z.nullable(z.array(z.string())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneCompose$ { - /** @deprecated use `EnvironmentOneCompose$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneCompose$inboundSchema; - /** @deprecated use `EnvironmentOneCompose$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneCompose$outboundSchema; - /** @deprecated use `EnvironmentOneCompose$Outbound` instead. */ - export type Outbound = EnvironmentOneCompose$Outbound; -} - -export function environmentOneComposeToJSON( - environmentOneCompose: EnvironmentOneCompose, -): string { - return JSON.stringify( - EnvironmentOneCompose$outboundSchema.parse(environmentOneCompose), - ); -} - -export function environmentOneComposeFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentOneCompose$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneCompose' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMariadbApplicationStatus$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - EnvironmentOneMariadbApplicationStatus, - ); - -/** @internal */ -export const EnvironmentOneMariadbApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneMariadbApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbApplicationStatus$ { - /** @deprecated use `EnvironmentOneMariadbApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbApplicationStatus$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentOneHealthCheckSwarmMariadbEnum); - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmMariadbEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmMariadbUnion$inboundSchema: - z.ZodType = - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema, - ]); - -/** @internal */ -export type EnvironmentOneHealthCheckSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentOneHealthCheckSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneHealthCheckSwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMariadbEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneHealthCheckSwarmMariadbUnion$Outbound; -} - -export function environmentOneHealthCheckSwarmMariadbUnionToJSON( - environmentOneHealthCheckSwarmMariadbUnion: - EnvironmentOneHealthCheckSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentOneHealthCheckSwarmMariadbUnion$outboundSchema.parse( - environmentOneHealthCheckSwarmMariadbUnion, - ), - ); -} - -export function environmentOneHealthCheckSwarmMariadbUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOneHealthCheckSwarmMariadbUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOneHealthCheckSwarmMariadbUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneHealthCheckSwarmMariadbUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMariadbHealthCheckSwarmUnion$inboundSchema: - z.ZodType = - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentOneMariadbHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMariadbHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneMariadbHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMariadbHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentOneMariadbHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMariadbHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadbHealthCheckSwarmUnion$Outbound; -} - -export function environmentOneMariadbHealthCheckSwarmUnionToJSON( - environmentOneMariadbHealthCheckSwarmUnion: - EnvironmentOneMariadbHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMariadbHealthCheckSwarmUnion$outboundSchema.parse( - environmentOneMariadbHealthCheckSwarmUnion, - ), - ); -} - -export function environmentOneMariadbHealthCheckSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOneMariadbHealthCheckSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOneMariadbHealthCheckSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneMariadbHealthCheckSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - EnvironmentOneLabelsSwarmMariadbEnum, - ); - -/** @internal */ -export const EnvironmentOneLabelsSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmMariadbEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneLabelsSwarmMariadbUnion$inboundSchema: z.ZodType< - EnvironmentOneLabelsSwarmMariadbUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema, -]); - -/** @internal */ -export type EnvironmentOneLabelsSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneLabelsSwarmMariadbUnion$outboundSchema: z.ZodType< - EnvironmentOneLabelsSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneLabelsSwarmMariadbUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMariadbEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentOneLabelsSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneLabelsSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneLabelsSwarmMariadbUnion$Outbound; -} - -export function environmentOneLabelsSwarmMariadbUnionToJSON( - environmentOneLabelsSwarmMariadbUnion: EnvironmentOneLabelsSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentOneLabelsSwarmMariadbUnion$outboundSchema.parse( - environmentOneLabelsSwarmMariadbUnion, - ), - ); -} - -export function environmentOneLabelsSwarmMariadbUnionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EnvironmentOneLabelsSwarmMariadbUnion$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneLabelsSwarmMariadbUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMariadbLabelsSwarmUnion$inboundSchema: z.ZodType< - EnvironmentOneMariadbLabelsSwarmUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentOneMariadbLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMariadbLabelsSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMariadbLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMariadbLabelsSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentOneMariadbLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMariadbLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadbLabelsSwarmUnion$Outbound; -} - -export function environmentOneMariadbLabelsSwarmUnionToJSON( - environmentOneMariadbLabelsSwarmUnion: EnvironmentOneMariadbLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMariadbLabelsSwarmUnion$outboundSchema.parse( - environmentOneMariadbLabelsSwarmUnion, - ), - ); -} - -export function environmentOneMariadbLabelsSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EnvironmentOneMariadbLabelsSwarmUnion$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneMariadbLabelsSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneModeSwarmMariadbEnum$inboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneModeSwarmMariadbEnum -> = z.nativeEnum(EnvironmentOneModeSwarmMariadbEnum); - -/** @internal */ -export const EnvironmentOneModeSwarmMariadbEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneModeSwarmMariadbEnum -> = EnvironmentOneModeSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentOneModeSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneModeSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneModeSwarmMariadbEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneModeSwarmMariadbUnion$inboundSchema: z.ZodType< - EnvironmentOneModeSwarmMariadbUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMariadbEnum$inboundSchema, -]); - -/** @internal */ -export type EnvironmentOneModeSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneModeSwarmMariadbUnion$outboundSchema: z.ZodType< - EnvironmentOneModeSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneModeSwarmMariadbUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMariadbEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentOneModeSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneModeSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneModeSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneModeSwarmMariadbUnion$Outbound; -} - -export function environmentOneModeSwarmMariadbUnionToJSON( - environmentOneModeSwarmMariadbUnion: EnvironmentOneModeSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentOneModeSwarmMariadbUnion$outboundSchema.parse( - environmentOneModeSwarmMariadbUnion, - ), - ); -} - -export function environmentOneModeSwarmMariadbUnionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EnvironmentOneModeSwarmMariadbUnion$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneModeSwarmMariadbUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMariadbModeSwarmUnion$inboundSchema: z.ZodType< - EnvironmentOneMariadbModeSwarmUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentOneMariadbModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMariadbModeSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMariadbModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMariadbModeSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbModeSwarmUnion$ { - /** @deprecated use `EnvironmentOneMariadbModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMariadbModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadbModeSwarmUnion$Outbound; -} - -export function environmentOneMariadbModeSwarmUnionToJSON( - environmentOneMariadbModeSwarmUnion: EnvironmentOneMariadbModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMariadbModeSwarmUnion$outboundSchema.parse( - environmentOneMariadbModeSwarmUnion, - ), - ); -} - -export function environmentOneMariadbModeSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EnvironmentOneMariadbModeSwarmUnion$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneMariadbModeSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - EnvironmentOneNetworkSwarmMariadbEnum, - ); - -/** @internal */ -export const EnvironmentOneNetworkSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmMariadbEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneNetworkSwarmMariadbUnion$inboundSchema: z.ZodType< - EnvironmentOneNetworkSwarmMariadbUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema, -]); - -/** @internal */ -export type EnvironmentOneNetworkSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneNetworkSwarmMariadbUnion$outboundSchema: z.ZodType< - EnvironmentOneNetworkSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneNetworkSwarmMariadbUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMariadbEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentOneNetworkSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneNetworkSwarmMariadbUnion$Outbound; -} - -export function environmentOneNetworkSwarmMariadbUnionToJSON( - environmentOneNetworkSwarmMariadbUnion: - EnvironmentOneNetworkSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentOneNetworkSwarmMariadbUnion$outboundSchema.parse( - environmentOneNetworkSwarmMariadbUnion, - ), - ); -} - -export function environmentOneNetworkSwarmMariadbUnionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EnvironmentOneNetworkSwarmMariadbUnion$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneNetworkSwarmMariadbUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMariadbNetworkSwarmUnion$inboundSchema: z.ZodType< - EnvironmentOneMariadbNetworkSwarmUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentOneMariadbNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMariadbNetworkSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMariadbNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMariadbNetworkSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentOneMariadbNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMariadbNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadbNetworkSwarmUnion$Outbound; -} - -export function environmentOneMariadbNetworkSwarmUnionToJSON( - environmentOneMariadbNetworkSwarmUnion: - EnvironmentOneMariadbNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMariadbNetworkSwarmUnion$outboundSchema.parse( - environmentOneMariadbNetworkSwarmUnion, - ), - ); -} - -export function environmentOneMariadbNetworkSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EnvironmentOneMariadbNetworkSwarmUnion$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneMariadbNetworkSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentOnePlacementSwarmMariadbEnum); - -/** @internal */ -export const EnvironmentOnePlacementSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmMariadbEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentOnePlacementSwarmMariadbUnion$inboundSchema: z.ZodType< - EnvironmentOnePlacementSwarmMariadbUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema, -]); - -/** @internal */ -export type EnvironmentOnePlacementSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOnePlacementSwarmMariadbUnion$outboundSchema: z.ZodType< - EnvironmentOnePlacementSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePlacementSwarmMariadbUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMariadbEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentOnePlacementSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePlacementSwarmMariadbUnion$Outbound; -} - -export function environmentOnePlacementSwarmMariadbUnionToJSON( - environmentOnePlacementSwarmMariadbUnion: - EnvironmentOnePlacementSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentOnePlacementSwarmMariadbUnion$outboundSchema.parse( - environmentOnePlacementSwarmMariadbUnion, - ), - ); -} - -export function environmentOnePlacementSwarmMariadbUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOnePlacementSwarmMariadbUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOnePlacementSwarmMariadbUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOnePlacementSwarmMariadbUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMariadbPlacementSwarmUnion$inboundSchema: z.ZodType< - EnvironmentOneMariadbPlacementSwarmUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentOneMariadbPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMariadbPlacementSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMariadbPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMariadbPlacementSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentOneMariadbPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMariadbPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadbPlacementSwarmUnion$Outbound; -} - -export function environmentOneMariadbPlacementSwarmUnionToJSON( - environmentOneMariadbPlacementSwarmUnion: - EnvironmentOneMariadbPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMariadbPlacementSwarmUnion$outboundSchema.parse( - environmentOneMariadbPlacementSwarmUnion, - ), - ); -} - -export function environmentOneMariadbPlacementSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOneMariadbPlacementSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOneMariadbPlacementSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneMariadbPlacementSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentOneRestartPolicySwarmMariadbEnum); - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmMariadbEnum$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmMariadbEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmMariadbUnion$inboundSchema: - z.ZodType< - EnvironmentOneRestartPolicySwarmMariadbUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema, - ]); - -/** @internal */ -export type EnvironmentOneRestartPolicySwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentOneRestartPolicySwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRestartPolicySwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMariadbEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmMariadbUnion$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRestartPolicySwarmMariadbUnion$Outbound; -} - -export function environmentOneRestartPolicySwarmMariadbUnionToJSON( - environmentOneRestartPolicySwarmMariadbUnion: - EnvironmentOneRestartPolicySwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentOneRestartPolicySwarmMariadbUnion$outboundSchema.parse( - environmentOneRestartPolicySwarmMariadbUnion, - ), - ); -} - -export function environmentOneRestartPolicySwarmMariadbUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOneRestartPolicySwarmMariadbUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOneRestartPolicySwarmMariadbUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneRestartPolicySwarmMariadbUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMariadbRestartPolicySwarmUnion$inboundSchema: - z.ZodType< - EnvironmentOneMariadbRestartPolicySwarmUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentOneMariadbRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMariadbRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneMariadbRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMariadbRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentOneMariadbRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMariadbRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadbRestartPolicySwarmUnion$Outbound; -} - -export function environmentOneMariadbRestartPolicySwarmUnionToJSON( - environmentOneMariadbRestartPolicySwarmUnion: - EnvironmentOneMariadbRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMariadbRestartPolicySwarmUnion$outboundSchema.parse( - environmentOneMariadbRestartPolicySwarmUnion, - ), - ); -} + ]); -export function environmentOneMariadbRestartPolicySwarmUnionFromJSON( +export function environmentOneMariadbHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< - EnvironmentOneMariadbRestartPolicySwarmUnion, + EnvironmentOneMariadbHealthCheckSwarmUnion, SDKValidationError > { return safeParse( jsonString, (x) => - EnvironmentOneMariadbRestartPolicySwarmUnion$inboundSchema.parse( + EnvironmentOneMariadbHealthCheckSwarmUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneMariadbRestartPolicySwarmUnion' from JSON`, + `Failed to parse 'EnvironmentOneMariadbHealthCheckSwarmUnion' from JSON`, ); } /** @internal */ -export const EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentOneRollbackConfigSwarmMariadbEnum); +export const EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + EnvironmentOneLabelsSwarmMariadbEnum, + ); /** @internal */ -export const EnvironmentOneRollbackConfigSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema; +export const EnvironmentOneLabelsSwarmMariadbUnion$inboundSchema: z.ZodType< + EnvironmentOneLabelsSwarmMariadbUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema, +]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmMariadbEnum$outboundSchema; +export function environmentOneLabelsSwarmMariadbUnionFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + EnvironmentOneLabelsSwarmMariadbUnion$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneLabelsSwarmMariadbUnion' from JSON`, + ); } /** @internal */ -export const EnvironmentOneRollbackConfigSwarmMariadbUnion$inboundSchema: - z.ZodType< - EnvironmentOneRollbackConfigSwarmMariadbUnion, - z.ZodTypeDef, - unknown - > = z.union([ +export const EnvironmentOneMariadbLabelsSwarmUnion$inboundSchema: z.ZodType< + EnvironmentOneMariadbLabelsSwarmUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.union([ z.string(), z.number(), z.boolean(), - EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema, - ]); + EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), +]); + +export function environmentOneMariadbLabelsSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + EnvironmentOneMariadbLabelsSwarmUnion$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneMariadbLabelsSwarmUnion' from JSON`, + ); +} /** @internal */ -export type EnvironmentOneRollbackConfigSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; +export const EnvironmentOneModeSwarmMariadbEnum$inboundSchema: z.ZodNativeEnum< + typeof EnvironmentOneModeSwarmMariadbEnum +> = z.nativeEnum(EnvironmentOneModeSwarmMariadbEnum); /** @internal */ -export const EnvironmentOneRollbackConfigSwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentOneRollbackConfigSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRollbackConfigSwarmMariadbUnion - > = z.union([ +export const EnvironmentOneModeSwarmMariadbUnion$inboundSchema: z.ZodType< + EnvironmentOneModeSwarmMariadbUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneModeSwarmMariadbEnum$inboundSchema, +]); + +export function environmentOneModeSwarmMariadbUnionFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + EnvironmentOneModeSwarmMariadbUnion$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneModeSwarmMariadbUnion' from JSON`, + ); +} + +/** @internal */ +export const EnvironmentOneMariadbModeSwarmUnion$inboundSchema: z.ZodType< + EnvironmentOneMariadbModeSwarmUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.union([ z.string(), z.number(), z.boolean(), - EnvironmentOneRollbackConfigSwarmMariadbEnum$outboundSchema, - ]); + EnvironmentOneModeSwarmMariadbEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), +]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRollbackConfigSwarmMariadbUnion$Outbound; +export function environmentOneMariadbModeSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + EnvironmentOneMariadbModeSwarmUnion$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneMariadbModeSwarmUnion' from JSON`, + ); } -export function environmentOneRollbackConfigSwarmMariadbUnionToJSON( - environmentOneRollbackConfigSwarmMariadbUnion: - EnvironmentOneRollbackConfigSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentOneRollbackConfigSwarmMariadbUnion$outboundSchema.parse( - environmentOneRollbackConfigSwarmMariadbUnion, - ), +/** @internal */ +export const EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + EnvironmentOneNetworkSwarmMariadbEnum, ); -} -export function environmentOneRollbackConfigSwarmMariadbUnionFromJSON( +/** @internal */ +export const EnvironmentOneNetworkSwarmMariadbUnion$inboundSchema: z.ZodType< + EnvironmentOneNetworkSwarmMariadbUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema, +]); + +export function environmentOneNetworkSwarmMariadbUnionFromJSON( jsonString: string, -): SafeParseResult< - EnvironmentOneRollbackConfigSwarmMariadbUnion, - SDKValidationError -> { +): SafeParseResult { return safeParse( jsonString, (x) => - EnvironmentOneRollbackConfigSwarmMariadbUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneRollbackConfigSwarmMariadbUnion' from JSON`, + EnvironmentOneNetworkSwarmMariadbUnion$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneNetworkSwarmMariadbUnion' from JSON`, ); } /** @internal */ -export const EnvironmentOneMariadbRollbackConfigSwarmUnion$inboundSchema: - z.ZodType< - EnvironmentOneMariadbRollbackConfigSwarmUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); +export const EnvironmentOneMariadbNetworkSwarmUnion$inboundSchema: z.ZodType< + EnvironmentOneMariadbNetworkSwarmUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), +]); -/** @internal */ -export type EnvironmentOneMariadbRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; +export function environmentOneMariadbNetworkSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + EnvironmentOneMariadbNetworkSwarmUnion$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneMariadbNetworkSwarmUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentOneMariadbRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneMariadbRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMariadbRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); +export const EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentOnePlacementSwarmMariadbEnum); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneMariadbRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMariadbRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadbRollbackConfigSwarmUnion$Outbound; -} +/** @internal */ +export const EnvironmentOnePlacementSwarmMariadbUnion$inboundSchema: z.ZodType< + EnvironmentOnePlacementSwarmMariadbUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema, +]); -export function environmentOneMariadbRollbackConfigSwarmUnionToJSON( - environmentOneMariadbRollbackConfigSwarmUnion: - EnvironmentOneMariadbRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMariadbRollbackConfigSwarmUnion$outboundSchema.parse( - environmentOneMariadbRollbackConfigSwarmUnion, - ), +export function environmentOnePlacementSwarmMariadbUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOnePlacementSwarmMariadbUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOnePlacementSwarmMariadbUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOnePlacementSwarmMariadbUnion' from JSON`, ); } -export function environmentOneMariadbRollbackConfigSwarmUnionFromJSON( +/** @internal */ +export const EnvironmentOneMariadbPlacementSwarmUnion$inboundSchema: z.ZodType< + EnvironmentOneMariadbPlacementSwarmUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), +]); + +export function environmentOneMariadbPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< - EnvironmentOneMariadbRollbackConfigSwarmUnion, + EnvironmentOneMariadbPlacementSwarmUnion, SDKValidationError > { return safeParse( jsonString, (x) => - EnvironmentOneMariadbRollbackConfigSwarmUnion$inboundSchema.parse( + EnvironmentOneMariadbPlacementSwarmUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneMariadbRollbackConfigSwarmUnion' from JSON`, + `Failed to parse 'EnvironmentOneMariadbPlacementSwarmUnion' from JSON`, ); } /** @internal */ -export const EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentOneUpdateConfigSwarmMariadbEnum); - -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmMariadbEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmMariadbEnum$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMariadbEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmMariadbEnum$outboundSchema; -} +export const EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentOneRestartPolicySwarmMariadbEnum); /** @internal */ -export const EnvironmentOneUpdateConfigSwarmMariadbUnion$inboundSchema: +export const EnvironmentOneRestartPolicySwarmMariadbUnion$inboundSchema: z.ZodType< - EnvironmentOneUpdateConfigSwarmMariadbUnion, + EnvironmentOneRestartPolicySwarmMariadbUnion, z.ZodTypeDef, unknown > = z.union([ z.string(), z.number(), z.boolean(), - EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema, - ]); - -/** @internal */ -export type EnvironmentOneUpdateConfigSwarmMariadbUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmMariadbUnion$outboundSchema: - z.ZodType< - EnvironmentOneUpdateConfigSwarmMariadbUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneUpdateConfigSwarmMariadbUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMariadbEnum$outboundSchema, + EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmMariadbUnion$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMariadbUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmMariadbUnion$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMariadbUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmMariadbUnion$outboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMariadbUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneUpdateConfigSwarmMariadbUnion$Outbound; -} - -export function environmentOneUpdateConfigSwarmMariadbUnionToJSON( - environmentOneUpdateConfigSwarmMariadbUnion: - EnvironmentOneUpdateConfigSwarmMariadbUnion, -): string { - return JSON.stringify( - EnvironmentOneUpdateConfigSwarmMariadbUnion$outboundSchema.parse( - environmentOneUpdateConfigSwarmMariadbUnion, - ), - ); -} - -export function environmentOneUpdateConfigSwarmMariadbUnionFromJSON( +export function environmentOneRestartPolicySwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< - EnvironmentOneUpdateConfigSwarmMariadbUnion, + EnvironmentOneRestartPolicySwarmMariadbUnion, SDKValidationError > { return safeParse( jsonString, (x) => - EnvironmentOneUpdateConfigSwarmMariadbUnion$inboundSchema.parse( + EnvironmentOneRestartPolicySwarmMariadbUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneUpdateConfigSwarmMariadbUnion' from JSON`, + `Failed to parse 'EnvironmentOneRestartPolicySwarmMariadbUnion' from JSON`, ); } /** @internal */ -export const EnvironmentOneMariadbUpdateConfigSwarmUnion$inboundSchema: +export const EnvironmentOneMariadbRestartPolicySwarmUnion$inboundSchema: z.ZodType< - EnvironmentOneMariadbUpdateConfigSwarmUnion, + EnvironmentOneMariadbRestartPolicySwarmUnion, z.ZodTypeDef, unknown > = z.union([ @@ -5580,262 +3015,170 @@ export const EnvironmentOneMariadbUpdateConfigSwarmUnion$inboundSchema: z.string(), z.number(), z.boolean(), - EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema, + EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), ]); +export function environmentOneMariadbRestartPolicySwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneMariadbRestartPolicySwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneMariadbRestartPolicySwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneMariadbRestartPolicySwarmUnion' from JSON`, + ); +} + /** @internal */ -export type EnvironmentOneMariadbUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; +export const EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentOneRollbackConfigSwarmMariadbEnum); /** @internal */ -export const EnvironmentOneMariadbUpdateConfigSwarmUnion$outboundSchema: +export const EnvironmentOneRollbackConfigSwarmMariadbUnion$inboundSchema: z.ZodType< - EnvironmentOneMariadbUpdateConfigSwarmUnion$Outbound, + EnvironmentOneRollbackConfigSwarmMariadbUnion, z.ZodTypeDef, - EnvironmentOneMariadbUpdateConfigSwarmUnion + unknown > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMariadbEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), + z.string(), + z.number(), + z.boolean(), + EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadbUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneMariadbUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMariadbUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMariadbUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMariadbUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMariadbUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadbUpdateConfigSwarmUnion$Outbound; -} - -export function environmentOneMariadbUpdateConfigSwarmUnionToJSON( - environmentOneMariadbUpdateConfigSwarmUnion: - EnvironmentOneMariadbUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMariadbUpdateConfigSwarmUnion$outboundSchema.parse( - environmentOneMariadbUpdateConfigSwarmUnion, - ), - ); -} - -export function environmentOneMariadbUpdateConfigSwarmUnionFromJSON( +export function environmentOneRollbackConfigSwarmMariadbUnionFromJSON( jsonString: string, ): SafeParseResult< - EnvironmentOneMariadbUpdateConfigSwarmUnion, + EnvironmentOneRollbackConfigSwarmMariadbUnion, SDKValidationError > { return safeParse( jsonString, (x) => - EnvironmentOneMariadbUpdateConfigSwarmUnion$inboundSchema.parse( + EnvironmentOneRollbackConfigSwarmMariadbUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneMariadbUpdateConfigSwarmUnion' from JSON`, + `Failed to parse 'EnvironmentOneRollbackConfigSwarmMariadbUnion' from JSON`, ); } /** @internal */ -export const EnvironmentOneMariadb$inboundSchema: z.ZodType< - EnvironmentOneMariadb, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - applicationStatus: EnvironmentOneMariadbApplicationStatus$inboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( +export const EnvironmentOneMariadbRollbackConfigSwarmUnion$inboundSchema: + z.ZodType< + EnvironmentOneMariadbRollbackConfigSwarmUnion, + z.ZodTypeDef, + unknown + > = z.union([ z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), + z.string(), + z.number(), + z.boolean(), + EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema, ]), - ), -}); + z.array(z.any()), + z.record(z.any()), + ]); + +export function environmentOneMariadbRollbackConfigSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneMariadbRollbackConfigSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneMariadbRollbackConfigSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneMariadbRollbackConfigSwarmUnion' from JSON`, + ); +} /** @internal */ -export type EnvironmentOneMariadb$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; +export const EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentOneUpdateConfigSwarmMariadbEnum); + +/** @internal */ +export const EnvironmentOneUpdateConfigSwarmMariadbUnion$inboundSchema: + z.ZodType< + EnvironmentOneUpdateConfigSwarmMariadbUnion, + z.ZodTypeDef, + unknown + > = z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema, + ]); + +export function environmentOneUpdateConfigSwarmMariadbUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneUpdateConfigSwarmMariadbUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneUpdateConfigSwarmMariadbUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneUpdateConfigSwarmMariadbUnion' from JSON`, + ); +} + +/** @internal */ +export const EnvironmentOneMariadbUpdateConfigSwarmUnion$inboundSchema: + z.ZodType< + EnvironmentOneMariadbUpdateConfigSwarmUnion, + z.ZodTypeDef, + unknown + > = z.union([ + z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), + ]); + +export function environmentOneMariadbUpdateConfigSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneMariadbUpdateConfigSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneMariadbUpdateConfigSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneMariadbUpdateConfigSwarmUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentOneMariadb$outboundSchema: z.ZodType< - EnvironmentOneMariadb$Outbound, +export const EnvironmentOneMariadb$inboundSchema: z.ZodType< + EnvironmentOneMariadb, z.ZodTypeDef, - EnvironmentOneMariadb + unknown > = z.object({ appName: z.string(), - applicationStatus: EnvironmentOneMariadbApplicationStatus$outboundSchema, + applicationStatus: EnvironmentOneMariadbApplicationStatus$inboundSchema, command: z.nullable(z.string()), cpuLimit: z.nullable(z.string()), cpuReservation: z.nullable(z.string()), @@ -5855,7 +3198,7 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneHealthCheckSwarmMariadbEnum$outboundSchema, + EnvironmentOneHealthCheckSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5867,7 +3210,7 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneLabelsSwarmMariadbEnum$outboundSchema, + EnvironmentOneLabelsSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5882,7 +3225,7 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneModeSwarmMariadbEnum$outboundSchema, + EnvironmentOneModeSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5895,7 +3238,7 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneNetworkSwarmMariadbEnum$outboundSchema, + EnvironmentOneNetworkSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5907,7 +3250,7 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOnePlacementSwarmMariadbEnum$outboundSchema, + EnvironmentOnePlacementSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5920,7 +3263,7 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneRestartPolicySwarmMariadbEnum$outboundSchema, + EnvironmentOneRestartPolicySwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5932,7 +3275,7 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneRollbackConfigSwarmMariadbEnum$outboundSchema, + EnvironmentOneRollbackConfigSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5945,7 +3288,7 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneUpdateConfigSwarmMariadbEnum$outboundSchema, + EnvironmentOneUpdateConfigSwarmMariadbEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -5953,27 +3296,6 @@ export const EnvironmentOneMariadb$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMariadb$ { - /** @deprecated use `EnvironmentOneMariadb$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneMariadb$inboundSchema; - /** @deprecated use `EnvironmentOneMariadb$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneMariadb$outboundSchema; - /** @deprecated use `EnvironmentOneMariadb$Outbound` instead. */ - export type Outbound = EnvironmentOneMariadb$Outbound; -} - -export function environmentOneMariadbToJSON( - environmentOneMariadb: EnvironmentOneMariadb, -): string { - return JSON.stringify( - EnvironmentOneMariadb$outboundSchema.parse(environmentOneMariadb), - ); -} - export function environmentOneMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -5990,47 +3312,11 @@ export const EnvironmentOneMongoApplicationStatus$inboundSchema: EnvironmentOneMongoApplicationStatus, ); -/** @internal */ -export const EnvironmentOneMongoApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneMongoApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoApplicationStatus$ { - /** @deprecated use `EnvironmentOneMongoApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMongoApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentOneMongoApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneHealthCheckSwarmMongoEnum); -/** @internal */ -export const EnvironmentOneHealthCheckSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneHealthCheckSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmMongoEnum$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneHealthCheckSwarmMongoUnion, @@ -6043,51 +3329,6 @@ export const EnvironmentOneHealthCheckSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneHealthCheckSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneHealthCheckSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmMongoUnion$outboundSchema: z.ZodType< - EnvironmentOneHealthCheckSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneHealthCheckSwarmMongoUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMongoEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmMongoUnion$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneHealthCheckSwarmMongoUnion$Outbound; -} - -export function environmentOneHealthCheckSwarmMongoUnionToJSON( - environmentOneHealthCheckSwarmMongoUnion: - EnvironmentOneHealthCheckSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentOneHealthCheckSwarmMongoUnion$outboundSchema.parse( - environmentOneHealthCheckSwarmMongoUnion, - ), - ); -} - export function environmentOneHealthCheckSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6120,57 +3361,6 @@ export const EnvironmentOneMongoHealthCheckSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMongoHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMongoHealthCheckSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMongoHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMongoHealthCheckSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentOneMongoHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMongoHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMongoHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMongoHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMongoHealthCheckSwarmUnion$Outbound; -} - -export function environmentOneMongoHealthCheckSwarmUnionToJSON( - environmentOneMongoHealthCheckSwarmUnion: - EnvironmentOneMongoHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMongoHealthCheckSwarmUnion$outboundSchema.parse( - environmentOneMongoHealthCheckSwarmUnion, - ), - ); -} - export function environmentOneMongoHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6192,23 +3382,6 @@ export const EnvironmentOneLabelsSwarmMongoEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneLabelsSwarmMongoEnum > = z.nativeEnum(EnvironmentOneLabelsSwarmMongoEnum); -/** @internal */ -export const EnvironmentOneLabelsSwarmMongoEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneLabelsSwarmMongoEnum -> = EnvironmentOneLabelsSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmMongoEnum$ { - /** @deprecated use `EnvironmentOneLabelsSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneLabelsSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneLabelsSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmMongoUnion, @@ -6219,129 +3392,35 @@ export const EnvironmentOneLabelsSwarmMongoUnion$inboundSchema: z.ZodType< z.number(), z.boolean(), EnvironmentOneLabelsSwarmMongoEnum$inboundSchema, -]); - -/** @internal */ -export type EnvironmentOneLabelsSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneLabelsSwarmMongoUnion$outboundSchema: z.ZodType< - EnvironmentOneLabelsSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneLabelsSwarmMongoUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMongoEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmMongoUnion$ { - /** @deprecated use `EnvironmentOneLabelsSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneLabelsSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneLabelsSwarmMongoUnion$Outbound; -} - -export function environmentOneLabelsSwarmMongoUnionToJSON( - environmentOneLabelsSwarmMongoUnion: EnvironmentOneLabelsSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentOneLabelsSwarmMongoUnion$outboundSchema.parse( - environmentOneLabelsSwarmMongoUnion, - ), - ); -} - -export function environmentOneLabelsSwarmMongoUnionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - EnvironmentOneLabelsSwarmMongoUnion$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentOneLabelsSwarmMongoUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMongoLabelsSwarmUnion$inboundSchema: z.ZodType< - EnvironmentOneMongoLabelsSwarmUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentOneMongoLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; +]); + +export function environmentOneLabelsSwarmMongoUnionFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + EnvironmentOneLabelsSwarmMongoUnion$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EnvironmentOneLabelsSwarmMongoUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentOneMongoLabelsSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMongoLabelsSwarmUnion$Outbound, +export const EnvironmentOneMongoLabelsSwarmUnion$inboundSchema: z.ZodType< + EnvironmentOneMongoLabelsSwarmUnion, z.ZodTypeDef, - EnvironmentOneMongoLabelsSwarmUnion + unknown > = z.union([ z.union([ z.string(), z.number(), z.boolean(), - EnvironmentOneLabelsSwarmMongoEnum$outboundSchema, + EnvironmentOneLabelsSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentOneMongoLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMongoLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMongoLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMongoLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMongoLabelsSwarmUnion$Outbound; -} - -export function environmentOneMongoLabelsSwarmUnionToJSON( - environmentOneMongoLabelsSwarmUnion: EnvironmentOneMongoLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMongoLabelsSwarmUnion$outboundSchema.parse( - environmentOneMongoLabelsSwarmUnion, - ), - ); -} - export function environmentOneMongoLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -6358,22 +3437,6 @@ export const EnvironmentOneModeSwarmMongoEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneModeSwarmMongoEnum > = z.nativeEnum(EnvironmentOneModeSwarmMongoEnum); -/** @internal */ -export const EnvironmentOneModeSwarmMongoEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneModeSwarmMongoEnum -> = EnvironmentOneModeSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmMongoEnum$ { - /** @deprecated use `EnvironmentOneModeSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneModeSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneModeSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneModeSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmMongoUnion, @@ -6386,49 +3449,6 @@ export const EnvironmentOneModeSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneModeSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneModeSwarmMongoUnion$outboundSchema: z.ZodType< - EnvironmentOneModeSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneModeSwarmMongoUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMongoEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmMongoUnion$ { - /** @deprecated use `EnvironmentOneModeSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneModeSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneModeSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneModeSwarmMongoUnion$Outbound; -} - -export function environmentOneModeSwarmMongoUnionToJSON( - environmentOneModeSwarmMongoUnion: EnvironmentOneModeSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentOneModeSwarmMongoUnion$outboundSchema.parse( - environmentOneModeSwarmMongoUnion, - ), - ); -} - export function environmentOneModeSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -6455,55 +3475,6 @@ export const EnvironmentOneMongoModeSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMongoModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMongoModeSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMongoModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMongoModeSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoModeSwarmUnion$ { - /** @deprecated use `EnvironmentOneMongoModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneMongoModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMongoModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMongoModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMongoModeSwarmUnion$Outbound; -} - -export function environmentOneMongoModeSwarmUnionToJSON( - environmentOneMongoModeSwarmUnion: EnvironmentOneMongoModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMongoModeSwarmUnion$outboundSchema.parse( - environmentOneMongoModeSwarmUnion, - ), - ); -} - export function environmentOneMongoModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -6519,24 +3490,6 @@ export const EnvironmentOneNetworkSwarmMongoEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneNetworkSwarmMongoEnum > = z.nativeEnum(EnvironmentOneNetworkSwarmMongoEnum); -/** @internal */ -export const EnvironmentOneNetworkSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneNetworkSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmMongoEnum$ { - /** @deprecated use `EnvironmentOneNetworkSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneNetworkSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneNetworkSwarmMongoUnion, @@ -6549,50 +3502,6 @@ export const EnvironmentOneNetworkSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneNetworkSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneNetworkSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneNetworkSwarmMongoUnion$outboundSchema: z.ZodType< - EnvironmentOneNetworkSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneNetworkSwarmMongoUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMongoEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmMongoUnion$ { - /** @deprecated use `EnvironmentOneNetworkSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneNetworkSwarmMongoUnion$Outbound; -} - -export function environmentOneNetworkSwarmMongoUnionToJSON( - environmentOneNetworkSwarmMongoUnion: EnvironmentOneNetworkSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentOneNetworkSwarmMongoUnion$outboundSchema.parse( - environmentOneNetworkSwarmMongoUnion, - ), - ); -} - export function environmentOneNetworkSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -6620,56 +3529,6 @@ export const EnvironmentOneMongoNetworkSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMongoNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMongoNetworkSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMongoNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMongoNetworkSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentOneMongoNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMongoNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMongoNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMongoNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMongoNetworkSwarmUnion$Outbound; -} - -export function environmentOneMongoNetworkSwarmUnionToJSON( - environmentOneMongoNetworkSwarmUnion: EnvironmentOneMongoNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMongoNetworkSwarmUnion$outboundSchema.parse( - environmentOneMongoNetworkSwarmUnion, - ), - ); -} - export function environmentOneMongoNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -6687,24 +3546,6 @@ export const EnvironmentOnePlacementSwarmMongoEnum$inboundSchema: EnvironmentOnePlacementSwarmMongoEnum, ); -/** @internal */ -export const EnvironmentOnePlacementSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOnePlacementSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmMongoEnum$ { - /** @deprecated use `EnvironmentOnePlacementSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOnePlacementSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOnePlacementSwarmMongoUnion, @@ -6717,51 +3558,6 @@ export const EnvironmentOnePlacementSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOnePlacementSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOnePlacementSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOnePlacementSwarmMongoUnion$outboundSchema: z.ZodType< - EnvironmentOnePlacementSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePlacementSwarmMongoUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMongoEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmMongoUnion$ { - /** @deprecated use `EnvironmentOnePlacementSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePlacementSwarmMongoUnion$Outbound; -} - -export function environmentOnePlacementSwarmMongoUnionToJSON( - environmentOnePlacementSwarmMongoUnion: - EnvironmentOnePlacementSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentOnePlacementSwarmMongoUnion$outboundSchema.parse( - environmentOnePlacementSwarmMongoUnion, - ), - ); -} - export function environmentOnePlacementSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -6789,57 +3585,6 @@ export const EnvironmentOneMongoPlacementSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMongoPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMongoPlacementSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMongoPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMongoPlacementSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentOneMongoPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMongoPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMongoPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMongoPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMongoPlacementSwarmUnion$Outbound; -} - -export function environmentOneMongoPlacementSwarmUnionToJSON( - environmentOneMongoPlacementSwarmUnion: - EnvironmentOneMongoPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMongoPlacementSwarmUnion$outboundSchema.parse( - environmentOneMongoPlacementSwarmUnion, - ), - ); -} - export function environmentOneMongoPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -6856,24 +3601,6 @@ export const EnvironmentOneRestartPolicySwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRestartPolicySwarmMongoEnum); -/** @internal */ -export const EnvironmentOneRestartPolicySwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRestartPolicySwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmMongoEnum$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRestartPolicySwarmMongoUnion$inboundSchema: z.ZodType = @@ -6884,52 +3611,6 @@ export const EnvironmentOneRestartPolicySwarmMongoUnion$inboundSchema: EnvironmentOneRestartPolicySwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneRestartPolicySwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentOneRestartPolicySwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRestartPolicySwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmMongoUnion$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRestartPolicySwarmMongoUnion$Outbound; -} - -export function environmentOneRestartPolicySwarmMongoUnionToJSON( - environmentOneRestartPolicySwarmMongoUnion: - EnvironmentOneRestartPolicySwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentOneRestartPolicySwarmMongoUnion$outboundSchema.parse( - environmentOneRestartPolicySwarmMongoUnion, - ), - ); -} - export function environmentOneRestartPolicySwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -6960,58 +3641,6 @@ export const EnvironmentOneMongoRestartPolicySwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMongoRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMongoRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneMongoRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMongoRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentOneMongoRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMongoRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMongoRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMongoRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMongoRestartPolicySwarmUnion$Outbound; -} - -export function environmentOneMongoRestartPolicySwarmUnionToJSON( - environmentOneMongoRestartPolicySwarmUnion: - EnvironmentOneMongoRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMongoRestartPolicySwarmUnion$outboundSchema.parse( - environmentOneMongoRestartPolicySwarmUnion, - ), - ); -} - export function environmentOneMongoRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7033,24 +3662,6 @@ export const EnvironmentOneRollbackConfigSwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRollbackConfigSwarmMongoEnum); -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRollbackConfigSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmMongoEnum$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRollbackConfigSwarmMongoUnion$inboundSchema: z.ZodType< @@ -7064,52 +3675,6 @@ export const EnvironmentOneRollbackConfigSwarmMongoUnion$inboundSchema: EnvironmentOneRollbackConfigSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneRollbackConfigSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentOneRollbackConfigSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRollbackConfigSwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmMongoUnion$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRollbackConfigSwarmMongoUnion$Outbound; -} - -export function environmentOneRollbackConfigSwarmMongoUnionToJSON( - environmentOneRollbackConfigSwarmMongoUnion: - EnvironmentOneRollbackConfigSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentOneRollbackConfigSwarmMongoUnion$outboundSchema.parse( - environmentOneRollbackConfigSwarmMongoUnion, - ), - ); -} - export function environmentOneRollbackConfigSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7143,58 +3708,6 @@ export const EnvironmentOneMongoRollbackConfigSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMongoRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMongoRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneMongoRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMongoRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneMongoRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMongoRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMongoRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMongoRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMongoRollbackConfigSwarmUnion$Outbound; -} - -export function environmentOneMongoRollbackConfigSwarmUnionToJSON( - environmentOneMongoRollbackConfigSwarmUnion: - EnvironmentOneMongoRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMongoRollbackConfigSwarmUnion$outboundSchema.parse( - environmentOneMongoRollbackConfigSwarmUnion, - ), - ); -} - export function environmentOneMongoRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7216,24 +3729,6 @@ export const EnvironmentOneUpdateConfigSwarmMongoEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneUpdateConfigSwarmMongoEnum); -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmMongoEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneUpdateConfigSwarmMongoEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmMongoEnum$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMongoEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmMongoEnum$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMongoEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmMongoEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneUpdateConfigSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneUpdateConfigSwarmMongoUnion, @@ -7246,52 +3741,6 @@ export const EnvironmentOneUpdateConfigSwarmMongoUnion$inboundSchema: z.ZodType< EnvironmentOneUpdateConfigSwarmMongoEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneUpdateConfigSwarmMongoUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmMongoUnion$outboundSchema: - z.ZodType< - EnvironmentOneUpdateConfigSwarmMongoUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneUpdateConfigSwarmMongoUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMongoEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmMongoUnion$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMongoUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmMongoUnion$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMongoUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmMongoUnion$outboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMongoUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneUpdateConfigSwarmMongoUnion$Outbound; -} - -export function environmentOneUpdateConfigSwarmMongoUnionToJSON( - environmentOneUpdateConfigSwarmMongoUnion: - EnvironmentOneUpdateConfigSwarmMongoUnion, -): string { - return JSON.stringify( - EnvironmentOneUpdateConfigSwarmMongoUnion$outboundSchema.parse( - environmentOneUpdateConfigSwarmMongoUnion, - ), - ); -} - export function environmentOneUpdateConfigSwarmMongoUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7324,58 +3773,6 @@ export const EnvironmentOneMongoUpdateConfigSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMongoUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMongoUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneMongoUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMongoUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongoUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneMongoUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMongoUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMongoUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMongoUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMongoUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMongoUpdateConfigSwarmUnion$Outbound; -} - -export function environmentOneMongoUpdateConfigSwarmUnionToJSON( - environmentOneMongoUpdateConfigSwarmUnion: - EnvironmentOneMongoUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMongoUpdateConfigSwarmUnion$outboundSchema.parse( - environmentOneMongoUpdateConfigSwarmUnion, - ), - ); -} - export function environmentOneMongoUpdateConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7495,179 +3892,7 @@ export const EnvironmentOneMongo$inboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneRollbackConfigSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMongoEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), -}); - -/** @internal */ -export type EnvironmentOneMongo$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - mongoId: string; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; - -/** @internal */ -export const EnvironmentOneMongo$outboundSchema: z.ZodType< - EnvironmentOneMongo$Outbound, - z.ZodTypeDef, - EnvironmentOneMongo -> = z.object({ - appName: z.string(), - applicationStatus: EnvironmentOneMongoApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - mongoId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMongoEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMongoEnum$outboundSchema, + EnvironmentOneRollbackConfigSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7680,7 +3905,7 @@ export const EnvironmentOneMongo$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneUpdateConfigSwarmMongoEnum$outboundSchema, + EnvironmentOneUpdateConfigSwarmMongoEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -7688,27 +3913,6 @@ export const EnvironmentOneMongo$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMongo$ { - /** @deprecated use `EnvironmentOneMongo$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneMongo$inboundSchema; - /** @deprecated use `EnvironmentOneMongo$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneMongo$outboundSchema; - /** @deprecated use `EnvironmentOneMongo$Outbound` instead. */ - export type Outbound = EnvironmentOneMongo$Outbound; -} - -export function environmentOneMongoToJSON( - environmentOneMongo: EnvironmentOneMongo, -): string { - return JSON.stringify( - EnvironmentOneMongo$outboundSchema.parse(environmentOneMongo), - ); -} - export function environmentOneMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -7725,47 +3929,11 @@ export const EnvironmentOneMysqlApplicationStatus$inboundSchema: EnvironmentOneMysqlApplicationStatus, ); -/** @internal */ -export const EnvironmentOneMysqlApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneMysqlApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlApplicationStatus$ { - /** @deprecated use `EnvironmentOneMysqlApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMysqlApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneHealthCheckSwarmMysqlEnum); -/** @internal */ -export const EnvironmentOneHealthCheckSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneHealthCheckSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOneHealthCheckSwarmMysqlUnion, @@ -7778,51 +3946,6 @@ export const EnvironmentOneHealthCheckSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOneHealthCheckSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneHealthCheckSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmMysqlUnion$outboundSchema: z.ZodType< - EnvironmentOneHealthCheckSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneHealthCheckSwarmMysqlUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMysqlEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneHealthCheckSwarmMysqlUnion$Outbound; -} - -export function environmentOneHealthCheckSwarmMysqlUnionToJSON( - environmentOneHealthCheckSwarmMysqlUnion: - EnvironmentOneHealthCheckSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentOneHealthCheckSwarmMysqlUnion$outboundSchema.parse( - environmentOneHealthCheckSwarmMysqlUnion, - ), - ); -} - export function environmentOneHealthCheckSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7855,57 +3978,6 @@ export const EnvironmentOneMysqlHealthCheckSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMysqlHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMysqlHealthCheckSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMysqlHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMysqlHealthCheckSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentOneMysqlHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMysqlHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMysqlHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMysqlHealthCheckSwarmUnion$Outbound; -} - -export function environmentOneMysqlHealthCheckSwarmUnionToJSON( - environmentOneMysqlHealthCheckSwarmUnion: - EnvironmentOneMysqlHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMysqlHealthCheckSwarmUnion$outboundSchema.parse( - environmentOneMysqlHealthCheckSwarmUnion, - ), - ); -} - export function environmentOneMysqlHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -7927,23 +3999,6 @@ export const EnvironmentOneLabelsSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneLabelsSwarmMysqlEnum > = z.nativeEnum(EnvironmentOneLabelsSwarmMysqlEnum); -/** @internal */ -export const EnvironmentOneLabelsSwarmMysqlEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneLabelsSwarmMysqlEnum -> = EnvironmentOneLabelsSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentOneLabelsSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneLabelsSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneLabelsSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmMysqlUnion, @@ -7956,50 +4011,6 @@ export const EnvironmentOneLabelsSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneLabelsSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneLabelsSwarmMysqlUnion$outboundSchema: z.ZodType< - EnvironmentOneLabelsSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneLabelsSwarmMysqlUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMysqlEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentOneLabelsSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneLabelsSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneLabelsSwarmMysqlUnion$Outbound; -} - -export function environmentOneLabelsSwarmMysqlUnionToJSON( - environmentOneLabelsSwarmMysqlUnion: EnvironmentOneLabelsSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentOneLabelsSwarmMysqlUnion$outboundSchema.parse( - environmentOneLabelsSwarmMysqlUnion, - ), - ); -} - export function environmentOneLabelsSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -8027,56 +4038,6 @@ export const EnvironmentOneMysqlLabelsSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMysqlLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMysqlLabelsSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMysqlLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMysqlLabelsSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentOneMysqlLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMysqlLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMysqlLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMysqlLabelsSwarmUnion$Outbound; -} - -export function environmentOneMysqlLabelsSwarmUnionToJSON( - environmentOneMysqlLabelsSwarmUnion: EnvironmentOneMysqlLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMysqlLabelsSwarmUnion$outboundSchema.parse( - environmentOneMysqlLabelsSwarmUnion, - ), - ); -} - export function environmentOneMysqlLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -8093,22 +4054,6 @@ export const EnvironmentOneModeSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneModeSwarmMysqlEnum > = z.nativeEnum(EnvironmentOneModeSwarmMysqlEnum); -/** @internal */ -export const EnvironmentOneModeSwarmMysqlEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneModeSwarmMysqlEnum -> = EnvironmentOneModeSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentOneModeSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneModeSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneModeSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneModeSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmMysqlUnion, @@ -8121,49 +4066,6 @@ export const EnvironmentOneModeSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneModeSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneModeSwarmMysqlUnion$outboundSchema: z.ZodType< - EnvironmentOneModeSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneModeSwarmMysqlUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMysqlEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentOneModeSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneModeSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneModeSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneModeSwarmMysqlUnion$Outbound; -} - -export function environmentOneModeSwarmMysqlUnionToJSON( - environmentOneModeSwarmMysqlUnion: EnvironmentOneModeSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentOneModeSwarmMysqlUnion$outboundSchema.parse( - environmentOneModeSwarmMysqlUnion, - ), - ); -} - export function environmentOneModeSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -8190,55 +4092,6 @@ export const EnvironmentOneMysqlModeSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMysqlModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMysqlModeSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMysqlModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMysqlModeSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlModeSwarmUnion$ { - /** @deprecated use `EnvironmentOneMysqlModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneMysqlModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMysqlModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMysqlModeSwarmUnion$Outbound; -} - -export function environmentOneMysqlModeSwarmUnionToJSON( - environmentOneMysqlModeSwarmUnion: EnvironmentOneMysqlModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMysqlModeSwarmUnion$outboundSchema.parse( - environmentOneMysqlModeSwarmUnion, - ), - ); -} - export function environmentOneMysqlModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -8254,24 +4107,6 @@ export const EnvironmentOneNetworkSwarmMysqlEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneNetworkSwarmMysqlEnum > = z.nativeEnum(EnvironmentOneNetworkSwarmMysqlEnum); -/** @internal */ -export const EnvironmentOneNetworkSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneNetworkSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentOneNetworkSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneNetworkSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOneNetworkSwarmMysqlUnion, @@ -8284,50 +4119,6 @@ export const EnvironmentOneNetworkSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOneNetworkSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneNetworkSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneNetworkSwarmMysqlUnion$outboundSchema: z.ZodType< - EnvironmentOneNetworkSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneNetworkSwarmMysqlUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMysqlEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentOneNetworkSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneNetworkSwarmMysqlUnion$Outbound; -} - -export function environmentOneNetworkSwarmMysqlUnionToJSON( - environmentOneNetworkSwarmMysqlUnion: EnvironmentOneNetworkSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentOneNetworkSwarmMysqlUnion$outboundSchema.parse( - environmentOneNetworkSwarmMysqlUnion, - ), - ); -} - export function environmentOneNetworkSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -8355,56 +4146,6 @@ export const EnvironmentOneMysqlNetworkSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMysqlNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMysqlNetworkSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMysqlNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMysqlNetworkSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentOneMysqlNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMysqlNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMysqlNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMysqlNetworkSwarmUnion$Outbound; -} - -export function environmentOneMysqlNetworkSwarmUnionToJSON( - environmentOneMysqlNetworkSwarmUnion: EnvironmentOneMysqlNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMysqlNetworkSwarmUnion$outboundSchema.parse( - environmentOneMysqlNetworkSwarmUnion, - ), - ); -} - export function environmentOneMysqlNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -8418,27 +4159,9 @@ export function environmentOneMysqlNetworkSwarmUnionFromJSON( /** @internal */ export const EnvironmentOnePlacementSwarmMysqlEnum$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - EnvironmentOnePlacementSwarmMysqlEnum, - ); - -/** @internal */ -export const EnvironmentOnePlacementSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOnePlacementSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentOnePlacementSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmMysqlEnum$outboundSchema; -} + z.ZodNativeEnum = z.nativeEnum( + EnvironmentOnePlacementSwarmMysqlEnum, + ); /** @internal */ export const EnvironmentOnePlacementSwarmMysqlUnion$inboundSchema: z.ZodType< @@ -8452,51 +4175,6 @@ export const EnvironmentOnePlacementSwarmMysqlUnion$inboundSchema: z.ZodType< EnvironmentOnePlacementSwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOnePlacementSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOnePlacementSwarmMysqlUnion$outboundSchema: z.ZodType< - EnvironmentOnePlacementSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePlacementSwarmMysqlUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMysqlEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentOnePlacementSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePlacementSwarmMysqlUnion$Outbound; -} - -export function environmentOnePlacementSwarmMysqlUnionToJSON( - environmentOnePlacementSwarmMysqlUnion: - EnvironmentOnePlacementSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentOnePlacementSwarmMysqlUnion$outboundSchema.parse( - environmentOnePlacementSwarmMysqlUnion, - ), - ); -} - export function environmentOnePlacementSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -8524,57 +4202,6 @@ export const EnvironmentOneMysqlPlacementSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneMysqlPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMysqlPlacementSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneMysqlPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMysqlPlacementSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentOneMysqlPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMysqlPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMysqlPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMysqlPlacementSwarmUnion$Outbound; -} - -export function environmentOneMysqlPlacementSwarmUnionToJSON( - environmentOneMysqlPlacementSwarmUnion: - EnvironmentOneMysqlPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMysqlPlacementSwarmUnion$outboundSchema.parse( - environmentOneMysqlPlacementSwarmUnion, - ), - ); -} - export function environmentOneMysqlPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -8591,24 +4218,6 @@ export const EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRestartPolicySwarmMysqlEnum); -/** @internal */ -export const EnvironmentOneRestartPolicySwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmMysqlEnum$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmMysqlEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRestartPolicySwarmMysqlUnion$inboundSchema: z.ZodType = @@ -8619,52 +4228,6 @@ export const EnvironmentOneRestartPolicySwarmMysqlUnion$inboundSchema: EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneRestartPolicySwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentOneRestartPolicySwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRestartPolicySwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmMysqlUnion$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRestartPolicySwarmMysqlUnion$Outbound; -} - -export function environmentOneRestartPolicySwarmMysqlUnionToJSON( - environmentOneRestartPolicySwarmMysqlUnion: - EnvironmentOneRestartPolicySwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentOneRestartPolicySwarmMysqlUnion$outboundSchema.parse( - environmentOneRestartPolicySwarmMysqlUnion, - ), - ); -} - export function environmentOneRestartPolicySwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -8677,638 +4240,180 @@ export function environmentOneRestartPolicySwarmMysqlUnionFromJSON( EnvironmentOneRestartPolicySwarmMysqlUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneRestartPolicySwarmMysqlUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMysqlRestartPolicySwarmUnion$inboundSchema: - z.ZodType = - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentOneMysqlRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMysqlRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneMysqlRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMysqlRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentOneMysqlRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMysqlRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMysqlRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMysqlRestartPolicySwarmUnion$Outbound; -} - -export function environmentOneMysqlRestartPolicySwarmUnionToJSON( - environmentOneMysqlRestartPolicySwarmUnion: - EnvironmentOneMysqlRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMysqlRestartPolicySwarmUnion$outboundSchema.parse( - environmentOneMysqlRestartPolicySwarmUnion, - ), - ); -} - -export function environmentOneMysqlRestartPolicySwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOneMysqlRestartPolicySwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOneMysqlRestartPolicySwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneMysqlRestartPolicySwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentOneRollbackConfigSwarmMysqlEnum); - -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmMysqlEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmMysqlUnion$inboundSchema: - z.ZodType< - EnvironmentOneRollbackConfigSwarmMysqlUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema, - ]); - -/** @internal */ -export type EnvironmentOneRollbackConfigSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmMysqlUnion$outboundSchema: - z.ZodType< - EnvironmentOneRollbackConfigSwarmMysqlUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRollbackConfigSwarmMysqlUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMysqlEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRollbackConfigSwarmMysqlUnion$Outbound; -} - -export function environmentOneRollbackConfigSwarmMysqlUnionToJSON( - environmentOneRollbackConfigSwarmMysqlUnion: - EnvironmentOneRollbackConfigSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentOneRollbackConfigSwarmMysqlUnion$outboundSchema.parse( - environmentOneRollbackConfigSwarmMysqlUnion, - ), - ); -} - -export function environmentOneRollbackConfigSwarmMysqlUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOneRollbackConfigSwarmMysqlUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOneRollbackConfigSwarmMysqlUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneRollbackConfigSwarmMysqlUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneMysqlRollbackConfigSwarmUnion$inboundSchema: - z.ZodType< - EnvironmentOneMysqlRollbackConfigSwarmUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentOneMysqlRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMysqlRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneMysqlRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneMysqlRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMysqlEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneMysqlRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMysqlRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMysqlRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMysqlRollbackConfigSwarmUnion$Outbound; -} - -export function environmentOneMysqlRollbackConfigSwarmUnionToJSON( - environmentOneMysqlRollbackConfigSwarmUnion: - EnvironmentOneMysqlRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMysqlRollbackConfigSwarmUnion$outboundSchema.parse( - environmentOneMysqlRollbackConfigSwarmUnion, - ), + `Failed to parse 'EnvironmentOneRestartPolicySwarmMysqlUnion' from JSON`, ); } -export function environmentOneMysqlRollbackConfigSwarmUnionFromJSON( +/** @internal */ +export const EnvironmentOneMysqlRestartPolicySwarmUnion$inboundSchema: + z.ZodType = + z.union([ + z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), + ]); + +export function environmentOneMysqlRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< - EnvironmentOneMysqlRollbackConfigSwarmUnion, + EnvironmentOneMysqlRestartPolicySwarmUnion, SDKValidationError > { return safeParse( jsonString, (x) => - EnvironmentOneMysqlRollbackConfigSwarmUnion$inboundSchema.parse( + EnvironmentOneMysqlRestartPolicySwarmUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneMysqlRollbackConfigSwarmUnion' from JSON`, + `Failed to parse 'EnvironmentOneMysqlRestartPolicySwarmUnion' from JSON`, ); } /** @internal */ -export const EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EnvironmentOneUpdateConfigSwarmMysqlEnum); - -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmMysqlEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmMysqlEnum$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMysqlEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmMysqlEnum$outboundSchema; -} - -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmMysqlUnion$inboundSchema: z.ZodType< - EnvironmentOneUpdateConfigSwarmMysqlUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema, -]); - -/** @internal */ -export type EnvironmentOneUpdateConfigSwarmMysqlUnion$Outbound = - | string - | number - | boolean - | string; +export const EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentOneRollbackConfigSwarmMysqlEnum); /** @internal */ -export const EnvironmentOneUpdateConfigSwarmMysqlUnion$outboundSchema: +export const EnvironmentOneRollbackConfigSwarmMysqlUnion$inboundSchema: z.ZodType< - EnvironmentOneUpdateConfigSwarmMysqlUnion$Outbound, + EnvironmentOneRollbackConfigSwarmMysqlUnion, z.ZodTypeDef, - EnvironmentOneUpdateConfigSwarmMysqlUnion + unknown > = z.union([ z.string(), z.number(), z.boolean(), - EnvironmentOneUpdateConfigSwarmMysqlEnum$outboundSchema, + EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmMysqlUnion$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMysqlUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmMysqlUnion$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMysqlUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmMysqlUnion$outboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmMysqlUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneUpdateConfigSwarmMysqlUnion$Outbound; -} - -export function environmentOneUpdateConfigSwarmMysqlUnionToJSON( - environmentOneUpdateConfigSwarmMysqlUnion: - EnvironmentOneUpdateConfigSwarmMysqlUnion, -): string { - return JSON.stringify( - EnvironmentOneUpdateConfigSwarmMysqlUnion$outboundSchema.parse( - environmentOneUpdateConfigSwarmMysqlUnion, - ), - ); -} - -export function environmentOneUpdateConfigSwarmMysqlUnionFromJSON( +export function environmentOneRollbackConfigSwarmMysqlUnionFromJSON( jsonString: string, ): SafeParseResult< - EnvironmentOneUpdateConfigSwarmMysqlUnion, + EnvironmentOneRollbackConfigSwarmMysqlUnion, SDKValidationError > { return safeParse( jsonString, (x) => - EnvironmentOneUpdateConfigSwarmMysqlUnion$inboundSchema.parse( + EnvironmentOneRollbackConfigSwarmMysqlUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneUpdateConfigSwarmMysqlUnion' from JSON`, + `Failed to parse 'EnvironmentOneRollbackConfigSwarmMysqlUnion' from JSON`, ); } /** @internal */ -export const EnvironmentOneMysqlUpdateConfigSwarmUnion$inboundSchema: z.ZodType< - EnvironmentOneMysqlUpdateConfigSwarmUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentOneMysqlUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneMysqlUpdateConfigSwarmUnion$outboundSchema: +export const EnvironmentOneMysqlRollbackConfigSwarmUnion$inboundSchema: z.ZodType< - EnvironmentOneMysqlUpdateConfigSwarmUnion$Outbound, + EnvironmentOneMysqlRollbackConfigSwarmUnion, z.ZodTypeDef, - EnvironmentOneMysqlUpdateConfigSwarmUnion + unknown > = z.union([ z.union([ z.string(), z.number(), z.boolean(), - EnvironmentOneUpdateConfigSwarmMysqlEnum$outboundSchema, + EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysqlUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneMysqlUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneMysqlUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneMysqlUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneMysqlUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneMysqlUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneMysqlUpdateConfigSwarmUnion$Outbound; -} - -export function environmentOneMysqlUpdateConfigSwarmUnionToJSON( - environmentOneMysqlUpdateConfigSwarmUnion: - EnvironmentOneMysqlUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneMysqlUpdateConfigSwarmUnion$outboundSchema.parse( - environmentOneMysqlUpdateConfigSwarmUnion, - ), - ); -} - -export function environmentOneMysqlUpdateConfigSwarmUnionFromJSON( +export function environmentOneMysqlRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< - EnvironmentOneMysqlUpdateConfigSwarmUnion, + EnvironmentOneMysqlRollbackConfigSwarmUnion, SDKValidationError > { return safeParse( jsonString, (x) => - EnvironmentOneMysqlUpdateConfigSwarmUnion$inboundSchema.parse( + EnvironmentOneMysqlRollbackConfigSwarmUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneMysqlUpdateConfigSwarmUnion' from JSON`, + `Failed to parse 'EnvironmentOneMysqlRollbackConfigSwarmUnion' from JSON`, ); } /** @internal */ -export const EnvironmentOneMysql$inboundSchema: z.ZodType< - EnvironmentOneMysql, +export const EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(EnvironmentOneUpdateConfigSwarmMysqlEnum); + +/** @internal */ +export const EnvironmentOneUpdateConfigSwarmMysqlUnion$inboundSchema: z.ZodType< + EnvironmentOneUpdateConfigSwarmMysqlUnion, z.ZodTypeDef, unknown -> = z.object({ - appName: z.string(), - applicationStatus: EnvironmentOneMysqlApplicationStatus$inboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), -}); +> = z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema, +]); + +export function environmentOneUpdateConfigSwarmMysqlUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneUpdateConfigSwarmMysqlUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneUpdateConfigSwarmMysqlUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneUpdateConfigSwarmMysqlUnion' from JSON`, + ); +} /** @internal */ -export type EnvironmentOneMysql$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - mysqlId: string; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; +export const EnvironmentOneMysqlUpdateConfigSwarmUnion$inboundSchema: z.ZodType< + EnvironmentOneMysqlUpdateConfigSwarmUnion, + z.ZodTypeDef, + unknown +> = z.union([ + z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), +]); + +export function environmentOneMysqlUpdateConfigSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneMysqlUpdateConfigSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneMysqlUpdateConfigSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneMysqlUpdateConfigSwarmUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentOneMysql$outboundSchema: z.ZodType< - EnvironmentOneMysql$Outbound, +export const EnvironmentOneMysql$inboundSchema: z.ZodType< + EnvironmentOneMysql, z.ZodTypeDef, - EnvironmentOneMysql + unknown > = z.object({ appName: z.string(), - applicationStatus: EnvironmentOneMysqlApplicationStatus$outboundSchema, + applicationStatus: EnvironmentOneMysqlApplicationStatus$inboundSchema, command: z.nullable(z.string()), cpuLimit: z.nullable(z.string()), cpuReservation: z.nullable(z.string()), @@ -9328,7 +4433,7 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneHealthCheckSwarmMysqlEnum$outboundSchema, + EnvironmentOneHealthCheckSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9340,7 +4445,7 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneLabelsSwarmMysqlEnum$outboundSchema, + EnvironmentOneLabelsSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9354,7 +4459,7 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneModeSwarmMysqlEnum$outboundSchema, + EnvironmentOneModeSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9368,7 +4473,7 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneNetworkSwarmMysqlEnum$outboundSchema, + EnvironmentOneNetworkSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9380,7 +4485,7 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOnePlacementSwarmMysqlEnum$outboundSchema, + EnvironmentOnePlacementSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9393,7 +4498,7 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneRestartPolicySwarmMysqlEnum$outboundSchema, + EnvironmentOneRestartPolicySwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9405,7 +4510,7 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneRollbackConfigSwarmMysqlEnum$outboundSchema, + EnvironmentOneRollbackConfigSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9418,7 +4523,7 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneUpdateConfigSwarmMysqlEnum$outboundSchema, + EnvironmentOneUpdateConfigSwarmMysqlEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -9426,27 +4531,6 @@ export const EnvironmentOneMysql$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneMysql$ { - /** @deprecated use `EnvironmentOneMysql$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneMysql$inboundSchema; - /** @deprecated use `EnvironmentOneMysql$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneMysql$outboundSchema; - /** @deprecated use `EnvironmentOneMysql$Outbound` instead. */ - export type Outbound = EnvironmentOneMysql$Outbound; -} - -export function environmentOneMysqlToJSON( - environmentOneMysql: EnvironmentOneMysql, -): string { - return JSON.stringify( - EnvironmentOneMysql$outboundSchema.parse(environmentOneMysql), - ); -} - export function environmentOneMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -9463,47 +4547,11 @@ export const EnvironmentOnePostgreApplicationStatus$inboundSchema: EnvironmentOnePostgreApplicationStatus, ); -/** @internal */ -export const EnvironmentOnePostgreApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentOnePostgreApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgreApplicationStatus$ { - /** @deprecated use `EnvironmentOnePostgreApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgreApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentOnePostgreApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgreApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneHealthCheckSwarmPostgreEnum); -/** @internal */ -export const EnvironmentOneHealthCheckSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneHealthCheckSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmPostgreUnion$inboundSchema: z.ZodType = @@ -9514,52 +4562,6 @@ export const EnvironmentOneHealthCheckSwarmPostgreUnion$inboundSchema: EnvironmentOneHealthCheckSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneHealthCheckSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentOneHealthCheckSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneHealthCheckSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneHealthCheckSwarmPostgreUnion$Outbound; -} - -export function environmentOneHealthCheckSwarmPostgreUnionToJSON( - environmentOneHealthCheckSwarmPostgreUnion: - EnvironmentOneHealthCheckSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentOneHealthCheckSwarmPostgreUnion$outboundSchema.parse( - environmentOneHealthCheckSwarmPostgreUnion, - ), - ); -} - export function environmentOneHealthCheckSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -9590,58 +4592,6 @@ export const EnvironmentOnePostgreHealthCheckSwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOnePostgreHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOnePostgreHealthCheckSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOnePostgreHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePostgreHealthCheckSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgreHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentOnePostgreHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgreHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePostgreHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgreHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePostgreHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgreHealthCheckSwarmUnion$Outbound; -} - -export function environmentOnePostgreHealthCheckSwarmUnionToJSON( - environmentOnePostgreHealthCheckSwarmUnion: - EnvironmentOnePostgreHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOnePostgreHealthCheckSwarmUnion$outboundSchema.parse( - environmentOnePostgreHealthCheckSwarmUnion, - ), - ); -} - export function environmentOnePostgreHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -9664,24 +4614,6 @@ export const EnvironmentOneLabelsSwarmPostgreEnum$inboundSchema: EnvironmentOneLabelsSwarmPostgreEnum, ); -/** @internal */ -export const EnvironmentOneLabelsSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneLabelsSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentOneLabelsSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneLabelsSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneLabelsSwarmPostgreUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmPostgreUnion, @@ -9694,50 +4626,6 @@ export const EnvironmentOneLabelsSwarmPostgreUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneLabelsSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneLabelsSwarmPostgreUnion$outboundSchema: z.ZodType< - EnvironmentOneLabelsSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneLabelsSwarmPostgreUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmPostgreEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentOneLabelsSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneLabelsSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneLabelsSwarmPostgreUnion$Outbound; -} - -export function environmentOneLabelsSwarmPostgreUnionToJSON( - environmentOneLabelsSwarmPostgreUnion: EnvironmentOneLabelsSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentOneLabelsSwarmPostgreUnion$outboundSchema.parse( - environmentOneLabelsSwarmPostgreUnion, - ), - ); -} - export function environmentOneLabelsSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -9765,56 +4653,6 @@ export const EnvironmentOnePostgreLabelsSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOnePostgreLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOnePostgreLabelsSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOnePostgreLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePostgreLabelsSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgreLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentOnePostgreLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgreLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePostgreLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgreLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePostgreLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgreLabelsSwarmUnion$Outbound; -} - -export function environmentOnePostgreLabelsSwarmUnionToJSON( - environmentOnePostgreLabelsSwarmUnion: EnvironmentOnePostgreLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOnePostgreLabelsSwarmUnion$outboundSchema.parse( - environmentOnePostgreLabelsSwarmUnion, - ), - ); -} - export function environmentOnePostgreLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -9831,23 +4669,6 @@ export const EnvironmentOneModeSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneModeSwarmPostgreEnum > = z.nativeEnum(EnvironmentOneModeSwarmPostgreEnum); -/** @internal */ -export const EnvironmentOneModeSwarmPostgreEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneModeSwarmPostgreEnum -> = EnvironmentOneModeSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentOneModeSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneModeSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneModeSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneModeSwarmPostgreUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmPostgreUnion, @@ -9860,50 +4681,6 @@ export const EnvironmentOneModeSwarmPostgreUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneModeSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneModeSwarmPostgreUnion$outboundSchema: z.ZodType< - EnvironmentOneModeSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneModeSwarmPostgreUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmPostgreEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentOneModeSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneModeSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneModeSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneModeSwarmPostgreUnion$Outbound; -} - -export function environmentOneModeSwarmPostgreUnionToJSON( - environmentOneModeSwarmPostgreUnion: EnvironmentOneModeSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentOneModeSwarmPostgreUnion$outboundSchema.parse( - environmentOneModeSwarmPostgreUnion, - ), - ); -} - export function environmentOneModeSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -9925,62 +4702,12 @@ export const EnvironmentOnePostgreModeSwarmUnion$inboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneModeSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentOnePostgreModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOnePostgreModeSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOnePostgreModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePostgreModeSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmPostgreEnum$outboundSchema, + EnvironmentOneModeSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgreModeSwarmUnion$ { - /** @deprecated use `EnvironmentOnePostgreModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgreModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePostgreModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgreModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePostgreModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgreModeSwarmUnion$Outbound; -} - -export function environmentOnePostgreModeSwarmUnionToJSON( - environmentOnePostgreModeSwarmUnion: EnvironmentOnePostgreModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOnePostgreModeSwarmUnion$outboundSchema.parse( - environmentOnePostgreModeSwarmUnion, - ), - ); -} - export function environmentOnePostgreModeSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -9998,24 +4725,6 @@ export const EnvironmentOneNetworkSwarmPostgreEnum$inboundSchema: EnvironmentOneNetworkSwarmPostgreEnum, ); -/** @internal */ -export const EnvironmentOneNetworkSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneNetworkSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentOneNetworkSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneNetworkSwarmPostgreUnion$inboundSchema: z.ZodType< EnvironmentOneNetworkSwarmPostgreUnion, @@ -10028,51 +4737,6 @@ export const EnvironmentOneNetworkSwarmPostgreUnion$inboundSchema: z.ZodType< EnvironmentOneNetworkSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneNetworkSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneNetworkSwarmPostgreUnion$outboundSchema: z.ZodType< - EnvironmentOneNetworkSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneNetworkSwarmPostgreUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmPostgreEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentOneNetworkSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneNetworkSwarmPostgreUnion$Outbound; -} - -export function environmentOneNetworkSwarmPostgreUnionToJSON( - environmentOneNetworkSwarmPostgreUnion: - EnvironmentOneNetworkSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentOneNetworkSwarmPostgreUnion$outboundSchema.parse( - environmentOneNetworkSwarmPostgreUnion, - ), - ); -} - export function environmentOneNetworkSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -10100,57 +4764,6 @@ export const EnvironmentOnePostgreNetworkSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOnePostgreNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOnePostgreNetworkSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOnePostgreNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePostgreNetworkSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgreNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentOnePostgreNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgreNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePostgreNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgreNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePostgreNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgreNetworkSwarmUnion$Outbound; -} - -export function environmentOnePostgreNetworkSwarmUnionToJSON( - environmentOnePostgreNetworkSwarmUnion: - EnvironmentOnePostgreNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOnePostgreNetworkSwarmUnion$outboundSchema.parse( - environmentOnePostgreNetworkSwarmUnion, - ), - ); -} - export function environmentOnePostgreNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -10167,24 +4780,6 @@ export const EnvironmentOnePlacementSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOnePlacementSwarmPostgreEnum); -/** @internal */ -export const EnvironmentOnePlacementSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOnePlacementSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentOnePlacementSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOnePlacementSwarmPostgreUnion$inboundSchema: z.ZodType< EnvironmentOnePlacementSwarmPostgreUnion, @@ -10197,51 +4792,6 @@ export const EnvironmentOnePlacementSwarmPostgreUnion$inboundSchema: z.ZodType< EnvironmentOnePlacementSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOnePlacementSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOnePlacementSwarmPostgreUnion$outboundSchema: z.ZodType< - EnvironmentOnePlacementSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePlacementSwarmPostgreUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmPostgreEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentOnePlacementSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePlacementSwarmPostgreUnion$Outbound; -} - -export function environmentOnePlacementSwarmPostgreUnionToJSON( - environmentOnePlacementSwarmPostgreUnion: - EnvironmentOnePlacementSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentOnePlacementSwarmPostgreUnion$outboundSchema.parse( - environmentOnePlacementSwarmPostgreUnion, - ), - ); -} - export function environmentOnePlacementSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10274,57 +4824,6 @@ export const EnvironmentOnePostgrePlacementSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOnePostgrePlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOnePostgrePlacementSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOnePostgrePlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePostgrePlacementSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgrePlacementSwarmUnion$ { - /** @deprecated use `EnvironmentOnePostgrePlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgrePlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePostgrePlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgrePlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePostgrePlacementSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgrePlacementSwarmUnion$Outbound; -} - -export function environmentOnePostgrePlacementSwarmUnionToJSON( - environmentOnePostgrePlacementSwarmUnion: - EnvironmentOnePostgrePlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOnePostgrePlacementSwarmUnion$outboundSchema.parse( - environmentOnePostgrePlacementSwarmUnion, - ), - ); -} - export function environmentOnePostgrePlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10346,24 +4845,6 @@ export const EnvironmentOneRestartPolicySwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRestartPolicySwarmPostgreEnum); -/** @internal */ -export const EnvironmentOneRestartPolicySwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRestartPolicySwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmPostgreEnum$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRestartPolicySwarmPostgreUnion$inboundSchema: z.ZodType< @@ -10377,52 +4858,6 @@ export const EnvironmentOneRestartPolicySwarmPostgreUnion$inboundSchema: EnvironmentOneRestartPolicySwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneRestartPolicySwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentOneRestartPolicySwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRestartPolicySwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmPostgreUnion$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRestartPolicySwarmPostgreUnion$Outbound; -} - -export function environmentOneRestartPolicySwarmPostgreUnionToJSON( - environmentOneRestartPolicySwarmPostgreUnion: - EnvironmentOneRestartPolicySwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentOneRestartPolicySwarmPostgreUnion$outboundSchema.parse( - environmentOneRestartPolicySwarmPostgreUnion, - ), - ); -} - export function environmentOneRestartPolicySwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10456,58 +4891,6 @@ export const EnvironmentOnePostgreRestartPolicySwarmUnion$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOnePostgreRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOnePostgreRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOnePostgreRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePostgreRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgreRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentOnePostgreRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgreRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePostgreRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgreRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePostgreRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgreRestartPolicySwarmUnion$Outbound; -} - -export function environmentOnePostgreRestartPolicySwarmUnionToJSON( - environmentOnePostgreRestartPolicySwarmUnion: - EnvironmentOnePostgreRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentOnePostgreRestartPolicySwarmUnion$outboundSchema.parse( - environmentOnePostgreRestartPolicySwarmUnion, - ), - ); -} - export function environmentOnePostgreRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10529,24 +4912,6 @@ export const EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRollbackConfigSwarmPostgreEnum); -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRollbackConfigSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -10560,137 +4925,39 @@ export const EnvironmentOneRollbackConfigSwarmPostgreUnion$inboundSchema: EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema, ]); +export function environmentOneRollbackConfigSwarmPostgreUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOneRollbackConfigSwarmPostgreUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOneRollbackConfigSwarmPostgreUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOneRollbackConfigSwarmPostgreUnion' from JSON`, + ); +} + /** @internal */ -export type EnvironmentOneRollbackConfigSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentOneRollbackConfigSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRollbackConfigSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRollbackConfigSwarmPostgreUnion$Outbound; -} - -export function environmentOneRollbackConfigSwarmPostgreUnionToJSON( - environmentOneRollbackConfigSwarmPostgreUnion: - EnvironmentOneRollbackConfigSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentOneRollbackConfigSwarmPostgreUnion$outboundSchema.parse( - environmentOneRollbackConfigSwarmPostgreUnion, - ), - ); -} - -export function environmentOneRollbackConfigSwarmPostgreUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOneRollbackConfigSwarmPostgreUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOneRollbackConfigSwarmPostgreUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOneRollbackConfigSwarmPostgreUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOnePostgreRollbackConfigSwarmUnion$inboundSchema: - z.ZodType< - EnvironmentOnePostgreRollbackConfigSwarmUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentOnePostgreRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOnePostgreRollbackConfigSwarmUnion$outboundSchema: +export const EnvironmentOnePostgreRollbackConfigSwarmUnion$inboundSchema: z.ZodType< - EnvironmentOnePostgreRollbackConfigSwarmUnion$Outbound, + EnvironmentOnePostgreRollbackConfigSwarmUnion, z.ZodTypeDef, - EnvironmentOnePostgreRollbackConfigSwarmUnion + unknown > = z.union([ z.union([ z.string(), z.number(), z.boolean(), - EnvironmentOneRollbackConfigSwarmPostgreEnum$outboundSchema, + EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgreRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOnePostgreRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgreRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePostgreRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgreRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePostgreRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgreRollbackConfigSwarmUnion$Outbound; -} - -export function environmentOnePostgreRollbackConfigSwarmUnionToJSON( - environmentOnePostgreRollbackConfigSwarmUnion: - EnvironmentOnePostgreRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOnePostgreRollbackConfigSwarmUnion$outboundSchema.parse( - environmentOnePostgreRollbackConfigSwarmUnion, - ), - ); -} - export function environmentOnePostgreRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10712,24 +4979,6 @@ export const EnvironmentOneUpdateConfigSwarmPostgreEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneUpdateConfigSwarmPostgreEnum); -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmPostgreEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneUpdateConfigSwarmPostgreEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmPostgreEnum$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmPostgreEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmPostgreEnum$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmPostgreEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmPostgreEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneUpdateConfigSwarmPostgreUnion$inboundSchema: z.ZodType< @@ -10743,52 +4992,6 @@ export const EnvironmentOneUpdateConfigSwarmPostgreUnion$inboundSchema: EnvironmentOneUpdateConfigSwarmPostgreEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneUpdateConfigSwarmPostgreUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmPostgreUnion$outboundSchema: - z.ZodType< - EnvironmentOneUpdateConfigSwarmPostgreUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneUpdateConfigSwarmPostgreUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmPostgreEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmPostgreUnion$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmPostgreUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmPostgreUnion$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmPostgreUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmPostgreUnion$outboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmPostgreUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneUpdateConfigSwarmPostgreUnion$Outbound; -} - -export function environmentOneUpdateConfigSwarmPostgreUnionToJSON( - environmentOneUpdateConfigSwarmPostgreUnion: - EnvironmentOneUpdateConfigSwarmPostgreUnion, -): string { - return JSON.stringify( - EnvironmentOneUpdateConfigSwarmPostgreUnion$outboundSchema.parse( - environmentOneUpdateConfigSwarmPostgreUnion, - ), - ); -} - export function environmentOneUpdateConfigSwarmPostgreUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -10818,258 +5021,34 @@ export const EnvironmentOnePostgreUpdateConfigSwarmUnion$inboundSchema: z.boolean(), EnvironmentOneUpdateConfigSwarmPostgreEnum$inboundSchema, ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentOnePostgreUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOnePostgreUpdateConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOnePostgreUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePostgreUpdateConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmPostgreEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgreUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOnePostgreUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePostgreUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePostgreUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePostgreUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePostgreUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgreUpdateConfigSwarmUnion$Outbound; -} - -export function environmentOnePostgreUpdateConfigSwarmUnionToJSON( - environmentOnePostgreUpdateConfigSwarmUnion: - EnvironmentOnePostgreUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOnePostgreUpdateConfigSwarmUnion$outboundSchema.parse( - environmentOnePostgreUpdateConfigSwarmUnion, - ), - ); -} - -export function environmentOnePostgreUpdateConfigSwarmUnionFromJSON( - jsonString: string, -): SafeParseResult< - EnvironmentOnePostgreUpdateConfigSwarmUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - EnvironmentOnePostgreUpdateConfigSwarmUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'EnvironmentOnePostgreUpdateConfigSwarmUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOnePostgre$inboundSchema: z.ZodType< - EnvironmentOnePostgre, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - applicationStatus: EnvironmentOnePostgreApplicationStatus$inboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmPostgreEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), -}); - -/** @internal */ -export type EnvironmentOnePostgre$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - postgresId: string; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; + z.array(z.any()), + z.record(z.any()), + ]); + +export function environmentOnePostgreUpdateConfigSwarmUnionFromJSON( + jsonString: string, +): SafeParseResult< + EnvironmentOnePostgreUpdateConfigSwarmUnion, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + EnvironmentOnePostgreUpdateConfigSwarmUnion$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'EnvironmentOnePostgreUpdateConfigSwarmUnion' from JSON`, + ); +} /** @internal */ -export const EnvironmentOnePostgre$outboundSchema: z.ZodType< - EnvironmentOnePostgre$Outbound, +export const EnvironmentOnePostgre$inboundSchema: z.ZodType< + EnvironmentOnePostgre, z.ZodTypeDef, - EnvironmentOnePostgre + unknown > = z.object({ appName: z.string(), - applicationStatus: EnvironmentOnePostgreApplicationStatus$outboundSchema, + applicationStatus: EnvironmentOnePostgreApplicationStatus$inboundSchema, command: z.nullable(z.string()), cpuLimit: z.nullable(z.string()), cpuReservation: z.nullable(z.string()), @@ -11088,7 +5067,7 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneHealthCheckSwarmPostgreEnum$outboundSchema, + EnvironmentOneHealthCheckSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11100,7 +5079,7 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneLabelsSwarmPostgreEnum$outboundSchema, + EnvironmentOneLabelsSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11114,7 +5093,7 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneModeSwarmPostgreEnum$outboundSchema, + EnvironmentOneModeSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11127,7 +5106,7 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneNetworkSwarmPostgreEnum$outboundSchema, + EnvironmentOneNetworkSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11139,7 +5118,7 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOnePlacementSwarmPostgreEnum$outboundSchema, + EnvironmentOnePlacementSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11153,7 +5132,7 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneRestartPolicySwarmPostgreEnum$outboundSchema, + EnvironmentOneRestartPolicySwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11165,7 +5144,7 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneRollbackConfigSwarmPostgreEnum$outboundSchema, + EnvironmentOneRollbackConfigSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11178,7 +5157,7 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< z.string(), z.number(), z.boolean(), - EnvironmentOneUpdateConfigSwarmPostgreEnum$outboundSchema, + EnvironmentOneUpdateConfigSwarmPostgreEnum$inboundSchema, ]), z.array(z.any()), z.record(z.any()), @@ -11186,27 +5165,6 @@ export const EnvironmentOnePostgre$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePostgre$ { - /** @deprecated use `EnvironmentOnePostgre$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOnePostgre$inboundSchema; - /** @deprecated use `EnvironmentOnePostgre$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOnePostgre$outboundSchema; - /** @deprecated use `EnvironmentOnePostgre$Outbound` instead. */ - export type Outbound = EnvironmentOnePostgre$Outbound; -} - -export function environmentOnePostgreToJSON( - environmentOnePostgre: EnvironmentOnePostgre, -): string { - return JSON.stringify( - EnvironmentOnePostgre$outboundSchema.parse(environmentOnePostgre), - ); -} - export function environmentOnePostgreFromJSON( jsonString: string, ): SafeParseResult { @@ -11231,51 +5189,6 @@ export const EnvironmentOneProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type EnvironmentOneProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const EnvironmentOneProject$outboundSchema: z.ZodType< - EnvironmentOneProject$Outbound, - z.ZodTypeDef, - EnvironmentOneProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneProject$ { - /** @deprecated use `EnvironmentOneProject$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneProject$inboundSchema; - /** @deprecated use `EnvironmentOneProject$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneProject$outboundSchema; - /** @deprecated use `EnvironmentOneProject$Outbound` instead. */ - export type Outbound = EnvironmentOneProject$Outbound; -} - -export function environmentOneProjectToJSON( - environmentOneProject: EnvironmentOneProject, -): string { - return JSON.stringify( - EnvironmentOneProject$outboundSchema.parse(environmentOneProject), - ); -} - export function environmentOneProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -11291,48 +5204,12 @@ export const EnvironmentOneRediApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneRediApplicationStatus > = z.nativeEnum(EnvironmentOneRediApplicationStatus); -/** @internal */ -export const EnvironmentOneRediApplicationStatus$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRediApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediApplicationStatus$ { - /** @deprecated use `EnvironmentOneRediApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRediApplicationStatus$inboundSchema; - /** @deprecated use `EnvironmentOneRediApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRediApplicationStatus$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z.nativeEnum( EnvironmentOneHealthCheckSwarmRediEnum, ); -/** @internal */ -export const EnvironmentOneHealthCheckSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneHealthCheckSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmRediEnum$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneHealthCheckSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneHealthCheckSwarmRediUnion, @@ -11345,51 +5222,6 @@ export const EnvironmentOneHealthCheckSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneHealthCheckSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneHealthCheckSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneHealthCheckSwarmRediUnion$outboundSchema: z.ZodType< - EnvironmentOneHealthCheckSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneHealthCheckSwarmRediUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmRediEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneHealthCheckSwarmRediUnion$ { - /** @deprecated use `EnvironmentOneHealthCheckSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneHealthCheckSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneHealthCheckSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentOneHealthCheckSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneHealthCheckSwarmRediUnion$Outbound; -} - -export function environmentOneHealthCheckSwarmRediUnionToJSON( - environmentOneHealthCheckSwarmRediUnion: - EnvironmentOneHealthCheckSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentOneHealthCheckSwarmRediUnion$outboundSchema.parse( - environmentOneHealthCheckSwarmRediUnion, - ), - ); -} - export function environmentOneHealthCheckSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -11422,57 +5254,6 @@ export const EnvironmentOneRediHealthCheckSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneRediHealthCheckSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneRediHealthCheckSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneRediHealthCheckSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRediHealthCheckSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediHealthCheckSwarmUnion$ { - /** @deprecated use `EnvironmentOneRediHealthCheckSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRediHealthCheckSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRediHealthCheckSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRediHealthCheckSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRediHealthCheckSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRediHealthCheckSwarmUnion$Outbound; -} - -export function environmentOneRediHealthCheckSwarmUnionToJSON( - environmentOneRediHealthCheckSwarmUnion: - EnvironmentOneRediHealthCheckSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneRediHealthCheckSwarmUnion$outboundSchema.parse( - environmentOneRediHealthCheckSwarmUnion, - ), - ); -} - export function environmentOneRediHealthCheckSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -11494,23 +5275,6 @@ export const EnvironmentOneLabelsSwarmRediEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneLabelsSwarmRediEnum > = z.nativeEnum(EnvironmentOneLabelsSwarmRediEnum); -/** @internal */ -export const EnvironmentOneLabelsSwarmRediEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneLabelsSwarmRediEnum -> = EnvironmentOneLabelsSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmRediEnum$ { - /** @deprecated use `EnvironmentOneLabelsSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneLabelsSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneLabelsSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmRediUnion, @@ -11523,49 +5287,6 @@ export const EnvironmentOneLabelsSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneLabelsSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneLabelsSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneLabelsSwarmRediUnion$outboundSchema: z.ZodType< - EnvironmentOneLabelsSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneLabelsSwarmRediUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmRediEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneLabelsSwarmRediUnion$ { - /** @deprecated use `EnvironmentOneLabelsSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneLabelsSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneLabelsSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentOneLabelsSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneLabelsSwarmRediUnion$Outbound; -} - -export function environmentOneLabelsSwarmRediUnionToJSON( - environmentOneLabelsSwarmRediUnion: EnvironmentOneLabelsSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentOneLabelsSwarmRediUnion$outboundSchema.parse( - environmentOneLabelsSwarmRediUnion, - ), - ); -} - export function environmentOneLabelsSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -11593,55 +5314,6 @@ export const EnvironmentOneRediLabelsSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneRediLabelsSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneRediLabelsSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneRediLabelsSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRediLabelsSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediLabelsSwarmUnion$ { - /** @deprecated use `EnvironmentOneRediLabelsSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneRediLabelsSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRediLabelsSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRediLabelsSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRediLabelsSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRediLabelsSwarmUnion$Outbound; -} - -export function environmentOneRediLabelsSwarmUnionToJSON( - environmentOneRediLabelsSwarmUnion: EnvironmentOneRediLabelsSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneRediLabelsSwarmUnion$outboundSchema.parse( - environmentOneRediLabelsSwarmUnion, - ), - ); -} - export function environmentOneRediLabelsSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -11658,22 +5330,6 @@ export const EnvironmentOneModeSwarmRediEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneModeSwarmRediEnum > = z.nativeEnum(EnvironmentOneModeSwarmRediEnum); -/** @internal */ -export const EnvironmentOneModeSwarmRediEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneModeSwarmRediEnum -> = EnvironmentOneModeSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmRediEnum$ { - /** @deprecated use `EnvironmentOneModeSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneModeSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneModeSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneModeSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmRediUnion, @@ -11686,48 +5342,6 @@ export const EnvironmentOneModeSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneModeSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneModeSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneModeSwarmRediUnion$outboundSchema: z.ZodType< - EnvironmentOneModeSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneModeSwarmRediUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmRediEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneModeSwarmRediUnion$ { - /** @deprecated use `EnvironmentOneModeSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneModeSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneModeSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentOneModeSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneModeSwarmRediUnion$Outbound; -} - -export function environmentOneModeSwarmRediUnionToJSON( - environmentOneModeSwarmRediUnion: EnvironmentOneModeSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentOneModeSwarmRediUnion$outboundSchema.parse( - environmentOneModeSwarmRediUnion, - ), - ); -} - export function environmentOneModeSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -11745,62 +5359,14 @@ export const EnvironmentOneRediModeSwarmUnion$inboundSchema: z.ZodType< unknown > = z.union([ z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmRediEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** @internal */ -export type EnvironmentOneRediModeSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneRediModeSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneRediModeSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRediModeSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediModeSwarmUnion$ { - /** @deprecated use `EnvironmentOneRediModeSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneRediModeSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRediModeSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneRediModeSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRediModeSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRediModeSwarmUnion$Outbound; -} - -export function environmentOneRediModeSwarmUnionToJSON( - environmentOneRediModeSwarmUnion: EnvironmentOneRediModeSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneRediModeSwarmUnion$outboundSchema.parse( - environmentOneRediModeSwarmUnion, - ), - ); -} + z.string(), + z.number(), + z.boolean(), + EnvironmentOneModeSwarmRediEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), +]); export function environmentOneRediModeSwarmUnionFromJSON( jsonString: string, @@ -11817,23 +5383,6 @@ export const EnvironmentOneNetworkSwarmRediEnum$inboundSchema: z.ZodNativeEnum< typeof EnvironmentOneNetworkSwarmRediEnum > = z.nativeEnum(EnvironmentOneNetworkSwarmRediEnum); -/** @internal */ -export const EnvironmentOneNetworkSwarmRediEnum$outboundSchema: z.ZodNativeEnum< - typeof EnvironmentOneNetworkSwarmRediEnum -> = EnvironmentOneNetworkSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmRediEnum$ { - /** @deprecated use `EnvironmentOneNetworkSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneNetworkSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneNetworkSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneNetworkSwarmRediUnion, @@ -11846,50 +5395,6 @@ export const EnvironmentOneNetworkSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneNetworkSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneNetworkSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneNetworkSwarmRediUnion$outboundSchema: z.ZodType< - EnvironmentOneNetworkSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneNetworkSwarmRediUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmRediEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneNetworkSwarmRediUnion$ { - /** @deprecated use `EnvironmentOneNetworkSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneNetworkSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneNetworkSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentOneNetworkSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneNetworkSwarmRediUnion$Outbound; -} - -export function environmentOneNetworkSwarmRediUnionToJSON( - environmentOneNetworkSwarmRediUnion: EnvironmentOneNetworkSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentOneNetworkSwarmRediUnion$outboundSchema.parse( - environmentOneNetworkSwarmRediUnion, - ), - ); -} - export function environmentOneNetworkSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -11917,56 +5422,6 @@ export const EnvironmentOneRediNetworkSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneRediNetworkSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneRediNetworkSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneRediNetworkSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRediNetworkSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediNetworkSwarmUnion$ { - /** @deprecated use `EnvironmentOneRediNetworkSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRediNetworkSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRediNetworkSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRediNetworkSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRediNetworkSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRediNetworkSwarmUnion$Outbound; -} - -export function environmentOneRediNetworkSwarmUnionToJSON( - environmentOneRediNetworkSwarmUnion: EnvironmentOneRediNetworkSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneRediNetworkSwarmUnion$outboundSchema.parse( - environmentOneRediNetworkSwarmUnion, - ), - ); -} - export function environmentOneRediNetworkSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -11984,24 +5439,6 @@ export const EnvironmentOnePlacementSwarmRediEnum$inboundSchema: EnvironmentOnePlacementSwarmRediEnum, ); -/** @internal */ -export const EnvironmentOnePlacementSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOnePlacementSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmRediEnum$ { - /** @deprecated use `EnvironmentOnePlacementSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOnePlacementSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOnePlacementSwarmRediUnion, @@ -12014,50 +5451,6 @@ export const EnvironmentOnePlacementSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOnePlacementSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOnePlacementSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOnePlacementSwarmRediUnion$outboundSchema: z.ZodType< - EnvironmentOnePlacementSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentOnePlacementSwarmRediUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmRediEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOnePlacementSwarmRediUnion$ { - /** @deprecated use `EnvironmentOnePlacementSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOnePlacementSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOnePlacementSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentOnePlacementSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentOnePlacementSwarmRediUnion$Outbound; -} - -export function environmentOnePlacementSwarmRediUnionToJSON( - environmentOnePlacementSwarmRediUnion: EnvironmentOnePlacementSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentOnePlacementSwarmRediUnion$outboundSchema.parse( - environmentOnePlacementSwarmRediUnion, - ), - ); -} - export function environmentOnePlacementSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -12085,56 +5478,6 @@ export const EnvironmentOneRediPlacementSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneRediPlacementSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneRediPlacementSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneRediPlacementSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRediPlacementSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediPlacementSwarmUnion$ { - /** @deprecated use `EnvironmentOneRediPlacementSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRediPlacementSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRediPlacementSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRediPlacementSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRediPlacementSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRediPlacementSwarmUnion$Outbound; -} - -export function environmentOneRediPlacementSwarmUnionToJSON( - environmentOneRediPlacementSwarmUnion: EnvironmentOneRediPlacementSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneRediPlacementSwarmUnion$outboundSchema.parse( - environmentOneRediPlacementSwarmUnion, - ), - ); -} - export function environmentOneRediPlacementSwarmUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -12151,24 +5494,6 @@ export const EnvironmentOneRestartPolicySwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRestartPolicySwarmRediEnum); -/** @internal */ -export const EnvironmentOneRestartPolicySwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRestartPolicySwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmRediEnum$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRestartPolicySwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneRestartPolicySwarmRediUnion, @@ -12181,52 +5506,6 @@ export const EnvironmentOneRestartPolicySwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneRestartPolicySwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneRestartPolicySwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRestartPolicySwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentOneRestartPolicySwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRestartPolicySwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRestartPolicySwarmRediUnion$ { - /** @deprecated use `EnvironmentOneRestartPolicySwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRestartPolicySwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRestartPolicySwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRestartPolicySwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRestartPolicySwarmRediUnion$Outbound; -} - -export function environmentOneRestartPolicySwarmRediUnionToJSON( - environmentOneRestartPolicySwarmRediUnion: - EnvironmentOneRestartPolicySwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentOneRestartPolicySwarmRediUnion$outboundSchema.parse( - environmentOneRestartPolicySwarmRediUnion, - ), - ); -} - export function environmentOneRestartPolicySwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12259,58 +5538,6 @@ export const EnvironmentOneRediRestartPolicySwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneRediRestartPolicySwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneRediRestartPolicySwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneRediRestartPolicySwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRediRestartPolicySwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediRestartPolicySwarmUnion$ { - /** @deprecated use `EnvironmentOneRediRestartPolicySwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRediRestartPolicySwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRediRestartPolicySwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRediRestartPolicySwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRediRestartPolicySwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRediRestartPolicySwarmUnion$Outbound; -} - -export function environmentOneRediRestartPolicySwarmUnionToJSON( - environmentOneRediRestartPolicySwarmUnion: - EnvironmentOneRediRestartPolicySwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneRediRestartPolicySwarmUnion$outboundSchema.parse( - environmentOneRediRestartPolicySwarmUnion, - ), - ); -} - export function environmentOneRediRestartPolicySwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12332,24 +5559,6 @@ export const EnvironmentOneRollbackConfigSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneRollbackConfigSwarmRediEnum); -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneRollbackConfigSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmRediEnum$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneRollbackConfigSwarmRediUnion$inboundSchema: z.ZodType = @@ -12360,52 +5569,6 @@ export const EnvironmentOneRollbackConfigSwarmRediUnion$inboundSchema: EnvironmentOneRollbackConfigSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneRollbackConfigSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneRollbackConfigSwarmRediUnion$outboundSchema: - z.ZodType< - EnvironmentOneRollbackConfigSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRollbackConfigSwarmRediUnion - > = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmRediEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRollbackConfigSwarmRediUnion$ { - /** @deprecated use `EnvironmentOneRollbackConfigSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRollbackConfigSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRollbackConfigSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRollbackConfigSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRollbackConfigSwarmRediUnion$Outbound; -} - -export function environmentOneRollbackConfigSwarmRediUnionToJSON( - environmentOneRollbackConfigSwarmRediUnion: - EnvironmentOneRollbackConfigSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentOneRollbackConfigSwarmRediUnion$outboundSchema.parse( - environmentOneRollbackConfigSwarmRediUnion, - ), - ); -} - export function environmentOneRollbackConfigSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12418,76 +5581,24 @@ export function environmentOneRollbackConfigSwarmRediUnionFromJSON( EnvironmentOneRollbackConfigSwarmRediUnion$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'EnvironmentOneRollbackConfigSwarmRediUnion' from JSON`, - ); -} - -/** @internal */ -export const EnvironmentOneRediRollbackConfigSwarmUnion$inboundSchema: - z.ZodType = - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmRediEnum$inboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** @internal */ -export type EnvironmentOneRediRollbackConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneRediRollbackConfigSwarmUnion$outboundSchema: - z.ZodType< - EnvironmentOneRediRollbackConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRediRollbackConfigSwarmUnion - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediRollbackConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneRediRollbackConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRediRollbackConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRediRollbackConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRediRollbackConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRediRollbackConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRediRollbackConfigSwarmUnion$Outbound; -} - -export function environmentOneRediRollbackConfigSwarmUnionToJSON( - environmentOneRediRollbackConfigSwarmUnion: - EnvironmentOneRediRollbackConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneRediRollbackConfigSwarmUnion$outboundSchema.parse( - environmentOneRediRollbackConfigSwarmUnion, - ), + `Failed to parse 'EnvironmentOneRollbackConfigSwarmRediUnion' from JSON`, ); } +/** @internal */ +export const EnvironmentOneRediRollbackConfigSwarmUnion$inboundSchema: + z.ZodType = + z.union([ + z.union([ + z.string(), + z.number(), + z.boolean(), + EnvironmentOneRollbackConfigSwarmRediEnum$inboundSchema, + ]), + z.array(z.any()), + z.record(z.any()), + ]); + export function environmentOneRediRollbackConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12509,24 +5620,6 @@ export const EnvironmentOneUpdateConfigSwarmRediEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EnvironmentOneUpdateConfigSwarmRediEnum); -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmRediEnum$outboundSchema: - z.ZodNativeEnum = - EnvironmentOneUpdateConfigSwarmRediEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmRediEnum$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmRediEnum$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmRediEnum$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmRediEnum$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmRediEnum$outboundSchema; -} - /** @internal */ export const EnvironmentOneUpdateConfigSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneUpdateConfigSwarmRediUnion, @@ -12539,51 +5632,6 @@ export const EnvironmentOneUpdateConfigSwarmRediUnion$inboundSchema: z.ZodType< EnvironmentOneUpdateConfigSwarmRediEnum$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneUpdateConfigSwarmRediUnion$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const EnvironmentOneUpdateConfigSwarmRediUnion$outboundSchema: z.ZodType< - EnvironmentOneUpdateConfigSwarmRediUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneUpdateConfigSwarmRediUnion -> = z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmRediEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneUpdateConfigSwarmRediUnion$ { - /** @deprecated use `EnvironmentOneUpdateConfigSwarmRediUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneUpdateConfigSwarmRediUnion$inboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmRediUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneUpdateConfigSwarmRediUnion$outboundSchema; - /** @deprecated use `EnvironmentOneUpdateConfigSwarmRediUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneUpdateConfigSwarmRediUnion$Outbound; -} - -export function environmentOneUpdateConfigSwarmRediUnionToJSON( - environmentOneUpdateConfigSwarmRediUnion: - EnvironmentOneUpdateConfigSwarmRediUnion, -): string { - return JSON.stringify( - EnvironmentOneUpdateConfigSwarmRediUnion$outboundSchema.parse( - environmentOneUpdateConfigSwarmRediUnion, - ), - ); -} - export function environmentOneUpdateConfigSwarmRediUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12616,57 +5664,6 @@ export const EnvironmentOneRediUpdateConfigSwarmUnion$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type EnvironmentOneRediUpdateConfigSwarmUnion$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const EnvironmentOneRediUpdateConfigSwarmUnion$outboundSchema: z.ZodType< - EnvironmentOneRediUpdateConfigSwarmUnion$Outbound, - z.ZodTypeDef, - EnvironmentOneRediUpdateConfigSwarmUnion -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRediUpdateConfigSwarmUnion$ { - /** @deprecated use `EnvironmentOneRediUpdateConfigSwarmUnion$inboundSchema` instead. */ - export const inboundSchema = - EnvironmentOneRediUpdateConfigSwarmUnion$inboundSchema; - /** @deprecated use `EnvironmentOneRediUpdateConfigSwarmUnion$outboundSchema` instead. */ - export const outboundSchema = - EnvironmentOneRediUpdateConfigSwarmUnion$outboundSchema; - /** @deprecated use `EnvironmentOneRediUpdateConfigSwarmUnion$Outbound` instead. */ - export type Outbound = EnvironmentOneRediUpdateConfigSwarmUnion$Outbound; -} - -export function environmentOneRediUpdateConfigSwarmUnionToJSON( - environmentOneRediUpdateConfigSwarmUnion: - EnvironmentOneRediUpdateConfigSwarmUnion, -): string { - return JSON.stringify( - EnvironmentOneRediUpdateConfigSwarmUnion$outboundSchema.parse( - environmentOneRediUpdateConfigSwarmUnion, - ), - ); -} - export function environmentOneRediUpdateConfigSwarmUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -12805,195 +5802,6 @@ export const EnvironmentOneRedi$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type EnvironmentOneRedi$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - labelsSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - name: string; - networkSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - placementSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - redisId: string; - replicas: number; - restartPolicySwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - rollbackConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; - serverId: string | null; - updateConfigSwarm: string | number | boolean | string | Array | { - [k: string]: any; - } | null; -}; - -/** @internal */ -export const EnvironmentOneRedi$outboundSchema: z.ZodType< - EnvironmentOneRedi$Outbound, - z.ZodTypeDef, - EnvironmentOneRedi -> = z.object({ - appName: z.string(), - applicationStatus: EnvironmentOneRediApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneHealthCheckSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - labelsSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneLabelsSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneModeSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - name: z.string(), - networkSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneNetworkSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - placementSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOnePlacementSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRestartPolicySwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - rollbackConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneRollbackConfigSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - EnvironmentOneUpdateConfigSwarmRediEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneRedi$ { - /** @deprecated use `EnvironmentOneRedi$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneRedi$inboundSchema; - /** @deprecated use `EnvironmentOneRedi$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneRedi$outboundSchema; - /** @deprecated use `EnvironmentOneRedi$Outbound` instead. */ - export type Outbound = EnvironmentOneRedi$Outbound; -} - -export function environmentOneRediToJSON( - environmentOneRedi: EnvironmentOneRedi, -): string { - return JSON.stringify( - EnvironmentOneRedi$outboundSchema.parse(environmentOneRedi), - ); -} - export function environmentOneRediFromJSON( jsonString: string, ): SafeParseResult { @@ -13026,67 +5834,6 @@ export const EnvironmentOneResponseBody$inboundSchema: z.ZodType< redis: z.array(z.lazy(() => EnvironmentOneRedi$inboundSchema)), }); -/** @internal */ -export type EnvironmentOneResponseBody$Outbound = { - applications: Array; - compose: Array; - createdAt: string; - description: string | null; - env: string; - environmentId: string; - mariadb: Array; - mongo: Array; - mysql: Array; - name: string; - postgres: Array; - project: EnvironmentOneProject$Outbound; - projectId: string; - redis: Array; -}; - -/** @internal */ -export const EnvironmentOneResponseBody$outboundSchema: z.ZodType< - EnvironmentOneResponseBody$Outbound, - z.ZodTypeDef, - EnvironmentOneResponseBody -> = z.object({ - applications: z.array(z.lazy(() => EnvironmentOneApplication$outboundSchema)), - compose: z.array(z.lazy(() => EnvironmentOneCompose$outboundSchema)), - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - mariadb: z.array(z.lazy(() => EnvironmentOneMariadb$outboundSchema)), - mongo: z.array(z.lazy(() => EnvironmentOneMongo$outboundSchema)), - mysql: z.array(z.lazy(() => EnvironmentOneMysql$outboundSchema)), - name: z.string(), - postgres: z.array(z.lazy(() => EnvironmentOnePostgre$outboundSchema)), - project: z.lazy(() => EnvironmentOneProject$outboundSchema), - projectId: z.string(), - redis: z.array(z.lazy(() => EnvironmentOneRedi$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneResponseBody$ { - /** @deprecated use `EnvironmentOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneResponseBody$inboundSchema; - /** @deprecated use `EnvironmentOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneResponseBody$outboundSchema; - /** @deprecated use `EnvironmentOneResponseBody$Outbound` instead. */ - export type Outbound = EnvironmentOneResponseBody$Outbound; -} - -export function environmentOneResponseBodyToJSON( - environmentOneResponseBody: EnvironmentOneResponseBody, -): string { - return JSON.stringify( - EnvironmentOneResponseBody$outboundSchema.parse(environmentOneResponseBody), - ); -} - export function environmentOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -13107,42 +5854,6 @@ export const EnvironmentOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type EnvironmentOneResponse$Outbound = - | EnvironmentOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const EnvironmentOneResponse$outboundSchema: z.ZodType< - EnvironmentOneResponse$Outbound, - z.ZodTypeDef, - EnvironmentOneResponse -> = z.union([ - z.lazy(() => EnvironmentOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentOneResponse$ { - /** @deprecated use `EnvironmentOneResponse$inboundSchema` instead. */ - export const inboundSchema = EnvironmentOneResponse$inboundSchema; - /** @deprecated use `EnvironmentOneResponse$outboundSchema` instead. */ - export const outboundSchema = EnvironmentOneResponse$outboundSchema; - /** @deprecated use `EnvironmentOneResponse$Outbound` instead. */ - export type Outbound = EnvironmentOneResponse$Outbound; -} - -export function environmentOneResponseToJSON( - environmentOneResponse: EnvironmentOneResponse, -): string { - return JSON.stringify( - EnvironmentOneResponse$outboundSchema.parse(environmentOneResponse), - ); -} - export function environmentOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/environmentremove.ts b/src/models/operations/environmentremove.ts index b2c44ae..455832e 100644 --- a/src/models/operations/environmentremove.ts +++ b/src/models/operations/environmentremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -28,15 +28,6 @@ export type EnvironmentRemoveResponse = | EnvironmentRemoveResponseBody | models.ErrorT; -/** @internal */ -export const EnvironmentRemoveRequest$inboundSchema: z.ZodType< - EnvironmentRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - environmentId: z.string(), -}); - /** @internal */ export type EnvironmentRemoveRequest$Outbound = { environmentId: string; @@ -51,19 +42,6 @@ export const EnvironmentRemoveRequest$outboundSchema: z.ZodType< environmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentRemoveRequest$ { - /** @deprecated use `EnvironmentRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = EnvironmentRemoveRequest$inboundSchema; - /** @deprecated use `EnvironmentRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = EnvironmentRemoveRequest$outboundSchema; - /** @deprecated use `EnvironmentRemoveRequest$Outbound` instead. */ - export type Outbound = EnvironmentRemoveRequest$Outbound; -} - export function environmentRemoveRequestToJSON( environmentRemoveRequest: EnvironmentRemoveRequest, ): string { @@ -72,16 +50,6 @@ export function environmentRemoveRequestToJSON( ); } -export function environmentRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentRemoveRequest' from JSON`, - ); -} - /** @internal */ export const EnvironmentRemoveResponseBody$inboundSchema: z.ZodType< EnvironmentRemoveResponseBody, @@ -96,53 +64,6 @@ export const EnvironmentRemoveResponseBody$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type EnvironmentRemoveResponseBody$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - projectId: string; -}; - -/** @internal */ -export const EnvironmentRemoveResponseBody$outboundSchema: z.ZodType< - EnvironmentRemoveResponseBody$Outbound, - z.ZodTypeDef, - EnvironmentRemoveResponseBody -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentRemoveResponseBody$ { - /** @deprecated use `EnvironmentRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = EnvironmentRemoveResponseBody$inboundSchema; - /** @deprecated use `EnvironmentRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = EnvironmentRemoveResponseBody$outboundSchema; - /** @deprecated use `EnvironmentRemoveResponseBody$Outbound` instead. */ - export type Outbound = EnvironmentRemoveResponseBody$Outbound; -} - -export function environmentRemoveResponseBodyToJSON( - environmentRemoveResponseBody: EnvironmentRemoveResponseBody, -): string { - return JSON.stringify( - EnvironmentRemoveResponseBody$outboundSchema.parse( - environmentRemoveResponseBody, - ), - ); -} - export function environmentRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -163,42 +84,6 @@ export const EnvironmentRemoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type EnvironmentRemoveResponse$Outbound = - | EnvironmentRemoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const EnvironmentRemoveResponse$outboundSchema: z.ZodType< - EnvironmentRemoveResponse$Outbound, - z.ZodTypeDef, - EnvironmentRemoveResponse -> = z.union([ - z.lazy(() => EnvironmentRemoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentRemoveResponse$ { - /** @deprecated use `EnvironmentRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = EnvironmentRemoveResponse$inboundSchema; - /** @deprecated use `EnvironmentRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = EnvironmentRemoveResponse$outboundSchema; - /** @deprecated use `EnvironmentRemoveResponse$Outbound` instead. */ - export type Outbound = EnvironmentRemoveResponse$Outbound; -} - -export function environmentRemoveResponseToJSON( - environmentRemoveResponse: EnvironmentRemoveResponse, -): string { - return JSON.stringify( - EnvironmentRemoveResponse$outboundSchema.parse(environmentRemoveResponse), - ); -} - export function environmentRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/environmentupdate.ts b/src/models/operations/environmentupdate.ts index ceae72f..000e24b 100644 --- a/src/models/operations/environmentupdate.ts +++ b/src/models/operations/environmentupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,20 +33,6 @@ export type EnvironmentUpdateResponse = | EnvironmentUpdateResponseBody | models.ErrorT; -/** @internal */ -export const EnvironmentUpdateRequest$inboundSchema: z.ZodType< - EnvironmentUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - createdAt: z.string().optional(), - description: z.nullable(z.string()).optional(), - env: z.string().optional(), - environmentId: z.string(), - name: z.string().optional(), - projectId: z.string().optional(), -}); - /** @internal */ export type EnvironmentUpdateRequest$Outbound = { createdAt?: string | undefined; @@ -71,19 +57,6 @@ export const EnvironmentUpdateRequest$outboundSchema: z.ZodType< projectId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentUpdateRequest$ { - /** @deprecated use `EnvironmentUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = EnvironmentUpdateRequest$inboundSchema; - /** @deprecated use `EnvironmentUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = EnvironmentUpdateRequest$outboundSchema; - /** @deprecated use `EnvironmentUpdateRequest$Outbound` instead. */ - export type Outbound = EnvironmentUpdateRequest$Outbound; -} - export function environmentUpdateRequestToJSON( environmentUpdateRequest: EnvironmentUpdateRequest, ): string { @@ -92,16 +65,6 @@ export function environmentUpdateRequestToJSON( ); } -export function environmentUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EnvironmentUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EnvironmentUpdateRequest' from JSON`, - ); -} - /** @internal */ export const EnvironmentUpdateResponseBody$inboundSchema: z.ZodType< EnvironmentUpdateResponseBody, @@ -116,53 +79,6 @@ export const EnvironmentUpdateResponseBody$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type EnvironmentUpdateResponseBody$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - projectId: string; -}; - -/** @internal */ -export const EnvironmentUpdateResponseBody$outboundSchema: z.ZodType< - EnvironmentUpdateResponseBody$Outbound, - z.ZodTypeDef, - EnvironmentUpdateResponseBody -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentUpdateResponseBody$ { - /** @deprecated use `EnvironmentUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = EnvironmentUpdateResponseBody$inboundSchema; - /** @deprecated use `EnvironmentUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = EnvironmentUpdateResponseBody$outboundSchema; - /** @deprecated use `EnvironmentUpdateResponseBody$Outbound` instead. */ - export type Outbound = EnvironmentUpdateResponseBody$Outbound; -} - -export function environmentUpdateResponseBodyToJSON( - environmentUpdateResponseBody: EnvironmentUpdateResponseBody, -): string { - return JSON.stringify( - EnvironmentUpdateResponseBody$outboundSchema.parse( - environmentUpdateResponseBody, - ), - ); -} - export function environmentUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -183,42 +99,6 @@ export const EnvironmentUpdateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type EnvironmentUpdateResponse$Outbound = - | EnvironmentUpdateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const EnvironmentUpdateResponse$outboundSchema: z.ZodType< - EnvironmentUpdateResponse$Outbound, - z.ZodTypeDef, - EnvironmentUpdateResponse -> = z.union([ - z.lazy(() => EnvironmentUpdateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EnvironmentUpdateResponse$ { - /** @deprecated use `EnvironmentUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = EnvironmentUpdateResponse$inboundSchema; - /** @deprecated use `EnvironmentUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = EnvironmentUpdateResponse$outboundSchema; - /** @deprecated use `EnvironmentUpdateResponse$Outbound` instead. */ - export type Outbound = EnvironmentUpdateResponse$Outbound; -} - -export function environmentUpdateResponseToJSON( - environmentUpdateResponse: EnvironmentUpdateResponse, -): string { - return JSON.stringify( - EnvironmentUpdateResponse$outboundSchema.parse(environmentUpdateResponse), - ); -} - export function environmentUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/giteacreate.ts b/src/models/operations/giteacreate.ts index 0c396ad..c3785d5 100644 --- a/src/models/operations/giteacreate.ts +++ b/src/models/operations/giteacreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -36,28 +36,6 @@ export type GiteaCreateResponseBody = { export type GiteaCreateResponse = GiteaCreateResponseBody | models.ErrorT; -/** @internal */ -export const GiteaCreateRequest$inboundSchema: z.ZodType< - GiteaCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessToken: z.string().optional(), - clientId: z.string().optional(), - clientSecret: z.string().optional(), - expiresAt: z.number().optional(), - gitProviderId: z.string().optional(), - giteaId: z.string().optional(), - giteaUrl: z.string(), - giteaUsername: z.string().optional(), - lastAuthenticatedAt: z.number().optional(), - name: z.string(), - organizationName: z.string().optional(), - redirectUri: z.string().optional(), - refreshToken: z.string().optional(), - scopes: z.string().optional(), -}); - /** @internal */ export type GiteaCreateRequest$Outbound = { accessToken?: string | undefined; @@ -98,19 +76,6 @@ export const GiteaCreateRequest$outboundSchema: z.ZodType< scopes: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaCreateRequest$ { - /** @deprecated use `GiteaCreateRequest$inboundSchema` instead. */ - export const inboundSchema = GiteaCreateRequest$inboundSchema; - /** @deprecated use `GiteaCreateRequest$outboundSchema` instead. */ - export const outboundSchema = GiteaCreateRequest$outboundSchema; - /** @deprecated use `GiteaCreateRequest$Outbound` instead. */ - export type Outbound = GiteaCreateRequest$Outbound; -} - export function giteaCreateRequestToJSON( giteaCreateRequest: GiteaCreateRequest, ): string { @@ -119,16 +84,6 @@ export function giteaCreateRequestToJSON( ); } -export function giteaCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GiteaCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GiteaCreateRequest' from JSON`, - ); -} - /** @internal */ export const GiteaCreateResponseBody$inboundSchema: z.ZodType< GiteaCreateResponseBody, @@ -140,45 +95,6 @@ export const GiteaCreateResponseBody$inboundSchema: z.ZodType< giteaUrl: z.string(), }); -/** @internal */ -export type GiteaCreateResponseBody$Outbound = { - clientId: string; - giteaId: string; - giteaUrl: string; -}; - -/** @internal */ -export const GiteaCreateResponseBody$outboundSchema: z.ZodType< - GiteaCreateResponseBody$Outbound, - z.ZodTypeDef, - GiteaCreateResponseBody -> = z.object({ - clientId: z.string(), - giteaId: z.string(), - giteaUrl: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaCreateResponseBody$ { - /** @deprecated use `GiteaCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = GiteaCreateResponseBody$inboundSchema; - /** @deprecated use `GiteaCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = GiteaCreateResponseBody$outboundSchema; - /** @deprecated use `GiteaCreateResponseBody$Outbound` instead. */ - export type Outbound = GiteaCreateResponseBody$Outbound; -} - -export function giteaCreateResponseBodyToJSON( - giteaCreateResponseBody: GiteaCreateResponseBody, -): string { - return JSON.stringify( - GiteaCreateResponseBody$outboundSchema.parse(giteaCreateResponseBody), - ); -} - export function giteaCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -199,42 +115,6 @@ export const GiteaCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type GiteaCreateResponse$Outbound = - | GiteaCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const GiteaCreateResponse$outboundSchema: z.ZodType< - GiteaCreateResponse$Outbound, - z.ZodTypeDef, - GiteaCreateResponse -> = z.union([ - z.lazy(() => GiteaCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaCreateResponse$ { - /** @deprecated use `GiteaCreateResponse$inboundSchema` instead. */ - export const inboundSchema = GiteaCreateResponse$inboundSchema; - /** @deprecated use `GiteaCreateResponse$outboundSchema` instead. */ - export const outboundSchema = GiteaCreateResponse$outboundSchema; - /** @deprecated use `GiteaCreateResponse$Outbound` instead. */ - export type Outbound = GiteaCreateResponse$Outbound; -} - -export function giteaCreateResponseToJSON( - giteaCreateResponse: GiteaCreateResponse, -): string { - return JSON.stringify( - GiteaCreateResponse$outboundSchema.parse(giteaCreateResponse), - ); -} - export function giteaCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/giteagetgiteabranches.ts b/src/models/operations/giteagetgiteabranches.ts index c267f4d..cf681a4 100644 --- a/src/models/operations/giteagetgiteabranches.ts +++ b/src/models/operations/giteagetgiteabranches.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type GiteaGetGiteaBranchesRequest = { owner: string; @@ -13,17 +10,6 @@ export type GiteaGetGiteaBranchesRequest = { giteaId?: string | undefined; }; -/** @internal */ -export const GiteaGetGiteaBranchesRequest$inboundSchema: z.ZodType< - GiteaGetGiteaBranchesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - owner: z.string(), - repositoryName: z.string(), - giteaId: z.string().optional(), -}); - /** @internal */ export type GiteaGetGiteaBranchesRequest$Outbound = { owner: string; @@ -42,19 +28,6 @@ export const GiteaGetGiteaBranchesRequest$outboundSchema: z.ZodType< giteaId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaGetGiteaBranchesRequest$ { - /** @deprecated use `GiteaGetGiteaBranchesRequest$inboundSchema` instead. */ - export const inboundSchema = GiteaGetGiteaBranchesRequest$inboundSchema; - /** @deprecated use `GiteaGetGiteaBranchesRequest$outboundSchema` instead. */ - export const outboundSchema = GiteaGetGiteaBranchesRequest$outboundSchema; - /** @deprecated use `GiteaGetGiteaBranchesRequest$Outbound` instead. */ - export type Outbound = GiteaGetGiteaBranchesRequest$Outbound; -} - export function giteaGetGiteaBranchesRequestToJSON( giteaGetGiteaBranchesRequest: GiteaGetGiteaBranchesRequest, ): string { @@ -64,13 +37,3 @@ export function giteaGetGiteaBranchesRequestToJSON( ), ); } - -export function giteaGetGiteaBranchesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GiteaGetGiteaBranchesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GiteaGetGiteaBranchesRequest' from JSON`, - ); -} diff --git a/src/models/operations/giteagetgitearepositories.ts b/src/models/operations/giteagetgitearepositories.ts index 63d7454..4d9529f 100644 --- a/src/models/operations/giteagetgitearepositories.ts +++ b/src/models/operations/giteagetgitearepositories.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type GiteaGetGiteaRepositoriesRequest = { giteaId: string; }; -/** @internal */ -export const GiteaGetGiteaRepositoriesRequest$inboundSchema: z.ZodType< - GiteaGetGiteaRepositoriesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - giteaId: z.string(), -}); - /** @internal */ export type GiteaGetGiteaRepositoriesRequest$Outbound = { giteaId: string; @@ -34,19 +22,6 @@ export const GiteaGetGiteaRepositoriesRequest$outboundSchema: z.ZodType< giteaId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaGetGiteaRepositoriesRequest$ { - /** @deprecated use `GiteaGetGiteaRepositoriesRequest$inboundSchema` instead. */ - export const inboundSchema = GiteaGetGiteaRepositoriesRequest$inboundSchema; - /** @deprecated use `GiteaGetGiteaRepositoriesRequest$outboundSchema` instead. */ - export const outboundSchema = GiteaGetGiteaRepositoriesRequest$outboundSchema; - /** @deprecated use `GiteaGetGiteaRepositoriesRequest$Outbound` instead. */ - export type Outbound = GiteaGetGiteaRepositoriesRequest$Outbound; -} - export function giteaGetGiteaRepositoriesRequestToJSON( giteaGetGiteaRepositoriesRequest: GiteaGetGiteaRepositoriesRequest, ): string { @@ -56,13 +31,3 @@ export function giteaGetGiteaRepositoriesRequestToJSON( ), ); } - -export function giteaGetGiteaRepositoriesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GiteaGetGiteaRepositoriesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GiteaGetGiteaRepositoriesRequest' from JSON`, - ); -} diff --git a/src/models/operations/giteagetgiteaurl.ts b/src/models/operations/giteagetgiteaurl.ts index 7490520..c24fe0b 100644 --- a/src/models/operations/giteagetgiteaurl.ts +++ b/src/models/operations/giteagetgiteaurl.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type GiteaGetGiteaUrlRequest = { export type GiteaGetGiteaUrlResponse = models.ErrorT | string; -/** @internal */ -export const GiteaGetGiteaUrlRequest$inboundSchema: z.ZodType< - GiteaGetGiteaUrlRequest, - z.ZodTypeDef, - unknown -> = z.object({ - giteaId: z.string(), -}); - /** @internal */ export type GiteaGetGiteaUrlRequest$Outbound = { giteaId: string; @@ -37,19 +28,6 @@ export const GiteaGetGiteaUrlRequest$outboundSchema: z.ZodType< giteaId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaGetGiteaUrlRequest$ { - /** @deprecated use `GiteaGetGiteaUrlRequest$inboundSchema` instead. */ - export const inboundSchema = GiteaGetGiteaUrlRequest$inboundSchema; - /** @deprecated use `GiteaGetGiteaUrlRequest$outboundSchema` instead. */ - export const outboundSchema = GiteaGetGiteaUrlRequest$outboundSchema; - /** @deprecated use `GiteaGetGiteaUrlRequest$Outbound` instead. */ - export type Outbound = GiteaGetGiteaUrlRequest$Outbound; -} - export function giteaGetGiteaUrlRequestToJSON( giteaGetGiteaUrlRequest: GiteaGetGiteaUrlRequest, ): string { @@ -58,16 +36,6 @@ export function giteaGetGiteaUrlRequestToJSON( ); } -export function giteaGetGiteaUrlRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GiteaGetGiteaUrlRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GiteaGetGiteaUrlRequest' from JSON`, - ); -} - /** @internal */ export const GiteaGetGiteaUrlResponse$inboundSchema: z.ZodType< GiteaGetGiteaUrlResponse, @@ -75,37 +43,6 @@ export const GiteaGetGiteaUrlResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.string()]); -/** @internal */ -export type GiteaGetGiteaUrlResponse$Outbound = models.ErrorT$Outbound | string; - -/** @internal */ -export const GiteaGetGiteaUrlResponse$outboundSchema: z.ZodType< - GiteaGetGiteaUrlResponse$Outbound, - z.ZodTypeDef, - GiteaGetGiteaUrlResponse -> = z.union([models.ErrorT$outboundSchema, z.string()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaGetGiteaUrlResponse$ { - /** @deprecated use `GiteaGetGiteaUrlResponse$inboundSchema` instead. */ - export const inboundSchema = GiteaGetGiteaUrlResponse$inboundSchema; - /** @deprecated use `GiteaGetGiteaUrlResponse$outboundSchema` instead. */ - export const outboundSchema = GiteaGetGiteaUrlResponse$outboundSchema; - /** @deprecated use `GiteaGetGiteaUrlResponse$Outbound` instead. */ - export type Outbound = GiteaGetGiteaUrlResponse$Outbound; -} - -export function giteaGetGiteaUrlResponseToJSON( - giteaGetGiteaUrlResponse: GiteaGetGiteaUrlResponse, -): string { - return JSON.stringify( - GiteaGetGiteaUrlResponse$outboundSchema.parse(giteaGetGiteaUrlResponse), - ); -} - export function giteaGetGiteaUrlResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/giteagiteaproviders.ts b/src/models/operations/giteagiteaproviders.ts index 801bbf2..f6bd646 100644 --- a/src/models/operations/giteagiteaproviders.ts +++ b/src/models/operations/giteagiteaproviders.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -42,22 +42,6 @@ export const GiteaGiteaProvidersProviderType$inboundSchema: z.ZodNativeEnum< typeof GiteaGiteaProvidersProviderType > = z.nativeEnum(GiteaGiteaProvidersProviderType); -/** @internal */ -export const GiteaGiteaProvidersProviderType$outboundSchema: z.ZodNativeEnum< - typeof GiteaGiteaProvidersProviderType -> = GiteaGiteaProvidersProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaGiteaProvidersProviderType$ { - /** @deprecated use `GiteaGiteaProvidersProviderType$inboundSchema` instead. */ - export const inboundSchema = GiteaGiteaProvidersProviderType$inboundSchema; - /** @deprecated use `GiteaGiteaProvidersProviderType$outboundSchema` instead. */ - export const outboundSchema = GiteaGiteaProvidersProviderType$outboundSchema; -} - /** @internal */ export const GiteaGiteaProvidersGitProvider$inboundSchema: z.ZodType< GiteaGiteaProvidersGitProvider, @@ -72,53 +56,6 @@ export const GiteaGiteaProvidersGitProvider$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type GiteaGiteaProvidersGitProvider$Outbound = { - createdAt: string; - gitProviderId: string; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const GiteaGiteaProvidersGitProvider$outboundSchema: z.ZodType< - GiteaGiteaProvidersGitProvider$Outbound, - z.ZodTypeDef, - GiteaGiteaProvidersGitProvider -> = z.object({ - createdAt: z.string(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string(), - providerType: GiteaGiteaProvidersProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaGiteaProvidersGitProvider$ { - /** @deprecated use `GiteaGiteaProvidersGitProvider$inboundSchema` instead. */ - export const inboundSchema = GiteaGiteaProvidersGitProvider$inboundSchema; - /** @deprecated use `GiteaGiteaProvidersGitProvider$outboundSchema` instead. */ - export const outboundSchema = GiteaGiteaProvidersGitProvider$outboundSchema; - /** @deprecated use `GiteaGiteaProvidersGitProvider$Outbound` instead. */ - export type Outbound = GiteaGiteaProvidersGitProvider$Outbound; -} - -export function giteaGiteaProvidersGitProviderToJSON( - giteaGiteaProvidersGitProvider: GiteaGiteaProvidersGitProvider, -): string { - return JSON.stringify( - GiteaGiteaProvidersGitProvider$outboundSchema.parse( - giteaGiteaProvidersGitProvider, - ), - ); -} - export function giteaGiteaProvidersGitProviderFromJSON( jsonString: string, ): SafeParseResult { @@ -139,45 +76,6 @@ export const GiteaGiteaProvidersResponseBody$inboundSchema: z.ZodType< giteaId: z.string(), }); -/** @internal */ -export type GiteaGiteaProvidersResponseBody$Outbound = { - gitProvider: GiteaGiteaProvidersGitProvider$Outbound; - giteaId: string; -}; - -/** @internal */ -export const GiteaGiteaProvidersResponseBody$outboundSchema: z.ZodType< - GiteaGiteaProvidersResponseBody$Outbound, - z.ZodTypeDef, - GiteaGiteaProvidersResponseBody -> = z.object({ - gitProvider: z.lazy(() => GiteaGiteaProvidersGitProvider$outboundSchema), - giteaId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaGiteaProvidersResponseBody$ { - /** @deprecated use `GiteaGiteaProvidersResponseBody$inboundSchema` instead. */ - export const inboundSchema = GiteaGiteaProvidersResponseBody$inboundSchema; - /** @deprecated use `GiteaGiteaProvidersResponseBody$outboundSchema` instead. */ - export const outboundSchema = GiteaGiteaProvidersResponseBody$outboundSchema; - /** @deprecated use `GiteaGiteaProvidersResponseBody$Outbound` instead. */ - export type Outbound = GiteaGiteaProvidersResponseBody$Outbound; -} - -export function giteaGiteaProvidersResponseBodyToJSON( - giteaGiteaProvidersResponseBody: GiteaGiteaProvidersResponseBody, -): string { - return JSON.stringify( - GiteaGiteaProvidersResponseBody$outboundSchema.parse( - giteaGiteaProvidersResponseBody, - ), - ); -} - export function giteaGiteaProvidersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -198,44 +96,6 @@ export const GiteaGiteaProvidersResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => GiteaGiteaProvidersResponseBody$inboundSchema)), ]); -/** @internal */ -export type GiteaGiteaProvidersResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const GiteaGiteaProvidersResponse$outboundSchema: z.ZodType< - GiteaGiteaProvidersResponse$Outbound, - z.ZodTypeDef, - GiteaGiteaProvidersResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => GiteaGiteaProvidersResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaGiteaProvidersResponse$ { - /** @deprecated use `GiteaGiteaProvidersResponse$inboundSchema` instead. */ - export const inboundSchema = GiteaGiteaProvidersResponse$inboundSchema; - /** @deprecated use `GiteaGiteaProvidersResponse$outboundSchema` instead. */ - export const outboundSchema = GiteaGiteaProvidersResponse$outboundSchema; - /** @deprecated use `GiteaGiteaProvidersResponse$Outbound` instead. */ - export type Outbound = GiteaGiteaProvidersResponse$Outbound; -} - -export function giteaGiteaProvidersResponseToJSON( - giteaGiteaProvidersResponse: GiteaGiteaProvidersResponse, -): string { - return JSON.stringify( - GiteaGiteaProvidersResponse$outboundSchema.parse( - giteaGiteaProvidersResponse, - ), - ); -} - export function giteaGiteaProvidersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/giteaone.ts b/src/models/operations/giteaone.ts index 2a77d77..43127a1 100644 --- a/src/models/operations/giteaone.ts +++ b/src/models/operations/giteaone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -50,15 +50,6 @@ export type GiteaOneResponseBody = { export type GiteaOneResponse = GiteaOneResponseBody | models.ErrorT; -/** @internal */ -export const GiteaOneRequest$inboundSchema: z.ZodType< - GiteaOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - giteaId: z.string(), -}); - /** @internal */ export type GiteaOneRequest$Outbound = { giteaId: string; @@ -73,56 +64,17 @@ export const GiteaOneRequest$outboundSchema: z.ZodType< giteaId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaOneRequest$ { - /** @deprecated use `GiteaOneRequest$inboundSchema` instead. */ - export const inboundSchema = GiteaOneRequest$inboundSchema; - /** @deprecated use `GiteaOneRequest$outboundSchema` instead. */ - export const outboundSchema = GiteaOneRequest$outboundSchema; - /** @deprecated use `GiteaOneRequest$Outbound` instead. */ - export type Outbound = GiteaOneRequest$Outbound; -} - export function giteaOneRequestToJSON( giteaOneRequest: GiteaOneRequest, ): string { return JSON.stringify(GiteaOneRequest$outboundSchema.parse(giteaOneRequest)); } -export function giteaOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GiteaOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GiteaOneRequest' from JSON`, - ); -} - /** @internal */ export const GiteaOneProviderType$inboundSchema: z.ZodNativeEnum< typeof GiteaOneProviderType > = z.nativeEnum(GiteaOneProviderType); -/** @internal */ -export const GiteaOneProviderType$outboundSchema: z.ZodNativeEnum< - typeof GiteaOneProviderType -> = GiteaOneProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaOneProviderType$ { - /** @deprecated use `GiteaOneProviderType$inboundSchema` instead. */ - export const inboundSchema = GiteaOneProviderType$inboundSchema; - /** @deprecated use `GiteaOneProviderType$outboundSchema` instead. */ - export const outboundSchema = GiteaOneProviderType$outboundSchema; -} - /** @internal */ export const GiteaOneGitProvider$inboundSchema: z.ZodType< GiteaOneGitProvider, @@ -137,51 +89,6 @@ export const GiteaOneGitProvider$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type GiteaOneGitProvider$Outbound = { - createdAt: string; - gitProviderId: string; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const GiteaOneGitProvider$outboundSchema: z.ZodType< - GiteaOneGitProvider$Outbound, - z.ZodTypeDef, - GiteaOneGitProvider -> = z.object({ - createdAt: z.string(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string(), - providerType: GiteaOneProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaOneGitProvider$ { - /** @deprecated use `GiteaOneGitProvider$inboundSchema` instead. */ - export const inboundSchema = GiteaOneGitProvider$inboundSchema; - /** @deprecated use `GiteaOneGitProvider$outboundSchema` instead. */ - export const outboundSchema = GiteaOneGitProvider$outboundSchema; - /** @deprecated use `GiteaOneGitProvider$Outbound` instead. */ - export type Outbound = GiteaOneGitProvider$Outbound; -} - -export function giteaOneGitProviderToJSON( - giteaOneGitProvider: GiteaOneGitProvider, -): string { - return JSON.stringify( - GiteaOneGitProvider$outboundSchema.parse(giteaOneGitProvider), - ); -} - export function giteaOneGitProviderFromJSON( jsonString: string, ): SafeParseResult { @@ -212,63 +119,6 @@ export const GiteaOneResponseBody$inboundSchema: z.ZodType< scopes: z.nullable(z.string()), }); -/** @internal */ -export type GiteaOneResponseBody$Outbound = { - accessToken: string | null; - clientId: string | null; - clientSecret: string | null; - expiresAt: number | null; - gitProvider: GiteaOneGitProvider$Outbound; - gitProviderId: string; - giteaId: string; - giteaUrl: string; - lastAuthenticatedAt: number | null; - redirectUri: string | null; - refreshToken: string | null; - scopes: string | null; -}; - -/** @internal */ -export const GiteaOneResponseBody$outboundSchema: z.ZodType< - GiteaOneResponseBody$Outbound, - z.ZodTypeDef, - GiteaOneResponseBody -> = z.object({ - accessToken: z.nullable(z.string()), - clientId: z.nullable(z.string()), - clientSecret: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProvider: z.lazy(() => GiteaOneGitProvider$outboundSchema), - gitProviderId: z.string(), - giteaId: z.string(), - giteaUrl: z.string(), - lastAuthenticatedAt: z.nullable(z.number()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - scopes: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaOneResponseBody$ { - /** @deprecated use `GiteaOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = GiteaOneResponseBody$inboundSchema; - /** @deprecated use `GiteaOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = GiteaOneResponseBody$outboundSchema; - /** @deprecated use `GiteaOneResponseBody$Outbound` instead. */ - export type Outbound = GiteaOneResponseBody$Outbound; -} - -export function giteaOneResponseBodyToJSON( - giteaOneResponseBody: GiteaOneResponseBody, -): string { - return JSON.stringify( - GiteaOneResponseBody$outboundSchema.parse(giteaOneResponseBody), - ); -} - export function giteaOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -289,42 +139,6 @@ export const GiteaOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type GiteaOneResponse$Outbound = - | GiteaOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const GiteaOneResponse$outboundSchema: z.ZodType< - GiteaOneResponse$Outbound, - z.ZodTypeDef, - GiteaOneResponse -> = z.union([ - z.lazy(() => GiteaOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaOneResponse$ { - /** @deprecated use `GiteaOneResponse$inboundSchema` instead. */ - export const inboundSchema = GiteaOneResponse$inboundSchema; - /** @deprecated use `GiteaOneResponse$outboundSchema` instead. */ - export const outboundSchema = GiteaOneResponse$outboundSchema; - /** @deprecated use `GiteaOneResponse$Outbound` instead. */ - export type Outbound = GiteaOneResponse$Outbound; -} - -export function giteaOneResponseToJSON( - giteaOneResponse: GiteaOneResponse, -): string { - return JSON.stringify( - GiteaOneResponse$outboundSchema.parse(giteaOneResponse), - ); -} - export function giteaOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/giteatestconnection.ts b/src/models/operations/giteatestconnection.ts index b01463a..4f12ad7 100644 --- a/src/models/operations/giteatestconnection.ts +++ b/src/models/operations/giteatestconnection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type GiteaTestConnectionRequest = { export type GiteaTestConnectionResponse = models.ErrorT | string; -/** @internal */ -export const GiteaTestConnectionRequest$inboundSchema: z.ZodType< - GiteaTestConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - giteaId: z.string().optional(), - organizationName: z.string().optional(), -}); - /** @internal */ export type GiteaTestConnectionRequest$Outbound = { giteaId?: string | undefined; @@ -41,19 +31,6 @@ export const GiteaTestConnectionRequest$outboundSchema: z.ZodType< organizationName: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaTestConnectionRequest$ { - /** @deprecated use `GiteaTestConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = GiteaTestConnectionRequest$inboundSchema; - /** @deprecated use `GiteaTestConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = GiteaTestConnectionRequest$outboundSchema; - /** @deprecated use `GiteaTestConnectionRequest$Outbound` instead. */ - export type Outbound = GiteaTestConnectionRequest$Outbound; -} - export function giteaTestConnectionRequestToJSON( giteaTestConnectionRequest: GiteaTestConnectionRequest, ): string { @@ -62,16 +39,6 @@ export function giteaTestConnectionRequestToJSON( ); } -export function giteaTestConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GiteaTestConnectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GiteaTestConnectionRequest' from JSON`, - ); -} - /** @internal */ export const GiteaTestConnectionResponse$inboundSchema: z.ZodType< GiteaTestConnectionResponse, @@ -79,41 +46,6 @@ export const GiteaTestConnectionResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.string()]); -/** @internal */ -export type GiteaTestConnectionResponse$Outbound = - | models.ErrorT$Outbound - | string; - -/** @internal */ -export const GiteaTestConnectionResponse$outboundSchema: z.ZodType< - GiteaTestConnectionResponse$Outbound, - z.ZodTypeDef, - GiteaTestConnectionResponse -> = z.union([models.ErrorT$outboundSchema, z.string()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaTestConnectionResponse$ { - /** @deprecated use `GiteaTestConnectionResponse$inboundSchema` instead. */ - export const inboundSchema = GiteaTestConnectionResponse$inboundSchema; - /** @deprecated use `GiteaTestConnectionResponse$outboundSchema` instead. */ - export const outboundSchema = GiteaTestConnectionResponse$outboundSchema; - /** @deprecated use `GiteaTestConnectionResponse$Outbound` instead. */ - export type Outbound = GiteaTestConnectionResponse$Outbound; -} - -export function giteaTestConnectionResponseToJSON( - giteaTestConnectionResponse: GiteaTestConnectionResponse, -): string { - return JSON.stringify( - GiteaTestConnectionResponse$outboundSchema.parse( - giteaTestConnectionResponse, - ), - ); -} - export function giteaTestConnectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/giteaupdate.ts b/src/models/operations/giteaupdate.ts index a89d533..5d88374 100644 --- a/src/models/operations/giteaupdate.ts +++ b/src/models/operations/giteaupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -34,28 +34,6 @@ export type GiteaUpdateResponseBody = { export type GiteaUpdateResponse = models.ErrorT | GiteaUpdateResponseBody; -/** @internal */ -export const GiteaUpdateRequest$inboundSchema: z.ZodType< - GiteaUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessToken: z.string().optional(), - clientId: z.string().optional(), - clientSecret: z.string().optional(), - expiresAt: z.number().optional(), - gitProviderId: z.string(), - giteaId: z.string(), - giteaUrl: z.string(), - giteaUsername: z.string().optional(), - lastAuthenticatedAt: z.number().optional(), - name: z.string(), - organizationName: z.string().optional(), - redirectUri: z.string().optional(), - refreshToken: z.string().optional(), - scopes: z.string().optional(), -}); - /** @internal */ export type GiteaUpdateRequest$Outbound = { accessToken?: string | undefined; @@ -96,19 +74,6 @@ export const GiteaUpdateRequest$outboundSchema: z.ZodType< scopes: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaUpdateRequest$ { - /** @deprecated use `GiteaUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = GiteaUpdateRequest$inboundSchema; - /** @deprecated use `GiteaUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = GiteaUpdateRequest$outboundSchema; - /** @deprecated use `GiteaUpdateRequest$Outbound` instead. */ - export type Outbound = GiteaUpdateRequest$Outbound; -} - export function giteaUpdateRequestToJSON( giteaUpdateRequest: GiteaUpdateRequest, ): string { @@ -117,16 +82,6 @@ export function giteaUpdateRequestToJSON( ); } -export function giteaUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GiteaUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GiteaUpdateRequest' from JSON`, - ); -} - /** @internal */ export const GiteaUpdateResponseBody$inboundSchema: z.ZodType< GiteaUpdateResponseBody, @@ -136,41 +91,6 @@ export const GiteaUpdateResponseBody$inboundSchema: z.ZodType< success: z.boolean(), }); -/** @internal */ -export type GiteaUpdateResponseBody$Outbound = { - success: boolean; -}; - -/** @internal */ -export const GiteaUpdateResponseBody$outboundSchema: z.ZodType< - GiteaUpdateResponseBody$Outbound, - z.ZodTypeDef, - GiteaUpdateResponseBody -> = z.object({ - success: z.boolean(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaUpdateResponseBody$ { - /** @deprecated use `GiteaUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = GiteaUpdateResponseBody$inboundSchema; - /** @deprecated use `GiteaUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = GiteaUpdateResponseBody$outboundSchema; - /** @deprecated use `GiteaUpdateResponseBody$Outbound` instead. */ - export type Outbound = GiteaUpdateResponseBody$Outbound; -} - -export function giteaUpdateResponseBodyToJSON( - giteaUpdateResponseBody: GiteaUpdateResponseBody, -): string { - return JSON.stringify( - GiteaUpdateResponseBody$outboundSchema.parse(giteaUpdateResponseBody), - ); -} - export function giteaUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -191,42 +111,6 @@ export const GiteaUpdateResponse$inboundSchema: z.ZodType< z.lazy(() => GiteaUpdateResponseBody$inboundSchema), ]); -/** @internal */ -export type GiteaUpdateResponse$Outbound = - | models.ErrorT$Outbound - | GiteaUpdateResponseBody$Outbound; - -/** @internal */ -export const GiteaUpdateResponse$outboundSchema: z.ZodType< - GiteaUpdateResponse$Outbound, - z.ZodTypeDef, - GiteaUpdateResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.lazy(() => GiteaUpdateResponseBody$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GiteaUpdateResponse$ { - /** @deprecated use `GiteaUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = GiteaUpdateResponse$inboundSchema; - /** @deprecated use `GiteaUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = GiteaUpdateResponse$outboundSchema; - /** @deprecated use `GiteaUpdateResponse$Outbound` instead. */ - export type Outbound = GiteaUpdateResponse$Outbound; -} - -export function giteaUpdateResponseToJSON( - giteaUpdateResponse: GiteaUpdateResponse, -): string { - return JSON.stringify( - GiteaUpdateResponse$outboundSchema.parse(giteaUpdateResponse), - ); -} - export function giteaUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/githubgetgithubbranches.ts b/src/models/operations/githubgetgithubbranches.ts index db55692..3626272 100644 --- a/src/models/operations/githubgetgithubbranches.ts +++ b/src/models/operations/githubgetgithubbranches.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type GithubGetGithubBranchesRequest = { repo: string; @@ -13,17 +10,6 @@ export type GithubGetGithubBranchesRequest = { githubId?: string | undefined; }; -/** @internal */ -export const GithubGetGithubBranchesRequest$inboundSchema: z.ZodType< - GithubGetGithubBranchesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - repo: z.string(), - owner: z.string(), - githubId: z.string().optional(), -}); - /** @internal */ export type GithubGetGithubBranchesRequest$Outbound = { repo: string; @@ -42,19 +28,6 @@ export const GithubGetGithubBranchesRequest$outboundSchema: z.ZodType< githubId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubGetGithubBranchesRequest$ { - /** @deprecated use `GithubGetGithubBranchesRequest$inboundSchema` instead. */ - export const inboundSchema = GithubGetGithubBranchesRequest$inboundSchema; - /** @deprecated use `GithubGetGithubBranchesRequest$outboundSchema` instead. */ - export const outboundSchema = GithubGetGithubBranchesRequest$outboundSchema; - /** @deprecated use `GithubGetGithubBranchesRequest$Outbound` instead. */ - export type Outbound = GithubGetGithubBranchesRequest$Outbound; -} - export function githubGetGithubBranchesRequestToJSON( githubGetGithubBranchesRequest: GithubGetGithubBranchesRequest, ): string { @@ -64,13 +37,3 @@ export function githubGetGithubBranchesRequestToJSON( ), ); } - -export function githubGetGithubBranchesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GithubGetGithubBranchesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GithubGetGithubBranchesRequest' from JSON`, - ); -} diff --git a/src/models/operations/githubgetgithubrepositories.ts b/src/models/operations/githubgetgithubrepositories.ts index e281754..150c65b 100644 --- a/src/models/operations/githubgetgithubrepositories.ts +++ b/src/models/operations/githubgetgithubrepositories.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type GithubGetGithubRepositoriesRequest = { githubId: string; }; -/** @internal */ -export const GithubGetGithubRepositoriesRequest$inboundSchema: z.ZodType< - GithubGetGithubRepositoriesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - githubId: z.string(), -}); - /** @internal */ export type GithubGetGithubRepositoriesRequest$Outbound = { githubId: string; @@ -34,20 +22,6 @@ export const GithubGetGithubRepositoriesRequest$outboundSchema: z.ZodType< githubId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubGetGithubRepositoriesRequest$ { - /** @deprecated use `GithubGetGithubRepositoriesRequest$inboundSchema` instead. */ - export const inboundSchema = GithubGetGithubRepositoriesRequest$inboundSchema; - /** @deprecated use `GithubGetGithubRepositoriesRequest$outboundSchema` instead. */ - export const outboundSchema = - GithubGetGithubRepositoriesRequest$outboundSchema; - /** @deprecated use `GithubGetGithubRepositoriesRequest$Outbound` instead. */ - export type Outbound = GithubGetGithubRepositoriesRequest$Outbound; -} - export function githubGetGithubRepositoriesRequestToJSON( githubGetGithubRepositoriesRequest: GithubGetGithubRepositoriesRequest, ): string { @@ -57,14 +31,3 @@ export function githubGetGithubRepositoriesRequestToJSON( ), ); } - -export function githubGetGithubRepositoriesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GithubGetGithubRepositoriesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GithubGetGithubRepositoriesRequest' from JSON`, - ); -} diff --git a/src/models/operations/githubgithubproviders.ts b/src/models/operations/githubgithubproviders.ts index 4ac30c2..654a771 100644 --- a/src/models/operations/githubgithubproviders.ts +++ b/src/models/operations/githubgithubproviders.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -42,23 +42,6 @@ export const GithubGithubProvidersProviderType$inboundSchema: z.ZodNativeEnum< typeof GithubGithubProvidersProviderType > = z.nativeEnum(GithubGithubProvidersProviderType); -/** @internal */ -export const GithubGithubProvidersProviderType$outboundSchema: z.ZodNativeEnum< - typeof GithubGithubProvidersProviderType -> = GithubGithubProvidersProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubGithubProvidersProviderType$ { - /** @deprecated use `GithubGithubProvidersProviderType$inboundSchema` instead. */ - export const inboundSchema = GithubGithubProvidersProviderType$inboundSchema; - /** @deprecated use `GithubGithubProvidersProviderType$outboundSchema` instead. */ - export const outboundSchema = - GithubGithubProvidersProviderType$outboundSchema; -} - /** @internal */ export const GithubGithubProvidersGitProvider$inboundSchema: z.ZodType< GithubGithubProvidersGitProvider, @@ -73,53 +56,6 @@ export const GithubGithubProvidersGitProvider$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type GithubGithubProvidersGitProvider$Outbound = { - createdAt: string; - gitProviderId: string; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const GithubGithubProvidersGitProvider$outboundSchema: z.ZodType< - GithubGithubProvidersGitProvider$Outbound, - z.ZodTypeDef, - GithubGithubProvidersGitProvider -> = z.object({ - createdAt: z.string(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string(), - providerType: GithubGithubProvidersProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubGithubProvidersGitProvider$ { - /** @deprecated use `GithubGithubProvidersGitProvider$inboundSchema` instead. */ - export const inboundSchema = GithubGithubProvidersGitProvider$inboundSchema; - /** @deprecated use `GithubGithubProvidersGitProvider$outboundSchema` instead. */ - export const outboundSchema = GithubGithubProvidersGitProvider$outboundSchema; - /** @deprecated use `GithubGithubProvidersGitProvider$Outbound` instead. */ - export type Outbound = GithubGithubProvidersGitProvider$Outbound; -} - -export function githubGithubProvidersGitProviderToJSON( - githubGithubProvidersGitProvider: GithubGithubProvidersGitProvider, -): string { - return JSON.stringify( - GithubGithubProvidersGitProvider$outboundSchema.parse( - githubGithubProvidersGitProvider, - ), - ); -} - export function githubGithubProvidersGitProviderFromJSON( jsonString: string, ): SafeParseResult { @@ -140,46 +76,6 @@ export const GithubGithubProvidersResponseBody$inboundSchema: z.ZodType< githubId: z.string(), }); -/** @internal */ -export type GithubGithubProvidersResponseBody$Outbound = { - gitProvider: GithubGithubProvidersGitProvider$Outbound; - githubId: string; -}; - -/** @internal */ -export const GithubGithubProvidersResponseBody$outboundSchema: z.ZodType< - GithubGithubProvidersResponseBody$Outbound, - z.ZodTypeDef, - GithubGithubProvidersResponseBody -> = z.object({ - gitProvider: z.lazy(() => GithubGithubProvidersGitProvider$outboundSchema), - githubId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubGithubProvidersResponseBody$ { - /** @deprecated use `GithubGithubProvidersResponseBody$inboundSchema` instead. */ - export const inboundSchema = GithubGithubProvidersResponseBody$inboundSchema; - /** @deprecated use `GithubGithubProvidersResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GithubGithubProvidersResponseBody$outboundSchema; - /** @deprecated use `GithubGithubProvidersResponseBody$Outbound` instead. */ - export type Outbound = GithubGithubProvidersResponseBody$Outbound; -} - -export function githubGithubProvidersResponseBodyToJSON( - githubGithubProvidersResponseBody: GithubGithubProvidersResponseBody, -): string { - return JSON.stringify( - GithubGithubProvidersResponseBody$outboundSchema.parse( - githubGithubProvidersResponseBody, - ), - ); -} - export function githubGithubProvidersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -200,44 +96,6 @@ export const GithubGithubProvidersResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => GithubGithubProvidersResponseBody$inboundSchema)), ]); -/** @internal */ -export type GithubGithubProvidersResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const GithubGithubProvidersResponse$outboundSchema: z.ZodType< - GithubGithubProvidersResponse$Outbound, - z.ZodTypeDef, - GithubGithubProvidersResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => GithubGithubProvidersResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubGithubProvidersResponse$ { - /** @deprecated use `GithubGithubProvidersResponse$inboundSchema` instead. */ - export const inboundSchema = GithubGithubProvidersResponse$inboundSchema; - /** @deprecated use `GithubGithubProvidersResponse$outboundSchema` instead. */ - export const outboundSchema = GithubGithubProvidersResponse$outboundSchema; - /** @deprecated use `GithubGithubProvidersResponse$Outbound` instead. */ - export type Outbound = GithubGithubProvidersResponse$Outbound; -} - -export function githubGithubProvidersResponseToJSON( - githubGithubProvidersResponse: GithubGithubProvidersResponse, -): string { - return JSON.stringify( - GithubGithubProvidersResponse$outboundSchema.parse( - githubGithubProvidersResponse, - ), - ); -} - export function githubGithubProvidersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/githubone.ts b/src/models/operations/githubone.ts index 7de955f..4f5b559 100644 --- a/src/models/operations/githubone.ts +++ b/src/models/operations/githubone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,15 +48,6 @@ export type GithubOneResponseBody = { export type GithubOneResponse = GithubOneResponseBody | models.ErrorT; -/** @internal */ -export const GithubOneRequest$inboundSchema: z.ZodType< - GithubOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - githubId: z.string(), -}); - /** @internal */ export type GithubOneRequest$Outbound = { githubId: string; @@ -71,19 +62,6 @@ export const GithubOneRequest$outboundSchema: z.ZodType< githubId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubOneRequest$ { - /** @deprecated use `GithubOneRequest$inboundSchema` instead. */ - export const inboundSchema = GithubOneRequest$inboundSchema; - /** @deprecated use `GithubOneRequest$outboundSchema` instead. */ - export const outboundSchema = GithubOneRequest$outboundSchema; - /** @deprecated use `GithubOneRequest$Outbound` instead. */ - export type Outbound = GithubOneRequest$Outbound; -} - export function githubOneRequestToJSON( githubOneRequest: GithubOneRequest, ): string { @@ -92,37 +70,11 @@ export function githubOneRequestToJSON( ); } -export function githubOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GithubOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GithubOneRequest' from JSON`, - ); -} - /** @internal */ export const GithubOneProviderType$inboundSchema: z.ZodNativeEnum< typeof GithubOneProviderType > = z.nativeEnum(GithubOneProviderType); -/** @internal */ -export const GithubOneProviderType$outboundSchema: z.ZodNativeEnum< - typeof GithubOneProviderType -> = GithubOneProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubOneProviderType$ { - /** @deprecated use `GithubOneProviderType$inboundSchema` instead. */ - export const inboundSchema = GithubOneProviderType$inboundSchema; - /** @deprecated use `GithubOneProviderType$outboundSchema` instead. */ - export const outboundSchema = GithubOneProviderType$outboundSchema; -} - /** @internal */ export const GithubOneGitProvider$inboundSchema: z.ZodType< GithubOneGitProvider, @@ -137,51 +89,6 @@ export const GithubOneGitProvider$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type GithubOneGitProvider$Outbound = { - createdAt: string; - gitProviderId: string; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const GithubOneGitProvider$outboundSchema: z.ZodType< - GithubOneGitProvider$Outbound, - z.ZodTypeDef, - GithubOneGitProvider -> = z.object({ - createdAt: z.string(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string(), - providerType: GithubOneProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubOneGitProvider$ { - /** @deprecated use `GithubOneGitProvider$inboundSchema` instead. */ - export const inboundSchema = GithubOneGitProvider$inboundSchema; - /** @deprecated use `GithubOneGitProvider$outboundSchema` instead. */ - export const outboundSchema = GithubOneGitProvider$outboundSchema; - /** @deprecated use `GithubOneGitProvider$Outbound` instead. */ - export type Outbound = GithubOneGitProvider$Outbound; -} - -export function githubOneGitProviderToJSON( - githubOneGitProvider: GithubOneGitProvider, -): string { - return JSON.stringify( - GithubOneGitProvider$outboundSchema.parse(githubOneGitProvider), - ); -} - export function githubOneGitProviderFromJSON( jsonString: string, ): SafeParseResult { @@ -210,59 +117,6 @@ export const GithubOneResponseBody$inboundSchema: z.ZodType< githubWebhookSecret: z.nullable(z.string()), }); -/** @internal */ -export type GithubOneResponseBody$Outbound = { - gitProvider: GithubOneGitProvider$Outbound; - gitProviderId: string; - githubAppId: number | null; - githubAppName: string | null; - githubClientId: string | null; - githubClientSecret: string | null; - githubId: string; - githubInstallationId: string | null; - githubPrivateKey: string | null; - githubWebhookSecret: string | null; -}; - -/** @internal */ -export const GithubOneResponseBody$outboundSchema: z.ZodType< - GithubOneResponseBody$Outbound, - z.ZodTypeDef, - GithubOneResponseBody -> = z.object({ - gitProvider: z.lazy(() => GithubOneGitProvider$outboundSchema), - gitProviderId: z.string(), - githubAppId: z.nullable(z.number()), - githubAppName: z.nullable(z.string()), - githubClientId: z.nullable(z.string()), - githubClientSecret: z.nullable(z.string()), - githubId: z.string(), - githubInstallationId: z.nullable(z.string()), - githubPrivateKey: z.nullable(z.string()), - githubWebhookSecret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubOneResponseBody$ { - /** @deprecated use `GithubOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = GithubOneResponseBody$inboundSchema; - /** @deprecated use `GithubOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = GithubOneResponseBody$outboundSchema; - /** @deprecated use `GithubOneResponseBody$Outbound` instead. */ - export type Outbound = GithubOneResponseBody$Outbound; -} - -export function githubOneResponseBodyToJSON( - githubOneResponseBody: GithubOneResponseBody, -): string { - return JSON.stringify( - GithubOneResponseBody$outboundSchema.parse(githubOneResponseBody), - ); -} - export function githubOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -283,42 +137,6 @@ export const GithubOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type GithubOneResponse$Outbound = - | GithubOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const GithubOneResponse$outboundSchema: z.ZodType< - GithubOneResponse$Outbound, - z.ZodTypeDef, - GithubOneResponse -> = z.union([ - z.lazy(() => GithubOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubOneResponse$ { - /** @deprecated use `GithubOneResponse$inboundSchema` instead. */ - export const inboundSchema = GithubOneResponse$inboundSchema; - /** @deprecated use `GithubOneResponse$outboundSchema` instead. */ - export const outboundSchema = GithubOneResponse$outboundSchema; - /** @deprecated use `GithubOneResponse$Outbound` instead. */ - export type Outbound = GithubOneResponse$Outbound; -} - -export function githubOneResponseToJSON( - githubOneResponse: GithubOneResponse, -): string { - return JSON.stringify( - GithubOneResponse$outboundSchema.parse(githubOneResponse), - ); -} - export function githubOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/githubtestconnection.ts b/src/models/operations/githubtestconnection.ts index 0fe00c2..e62f4f5 100644 --- a/src/models/operations/githubtestconnection.ts +++ b/src/models/operations/githubtestconnection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type GithubTestConnectionRequest = { export type GithubTestConnectionResponse = models.ErrorT | string; -/** @internal */ -export const GithubTestConnectionRequest$inboundSchema: z.ZodType< - GithubTestConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - githubId: z.string(), -}); - /** @internal */ export type GithubTestConnectionRequest$Outbound = { githubId: string; @@ -37,19 +28,6 @@ export const GithubTestConnectionRequest$outboundSchema: z.ZodType< githubId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubTestConnectionRequest$ { - /** @deprecated use `GithubTestConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = GithubTestConnectionRequest$inboundSchema; - /** @deprecated use `GithubTestConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = GithubTestConnectionRequest$outboundSchema; - /** @deprecated use `GithubTestConnectionRequest$Outbound` instead. */ - export type Outbound = GithubTestConnectionRequest$Outbound; -} - export function githubTestConnectionRequestToJSON( githubTestConnectionRequest: GithubTestConnectionRequest, ): string { @@ -60,16 +38,6 @@ export function githubTestConnectionRequestToJSON( ); } -export function githubTestConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GithubTestConnectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GithubTestConnectionRequest' from JSON`, - ); -} - /** @internal */ export const GithubTestConnectionResponse$inboundSchema: z.ZodType< GithubTestConnectionResponse, @@ -77,41 +45,6 @@ export const GithubTestConnectionResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.string()]); -/** @internal */ -export type GithubTestConnectionResponse$Outbound = - | models.ErrorT$Outbound - | string; - -/** @internal */ -export const GithubTestConnectionResponse$outboundSchema: z.ZodType< - GithubTestConnectionResponse$Outbound, - z.ZodTypeDef, - GithubTestConnectionResponse -> = z.union([models.ErrorT$outboundSchema, z.string()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubTestConnectionResponse$ { - /** @deprecated use `GithubTestConnectionResponse$inboundSchema` instead. */ - export const inboundSchema = GithubTestConnectionResponse$inboundSchema; - /** @deprecated use `GithubTestConnectionResponse$outboundSchema` instead. */ - export const outboundSchema = GithubTestConnectionResponse$outboundSchema; - /** @deprecated use `GithubTestConnectionResponse$Outbound` instead. */ - export type Outbound = GithubTestConnectionResponse$Outbound; -} - -export function githubTestConnectionResponseToJSON( - githubTestConnectionResponse: GithubTestConnectionResponse, -): string { - return JSON.stringify( - GithubTestConnectionResponse$outboundSchema.parse( - githubTestConnectionResponse, - ), - ); -} - export function githubTestConnectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/githubupdate.ts b/src/models/operations/githubupdate.ts index aca57d5..b12414f 100644 --- a/src/models/operations/githubupdate.ts +++ b/src/models/operations/githubupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -23,24 +23,6 @@ export type GithubUpdateRequest = { export type GithubUpdateResponse = models.ErrorT | any; -/** @internal */ -export const GithubUpdateRequest$inboundSchema: z.ZodType< - GithubUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - gitProviderId: z.string(), - githubAppId: z.nullable(z.number()).optional(), - githubAppName: z.nullable(z.string()).optional(), - githubClientId: z.nullable(z.string()).optional(), - githubClientSecret: z.nullable(z.string()).optional(), - githubId: z.string(), - githubInstallationId: z.nullable(z.string()).optional(), - githubPrivateKey: z.nullable(z.string()).optional(), - githubWebhookSecret: z.nullable(z.string()).optional(), - name: z.string(), -}); - /** @internal */ export type GithubUpdateRequest$Outbound = { gitProviderId: string; @@ -73,19 +55,6 @@ export const GithubUpdateRequest$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubUpdateRequest$ { - /** @deprecated use `GithubUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = GithubUpdateRequest$inboundSchema; - /** @deprecated use `GithubUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = GithubUpdateRequest$outboundSchema; - /** @deprecated use `GithubUpdateRequest$Outbound` instead. */ - export type Outbound = GithubUpdateRequest$Outbound; -} - export function githubUpdateRequestToJSON( githubUpdateRequest: GithubUpdateRequest, ): string { @@ -94,16 +63,6 @@ export function githubUpdateRequestToJSON( ); } -export function githubUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GithubUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GithubUpdateRequest' from JSON`, - ); -} - /** @internal */ export const GithubUpdateResponse$inboundSchema: z.ZodType< GithubUpdateResponse, @@ -111,37 +70,6 @@ export const GithubUpdateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.any()]); -/** @internal */ -export type GithubUpdateResponse$Outbound = models.ErrorT$Outbound | any; - -/** @internal */ -export const GithubUpdateResponse$outboundSchema: z.ZodType< - GithubUpdateResponse$Outbound, - z.ZodTypeDef, - GithubUpdateResponse -> = z.union([models.ErrorT$outboundSchema, z.any()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubUpdateResponse$ { - /** @deprecated use `GithubUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = GithubUpdateResponse$inboundSchema; - /** @deprecated use `GithubUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = GithubUpdateResponse$outboundSchema; - /** @deprecated use `GithubUpdateResponse$Outbound` instead. */ - export type Outbound = GithubUpdateResponse$Outbound; -} - -export function githubUpdateResponseToJSON( - githubUpdateResponse: GithubUpdateResponse, -): string { - return JSON.stringify( - GithubUpdateResponse$outboundSchema.parse(githubUpdateResponse), - ); -} - export function githubUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gitlabcreate.ts b/src/models/operations/gitlabcreate.ts index f673ef7..f51b925 100644 --- a/src/models/operations/gitlabcreate.ts +++ b/src/models/operations/gitlabcreate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type GitlabCreateRequest = { accessToken?: string | null | undefined; @@ -22,26 +19,6 @@ export type GitlabCreateRequest = { secret?: string | undefined; }; -/** @internal */ -export const GitlabCreateRequest$inboundSchema: z.ZodType< - GitlabCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessToken: z.nullable(z.string()).optional(), - applicationId: z.string().optional(), - authId: z.string(), - expiresAt: z.nullable(z.number()).optional(), - gitProviderId: z.string().optional(), - gitlabId: z.string().optional(), - gitlabUrl: z.string(), - groupName: z.string().optional(), - name: z.string(), - redirectUri: z.string().optional(), - refreshToken: z.nullable(z.string()).optional(), - secret: z.string().optional(), -}); - /** @internal */ export type GitlabCreateRequest$Outbound = { accessToken?: string | null | undefined; @@ -78,19 +55,6 @@ export const GitlabCreateRequest$outboundSchema: z.ZodType< secret: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabCreateRequest$ { - /** @deprecated use `GitlabCreateRequest$inboundSchema` instead. */ - export const inboundSchema = GitlabCreateRequest$inboundSchema; - /** @deprecated use `GitlabCreateRequest$outboundSchema` instead. */ - export const outboundSchema = GitlabCreateRequest$outboundSchema; - /** @deprecated use `GitlabCreateRequest$Outbound` instead. */ - export type Outbound = GitlabCreateRequest$Outbound; -} - export function gitlabCreateRequestToJSON( gitlabCreateRequest: GitlabCreateRequest, ): string { @@ -98,13 +62,3 @@ export function gitlabCreateRequestToJSON( GitlabCreateRequest$outboundSchema.parse(gitlabCreateRequest), ); } - -export function gitlabCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GitlabCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitlabCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/gitlabgetgitlabbranches.ts b/src/models/operations/gitlabgetgitlabbranches.ts index ec0c075..c733f79 100644 --- a/src/models/operations/gitlabgetgitlabbranches.ts +++ b/src/models/operations/gitlabgetgitlabbranches.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type GitlabGetGitlabBranchesRequest = { id?: number | undefined; @@ -14,18 +11,6 @@ export type GitlabGetGitlabBranchesRequest = { gitlabId?: string | undefined; }; -/** @internal */ -export const GitlabGetGitlabBranchesRequest$inboundSchema: z.ZodType< - GitlabGetGitlabBranchesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.number().optional(), - owner: z.string(), - repo: z.string(), - gitlabId: z.string().optional(), -}); - /** @internal */ export type GitlabGetGitlabBranchesRequest$Outbound = { id?: number | undefined; @@ -46,19 +31,6 @@ export const GitlabGetGitlabBranchesRequest$outboundSchema: z.ZodType< gitlabId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabGetGitlabBranchesRequest$ { - /** @deprecated use `GitlabGetGitlabBranchesRequest$inboundSchema` instead. */ - export const inboundSchema = GitlabGetGitlabBranchesRequest$inboundSchema; - /** @deprecated use `GitlabGetGitlabBranchesRequest$outboundSchema` instead. */ - export const outboundSchema = GitlabGetGitlabBranchesRequest$outboundSchema; - /** @deprecated use `GitlabGetGitlabBranchesRequest$Outbound` instead. */ - export type Outbound = GitlabGetGitlabBranchesRequest$Outbound; -} - export function gitlabGetGitlabBranchesRequestToJSON( gitlabGetGitlabBranchesRequest: GitlabGetGitlabBranchesRequest, ): string { @@ -68,13 +40,3 @@ export function gitlabGetGitlabBranchesRequestToJSON( ), ); } - -export function gitlabGetGitlabBranchesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GitlabGetGitlabBranchesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitlabGetGitlabBranchesRequest' from JSON`, - ); -} diff --git a/src/models/operations/gitlabgetgitlabrepositories.ts b/src/models/operations/gitlabgetgitlabrepositories.ts index 8237e13..108d58f 100644 --- a/src/models/operations/gitlabgetgitlabrepositories.ts +++ b/src/models/operations/gitlabgetgitlabrepositories.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type GitlabGetGitlabRepositoriesRequest = { gitlabId: string; }; -/** @internal */ -export const GitlabGetGitlabRepositoriesRequest$inboundSchema: z.ZodType< - GitlabGetGitlabRepositoriesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - gitlabId: z.string(), -}); - /** @internal */ export type GitlabGetGitlabRepositoriesRequest$Outbound = { gitlabId: string; @@ -34,20 +22,6 @@ export const GitlabGetGitlabRepositoriesRequest$outboundSchema: z.ZodType< gitlabId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabGetGitlabRepositoriesRequest$ { - /** @deprecated use `GitlabGetGitlabRepositoriesRequest$inboundSchema` instead. */ - export const inboundSchema = GitlabGetGitlabRepositoriesRequest$inboundSchema; - /** @deprecated use `GitlabGetGitlabRepositoriesRequest$outboundSchema` instead. */ - export const outboundSchema = - GitlabGetGitlabRepositoriesRequest$outboundSchema; - /** @deprecated use `GitlabGetGitlabRepositoriesRequest$Outbound` instead. */ - export type Outbound = GitlabGetGitlabRepositoriesRequest$Outbound; -} - export function gitlabGetGitlabRepositoriesRequestToJSON( gitlabGetGitlabRepositoriesRequest: GitlabGetGitlabRepositoriesRequest, ): string { @@ -57,14 +31,3 @@ export function gitlabGetGitlabRepositoriesRequestToJSON( ), ); } - -export function gitlabGetGitlabRepositoriesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GitlabGetGitlabRepositoriesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitlabGetGitlabRepositoriesRequest' from JSON`, - ); -} diff --git a/src/models/operations/gitlabgitlabproviders.ts b/src/models/operations/gitlabgitlabproviders.ts index d9900bb..109d2db 100644 --- a/src/models/operations/gitlabgitlabproviders.ts +++ b/src/models/operations/gitlabgitlabproviders.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,23 +43,6 @@ export const GitlabGitlabProvidersProviderType$inboundSchema: z.ZodNativeEnum< typeof GitlabGitlabProvidersProviderType > = z.nativeEnum(GitlabGitlabProvidersProviderType); -/** @internal */ -export const GitlabGitlabProvidersProviderType$outboundSchema: z.ZodNativeEnum< - typeof GitlabGitlabProvidersProviderType -> = GitlabGitlabProvidersProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabGitlabProvidersProviderType$ { - /** @deprecated use `GitlabGitlabProvidersProviderType$inboundSchema` instead. */ - export const inboundSchema = GitlabGitlabProvidersProviderType$inboundSchema; - /** @deprecated use `GitlabGitlabProvidersProviderType$outboundSchema` instead. */ - export const outboundSchema = - GitlabGitlabProvidersProviderType$outboundSchema; -} - /** @internal */ export const GitlabGitlabProvidersGitProvider$inboundSchema: z.ZodType< GitlabGitlabProvidersGitProvider, @@ -74,53 +57,6 @@ export const GitlabGitlabProvidersGitProvider$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type GitlabGitlabProvidersGitProvider$Outbound = { - createdAt: string; - gitProviderId: string; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const GitlabGitlabProvidersGitProvider$outboundSchema: z.ZodType< - GitlabGitlabProvidersGitProvider$Outbound, - z.ZodTypeDef, - GitlabGitlabProvidersGitProvider -> = z.object({ - createdAt: z.string(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string(), - providerType: GitlabGitlabProvidersProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabGitlabProvidersGitProvider$ { - /** @deprecated use `GitlabGitlabProvidersGitProvider$inboundSchema` instead. */ - export const inboundSchema = GitlabGitlabProvidersGitProvider$inboundSchema; - /** @deprecated use `GitlabGitlabProvidersGitProvider$outboundSchema` instead. */ - export const outboundSchema = GitlabGitlabProvidersGitProvider$outboundSchema; - /** @deprecated use `GitlabGitlabProvidersGitProvider$Outbound` instead. */ - export type Outbound = GitlabGitlabProvidersGitProvider$Outbound; -} - -export function gitlabGitlabProvidersGitProviderToJSON( - gitlabGitlabProvidersGitProvider: GitlabGitlabProvidersGitProvider, -): string { - return JSON.stringify( - GitlabGitlabProvidersGitProvider$outboundSchema.parse( - gitlabGitlabProvidersGitProvider, - ), - ); -} - export function gitlabGitlabProvidersGitProviderFromJSON( jsonString: string, ): SafeParseResult { @@ -142,48 +78,6 @@ export const GitlabGitlabProvidersResponseBody$inboundSchema: z.ZodType< gitlabUrl: z.string(), }); -/** @internal */ -export type GitlabGitlabProvidersResponseBody$Outbound = { - gitProvider: GitlabGitlabProvidersGitProvider$Outbound; - gitlabId: string; - gitlabUrl: string; -}; - -/** @internal */ -export const GitlabGitlabProvidersResponseBody$outboundSchema: z.ZodType< - GitlabGitlabProvidersResponseBody$Outbound, - z.ZodTypeDef, - GitlabGitlabProvidersResponseBody -> = z.object({ - gitProvider: z.lazy(() => GitlabGitlabProvidersGitProvider$outboundSchema), - gitlabId: z.string(), - gitlabUrl: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabGitlabProvidersResponseBody$ { - /** @deprecated use `GitlabGitlabProvidersResponseBody$inboundSchema` instead. */ - export const inboundSchema = GitlabGitlabProvidersResponseBody$inboundSchema; - /** @deprecated use `GitlabGitlabProvidersResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GitlabGitlabProvidersResponseBody$outboundSchema; - /** @deprecated use `GitlabGitlabProvidersResponseBody$Outbound` instead. */ - export type Outbound = GitlabGitlabProvidersResponseBody$Outbound; -} - -export function gitlabGitlabProvidersResponseBodyToJSON( - gitlabGitlabProvidersResponseBody: GitlabGitlabProvidersResponseBody, -): string { - return JSON.stringify( - GitlabGitlabProvidersResponseBody$outboundSchema.parse( - gitlabGitlabProvidersResponseBody, - ), - ); -} - export function gitlabGitlabProvidersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -204,44 +98,6 @@ export const GitlabGitlabProvidersResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => GitlabGitlabProvidersResponseBody$inboundSchema)), ]); -/** @internal */ -export type GitlabGitlabProvidersResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const GitlabGitlabProvidersResponse$outboundSchema: z.ZodType< - GitlabGitlabProvidersResponse$Outbound, - z.ZodTypeDef, - GitlabGitlabProvidersResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => GitlabGitlabProvidersResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabGitlabProvidersResponse$ { - /** @deprecated use `GitlabGitlabProvidersResponse$inboundSchema` instead. */ - export const inboundSchema = GitlabGitlabProvidersResponse$inboundSchema; - /** @deprecated use `GitlabGitlabProvidersResponse$outboundSchema` instead. */ - export const outboundSchema = GitlabGitlabProvidersResponse$outboundSchema; - /** @deprecated use `GitlabGitlabProvidersResponse$Outbound` instead. */ - export type Outbound = GitlabGitlabProvidersResponse$Outbound; -} - -export function gitlabGitlabProvidersResponseToJSON( - gitlabGitlabProvidersResponse: GitlabGitlabProvidersResponse, -): string { - return JSON.stringify( - GitlabGitlabProvidersResponse$outboundSchema.parse( - gitlabGitlabProvidersResponse, - ), - ); -} - export function gitlabGitlabProvidersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gitlabone.ts b/src/models/operations/gitlabone.ts index 1c821b0..c094d80 100644 --- a/src/models/operations/gitlabone.ts +++ b/src/models/operations/gitlabone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -49,15 +49,6 @@ export type GitlabOneResponseBody = { export type GitlabOneResponse = GitlabOneResponseBody | models.ErrorT; -/** @internal */ -export const GitlabOneRequest$inboundSchema: z.ZodType< - GitlabOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - gitlabId: z.string(), -}); - /** @internal */ export type GitlabOneRequest$Outbound = { gitlabId: string; @@ -72,19 +63,6 @@ export const GitlabOneRequest$outboundSchema: z.ZodType< gitlabId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabOneRequest$ { - /** @deprecated use `GitlabOneRequest$inboundSchema` instead. */ - export const inboundSchema = GitlabOneRequest$inboundSchema; - /** @deprecated use `GitlabOneRequest$outboundSchema` instead. */ - export const outboundSchema = GitlabOneRequest$outboundSchema; - /** @deprecated use `GitlabOneRequest$Outbound` instead. */ - export type Outbound = GitlabOneRequest$Outbound; -} - export function gitlabOneRequestToJSON( gitlabOneRequest: GitlabOneRequest, ): string { @@ -93,37 +71,11 @@ export function gitlabOneRequestToJSON( ); } -export function gitlabOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GitlabOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitlabOneRequest' from JSON`, - ); -} - /** @internal */ export const GitlabOneProviderType$inboundSchema: z.ZodNativeEnum< typeof GitlabOneProviderType > = z.nativeEnum(GitlabOneProviderType); -/** @internal */ -export const GitlabOneProviderType$outboundSchema: z.ZodNativeEnum< - typeof GitlabOneProviderType -> = GitlabOneProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabOneProviderType$ { - /** @deprecated use `GitlabOneProviderType$inboundSchema` instead. */ - export const inboundSchema = GitlabOneProviderType$inboundSchema; - /** @deprecated use `GitlabOneProviderType$outboundSchema` instead. */ - export const outboundSchema = GitlabOneProviderType$outboundSchema; -} - /** @internal */ export const GitlabOneGitProvider$inboundSchema: z.ZodType< GitlabOneGitProvider, @@ -138,51 +90,6 @@ export const GitlabOneGitProvider$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type GitlabOneGitProvider$Outbound = { - createdAt: string; - gitProviderId: string; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const GitlabOneGitProvider$outboundSchema: z.ZodType< - GitlabOneGitProvider$Outbound, - z.ZodTypeDef, - GitlabOneGitProvider -> = z.object({ - createdAt: z.string(), - gitProviderId: z.string(), - name: z.string(), - organizationId: z.string(), - providerType: GitlabOneProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabOneGitProvider$ { - /** @deprecated use `GitlabOneGitProvider$inboundSchema` instead. */ - export const inboundSchema = GitlabOneGitProvider$inboundSchema; - /** @deprecated use `GitlabOneGitProvider$outboundSchema` instead. */ - export const outboundSchema = GitlabOneGitProvider$outboundSchema; - /** @deprecated use `GitlabOneGitProvider$Outbound` instead. */ - export type Outbound = GitlabOneGitProvider$Outbound; -} - -export function gitlabOneGitProviderToJSON( - gitlabOneGitProvider: GitlabOneGitProvider, -): string { - return JSON.stringify( - GitlabOneGitProvider$outboundSchema.parse(gitlabOneGitProvider), - ); -} - export function gitlabOneGitProviderFromJSON( jsonString: string, ): SafeParseResult { @@ -212,61 +119,6 @@ export const GitlabOneResponseBody$inboundSchema: z.ZodType< secret: z.nullable(z.string()), }); -/** @internal */ -export type GitlabOneResponseBody$Outbound = { - accessToken: string | null; - applicationId: string | null; - expiresAt: number | null; - gitProvider: GitlabOneGitProvider$Outbound; - gitProviderId: string; - gitlabId: string; - gitlabUrl: string; - groupName: string | null; - redirectUri: string | null; - refreshToken: string | null; - secret: string | null; -}; - -/** @internal */ -export const GitlabOneResponseBody$outboundSchema: z.ZodType< - GitlabOneResponseBody$Outbound, - z.ZodTypeDef, - GitlabOneResponseBody -> = z.object({ - accessToken: z.nullable(z.string()), - applicationId: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProvider: z.lazy(() => GitlabOneGitProvider$outboundSchema), - gitProviderId: z.string(), - gitlabId: z.string(), - gitlabUrl: z.string(), - groupName: z.nullable(z.string()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - secret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabOneResponseBody$ { - /** @deprecated use `GitlabOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = GitlabOneResponseBody$inboundSchema; - /** @deprecated use `GitlabOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = GitlabOneResponseBody$outboundSchema; - /** @deprecated use `GitlabOneResponseBody$Outbound` instead. */ - export type Outbound = GitlabOneResponseBody$Outbound; -} - -export function gitlabOneResponseBodyToJSON( - gitlabOneResponseBody: GitlabOneResponseBody, -): string { - return JSON.stringify( - GitlabOneResponseBody$outboundSchema.parse(gitlabOneResponseBody), - ); -} - export function gitlabOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -287,42 +139,6 @@ export const GitlabOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type GitlabOneResponse$Outbound = - | GitlabOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const GitlabOneResponse$outboundSchema: z.ZodType< - GitlabOneResponse$Outbound, - z.ZodTypeDef, - GitlabOneResponse -> = z.union([ - z.lazy(() => GitlabOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabOneResponse$ { - /** @deprecated use `GitlabOneResponse$inboundSchema` instead. */ - export const inboundSchema = GitlabOneResponse$inboundSchema; - /** @deprecated use `GitlabOneResponse$outboundSchema` instead. */ - export const outboundSchema = GitlabOneResponse$outboundSchema; - /** @deprecated use `GitlabOneResponse$Outbound` instead. */ - export type Outbound = GitlabOneResponse$Outbound; -} - -export function gitlabOneResponseToJSON( - gitlabOneResponse: GitlabOneResponse, -): string { - return JSON.stringify( - GitlabOneResponse$outboundSchema.parse(gitlabOneResponse), - ); -} - export function gitlabOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gitlabtestconnection.ts b/src/models/operations/gitlabtestconnection.ts index d11e2a7..744282c 100644 --- a/src/models/operations/gitlabtestconnection.ts +++ b/src/models/operations/gitlabtestconnection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type GitlabTestConnectionRequest = { export type GitlabTestConnectionResponse = models.ErrorT | string; -/** @internal */ -export const GitlabTestConnectionRequest$inboundSchema: z.ZodType< - GitlabTestConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - gitlabId: z.string().optional(), - groupName: z.string().optional(), -}); - /** @internal */ export type GitlabTestConnectionRequest$Outbound = { gitlabId?: string | undefined; @@ -41,19 +31,6 @@ export const GitlabTestConnectionRequest$outboundSchema: z.ZodType< groupName: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabTestConnectionRequest$ { - /** @deprecated use `GitlabTestConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = GitlabTestConnectionRequest$inboundSchema; - /** @deprecated use `GitlabTestConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = GitlabTestConnectionRequest$outboundSchema; - /** @deprecated use `GitlabTestConnectionRequest$Outbound` instead. */ - export type Outbound = GitlabTestConnectionRequest$Outbound; -} - export function gitlabTestConnectionRequestToJSON( gitlabTestConnectionRequest: GitlabTestConnectionRequest, ): string { @@ -64,16 +41,6 @@ export function gitlabTestConnectionRequestToJSON( ); } -export function gitlabTestConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GitlabTestConnectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitlabTestConnectionRequest' from JSON`, - ); -} - /** @internal */ export const GitlabTestConnectionResponse$inboundSchema: z.ZodType< GitlabTestConnectionResponse, @@ -81,41 +48,6 @@ export const GitlabTestConnectionResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.string()]); -/** @internal */ -export type GitlabTestConnectionResponse$Outbound = - | models.ErrorT$Outbound - | string; - -/** @internal */ -export const GitlabTestConnectionResponse$outboundSchema: z.ZodType< - GitlabTestConnectionResponse$Outbound, - z.ZodTypeDef, - GitlabTestConnectionResponse -> = z.union([models.ErrorT$outboundSchema, z.string()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabTestConnectionResponse$ { - /** @deprecated use `GitlabTestConnectionResponse$inboundSchema` instead. */ - export const inboundSchema = GitlabTestConnectionResponse$inboundSchema; - /** @deprecated use `GitlabTestConnectionResponse$outboundSchema` instead. */ - export const outboundSchema = GitlabTestConnectionResponse$outboundSchema; - /** @deprecated use `GitlabTestConnectionResponse$Outbound` instead. */ - export type Outbound = GitlabTestConnectionResponse$Outbound; -} - -export function gitlabTestConnectionResponseToJSON( - gitlabTestConnectionResponse: GitlabTestConnectionResponse, -): string { - return JSON.stringify( - GitlabTestConnectionResponse$outboundSchema.parse( - gitlabTestConnectionResponse, - ), - ); -} - export function gitlabTestConnectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gitlabupdate.ts b/src/models/operations/gitlabupdate.ts index e900f61..eb38241 100644 --- a/src/models/operations/gitlabupdate.ts +++ b/src/models/operations/gitlabupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -24,25 +24,6 @@ export type GitlabUpdateRequest = { export type GitlabUpdateResponse = models.ErrorT | any; -/** @internal */ -export const GitlabUpdateRequest$inboundSchema: z.ZodType< - GitlabUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessToken: z.nullable(z.string()).optional(), - applicationId: z.string().optional(), - expiresAt: z.nullable(z.number()).optional(), - gitProviderId: z.string(), - gitlabId: z.string(), - gitlabUrl: z.string(), - groupName: z.string().optional(), - name: z.string(), - redirectUri: z.string().optional(), - refreshToken: z.nullable(z.string()).optional(), - secret: z.string().optional(), -}); - /** @internal */ export type GitlabUpdateRequest$Outbound = { accessToken?: string | null | undefined; @@ -77,19 +58,6 @@ export const GitlabUpdateRequest$outboundSchema: z.ZodType< secret: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabUpdateRequest$ { - /** @deprecated use `GitlabUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = GitlabUpdateRequest$inboundSchema; - /** @deprecated use `GitlabUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = GitlabUpdateRequest$outboundSchema; - /** @deprecated use `GitlabUpdateRequest$Outbound` instead. */ - export type Outbound = GitlabUpdateRequest$Outbound; -} - export function gitlabUpdateRequestToJSON( gitlabUpdateRequest: GitlabUpdateRequest, ): string { @@ -98,16 +66,6 @@ export function gitlabUpdateRequestToJSON( ); } -export function gitlabUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GitlabUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitlabUpdateRequest' from JSON`, - ); -} - /** @internal */ export const GitlabUpdateResponse$inboundSchema: z.ZodType< GitlabUpdateResponse, @@ -115,37 +73,6 @@ export const GitlabUpdateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.any()]); -/** @internal */ -export type GitlabUpdateResponse$Outbound = models.ErrorT$Outbound | any; - -/** @internal */ -export const GitlabUpdateResponse$outboundSchema: z.ZodType< - GitlabUpdateResponse$Outbound, - z.ZodTypeDef, - GitlabUpdateResponse -> = z.union([models.ErrorT$outboundSchema, z.any()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabUpdateResponse$ { - /** @deprecated use `GitlabUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = GitlabUpdateResponse$inboundSchema; - /** @deprecated use `GitlabUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = GitlabUpdateResponse$outboundSchema; - /** @deprecated use `GitlabUpdateResponse$Outbound` instead. */ - export type Outbound = GitlabUpdateResponse$Outbound; -} - -export function gitlabUpdateResponseToJSON( - gitlabUpdateResponse: GitlabUpdateResponse, -): string { - return JSON.stringify( - GitlabUpdateResponse$outboundSchema.parse(gitlabUpdateResponse), - ); -} - export function gitlabUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gitprovidergetall.ts b/src/models/operations/gitprovidergetall.ts index 8a638da..07e1445 100644 --- a/src/models/operations/gitprovidergetall.ts +++ b/src/models/operations/gitprovidergetall.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -96,49 +96,6 @@ export const GitProviderGetAllBitbucket$inboundSchema: z.ZodType< gitProviderId: z.string(), }); -/** @internal */ -export type GitProviderGetAllBitbucket$Outbound = { - appPassword: string | null; - bitbucketId: string; - bitbucketUsername: string | null; - bitbucketWorkspaceName: string | null; - gitProviderId: string; -}; - -/** @internal */ -export const GitProviderGetAllBitbucket$outboundSchema: z.ZodType< - GitProviderGetAllBitbucket$Outbound, - z.ZodTypeDef, - GitProviderGetAllBitbucket -> = z.object({ - appPassword: z.nullable(z.string()), - bitbucketId: z.string(), - bitbucketUsername: z.nullable(z.string()), - bitbucketWorkspaceName: z.nullable(z.string()), - gitProviderId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderGetAllBitbucket$ { - /** @deprecated use `GitProviderGetAllBitbucket$inboundSchema` instead. */ - export const inboundSchema = GitProviderGetAllBitbucket$inboundSchema; - /** @deprecated use `GitProviderGetAllBitbucket$outboundSchema` instead. */ - export const outboundSchema = GitProviderGetAllBitbucket$outboundSchema; - /** @deprecated use `GitProviderGetAllBitbucket$Outbound` instead. */ - export type Outbound = GitProviderGetAllBitbucket$Outbound; -} - -export function gitProviderGetAllBitbucketToJSON( - gitProviderGetAllBitbucket: GitProviderGetAllBitbucket, -): string { - return JSON.stringify( - GitProviderGetAllBitbucket$outboundSchema.parse(gitProviderGetAllBitbucket), - ); -} - export function gitProviderGetAllBitbucketFromJSON( jsonString: string, ): SafeParseResult { @@ -168,61 +125,6 @@ export const GitProviderGetAllGitea$inboundSchema: z.ZodType< scopes: z.nullable(z.string()), }); -/** @internal */ -export type GitProviderGetAllGitea$Outbound = { - accessToken: string | null; - clientId: string | null; - clientSecret: string | null; - expiresAt: number | null; - gitProviderId: string; - giteaId: string; - giteaUrl: string; - lastAuthenticatedAt: number | null; - redirectUri: string | null; - refreshToken: string | null; - scopes: string | null; -}; - -/** @internal */ -export const GitProviderGetAllGitea$outboundSchema: z.ZodType< - GitProviderGetAllGitea$Outbound, - z.ZodTypeDef, - GitProviderGetAllGitea -> = z.object({ - accessToken: z.nullable(z.string()), - clientId: z.nullable(z.string()), - clientSecret: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - giteaId: z.string(), - giteaUrl: z.string(), - lastAuthenticatedAt: z.nullable(z.number()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - scopes: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderGetAllGitea$ { - /** @deprecated use `GitProviderGetAllGitea$inboundSchema` instead. */ - export const inboundSchema = GitProviderGetAllGitea$inboundSchema; - /** @deprecated use `GitProviderGetAllGitea$outboundSchema` instead. */ - export const outboundSchema = GitProviderGetAllGitea$outboundSchema; - /** @deprecated use `GitProviderGetAllGitea$Outbound` instead. */ - export type Outbound = GitProviderGetAllGitea$Outbound; -} - -export function gitProviderGetAllGiteaToJSON( - gitProviderGetAllGitea: GitProviderGetAllGitea, -): string { - return JSON.stringify( - GitProviderGetAllGitea$outboundSchema.parse(gitProviderGetAllGitea), - ); -} - export function gitProviderGetAllGiteaFromJSON( jsonString: string, ): SafeParseResult { @@ -250,57 +152,6 @@ export const GitProviderGetAllGithub$inboundSchema: z.ZodType< githubWebhookSecret: z.nullable(z.string()), }); -/** @internal */ -export type GitProviderGetAllGithub$Outbound = { - gitProviderId: string; - githubAppId: number | null; - githubAppName: string | null; - githubClientId: string | null; - githubClientSecret: string | null; - githubId: string; - githubInstallationId: string | null; - githubPrivateKey: string | null; - githubWebhookSecret: string | null; -}; - -/** @internal */ -export const GitProviderGetAllGithub$outboundSchema: z.ZodType< - GitProviderGetAllGithub$Outbound, - z.ZodTypeDef, - GitProviderGetAllGithub -> = z.object({ - gitProviderId: z.string(), - githubAppId: z.nullable(z.number()), - githubAppName: z.nullable(z.string()), - githubClientId: z.nullable(z.string()), - githubClientSecret: z.nullable(z.string()), - githubId: z.string(), - githubInstallationId: z.nullable(z.string()), - githubPrivateKey: z.nullable(z.string()), - githubWebhookSecret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderGetAllGithub$ { - /** @deprecated use `GitProviderGetAllGithub$inboundSchema` instead. */ - export const inboundSchema = GitProviderGetAllGithub$inboundSchema; - /** @deprecated use `GitProviderGetAllGithub$outboundSchema` instead. */ - export const outboundSchema = GitProviderGetAllGithub$outboundSchema; - /** @deprecated use `GitProviderGetAllGithub$Outbound` instead. */ - export type Outbound = GitProviderGetAllGithub$Outbound; -} - -export function gitProviderGetAllGithubToJSON( - gitProviderGetAllGithub: GitProviderGetAllGithub, -): string { - return JSON.stringify( - GitProviderGetAllGithub$outboundSchema.parse(gitProviderGetAllGithub), - ); -} - export function gitProviderGetAllGithubFromJSON( jsonString: string, ): SafeParseResult { @@ -329,59 +180,6 @@ export const GitProviderGetAllGitlab$inboundSchema: z.ZodType< secret: z.nullable(z.string()), }); -/** @internal */ -export type GitProviderGetAllGitlab$Outbound = { - accessToken: string | null; - applicationId: string | null; - expiresAt: number | null; - gitProviderId: string; - gitlabId: string; - gitlabUrl: string; - groupName: string | null; - redirectUri: string | null; - refreshToken: string | null; - secret: string | null; -}; - -/** @internal */ -export const GitProviderGetAllGitlab$outboundSchema: z.ZodType< - GitProviderGetAllGitlab$Outbound, - z.ZodTypeDef, - GitProviderGetAllGitlab -> = z.object({ - accessToken: z.nullable(z.string()), - applicationId: z.nullable(z.string()), - expiresAt: z.nullable(z.number()), - gitProviderId: z.string(), - gitlabId: z.string(), - gitlabUrl: z.string(), - groupName: z.nullable(z.string()), - redirectUri: z.nullable(z.string()), - refreshToken: z.nullable(z.string()), - secret: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderGetAllGitlab$ { - /** @deprecated use `GitProviderGetAllGitlab$inboundSchema` instead. */ - export const inboundSchema = GitProviderGetAllGitlab$inboundSchema; - /** @deprecated use `GitProviderGetAllGitlab$outboundSchema` instead. */ - export const outboundSchema = GitProviderGetAllGitlab$outboundSchema; - /** @deprecated use `GitProviderGetAllGitlab$Outbound` instead. */ - export type Outbound = GitProviderGetAllGitlab$Outbound; -} - -export function gitProviderGetAllGitlabToJSON( - gitProviderGetAllGitlab: GitProviderGetAllGitlab, -): string { - return JSON.stringify( - GitProviderGetAllGitlab$outboundSchema.parse(gitProviderGetAllGitlab), - ); -} - export function gitProviderGetAllGitlabFromJSON( jsonString: string, ): SafeParseResult { @@ -397,22 +195,6 @@ export const GitProviderGetAllProviderType$inboundSchema: z.ZodNativeEnum< typeof GitProviderGetAllProviderType > = z.nativeEnum(GitProviderGetAllProviderType); -/** @internal */ -export const GitProviderGetAllProviderType$outboundSchema: z.ZodNativeEnum< - typeof GitProviderGetAllProviderType -> = GitProviderGetAllProviderType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderGetAllProviderType$ { - /** @deprecated use `GitProviderGetAllProviderType$inboundSchema` instead. */ - export const inboundSchema = GitProviderGetAllProviderType$inboundSchema; - /** @deprecated use `GitProviderGetAllProviderType$outboundSchema` instead. */ - export const outboundSchema = GitProviderGetAllProviderType$outboundSchema; -} - /** @internal */ export const GitProviderGetAllResponseBody$inboundSchema: z.ZodType< GitProviderGetAllResponseBody, @@ -431,63 +213,6 @@ export const GitProviderGetAllResponseBody$inboundSchema: z.ZodType< userId: z.string(), }); -/** @internal */ -export type GitProviderGetAllResponseBody$Outbound = { - bitbucket: GitProviderGetAllBitbucket$Outbound | null; - createdAt: string; - gitProviderId: string; - gitea: GitProviderGetAllGitea$Outbound | null; - github: GitProviderGetAllGithub$Outbound | null; - gitlab: GitProviderGetAllGitlab$Outbound | null; - name: string; - organizationId: string; - providerType: string; - userId: string; -}; - -/** @internal */ -export const GitProviderGetAllResponseBody$outboundSchema: z.ZodType< - GitProviderGetAllResponseBody$Outbound, - z.ZodTypeDef, - GitProviderGetAllResponseBody -> = z.object({ - bitbucket: z.nullable( - z.lazy(() => GitProviderGetAllBitbucket$outboundSchema), - ), - createdAt: z.string(), - gitProviderId: z.string(), - gitea: z.nullable(z.lazy(() => GitProviderGetAllGitea$outboundSchema)), - github: z.nullable(z.lazy(() => GitProviderGetAllGithub$outboundSchema)), - gitlab: z.nullable(z.lazy(() => GitProviderGetAllGitlab$outboundSchema)), - name: z.string(), - organizationId: z.string(), - providerType: GitProviderGetAllProviderType$outboundSchema, - userId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderGetAllResponseBody$ { - /** @deprecated use `GitProviderGetAllResponseBody$inboundSchema` instead. */ - export const inboundSchema = GitProviderGetAllResponseBody$inboundSchema; - /** @deprecated use `GitProviderGetAllResponseBody$outboundSchema` instead. */ - export const outboundSchema = GitProviderGetAllResponseBody$outboundSchema; - /** @deprecated use `GitProviderGetAllResponseBody$Outbound` instead. */ - export type Outbound = GitProviderGetAllResponseBody$Outbound; -} - -export function gitProviderGetAllResponseBodyToJSON( - gitProviderGetAllResponseBody: GitProviderGetAllResponseBody, -): string { - return JSON.stringify( - GitProviderGetAllResponseBody$outboundSchema.parse( - gitProviderGetAllResponseBody, - ), - ); -} - export function gitProviderGetAllResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -508,42 +233,6 @@ export const GitProviderGetAllResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => GitProviderGetAllResponseBody$inboundSchema)), ]); -/** @internal */ -export type GitProviderGetAllResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const GitProviderGetAllResponse$outboundSchema: z.ZodType< - GitProviderGetAllResponse$Outbound, - z.ZodTypeDef, - GitProviderGetAllResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => GitProviderGetAllResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderGetAllResponse$ { - /** @deprecated use `GitProviderGetAllResponse$inboundSchema` instead. */ - export const inboundSchema = GitProviderGetAllResponse$inboundSchema; - /** @deprecated use `GitProviderGetAllResponse$outboundSchema` instead. */ - export const outboundSchema = GitProviderGetAllResponse$outboundSchema; - /** @deprecated use `GitProviderGetAllResponse$Outbound` instead. */ - export type Outbound = GitProviderGetAllResponse$Outbound; -} - -export function gitProviderGetAllResponseToJSON( - gitProviderGetAllResponse: GitProviderGetAllResponse, -): string { - return JSON.stringify( - GitProviderGetAllResponse$outboundSchema.parse(gitProviderGetAllResponse), - ); -} - export function gitProviderGetAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gitproviderremove.ts b/src/models/operations/gitproviderremove.ts index 855b3c4..0d5c20a 100644 --- a/src/models/operations/gitproviderremove.ts +++ b/src/models/operations/gitproviderremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -23,15 +23,6 @@ export type GitProviderRemoveResponse = | models.ErrorT | GitProviderRemoveResponseBody; -/** @internal */ -export const GitProviderRemoveRequest$inboundSchema: z.ZodType< - GitProviderRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - gitProviderId: z.string(), -}); - /** @internal */ export type GitProviderRemoveRequest$Outbound = { gitProviderId: string; @@ -46,19 +37,6 @@ export const GitProviderRemoveRequest$outboundSchema: z.ZodType< gitProviderId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderRemoveRequest$ { - /** @deprecated use `GitProviderRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = GitProviderRemoveRequest$inboundSchema; - /** @deprecated use `GitProviderRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = GitProviderRemoveRequest$outboundSchema; - /** @deprecated use `GitProviderRemoveRequest$Outbound` instead. */ - export type Outbound = GitProviderRemoveRequest$Outbound; -} - export function gitProviderRemoveRequestToJSON( gitProviderRemoveRequest: GitProviderRemoveRequest, ): string { @@ -67,16 +45,6 @@ export function gitProviderRemoveRequestToJSON( ); } -export function gitProviderRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GitProviderRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitProviderRemoveRequest' from JSON`, - ); -} - /** @internal */ export const GitProviderRemoveResponseBody$inboundSchema: z.ZodType< GitProviderRemoveResponseBody, @@ -86,43 +54,6 @@ export const GitProviderRemoveResponseBody$inboundSchema: z.ZodType< success: z.boolean(), }); -/** @internal */ -export type GitProviderRemoveResponseBody$Outbound = { - success: boolean; -}; - -/** @internal */ -export const GitProviderRemoveResponseBody$outboundSchema: z.ZodType< - GitProviderRemoveResponseBody$Outbound, - z.ZodTypeDef, - GitProviderRemoveResponseBody -> = z.object({ - success: z.boolean(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderRemoveResponseBody$ { - /** @deprecated use `GitProviderRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = GitProviderRemoveResponseBody$inboundSchema; - /** @deprecated use `GitProviderRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = GitProviderRemoveResponseBody$outboundSchema; - /** @deprecated use `GitProviderRemoveResponseBody$Outbound` instead. */ - export type Outbound = GitProviderRemoveResponseBody$Outbound; -} - -export function gitProviderRemoveResponseBodyToJSON( - gitProviderRemoveResponseBody: GitProviderRemoveResponseBody, -): string { - return JSON.stringify( - GitProviderRemoveResponseBody$outboundSchema.parse( - gitProviderRemoveResponseBody, - ), - ); -} - export function gitProviderRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -143,42 +74,6 @@ export const GitProviderRemoveResponse$inboundSchema: z.ZodType< z.lazy(() => GitProviderRemoveResponseBody$inboundSchema), ]); -/** @internal */ -export type GitProviderRemoveResponse$Outbound = - | models.ErrorT$Outbound - | GitProviderRemoveResponseBody$Outbound; - -/** @internal */ -export const GitProviderRemoveResponse$outboundSchema: z.ZodType< - GitProviderRemoveResponse$Outbound, - z.ZodTypeDef, - GitProviderRemoveResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.lazy(() => GitProviderRemoveResponseBody$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitProviderRemoveResponse$ { - /** @deprecated use `GitProviderRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = GitProviderRemoveResponse$inboundSchema; - /** @deprecated use `GitProviderRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = GitProviderRemoveResponse$outboundSchema; - /** @deprecated use `GitProviderRemoveResponse$Outbound` instead. */ - export type Outbound = GitProviderRemoveResponse$Outbound; -} - -export function gitProviderRemoveResponseToJSON( - gitProviderRemoveResponse: GitProviderRemoveResponse, -): string { - return JSON.stringify( - GitProviderRemoveResponse$outboundSchema.parse(gitProviderRemoveResponse), - ); -} - export function gitProviderRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbchangestatus.ts b/src/models/operations/mariadbchangestatus.ts index 5279954..25655d4 100644 --- a/src/models/operations/mariadbchangestatus.ts +++ b/src/models/operations/mariadbchangestatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -351,38 +351,10 @@ export type MariadbChangeStatusResponse = | models.ErrorT; /** @internal */ -export const MariadbChangeStatusApplicationStatusRequest$inboundSchema: +export const MariadbChangeStatusApplicationStatusRequest$outboundSchema: z.ZodNativeEnum = z .nativeEnum(MariadbChangeStatusApplicationStatusRequest); -/** @internal */ -export const MariadbChangeStatusApplicationStatusRequest$outboundSchema: - z.ZodNativeEnum = - MariadbChangeStatusApplicationStatusRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusApplicationStatusRequest$ { - /** @deprecated use `MariadbChangeStatusApplicationStatusRequest$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusApplicationStatusRequest$inboundSchema; - /** @deprecated use `MariadbChangeStatusApplicationStatusRequest$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusApplicationStatusRequest$outboundSchema; -} - -/** @internal */ -export const MariadbChangeStatusRequest$inboundSchema: z.ZodType< - MariadbChangeStatusRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationStatus: MariadbChangeStatusApplicationStatusRequest$inboundSchema, - mariadbId: z.string(), -}); - /** @internal */ export type MariadbChangeStatusRequest$Outbound = { applicationStatus: string; @@ -399,19 +371,6 @@ export const MariadbChangeStatusRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusRequest$ { - /** @deprecated use `MariadbChangeStatusRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusRequest$inboundSchema; - /** @deprecated use `MariadbChangeStatusRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusRequest$outboundSchema; - /** @deprecated use `MariadbChangeStatusRequest$Outbound` instead. */ - export type Outbound = MariadbChangeStatusRequest$Outbound; -} - export function mariadbChangeStatusRequestToJSON( mariadbChangeStatusRequest: MariadbChangeStatusRequest, ): string { @@ -420,102 +379,26 @@ export function mariadbChangeStatusRequestToJSON( ); } -export function mariadbChangeStatusRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbChangeStatusRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbChangeStatusRequest' from JSON`, - ); -} - /** @internal */ export const MariadbChangeStatusApplicationStatusResponse$inboundSchema: z.ZodNativeEnum = z .nativeEnum(MariadbChangeStatusApplicationStatusResponse); -/** @internal */ -export const MariadbChangeStatusApplicationStatusResponse$outboundSchema: - z.ZodNativeEnum = - MariadbChangeStatusApplicationStatusResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusApplicationStatusResponse$ { - /** @deprecated use `MariadbChangeStatusApplicationStatusResponse$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusApplicationStatusResponse$inboundSchema; - /** @deprecated use `MariadbChangeStatusApplicationStatusResponse$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusApplicationStatusResponse$outboundSchema; -} - /** @internal */ export const MariadbChangeStatusBackupType$inboundSchema: z.ZodNativeEnum< typeof MariadbChangeStatusBackupType > = z.nativeEnum(MariadbChangeStatusBackupType); -/** @internal */ -export const MariadbChangeStatusBackupType$outboundSchema: z.ZodNativeEnum< - typeof MariadbChangeStatusBackupType -> = MariadbChangeStatusBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusBackupType$ { - /** @deprecated use `MariadbChangeStatusBackupType$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusBackupType$inboundSchema; - /** @deprecated use `MariadbChangeStatusBackupType$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusBackupType$outboundSchema; -} - /** @internal */ export const MariadbChangeStatusDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MariadbChangeStatusDatabaseType > = z.nativeEnum(MariadbChangeStatusDatabaseType); -/** @internal */ -export const MariadbChangeStatusDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MariadbChangeStatusDatabaseType -> = MariadbChangeStatusDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusDatabaseType$ { - /** @deprecated use `MariadbChangeStatusDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusDatabaseType$inboundSchema; - /** @deprecated use `MariadbChangeStatusDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusDatabaseType$outboundSchema; -} - /** @internal */ export const MariadbChangeStatusMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbChangeStatusMetadataEnum > = z.nativeEnum(MariadbChangeStatusMetadataEnum); -/** @internal */ -export const MariadbChangeStatusMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbChangeStatusMetadataEnum -> = MariadbChangeStatusMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMetadataEnum$ { - /** @deprecated use `MariadbChangeStatusMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusMetadataEnum$inboundSchema; - /** @deprecated use `MariadbChangeStatusMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusMetadataEnum$outboundSchema; -} - /** @internal */ export const MariadbChangeStatusMariadb$inboundSchema: z.ZodType< MariadbChangeStatusMariadb, @@ -526,43 +409,6 @@ export const MariadbChangeStatusMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbChangeStatusMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbChangeStatusMariadb$outboundSchema: z.ZodType< - MariadbChangeStatusMariadb$Outbound, - z.ZodTypeDef, - MariadbChangeStatusMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMariadb$ { - /** @deprecated use `MariadbChangeStatusMariadb$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusMariadb$inboundSchema; - /** @deprecated use `MariadbChangeStatusMariadb$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusMariadb$outboundSchema; - /** @deprecated use `MariadbChangeStatusMariadb$Outbound` instead. */ - export type Outbound = MariadbChangeStatusMariadb$Outbound; -} - -export function mariadbChangeStatusMariadbToJSON( - mariadbChangeStatusMariadb: MariadbChangeStatusMariadb, -): string { - return JSON.stringify( - MariadbChangeStatusMariadb$outboundSchema.parse(mariadbChangeStatusMariadb), - ); -} - export function mariadbChangeStatusMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -583,43 +429,6 @@ export const MariadbChangeStatusMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbChangeStatusMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbChangeStatusMongo$outboundSchema: z.ZodType< - MariadbChangeStatusMongo$Outbound, - z.ZodTypeDef, - MariadbChangeStatusMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMongo$ { - /** @deprecated use `MariadbChangeStatusMongo$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusMongo$inboundSchema; - /** @deprecated use `MariadbChangeStatusMongo$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusMongo$outboundSchema; - /** @deprecated use `MariadbChangeStatusMongo$Outbound` instead. */ - export type Outbound = MariadbChangeStatusMongo$Outbound; -} - -export function mariadbChangeStatusMongoToJSON( - mariadbChangeStatusMongo: MariadbChangeStatusMongo, -): string { - return JSON.stringify( - MariadbChangeStatusMongo$outboundSchema.parse(mariadbChangeStatusMongo), - ); -} - export function mariadbChangeStatusMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -639,41 +448,6 @@ export const MariadbChangeStatusMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MariadbChangeStatusMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MariadbChangeStatusMysql$outboundSchema: z.ZodType< - MariadbChangeStatusMysql$Outbound, - z.ZodTypeDef, - MariadbChangeStatusMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMysql$ { - /** @deprecated use `MariadbChangeStatusMysql$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusMysql$inboundSchema; - /** @deprecated use `MariadbChangeStatusMysql$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusMysql$outboundSchema; - /** @deprecated use `MariadbChangeStatusMysql$Outbound` instead. */ - export type Outbound = MariadbChangeStatusMysql$Outbound; -} - -export function mariadbChangeStatusMysqlToJSON( - mariadbChangeStatusMysql: MariadbChangeStatusMysql, -): string { - return JSON.stringify( - MariadbChangeStatusMysql$outboundSchema.parse(mariadbChangeStatusMysql), - ); -} - export function mariadbChangeStatusMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -693,43 +467,6 @@ export const MariadbChangeStatusPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbChangeStatusPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MariadbChangeStatusPostgres$outboundSchema: z.ZodType< - MariadbChangeStatusPostgres$Outbound, - z.ZodTypeDef, - MariadbChangeStatusPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusPostgres$ { - /** @deprecated use `MariadbChangeStatusPostgres$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusPostgres$inboundSchema; - /** @deprecated use `MariadbChangeStatusPostgres$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusPostgres$outboundSchema; - /** @deprecated use `MariadbChangeStatusPostgres$Outbound` instead. */ - export type Outbound = MariadbChangeStatusPostgres$Outbound; -} - -export function mariadbChangeStatusPostgresToJSON( - mariadbChangeStatusPostgres: MariadbChangeStatusPostgres, -): string { - return JSON.stringify( - MariadbChangeStatusPostgres$outboundSchema.parse( - mariadbChangeStatusPostgres, - ), - ); -} - export function mariadbChangeStatusPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -752,49 +489,6 @@ export const MariadbChangeStatusMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MariadbChangeStatusPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MariadbChangeStatusMetadata$Outbound = { - mariadb?: MariadbChangeStatusMariadb$Outbound | undefined; - mongo?: MariadbChangeStatusMongo$Outbound | undefined; - mysql?: MariadbChangeStatusMysql$Outbound | undefined; - postgres?: MariadbChangeStatusPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MariadbChangeStatusMetadata$outboundSchema: z.ZodType< - MariadbChangeStatusMetadata$Outbound, - z.ZodTypeDef, - MariadbChangeStatusMetadata -> = z.object({ - mariadb: z.lazy(() => MariadbChangeStatusMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MariadbChangeStatusMongo$outboundSchema).optional(), - mysql: z.lazy(() => MariadbChangeStatusMysql$outboundSchema).optional(), - postgres: z.lazy(() => MariadbChangeStatusPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMetadata$ { - /** @deprecated use `MariadbChangeStatusMetadata$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusMetadata$inboundSchema; - /** @deprecated use `MariadbChangeStatusMetadata$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusMetadata$outboundSchema; - /** @deprecated use `MariadbChangeStatusMetadata$Outbound` instead. */ - export type Outbound = MariadbChangeStatusMetadata$Outbound; -} - -export function mariadbChangeStatusMetadataToJSON( - mariadbChangeStatusMetadata: MariadbChangeStatusMetadata, -): string { - return JSON.stringify( - MariadbChangeStatusMetadata$outboundSchema.parse( - mariadbChangeStatusMetadata, - ), - ); -} - export function mariadbChangeStatusMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -815,44 +509,6 @@ export const MariadbChangeStatusMetadataUnion$inboundSchema: z.ZodType< MariadbChangeStatusMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MariadbChangeStatusMetadataUnion$Outbound = - | MariadbChangeStatusMetadata$Outbound - | string; - -/** @internal */ -export const MariadbChangeStatusMetadataUnion$outboundSchema: z.ZodType< - MariadbChangeStatusMetadataUnion$Outbound, - z.ZodTypeDef, - MariadbChangeStatusMetadataUnion -> = z.union([ - z.lazy(() => MariadbChangeStatusMetadata$outboundSchema), - MariadbChangeStatusMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMetadataUnion$ { - /** @deprecated use `MariadbChangeStatusMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusMetadataUnion$inboundSchema; - /** @deprecated use `MariadbChangeStatusMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusMetadataUnion$outboundSchema; - /** @deprecated use `MariadbChangeStatusMetadataUnion$Outbound` instead. */ - export type Outbound = MariadbChangeStatusMetadataUnion$Outbound; -} - -export function mariadbChangeStatusMetadataUnionToJSON( - mariadbChangeStatusMetadataUnion: MariadbChangeStatusMetadataUnion, -): string { - return JSON.stringify( - MariadbChangeStatusMetadataUnion$outboundSchema.parse( - mariadbChangeStatusMetadataUnion, - ), - ); -} - export function mariadbChangeStatusMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -894,80 +550,6 @@ export const MariadbChangeStatusBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MariadbChangeStatusBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MariadbChangeStatusMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MariadbChangeStatusBackup$outboundSchema: z.ZodType< - MariadbChangeStatusBackup$Outbound, - z.ZodTypeDef, - MariadbChangeStatusBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MariadbChangeStatusBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MariadbChangeStatusDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MariadbChangeStatusMetadata$outboundSchema), - MariadbChangeStatusMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusBackup$ { - /** @deprecated use `MariadbChangeStatusBackup$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusBackup$inboundSchema; - /** @deprecated use `MariadbChangeStatusBackup$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusBackup$outboundSchema; - /** @deprecated use `MariadbChangeStatusBackup$Outbound` instead. */ - export type Outbound = MariadbChangeStatusBackup$Outbound; -} - -export function mariadbChangeStatusBackupToJSON( - mariadbChangeStatusBackup: MariadbChangeStatusBackup, -): string { - return JSON.stringify( - MariadbChangeStatusBackup$outboundSchema.parse(mariadbChangeStatusBackup), - ); -} - export function mariadbChangeStatusBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -992,51 +574,6 @@ export const MariadbChangeStatusProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbChangeStatusProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MariadbChangeStatusProject$outboundSchema: z.ZodType< - MariadbChangeStatusProject$Outbound, - z.ZodTypeDef, - MariadbChangeStatusProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusProject$ { - /** @deprecated use `MariadbChangeStatusProject$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusProject$inboundSchema; - /** @deprecated use `MariadbChangeStatusProject$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusProject$outboundSchema; - /** @deprecated use `MariadbChangeStatusProject$Outbound` instead. */ - export type Outbound = MariadbChangeStatusProject$Outbound; -} - -export function mariadbChangeStatusProjectToJSON( - mariadbChangeStatusProject: MariadbChangeStatusProject, -): string { - return JSON.stringify( - MariadbChangeStatusProject$outboundSchema.parse(mariadbChangeStatusProject), - ); -} - export function mariadbChangeStatusProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1062,55 +599,6 @@ export const MariadbChangeStatusEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbChangeStatusEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MariadbChangeStatusProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MariadbChangeStatusEnvironment$outboundSchema: z.ZodType< - MariadbChangeStatusEnvironment$Outbound, - z.ZodTypeDef, - MariadbChangeStatusEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MariadbChangeStatusProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusEnvironment$ { - /** @deprecated use `MariadbChangeStatusEnvironment$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusEnvironment$inboundSchema; - /** @deprecated use `MariadbChangeStatusEnvironment$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusEnvironment$outboundSchema; - /** @deprecated use `MariadbChangeStatusEnvironment$Outbound` instead. */ - export type Outbound = MariadbChangeStatusEnvironment$Outbound; -} - -export function mariadbChangeStatusEnvironmentToJSON( - mariadbChangeStatusEnvironment: MariadbChangeStatusEnvironment, -): string { - return JSON.stringify( - MariadbChangeStatusEnvironment$outboundSchema.parse( - mariadbChangeStatusEnvironment, - ), - ); -} - export function mariadbChangeStatusEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1142,61 +630,6 @@ export const MariadbChangeStatusHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MariadbChangeStatusHealthCheckSwarm$outboundSchema: z.ZodType< - MariadbChangeStatusHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MariadbChangeStatusHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusHealthCheckSwarm$ { - /** @deprecated use `MariadbChangeStatusHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbChangeStatusHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbChangeStatusHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbChangeStatusHealthCheckSwarm$Outbound; -} - -export function mariadbChangeStatusHealthCheckSwarmToJSON( - mariadbChangeStatusHealthCheckSwarm: MariadbChangeStatusHealthCheckSwarm, -): string { - return JSON.stringify( - MariadbChangeStatusHealthCheckSwarm$outboundSchema.parse( - mariadbChangeStatusHealthCheckSwarm, - ), - ); -} - export function mariadbChangeStatusHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1215,37 +648,6 @@ export const MariadbChangeStatusGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbChangeStatusGlobal$Outbound = {}; - -/** @internal */ -export const MariadbChangeStatusGlobal$outboundSchema: z.ZodType< - MariadbChangeStatusGlobal$Outbound, - z.ZodTypeDef, - MariadbChangeStatusGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusGlobal$ { - /** @deprecated use `MariadbChangeStatusGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusGlobal$inboundSchema; - /** @deprecated use `MariadbChangeStatusGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusGlobal$outboundSchema; - /** @deprecated use `MariadbChangeStatusGlobal$Outbound` instead. */ - export type Outbound = MariadbChangeStatusGlobal$Outbound; -} - -export function mariadbChangeStatusGlobalToJSON( - mariadbChangeStatusGlobal: MariadbChangeStatusGlobal, -): string { - return JSON.stringify( - MariadbChangeStatusGlobal$outboundSchema.parse(mariadbChangeStatusGlobal), - ); -} - export function mariadbChangeStatusGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1258,43 +660,10 @@ export function mariadbChangeStatusGlobalFromJSON( /** @internal */ export const MariadbChangeStatusGlobalJob$inboundSchema: z.ZodType< - MariadbChangeStatusGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MariadbChangeStatusGlobalJob$Outbound = {}; - -/** @internal */ -export const MariadbChangeStatusGlobalJob$outboundSchema: z.ZodType< - MariadbChangeStatusGlobalJob$Outbound, - z.ZodTypeDef, - MariadbChangeStatusGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusGlobalJob$ { - /** @deprecated use `MariadbChangeStatusGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusGlobalJob$inboundSchema; - /** @deprecated use `MariadbChangeStatusGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusGlobalJob$outboundSchema; - /** @deprecated use `MariadbChangeStatusGlobalJob$Outbound` instead. */ - export type Outbound = MariadbChangeStatusGlobalJob$Outbound; -} - -export function mariadbChangeStatusGlobalJobToJSON( - mariadbChangeStatusGlobalJob: MariadbChangeStatusGlobalJob, -): string { - return JSON.stringify( - MariadbChangeStatusGlobalJob$outboundSchema.parse( - mariadbChangeStatusGlobalJob, - ), - ); -} + MariadbChangeStatusGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mariadbChangeStatusGlobalJobFromJSON( jsonString: string, @@ -1319,47 +688,6 @@ export const MariadbChangeStatusReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MariadbChangeStatusReplicated$outboundSchema: z.ZodType< - MariadbChangeStatusReplicated$Outbound, - z.ZodTypeDef, - MariadbChangeStatusReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusReplicated$ { - /** @deprecated use `MariadbChangeStatusReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusReplicated$inboundSchema; - /** @deprecated use `MariadbChangeStatusReplicated$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusReplicated$outboundSchema; - /** @deprecated use `MariadbChangeStatusReplicated$Outbound` instead. */ - export type Outbound = MariadbChangeStatusReplicated$Outbound; -} - -export function mariadbChangeStatusReplicatedToJSON( - mariadbChangeStatusReplicated: MariadbChangeStatusReplicated, -): string { - return JSON.stringify( - MariadbChangeStatusReplicated$outboundSchema.parse( - mariadbChangeStatusReplicated, - ), - ); -} - export function mariadbChangeStatusReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1385,50 +713,6 @@ export const MariadbChangeStatusReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MariadbChangeStatusReplicatedJob$outboundSchema: z.ZodType< - MariadbChangeStatusReplicatedJob$Outbound, - z.ZodTypeDef, - MariadbChangeStatusReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusReplicatedJob$ { - /** @deprecated use `MariadbChangeStatusReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusReplicatedJob$inboundSchema; - /** @deprecated use `MariadbChangeStatusReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusReplicatedJob$outboundSchema; - /** @deprecated use `MariadbChangeStatusReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbChangeStatusReplicatedJob$Outbound; -} - -export function mariadbChangeStatusReplicatedJobToJSON( - mariadbChangeStatusReplicatedJob: MariadbChangeStatusReplicatedJob, -): string { - return JSON.stringify( - MariadbChangeStatusReplicatedJob$outboundSchema.parse( - mariadbChangeStatusReplicatedJob, - ), - ); -} - export function mariadbChangeStatusReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1461,59 +745,6 @@ export const MariadbChangeStatusModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusModeSwarm$Outbound = { - Global?: MariadbChangeStatusGlobal$Outbound | undefined; - GlobalJob?: MariadbChangeStatusGlobalJob$Outbound | undefined; - Replicated?: MariadbChangeStatusReplicated$Outbound | undefined; - ReplicatedJob?: MariadbChangeStatusReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MariadbChangeStatusModeSwarm$outboundSchema: z.ZodType< - MariadbChangeStatusModeSwarm$Outbound, - z.ZodTypeDef, - MariadbChangeStatusModeSwarm -> = z.object({ - global: z.lazy(() => MariadbChangeStatusGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MariadbChangeStatusGlobalJob$outboundSchema) - .optional(), - replicated: z.lazy(() => MariadbChangeStatusReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => MariadbChangeStatusReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusModeSwarm$ { - /** @deprecated use `MariadbChangeStatusModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusModeSwarm$inboundSchema; - /** @deprecated use `MariadbChangeStatusModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusModeSwarm$outboundSchema; - /** @deprecated use `MariadbChangeStatusModeSwarm$Outbound` instead. */ - export type Outbound = MariadbChangeStatusModeSwarm$Outbound; -} - -export function mariadbChangeStatusModeSwarmToJSON( - mariadbChangeStatusModeSwarm: MariadbChangeStatusModeSwarm, -): string { - return JSON.stringify( - MariadbChangeStatusModeSwarm$outboundSchema.parse( - mariadbChangeStatusModeSwarm, - ), - ); -} - export function mariadbChangeStatusModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1529,43 +760,11 @@ export const MariadbChangeStatusServiceType$inboundSchema: z.ZodNativeEnum< typeof MariadbChangeStatusServiceType > = z.nativeEnum(MariadbChangeStatusServiceType); -/** @internal */ -export const MariadbChangeStatusServiceType$outboundSchema: z.ZodNativeEnum< - typeof MariadbChangeStatusServiceType -> = MariadbChangeStatusServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusServiceType$ { - /** @deprecated use `MariadbChangeStatusServiceType$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusServiceType$inboundSchema; - /** @deprecated use `MariadbChangeStatusServiceType$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusServiceType$outboundSchema; -} - /** @internal */ export const MariadbChangeStatusType$inboundSchema: z.ZodNativeEnum< typeof MariadbChangeStatusType > = z.nativeEnum(MariadbChangeStatusType); -/** @internal */ -export const MariadbChangeStatusType$outboundSchema: z.ZodNativeEnum< - typeof MariadbChangeStatusType -> = MariadbChangeStatusType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusType$ { - /** @deprecated use `MariadbChangeStatusType$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusType$inboundSchema; - /** @deprecated use `MariadbChangeStatusType$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusType$outboundSchema; -} - /** @internal */ export const MariadbChangeStatusMount$inboundSchema: z.ZodType< MariadbChangeStatusMount, @@ -1589,69 +788,6 @@ export const MariadbChangeStatusMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MariadbChangeStatusMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MariadbChangeStatusMount$outboundSchema: z.ZodType< - MariadbChangeStatusMount$Outbound, - z.ZodTypeDef, - MariadbChangeStatusMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MariadbChangeStatusServiceType$outboundSchema, - type: MariadbChangeStatusType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMount$ { - /** @deprecated use `MariadbChangeStatusMount$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusMount$inboundSchema; - /** @deprecated use `MariadbChangeStatusMount$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusMount$outboundSchema; - /** @deprecated use `MariadbChangeStatusMount$Outbound` instead. */ - export type Outbound = MariadbChangeStatusMount$Outbound; -} - -export function mariadbChangeStatusMountToJSON( - mariadbChangeStatusMount: MariadbChangeStatusMount, -): string { - return JSON.stringify( - MariadbChangeStatusMount$outboundSchema.parse(mariadbChangeStatusMount), - ); -} - export function mariadbChangeStatusMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1669,39 +805,6 @@ export const MariadbChangeStatusDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbChangeStatusDriverOpts$Outbound = {}; - -/** @internal */ -export const MariadbChangeStatusDriverOpts$outboundSchema: z.ZodType< - MariadbChangeStatusDriverOpts$Outbound, - z.ZodTypeDef, - MariadbChangeStatusDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusDriverOpts$ { - /** @deprecated use `MariadbChangeStatusDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusDriverOpts$inboundSchema; - /** @deprecated use `MariadbChangeStatusDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusDriverOpts$outboundSchema; - /** @deprecated use `MariadbChangeStatusDriverOpts$Outbound` instead. */ - export type Outbound = MariadbChangeStatusDriverOpts$Outbound; -} - -export function mariadbChangeStatusDriverOptsToJSON( - mariadbChangeStatusDriverOpts: MariadbChangeStatusDriverOpts, -): string { - return JSON.stringify( - MariadbChangeStatusDriverOpts$outboundSchema.parse( - mariadbChangeStatusDriverOpts, - ), - ); -} - export function mariadbChangeStatusDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1730,54 +833,6 @@ export const MariadbChangeStatusNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MariadbChangeStatusDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MariadbChangeStatusNetworkSwarm$outboundSchema: z.ZodType< - MariadbChangeStatusNetworkSwarm$Outbound, - z.ZodTypeDef, - MariadbChangeStatusNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MariadbChangeStatusDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusNetworkSwarm$ { - /** @deprecated use `MariadbChangeStatusNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbChangeStatusNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbChangeStatusNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbChangeStatusNetworkSwarm$Outbound; -} - -export function mariadbChangeStatusNetworkSwarmToJSON( - mariadbChangeStatusNetworkSwarm: MariadbChangeStatusNetworkSwarm, -): string { - return JSON.stringify( - MariadbChangeStatusNetworkSwarm$outboundSchema.parse( - mariadbChangeStatusNetworkSwarm, - ), - ); -} - export function mariadbChangeStatusNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1803,50 +858,6 @@ export const MariadbChangeStatusPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MariadbChangeStatusPlatform$outboundSchema: z.ZodType< - MariadbChangeStatusPlatform$Outbound, - z.ZodTypeDef, - MariadbChangeStatusPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusPlatform$ { - /** @deprecated use `MariadbChangeStatusPlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusPlatform$inboundSchema; - /** @deprecated use `MariadbChangeStatusPlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusPlatform$outboundSchema; - /** @deprecated use `MariadbChangeStatusPlatform$Outbound` instead. */ - export type Outbound = MariadbChangeStatusPlatform$Outbound; -} - -export function mariadbChangeStatusPlatformToJSON( - mariadbChangeStatusPlatform: MariadbChangeStatusPlatform, -): string { - return JSON.stringify( - MariadbChangeStatusPlatform$outboundSchema.parse( - mariadbChangeStatusPlatform, - ), - ); -} - export function mariadbChangeStatusPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1870,45 +881,6 @@ export const MariadbChangeStatusSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MariadbChangeStatusSpread$outboundSchema: z.ZodType< - MariadbChangeStatusSpread$Outbound, - z.ZodTypeDef, - MariadbChangeStatusSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusSpread$ { - /** @deprecated use `MariadbChangeStatusSpread$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusSpread$inboundSchema; - /** @deprecated use `MariadbChangeStatusSpread$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusSpread$outboundSchema; - /** @deprecated use `MariadbChangeStatusSpread$Outbound` instead. */ - export type Outbound = MariadbChangeStatusSpread$Outbound; -} - -export function mariadbChangeStatusSpreadToJSON( - mariadbChangeStatusSpread: MariadbChangeStatusSpread, -): string { - return JSON.stringify( - MariadbChangeStatusSpread$outboundSchema.parse(mariadbChangeStatusSpread), - ); -} - export function mariadbChangeStatusSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1932,47 +904,6 @@ export const MariadbChangeStatusPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusPreference$Outbound = { - Spread: MariadbChangeStatusSpread$Outbound; -}; - -/** @internal */ -export const MariadbChangeStatusPreference$outboundSchema: z.ZodType< - MariadbChangeStatusPreference$Outbound, - z.ZodTypeDef, - MariadbChangeStatusPreference -> = z.object({ - spread: z.lazy(() => MariadbChangeStatusSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusPreference$ { - /** @deprecated use `MariadbChangeStatusPreference$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusPreference$inboundSchema; - /** @deprecated use `MariadbChangeStatusPreference$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusPreference$outboundSchema; - /** @deprecated use `MariadbChangeStatusPreference$Outbound` instead. */ - export type Outbound = MariadbChangeStatusPreference$Outbound; -} - -export function mariadbChangeStatusPreferenceToJSON( - mariadbChangeStatusPreference: MariadbChangeStatusPreference, -): string { - return JSON.stringify( - MariadbChangeStatusPreference$outboundSchema.parse( - mariadbChangeStatusPreference, - ), - ); -} - export function mariadbChangeStatusPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -2005,60 +936,6 @@ export const MariadbChangeStatusPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MariadbChangeStatusPlacementSwarm$outboundSchema: z.ZodType< - MariadbChangeStatusPlacementSwarm$Outbound, - z.ZodTypeDef, - MariadbChangeStatusPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MariadbChangeStatusPlatform$outboundSchema)) - .optional(), - preferences: z.array( - z.lazy(() => MariadbChangeStatusPreference$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusPlacementSwarm$ { - /** @deprecated use `MariadbChangeStatusPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusPlacementSwarm$inboundSchema; - /** @deprecated use `MariadbChangeStatusPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusPlacementSwarm$outboundSchema; - /** @deprecated use `MariadbChangeStatusPlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbChangeStatusPlacementSwarm$Outbound; -} - -export function mariadbChangeStatusPlacementSwarmToJSON( - mariadbChangeStatusPlacementSwarm: MariadbChangeStatusPlacementSwarm, -): string { - return JSON.stringify( - MariadbChangeStatusPlacementSwarm$outboundSchema.parse( - mariadbChangeStatusPlacementSwarm, - ), - ); -} - export function mariadbChangeStatusPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2082,64 +959,12 @@ export const MariadbChangeStatusRestartPolicySwarm$inboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MariadbChangeStatusRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MariadbChangeStatusRestartPolicySwarm$outboundSchema: z.ZodType< - MariadbChangeStatusRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MariadbChangeStatusRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusRestartPolicySwarm$ { - /** @deprecated use `MariadbChangeStatusRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbChangeStatusRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbChangeStatusRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbChangeStatusRestartPolicySwarm$Outbound; -} - -export function mariadbChangeStatusRestartPolicySwarmToJSON( - mariadbChangeStatusRestartPolicySwarm: MariadbChangeStatusRestartPolicySwarm, -): string { - return JSON.stringify( - MariadbChangeStatusRestartPolicySwarm$outboundSchema.parse( - mariadbChangeStatusRestartPolicySwarm, - ), - ); -} - export function mariadbChangeStatusRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2174,65 +999,6 @@ export const MariadbChangeStatusRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbChangeStatusRollbackConfigSwarm$outboundSchema: z.ZodType< - MariadbChangeStatusRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbChangeStatusRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusRollbackConfigSwarm$ { - /** @deprecated use `MariadbChangeStatusRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbChangeStatusRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbChangeStatusRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbChangeStatusRollbackConfigSwarm$Outbound; -} - -export function mariadbChangeStatusRollbackConfigSwarmToJSON( - mariadbChangeStatusRollbackConfigSwarm: - MariadbChangeStatusRollbackConfigSwarm, -): string { - return JSON.stringify( - MariadbChangeStatusRollbackConfigSwarm$outboundSchema.parse( - mariadbChangeStatusRollbackConfigSwarm, - ), - ); -} - export function mariadbChangeStatusRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2250,24 +1016,6 @@ export const MariadbChangeStatusMetricsConfigEnum$inboundSchema: MariadbChangeStatusMetricsConfigEnum, ); -/** @internal */ -export const MariadbChangeStatusMetricsConfigEnum$outboundSchema: - z.ZodNativeEnum = - MariadbChangeStatusMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMetricsConfigEnum$ { - /** @deprecated use `MariadbChangeStatusMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusMetricsConfigEnum$inboundSchema; - /** @deprecated use `MariadbChangeStatusMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MariadbChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbChangeStatusMetricsConfigUnion1, @@ -2280,51 +1028,6 @@ export const MariadbChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbChangeStatusMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MariadbChangeStatusMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MariadbChangeStatusMetricsConfigUnion1$outboundSchema: z.ZodType< - MariadbChangeStatusMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MariadbChangeStatusMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbChangeStatusMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMetricsConfigUnion1$ { - /** @deprecated use `MariadbChangeStatusMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MariadbChangeStatusMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MariadbChangeStatusMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MariadbChangeStatusMetricsConfigUnion1$Outbound; -} - -export function mariadbChangeStatusMetricsConfigUnion1ToJSON( - mariadbChangeStatusMetricsConfigUnion1: - MariadbChangeStatusMetricsConfigUnion1, -): string { - return JSON.stringify( - MariadbChangeStatusMetricsConfigUnion1$outboundSchema.parse( - mariadbChangeStatusMetricsConfigUnion1, - ), - ); -} - export function mariadbChangeStatusMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2352,57 +1055,6 @@ export const MariadbChangeStatusMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MariadbChangeStatusMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MariadbChangeStatusMetricsConfigUnion2$outboundSchema: z.ZodType< - MariadbChangeStatusMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MariadbChangeStatusMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusMetricsConfigUnion2$ { - /** @deprecated use `MariadbChangeStatusMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MariadbChangeStatusMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MariadbChangeStatusMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MariadbChangeStatusMetricsConfigUnion2$Outbound; -} - -export function mariadbChangeStatusMetricsConfigUnion2ToJSON( - mariadbChangeStatusMetricsConfigUnion2: - MariadbChangeStatusMetricsConfigUnion2, -): string { - return JSON.stringify( - MariadbChangeStatusMetricsConfigUnion2$outboundSchema.parse( - mariadbChangeStatusMetricsConfigUnion2, - ), - ); -} - export function mariadbChangeStatusMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2419,22 +1071,6 @@ export const MariadbChangeStatusServerStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbChangeStatusServerStatus > = z.nativeEnum(MariadbChangeStatusServerStatus); -/** @internal */ -export const MariadbChangeStatusServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbChangeStatusServerStatus -> = MariadbChangeStatusServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusServerStatus$ { - /** @deprecated use `MariadbChangeStatusServerStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusServerStatus$inboundSchema; - /** @deprecated use `MariadbChangeStatusServerStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusServerStatus$outboundSchema; -} - /** @internal */ export const MariadbChangeStatusServer$inboundSchema: z.ZodType< MariadbChangeStatusServer, @@ -2466,78 +1102,6 @@ export const MariadbChangeStatusServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MariadbChangeStatusServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MariadbChangeStatusServer$outboundSchema: z.ZodType< - MariadbChangeStatusServer$Outbound, - z.ZodTypeDef, - MariadbChangeStatusServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MariadbChangeStatusServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusServer$ { - /** @deprecated use `MariadbChangeStatusServer$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusServer$inboundSchema; - /** @deprecated use `MariadbChangeStatusServer$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusServer$outboundSchema; - /** @deprecated use `MariadbChangeStatusServer$Outbound` instead. */ - export type Outbound = MariadbChangeStatusServer$Outbound; -} - -export function mariadbChangeStatusServerToJSON( - mariadbChangeStatusServer: MariadbChangeStatusServer, -): string { - return JSON.stringify( - MariadbChangeStatusServer$outboundSchema.parse(mariadbChangeStatusServer), - ); -} - export function mariadbChangeStatusServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2571,64 +1135,6 @@ export const MariadbChangeStatusUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbChangeStatusUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbChangeStatusUpdateConfigSwarm$outboundSchema: z.ZodType< - MariadbChangeStatusUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbChangeStatusUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusUpdateConfigSwarm$ { - /** @deprecated use `MariadbChangeStatusUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbChangeStatusUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbChangeStatusUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbChangeStatusUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbChangeStatusUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbChangeStatusUpdateConfigSwarm$Outbound; -} - -export function mariadbChangeStatusUpdateConfigSwarmToJSON( - mariadbChangeStatusUpdateConfigSwarm: MariadbChangeStatusUpdateConfigSwarm, -): string { - return JSON.stringify( - MariadbChangeStatusUpdateConfigSwarm$outboundSchema.parse( - mariadbChangeStatusUpdateConfigSwarm, - ), - ); -} - export function mariadbChangeStatusUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2695,122 +1201,6 @@ export const MariadbChangeStatusResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MariadbChangeStatusResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MariadbChangeStatusEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MariadbChangeStatusHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MariadbChangeStatusModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MariadbChangeStatusPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MariadbChangeStatusRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MariadbChangeStatusRollbackConfigSwarm$Outbound | null; - server: MariadbChangeStatusServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MariadbChangeStatusUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MariadbChangeStatusResponseBody$outboundSchema: z.ZodType< - MariadbChangeStatusResponseBody$Outbound, - z.ZodTypeDef, - MariadbChangeStatusResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: - MariadbChangeStatusApplicationStatusResponse$outboundSchema, - backups: z.array(z.lazy(() => MariadbChangeStatusBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MariadbChangeStatusEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbChangeStatusHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => MariadbChangeStatusModeSwarm$outboundSchema), - ), - mounts: z.array(z.lazy(() => MariadbChangeStatusMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbChangeStatusNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MariadbChangeStatusPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbChangeStatusRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbChangeStatusRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MariadbChangeStatusServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbChangeStatusUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusResponseBody$ { - /** @deprecated use `MariadbChangeStatusResponseBody$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusResponseBody$inboundSchema; - /** @deprecated use `MariadbChangeStatusResponseBody$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusResponseBody$outboundSchema; - /** @deprecated use `MariadbChangeStatusResponseBody$Outbound` instead. */ - export type Outbound = MariadbChangeStatusResponseBody$Outbound; -} - -export function mariadbChangeStatusResponseBodyToJSON( - mariadbChangeStatusResponseBody: MariadbChangeStatusResponseBody, -): string { - return JSON.stringify( - MariadbChangeStatusResponseBody$outboundSchema.parse( - mariadbChangeStatusResponseBody, - ), - ); -} - export function mariadbChangeStatusResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2831,44 +1221,6 @@ export const MariadbChangeStatusResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MariadbChangeStatusResponse$Outbound = - | MariadbChangeStatusResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MariadbChangeStatusResponse$outboundSchema: z.ZodType< - MariadbChangeStatusResponse$Outbound, - z.ZodTypeDef, - MariadbChangeStatusResponse -> = z.union([ - z.lazy(() => MariadbChangeStatusResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbChangeStatusResponse$ { - /** @deprecated use `MariadbChangeStatusResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbChangeStatusResponse$inboundSchema; - /** @deprecated use `MariadbChangeStatusResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbChangeStatusResponse$outboundSchema; - /** @deprecated use `MariadbChangeStatusResponse$Outbound` instead. */ - export type Outbound = MariadbChangeStatusResponse$Outbound; -} - -export function mariadbChangeStatusResponseToJSON( - mariadbChangeStatusResponse: MariadbChangeStatusResponse, -): string { - return JSON.stringify( - MariadbChangeStatusResponse$outboundSchema.parse( - mariadbChangeStatusResponse, - ), - ); -} - export function mariadbChangeStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbcreate.ts b/src/models/operations/mariadbcreate.ts index 9ba31ee..51ee39e 100644 --- a/src/models/operations/mariadbcreate.ts +++ b/src/models/operations/mariadbcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -23,24 +23,6 @@ export type MariadbCreateRequest = { export type MariadbCreateResponse = models.ErrorT | boolean; -/** @internal */ -export const MariadbCreateRequest$inboundSchema: z.ZodType< - MariadbCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("mariadb:6"), - environmentId: z.string(), - name: z.string(), - serverId: z.nullable(z.string()).optional(), -}); - /** @internal */ export type MariadbCreateRequest$Outbound = { appName: string; @@ -73,19 +55,6 @@ export const MariadbCreateRequest$outboundSchema: z.ZodType< serverId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbCreateRequest$ { - /** @deprecated use `MariadbCreateRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbCreateRequest$inboundSchema; - /** @deprecated use `MariadbCreateRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbCreateRequest$outboundSchema; - /** @deprecated use `MariadbCreateRequest$Outbound` instead. */ - export type Outbound = MariadbCreateRequest$Outbound; -} - export function mariadbCreateRequestToJSON( mariadbCreateRequest: MariadbCreateRequest, ): string { @@ -94,16 +63,6 @@ export function mariadbCreateRequestToJSON( ); } -export function mariadbCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbCreateRequest' from JSON`, - ); -} - /** @internal */ export const MariadbCreateResponse$inboundSchema: z.ZodType< MariadbCreateResponse, @@ -111,37 +70,6 @@ export const MariadbCreateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MariadbCreateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MariadbCreateResponse$outboundSchema: z.ZodType< - MariadbCreateResponse$Outbound, - z.ZodTypeDef, - MariadbCreateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbCreateResponse$ { - /** @deprecated use `MariadbCreateResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbCreateResponse$inboundSchema; - /** @deprecated use `MariadbCreateResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbCreateResponse$outboundSchema; - /** @deprecated use `MariadbCreateResponse$Outbound` instead. */ - export type Outbound = MariadbCreateResponse$Outbound; -} - -export function mariadbCreateResponseToJSON( - mariadbCreateResponse: MariadbCreateResponse, -): string { - return JSON.stringify( - MariadbCreateResponse$outboundSchema.parse(mariadbCreateResponse), - ); -} - export function mariadbCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbdeploy.ts b/src/models/operations/mariadbdeploy.ts index 64e66f4..2b19e14 100644 --- a/src/models/operations/mariadbdeploy.ts +++ b/src/models/operations/mariadbdeploy.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -335,15 +335,6 @@ export type MariadbDeployResponseBody = { export type MariadbDeployResponse = MariadbDeployResponseBody | models.ErrorT; -/** @internal */ -export const MariadbDeployRequest$inboundSchema: z.ZodType< - MariadbDeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mariadbId: z.string(), -}); - /** @internal */ export type MariadbDeployRequest$Outbound = { mariadbId: string; @@ -358,19 +349,6 @@ export const MariadbDeployRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployRequest$ { - /** @deprecated use `MariadbDeployRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployRequest$inboundSchema; - /** @deprecated use `MariadbDeployRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployRequest$outboundSchema; - /** @deprecated use `MariadbDeployRequest$Outbound` instead. */ - export type Outbound = MariadbDeployRequest$Outbound; -} - export function mariadbDeployRequestToJSON( mariadbDeployRequest: MariadbDeployRequest, ): string { @@ -379,100 +357,26 @@ export function mariadbDeployRequestToJSON( ); } -export function mariadbDeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbDeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbDeployRequest' from JSON`, - ); -} - /** @internal */ export const MariadbDeployApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbDeployApplicationStatus > = z.nativeEnum(MariadbDeployApplicationStatus); -/** @internal */ -export const MariadbDeployApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbDeployApplicationStatus -> = MariadbDeployApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployApplicationStatus$ { - /** @deprecated use `MariadbDeployApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployApplicationStatus$inboundSchema; - /** @deprecated use `MariadbDeployApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployApplicationStatus$outboundSchema; -} - /** @internal */ export const MariadbDeployBackupType$inboundSchema: z.ZodNativeEnum< typeof MariadbDeployBackupType > = z.nativeEnum(MariadbDeployBackupType); -/** @internal */ -export const MariadbDeployBackupType$outboundSchema: z.ZodNativeEnum< - typeof MariadbDeployBackupType -> = MariadbDeployBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployBackupType$ { - /** @deprecated use `MariadbDeployBackupType$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployBackupType$inboundSchema; - /** @deprecated use `MariadbDeployBackupType$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployBackupType$outboundSchema; -} - /** @internal */ export const MariadbDeployDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MariadbDeployDatabaseType > = z.nativeEnum(MariadbDeployDatabaseType); -/** @internal */ -export const MariadbDeployDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MariadbDeployDatabaseType -> = MariadbDeployDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployDatabaseType$ { - /** @deprecated use `MariadbDeployDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployDatabaseType$inboundSchema; - /** @deprecated use `MariadbDeployDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployDatabaseType$outboundSchema; -} - /** @internal */ export const MariadbDeployMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbDeployMetadataEnum > = z.nativeEnum(MariadbDeployMetadataEnum); -/** @internal */ -export const MariadbDeployMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbDeployMetadataEnum -> = MariadbDeployMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMetadataEnum$ { - /** @deprecated use `MariadbDeployMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMetadataEnum$inboundSchema; - /** @deprecated use `MariadbDeployMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMetadataEnum$outboundSchema; -} - /** @internal */ export const MariadbDeployMariadb$inboundSchema: z.ZodType< MariadbDeployMariadb, @@ -483,43 +387,6 @@ export const MariadbDeployMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbDeployMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbDeployMariadb$outboundSchema: z.ZodType< - MariadbDeployMariadb$Outbound, - z.ZodTypeDef, - MariadbDeployMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMariadb$ { - /** @deprecated use `MariadbDeployMariadb$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMariadb$inboundSchema; - /** @deprecated use `MariadbDeployMariadb$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMariadb$outboundSchema; - /** @deprecated use `MariadbDeployMariadb$Outbound` instead. */ - export type Outbound = MariadbDeployMariadb$Outbound; -} - -export function mariadbDeployMariadbToJSON( - mariadbDeployMariadb: MariadbDeployMariadb, -): string { - return JSON.stringify( - MariadbDeployMariadb$outboundSchema.parse(mariadbDeployMariadb), - ); -} - export function mariadbDeployMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -540,43 +407,6 @@ export const MariadbDeployMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbDeployMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbDeployMongo$outboundSchema: z.ZodType< - MariadbDeployMongo$Outbound, - z.ZodTypeDef, - MariadbDeployMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMongo$ { - /** @deprecated use `MariadbDeployMongo$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMongo$inboundSchema; - /** @deprecated use `MariadbDeployMongo$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMongo$outboundSchema; - /** @deprecated use `MariadbDeployMongo$Outbound` instead. */ - export type Outbound = MariadbDeployMongo$Outbound; -} - -export function mariadbDeployMongoToJSON( - mariadbDeployMongo: MariadbDeployMongo, -): string { - return JSON.stringify( - MariadbDeployMongo$outboundSchema.parse(mariadbDeployMongo), - ); -} - export function mariadbDeployMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -596,41 +426,6 @@ export const MariadbDeployMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MariadbDeployMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MariadbDeployMysql$outboundSchema: z.ZodType< - MariadbDeployMysql$Outbound, - z.ZodTypeDef, - MariadbDeployMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMysql$ { - /** @deprecated use `MariadbDeployMysql$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMysql$inboundSchema; - /** @deprecated use `MariadbDeployMysql$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMysql$outboundSchema; - /** @deprecated use `MariadbDeployMysql$Outbound` instead. */ - export type Outbound = MariadbDeployMysql$Outbound; -} - -export function mariadbDeployMysqlToJSON( - mariadbDeployMysql: MariadbDeployMysql, -): string { - return JSON.stringify( - MariadbDeployMysql$outboundSchema.parse(mariadbDeployMysql), - ); -} - export function mariadbDeployMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -650,41 +445,6 @@ export const MariadbDeployPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbDeployPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MariadbDeployPostgres$outboundSchema: z.ZodType< - MariadbDeployPostgres$Outbound, - z.ZodTypeDef, - MariadbDeployPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployPostgres$ { - /** @deprecated use `MariadbDeployPostgres$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployPostgres$inboundSchema; - /** @deprecated use `MariadbDeployPostgres$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployPostgres$outboundSchema; - /** @deprecated use `MariadbDeployPostgres$Outbound` instead. */ - export type Outbound = MariadbDeployPostgres$Outbound; -} - -export function mariadbDeployPostgresToJSON( - mariadbDeployPostgres: MariadbDeployPostgres, -): string { - return JSON.stringify( - MariadbDeployPostgres$outboundSchema.parse(mariadbDeployPostgres), - ); -} - export function mariadbDeployPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -707,47 +467,6 @@ export const MariadbDeployMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MariadbDeployPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MariadbDeployMetadata$Outbound = { - mariadb?: MariadbDeployMariadb$Outbound | undefined; - mongo?: MariadbDeployMongo$Outbound | undefined; - mysql?: MariadbDeployMysql$Outbound | undefined; - postgres?: MariadbDeployPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MariadbDeployMetadata$outboundSchema: z.ZodType< - MariadbDeployMetadata$Outbound, - z.ZodTypeDef, - MariadbDeployMetadata -> = z.object({ - mariadb: z.lazy(() => MariadbDeployMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MariadbDeployMongo$outboundSchema).optional(), - mysql: z.lazy(() => MariadbDeployMysql$outboundSchema).optional(), - postgres: z.lazy(() => MariadbDeployPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMetadata$ { - /** @deprecated use `MariadbDeployMetadata$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMetadata$inboundSchema; - /** @deprecated use `MariadbDeployMetadata$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMetadata$outboundSchema; - /** @deprecated use `MariadbDeployMetadata$Outbound` instead. */ - export type Outbound = MariadbDeployMetadata$Outbound; -} - -export function mariadbDeployMetadataToJSON( - mariadbDeployMetadata: MariadbDeployMetadata, -): string { - return JSON.stringify( - MariadbDeployMetadata$outboundSchema.parse(mariadbDeployMetadata), - ); -} - export function mariadbDeployMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -768,42 +487,6 @@ export const MariadbDeployMetadataUnion$inboundSchema: z.ZodType< MariadbDeployMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MariadbDeployMetadataUnion$Outbound = - | MariadbDeployMetadata$Outbound - | string; - -/** @internal */ -export const MariadbDeployMetadataUnion$outboundSchema: z.ZodType< - MariadbDeployMetadataUnion$Outbound, - z.ZodTypeDef, - MariadbDeployMetadataUnion -> = z.union([ - z.lazy(() => MariadbDeployMetadata$outboundSchema), - MariadbDeployMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMetadataUnion$ { - /** @deprecated use `MariadbDeployMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMetadataUnion$inboundSchema; - /** @deprecated use `MariadbDeployMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMetadataUnion$outboundSchema; - /** @deprecated use `MariadbDeployMetadataUnion$Outbound` instead. */ - export type Outbound = MariadbDeployMetadataUnion$Outbound; -} - -export function mariadbDeployMetadataUnionToJSON( - mariadbDeployMetadataUnion: MariadbDeployMetadataUnion, -): string { - return JSON.stringify( - MariadbDeployMetadataUnion$outboundSchema.parse(mariadbDeployMetadataUnion), - ); -} - export function mariadbDeployMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -845,80 +528,6 @@ export const MariadbDeployBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MariadbDeployBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MariadbDeployMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MariadbDeployBackup$outboundSchema: z.ZodType< - MariadbDeployBackup$Outbound, - z.ZodTypeDef, - MariadbDeployBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MariadbDeployBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MariadbDeployDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MariadbDeployMetadata$outboundSchema), - MariadbDeployMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployBackup$ { - /** @deprecated use `MariadbDeployBackup$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployBackup$inboundSchema; - /** @deprecated use `MariadbDeployBackup$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployBackup$outboundSchema; - /** @deprecated use `MariadbDeployBackup$Outbound` instead. */ - export type Outbound = MariadbDeployBackup$Outbound; -} - -export function mariadbDeployBackupToJSON( - mariadbDeployBackup: MariadbDeployBackup, -): string { - return JSON.stringify( - MariadbDeployBackup$outboundSchema.parse(mariadbDeployBackup), - ); -} - export function mariadbDeployBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -943,51 +552,6 @@ export const MariadbDeployProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbDeployProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MariadbDeployProject$outboundSchema: z.ZodType< - MariadbDeployProject$Outbound, - z.ZodTypeDef, - MariadbDeployProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployProject$ { - /** @deprecated use `MariadbDeployProject$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployProject$inboundSchema; - /** @deprecated use `MariadbDeployProject$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployProject$outboundSchema; - /** @deprecated use `MariadbDeployProject$Outbound` instead. */ - export type Outbound = MariadbDeployProject$Outbound; -} - -export function mariadbDeployProjectToJSON( - mariadbDeployProject: MariadbDeployProject, -): string { - return JSON.stringify( - MariadbDeployProject$outboundSchema.parse(mariadbDeployProject), - ); -} - export function mariadbDeployProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1013,53 +577,6 @@ export const MariadbDeployEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbDeployEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MariadbDeployProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MariadbDeployEnvironment$outboundSchema: z.ZodType< - MariadbDeployEnvironment$Outbound, - z.ZodTypeDef, - MariadbDeployEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MariadbDeployProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployEnvironment$ { - /** @deprecated use `MariadbDeployEnvironment$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployEnvironment$inboundSchema; - /** @deprecated use `MariadbDeployEnvironment$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployEnvironment$outboundSchema; - /** @deprecated use `MariadbDeployEnvironment$Outbound` instead. */ - export type Outbound = MariadbDeployEnvironment$Outbound; -} - -export function mariadbDeployEnvironmentToJSON( - mariadbDeployEnvironment: MariadbDeployEnvironment, -): string { - return JSON.stringify( - MariadbDeployEnvironment$outboundSchema.parse(mariadbDeployEnvironment), - ); -} - export function mariadbDeployEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1091,59 +608,6 @@ export const MariadbDeployHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MariadbDeployHealthCheckSwarm$outboundSchema: z.ZodType< - MariadbDeployHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MariadbDeployHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployHealthCheckSwarm$ { - /** @deprecated use `MariadbDeployHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbDeployHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbDeployHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbDeployHealthCheckSwarm$Outbound; -} - -export function mariadbDeployHealthCheckSwarmToJSON( - mariadbDeployHealthCheckSwarm: MariadbDeployHealthCheckSwarm, -): string { - return JSON.stringify( - MariadbDeployHealthCheckSwarm$outboundSchema.parse( - mariadbDeployHealthCheckSwarm, - ), - ); -} - export function mariadbDeployHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1161,37 +625,6 @@ export const MariadbDeployGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbDeployGlobal$Outbound = {}; - -/** @internal */ -export const MariadbDeployGlobal$outboundSchema: z.ZodType< - MariadbDeployGlobal$Outbound, - z.ZodTypeDef, - MariadbDeployGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployGlobal$ { - /** @deprecated use `MariadbDeployGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployGlobal$inboundSchema; - /** @deprecated use `MariadbDeployGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployGlobal$outboundSchema; - /** @deprecated use `MariadbDeployGlobal$Outbound` instead. */ - export type Outbound = MariadbDeployGlobal$Outbound; -} - -export function mariadbDeployGlobalToJSON( - mariadbDeployGlobal: MariadbDeployGlobal, -): string { - return JSON.stringify( - MariadbDeployGlobal$outboundSchema.parse(mariadbDeployGlobal), - ); -} - export function mariadbDeployGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1203,42 +636,11 @@ export function mariadbDeployGlobalFromJSON( } /** @internal */ -export const MariadbDeployGlobalJob$inboundSchema: z.ZodType< - MariadbDeployGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MariadbDeployGlobalJob$Outbound = {}; - -/** @internal */ -export const MariadbDeployGlobalJob$outboundSchema: z.ZodType< - MariadbDeployGlobalJob$Outbound, - z.ZodTypeDef, - MariadbDeployGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployGlobalJob$ { - /** @deprecated use `MariadbDeployGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployGlobalJob$inboundSchema; - /** @deprecated use `MariadbDeployGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployGlobalJob$outboundSchema; - /** @deprecated use `MariadbDeployGlobalJob$Outbound` instead. */ - export type Outbound = MariadbDeployGlobalJob$Outbound; -} - -export function mariadbDeployGlobalJobToJSON( - mariadbDeployGlobalJob: MariadbDeployGlobalJob, -): string { - return JSON.stringify( - MariadbDeployGlobalJob$outboundSchema.parse(mariadbDeployGlobalJob), - ); -} +export const MariadbDeployGlobalJob$inboundSchema: z.ZodType< + MariadbDeployGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mariadbDeployGlobalJobFromJSON( jsonString: string, @@ -1263,45 +665,6 @@ export const MariadbDeployReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MariadbDeployReplicated$outboundSchema: z.ZodType< - MariadbDeployReplicated$Outbound, - z.ZodTypeDef, - MariadbDeployReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployReplicated$ { - /** @deprecated use `MariadbDeployReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployReplicated$inboundSchema; - /** @deprecated use `MariadbDeployReplicated$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployReplicated$outboundSchema; - /** @deprecated use `MariadbDeployReplicated$Outbound` instead. */ - export type Outbound = MariadbDeployReplicated$Outbound; -} - -export function mariadbDeployReplicatedToJSON( - mariadbDeployReplicated: MariadbDeployReplicated, -): string { - return JSON.stringify( - MariadbDeployReplicated$outboundSchema.parse(mariadbDeployReplicated), - ); -} - export function mariadbDeployReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1327,48 +690,6 @@ export const MariadbDeployReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MariadbDeployReplicatedJob$outboundSchema: z.ZodType< - MariadbDeployReplicatedJob$Outbound, - z.ZodTypeDef, - MariadbDeployReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployReplicatedJob$ { - /** @deprecated use `MariadbDeployReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployReplicatedJob$inboundSchema; - /** @deprecated use `MariadbDeployReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployReplicatedJob$outboundSchema; - /** @deprecated use `MariadbDeployReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbDeployReplicatedJob$Outbound; -} - -export function mariadbDeployReplicatedJobToJSON( - mariadbDeployReplicatedJob: MariadbDeployReplicatedJob, -): string { - return JSON.stringify( - MariadbDeployReplicatedJob$outboundSchema.parse(mariadbDeployReplicatedJob), - ); -} - export function mariadbDeployReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1399,55 +720,6 @@ export const MariadbDeployModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployModeSwarm$Outbound = { - Global?: MariadbDeployGlobal$Outbound | undefined; - GlobalJob?: MariadbDeployGlobalJob$Outbound | undefined; - Replicated?: MariadbDeployReplicated$Outbound | undefined; - ReplicatedJob?: MariadbDeployReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MariadbDeployModeSwarm$outboundSchema: z.ZodType< - MariadbDeployModeSwarm$Outbound, - z.ZodTypeDef, - MariadbDeployModeSwarm -> = z.object({ - global: z.lazy(() => MariadbDeployGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MariadbDeployGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MariadbDeployReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MariadbDeployReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployModeSwarm$ { - /** @deprecated use `MariadbDeployModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployModeSwarm$inboundSchema; - /** @deprecated use `MariadbDeployModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployModeSwarm$outboundSchema; - /** @deprecated use `MariadbDeployModeSwarm$Outbound` instead. */ - export type Outbound = MariadbDeployModeSwarm$Outbound; -} - -export function mariadbDeployModeSwarmToJSON( - mariadbDeployModeSwarm: MariadbDeployModeSwarm, -): string { - return JSON.stringify( - MariadbDeployModeSwarm$outboundSchema.parse(mariadbDeployModeSwarm), - ); -} - export function mariadbDeployModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1463,43 +735,11 @@ export const MariadbDeployServiceType$inboundSchema: z.ZodNativeEnum< typeof MariadbDeployServiceType > = z.nativeEnum(MariadbDeployServiceType); -/** @internal */ -export const MariadbDeployServiceType$outboundSchema: z.ZodNativeEnum< - typeof MariadbDeployServiceType -> = MariadbDeployServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployServiceType$ { - /** @deprecated use `MariadbDeployServiceType$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployServiceType$inboundSchema; - /** @deprecated use `MariadbDeployServiceType$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployServiceType$outboundSchema; -} - /** @internal */ export const MariadbDeployType$inboundSchema: z.ZodNativeEnum< typeof MariadbDeployType > = z.nativeEnum(MariadbDeployType); -/** @internal */ -export const MariadbDeployType$outboundSchema: z.ZodNativeEnum< - typeof MariadbDeployType -> = MariadbDeployType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployType$ { - /** @deprecated use `MariadbDeployType$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployType$inboundSchema; - /** @deprecated use `MariadbDeployType$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployType$outboundSchema; -} - /** @internal */ export const MariadbDeployMount$inboundSchema: z.ZodType< MariadbDeployMount, @@ -1523,69 +763,6 @@ export const MariadbDeployMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MariadbDeployMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MariadbDeployMount$outboundSchema: z.ZodType< - MariadbDeployMount$Outbound, - z.ZodTypeDef, - MariadbDeployMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MariadbDeployServiceType$outboundSchema, - type: MariadbDeployType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMount$ { - /** @deprecated use `MariadbDeployMount$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMount$inboundSchema; - /** @deprecated use `MariadbDeployMount$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMount$outboundSchema; - /** @deprecated use `MariadbDeployMount$Outbound` instead. */ - export type Outbound = MariadbDeployMount$Outbound; -} - -export function mariadbDeployMountToJSON( - mariadbDeployMount: MariadbDeployMount, -): string { - return JSON.stringify( - MariadbDeployMount$outboundSchema.parse(mariadbDeployMount), - ); -} - export function mariadbDeployMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1603,37 +780,6 @@ export const MariadbDeployDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbDeployDriverOpts$Outbound = {}; - -/** @internal */ -export const MariadbDeployDriverOpts$outboundSchema: z.ZodType< - MariadbDeployDriverOpts$Outbound, - z.ZodTypeDef, - MariadbDeployDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployDriverOpts$ { - /** @deprecated use `MariadbDeployDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployDriverOpts$inboundSchema; - /** @deprecated use `MariadbDeployDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployDriverOpts$outboundSchema; - /** @deprecated use `MariadbDeployDriverOpts$Outbound` instead. */ - export type Outbound = MariadbDeployDriverOpts$Outbound; -} - -export function mariadbDeployDriverOptsToJSON( - mariadbDeployDriverOpts: MariadbDeployDriverOpts, -): string { - return JSON.stringify( - MariadbDeployDriverOpts$outboundSchema.parse(mariadbDeployDriverOpts), - ); -} - export function mariadbDeployDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1661,51 +807,6 @@ export const MariadbDeployNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MariadbDeployDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MariadbDeployNetworkSwarm$outboundSchema: z.ZodType< - MariadbDeployNetworkSwarm$Outbound, - z.ZodTypeDef, - MariadbDeployNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MariadbDeployDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployNetworkSwarm$ { - /** @deprecated use `MariadbDeployNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbDeployNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbDeployNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbDeployNetworkSwarm$Outbound; -} - -export function mariadbDeployNetworkSwarmToJSON( - mariadbDeployNetworkSwarm: MariadbDeployNetworkSwarm, -): string { - return JSON.stringify( - MariadbDeployNetworkSwarm$outboundSchema.parse(mariadbDeployNetworkSwarm), - ); -} - export function mariadbDeployNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1731,48 +832,6 @@ export const MariadbDeployPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MariadbDeployPlatform$outboundSchema: z.ZodType< - MariadbDeployPlatform$Outbound, - z.ZodTypeDef, - MariadbDeployPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployPlatform$ { - /** @deprecated use `MariadbDeployPlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployPlatform$inboundSchema; - /** @deprecated use `MariadbDeployPlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployPlatform$outboundSchema; - /** @deprecated use `MariadbDeployPlatform$Outbound` instead. */ - export type Outbound = MariadbDeployPlatform$Outbound; -} - -export function mariadbDeployPlatformToJSON( - mariadbDeployPlatform: MariadbDeployPlatform, -): string { - return JSON.stringify( - MariadbDeployPlatform$outboundSchema.parse(mariadbDeployPlatform), - ); -} - export function mariadbDeployPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1796,45 +855,6 @@ export const MariadbDeploySpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeploySpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MariadbDeploySpread$outboundSchema: z.ZodType< - MariadbDeploySpread$Outbound, - z.ZodTypeDef, - MariadbDeploySpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeploySpread$ { - /** @deprecated use `MariadbDeploySpread$inboundSchema` instead. */ - export const inboundSchema = MariadbDeploySpread$inboundSchema; - /** @deprecated use `MariadbDeploySpread$outboundSchema` instead. */ - export const outboundSchema = MariadbDeploySpread$outboundSchema; - /** @deprecated use `MariadbDeploySpread$Outbound` instead. */ - export type Outbound = MariadbDeploySpread$Outbound; -} - -export function mariadbDeploySpreadToJSON( - mariadbDeploySpread: MariadbDeploySpread, -): string { - return JSON.stringify( - MariadbDeploySpread$outboundSchema.parse(mariadbDeploySpread), - ); -} - export function mariadbDeploySpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1858,45 +878,6 @@ export const MariadbDeployPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployPreference$Outbound = { - Spread: MariadbDeploySpread$Outbound; -}; - -/** @internal */ -export const MariadbDeployPreference$outboundSchema: z.ZodType< - MariadbDeployPreference$Outbound, - z.ZodTypeDef, - MariadbDeployPreference -> = z.object({ - spread: z.lazy(() => MariadbDeploySpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployPreference$ { - /** @deprecated use `MariadbDeployPreference$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployPreference$inboundSchema; - /** @deprecated use `MariadbDeployPreference$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployPreference$outboundSchema; - /** @deprecated use `MariadbDeployPreference$Outbound` instead. */ - export type Outbound = MariadbDeployPreference$Outbound; -} - -export function mariadbDeployPreferenceToJSON( - mariadbDeployPreference: MariadbDeployPreference, -): string { - return JSON.stringify( - MariadbDeployPreference$outboundSchema.parse(mariadbDeployPreference), - ); -} - export function mariadbDeployPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1928,58 +909,6 @@ export const MariadbDeployPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MariadbDeployPlacementSwarm$outboundSchema: z.ZodType< - MariadbDeployPlacementSwarm$Outbound, - z.ZodTypeDef, - MariadbDeployPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MariadbDeployPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MariadbDeployPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployPlacementSwarm$ { - /** @deprecated use `MariadbDeployPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployPlacementSwarm$inboundSchema; - /** @deprecated use `MariadbDeployPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployPlacementSwarm$outboundSchema; - /** @deprecated use `MariadbDeployPlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbDeployPlacementSwarm$Outbound; -} - -export function mariadbDeployPlacementSwarmToJSON( - mariadbDeployPlacementSwarm: MariadbDeployPlacementSwarm, -): string { - return JSON.stringify( - MariadbDeployPlacementSwarm$outboundSchema.parse( - mariadbDeployPlacementSwarm, - ), - ); -} - export function mariadbDeployPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1999,66 +928,16 @@ export const MariadbDeployRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MariadbDeployRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MariadbDeployRestartPolicySwarm$outboundSchema: z.ZodType< - MariadbDeployRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MariadbDeployRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployRestartPolicySwarm$ { - /** @deprecated use `MariadbDeployRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbDeployRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbDeployRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbDeployRestartPolicySwarm$Outbound; -} - -export function mariadbDeployRestartPolicySwarmToJSON( - mariadbDeployRestartPolicySwarm: MariadbDeployRestartPolicySwarm, -): string { - return JSON.stringify( - MariadbDeployRestartPolicySwarm$outboundSchema.parse( - mariadbDeployRestartPolicySwarm, - ), - ); -} - export function mariadbDeployRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2092,62 +971,6 @@ export const MariadbDeployRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbDeployRollbackConfigSwarm$outboundSchema: z.ZodType< - MariadbDeployRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbDeployRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployRollbackConfigSwarm$ { - /** @deprecated use `MariadbDeployRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbDeployRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbDeployRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbDeployRollbackConfigSwarm$Outbound; -} - -export function mariadbDeployRollbackConfigSwarmToJSON( - mariadbDeployRollbackConfigSwarm: MariadbDeployRollbackConfigSwarm, -): string { - return JSON.stringify( - MariadbDeployRollbackConfigSwarm$outboundSchema.parse( - mariadbDeployRollbackConfigSwarm, - ), - ); -} - export function mariadbDeployRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2163,22 +986,6 @@ export const MariadbDeployMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbDeployMetricsConfigEnum > = z.nativeEnum(MariadbDeployMetricsConfigEnum); -/** @internal */ -export const MariadbDeployMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbDeployMetricsConfigEnum -> = MariadbDeployMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMetricsConfigEnum$ { - /** @deprecated use `MariadbDeployMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMetricsConfigEnum$inboundSchema; - /** @deprecated use `MariadbDeployMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MariadbDeployMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbDeployMetricsConfigUnion1, @@ -2191,48 +998,6 @@ export const MariadbDeployMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbDeployMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MariadbDeployMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MariadbDeployMetricsConfigUnion1$outboundSchema: z.ZodType< - MariadbDeployMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MariadbDeployMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbDeployMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMetricsConfigUnion1$ { - /** @deprecated use `MariadbDeployMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MariadbDeployMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MariadbDeployMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MariadbDeployMetricsConfigUnion1$Outbound; -} - -export function mariadbDeployMetricsConfigUnion1ToJSON( - mariadbDeployMetricsConfigUnion1: MariadbDeployMetricsConfigUnion1, -): string { - return JSON.stringify( - MariadbDeployMetricsConfigUnion1$outboundSchema.parse( - mariadbDeployMetricsConfigUnion1, - ), - ); -} - export function mariadbDeployMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2259,54 +1024,6 @@ export const MariadbDeployMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MariadbDeployMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MariadbDeployMetricsConfigUnion2$outboundSchema: z.ZodType< - MariadbDeployMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MariadbDeployMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployMetricsConfigUnion2$ { - /** @deprecated use `MariadbDeployMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MariadbDeployMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MariadbDeployMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MariadbDeployMetricsConfigUnion2$Outbound; -} - -export function mariadbDeployMetricsConfigUnion2ToJSON( - mariadbDeployMetricsConfigUnion2: MariadbDeployMetricsConfigUnion2, -): string { - return JSON.stringify( - MariadbDeployMetricsConfigUnion2$outboundSchema.parse( - mariadbDeployMetricsConfigUnion2, - ), - ); -} - export function mariadbDeployMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2322,22 +1039,6 @@ export const MariadbDeployServerStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbDeployServerStatus > = z.nativeEnum(MariadbDeployServerStatus); -/** @internal */ -export const MariadbDeployServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbDeployServerStatus -> = MariadbDeployServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployServerStatus$ { - /** @deprecated use `MariadbDeployServerStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployServerStatus$inboundSchema; - /** @deprecated use `MariadbDeployServerStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployServerStatus$outboundSchema; -} - /** @internal */ export const MariadbDeployServer$inboundSchema: z.ZodType< MariadbDeployServer, @@ -2369,78 +1070,6 @@ export const MariadbDeployServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MariadbDeployServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MariadbDeployServer$outboundSchema: z.ZodType< - MariadbDeployServer$Outbound, - z.ZodTypeDef, - MariadbDeployServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MariadbDeployServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployServer$ { - /** @deprecated use `MariadbDeployServer$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployServer$inboundSchema; - /** @deprecated use `MariadbDeployServer$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployServer$outboundSchema; - /** @deprecated use `MariadbDeployServer$Outbound` instead. */ - export type Outbound = MariadbDeployServer$Outbound; -} - -export function mariadbDeployServerToJSON( - mariadbDeployServer: MariadbDeployServer, -): string { - return JSON.stringify( - MariadbDeployServer$outboundSchema.parse(mariadbDeployServer), - ); -} - export function mariadbDeployServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2474,62 +1103,6 @@ export const MariadbDeployUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbDeployUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbDeployUpdateConfigSwarm$outboundSchema: z.ZodType< - MariadbDeployUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbDeployUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployUpdateConfigSwarm$ { - /** @deprecated use `MariadbDeployUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbDeployUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbDeployUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbDeployUpdateConfigSwarm$Outbound; -} - -export function mariadbDeployUpdateConfigSwarmToJSON( - mariadbDeployUpdateConfigSwarm: MariadbDeployUpdateConfigSwarm, -): string { - return JSON.stringify( - MariadbDeployUpdateConfigSwarm$outboundSchema.parse( - mariadbDeployUpdateConfigSwarm, - ), - ); -} - export function mariadbDeployUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2593,117 +1166,6 @@ export const MariadbDeployResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MariadbDeployResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MariadbDeployEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MariadbDeployHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MariadbDeployModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MariadbDeployPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MariadbDeployRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MariadbDeployRollbackConfigSwarm$Outbound | null; - server: MariadbDeployServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MariadbDeployUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MariadbDeployResponseBody$outboundSchema: z.ZodType< - MariadbDeployResponseBody$Outbound, - z.ZodTypeDef, - MariadbDeployResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MariadbDeployApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MariadbDeployBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MariadbDeployEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbDeployHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MariadbDeployModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MariadbDeployMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbDeployNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MariadbDeployPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbDeployRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbDeployRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MariadbDeployServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbDeployUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployResponseBody$ { - /** @deprecated use `MariadbDeployResponseBody$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployResponseBody$inboundSchema; - /** @deprecated use `MariadbDeployResponseBody$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployResponseBody$outboundSchema; - /** @deprecated use `MariadbDeployResponseBody$Outbound` instead. */ - export type Outbound = MariadbDeployResponseBody$Outbound; -} - -export function mariadbDeployResponseBodyToJSON( - mariadbDeployResponseBody: MariadbDeployResponseBody, -): string { - return JSON.stringify( - MariadbDeployResponseBody$outboundSchema.parse(mariadbDeployResponseBody), - ); -} - export function mariadbDeployResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2724,42 +1186,6 @@ export const MariadbDeployResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MariadbDeployResponse$Outbound = - | MariadbDeployResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MariadbDeployResponse$outboundSchema: z.ZodType< - MariadbDeployResponse$Outbound, - z.ZodTypeDef, - MariadbDeployResponse -> = z.union([ - z.lazy(() => MariadbDeployResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbDeployResponse$ { - /** @deprecated use `MariadbDeployResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbDeployResponse$inboundSchema; - /** @deprecated use `MariadbDeployResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbDeployResponse$outboundSchema; - /** @deprecated use `MariadbDeployResponse$Outbound` instead. */ - export type Outbound = MariadbDeployResponse$Outbound; -} - -export function mariadbDeployResponseToJSON( - mariadbDeployResponse: MariadbDeployResponse, -): string { - return JSON.stringify( - MariadbDeployResponse$outboundSchema.parse(mariadbDeployResponse), - ); -} - export function mariadbDeployResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbmove.ts b/src/models/operations/mariadbmove.ts index 9e8ff87..01803c2 100644 --- a/src/models/operations/mariadbmove.ts +++ b/src/models/operations/mariadbmove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -143,16 +143,6 @@ export type MariadbMoveResponseBody = { export type MariadbMoveResponse = MariadbMoveResponseBody | models.ErrorT; -/** @internal */ -export const MariadbMoveRequest$inboundSchema: z.ZodType< - MariadbMoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mariadbId: z.string(), - targetEnvironmentId: z.string(), -}); - /** @internal */ export type MariadbMoveRequest$Outbound = { mariadbId: string; @@ -169,19 +159,6 @@ export const MariadbMoveRequest$outboundSchema: z.ZodType< targetEnvironmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveRequest$ { - /** @deprecated use `MariadbMoveRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveRequest$inboundSchema; - /** @deprecated use `MariadbMoveRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveRequest$outboundSchema; - /** @deprecated use `MariadbMoveRequest$Outbound` instead. */ - export type Outbound = MariadbMoveRequest$Outbound; -} - export function mariadbMoveRequestToJSON( mariadbMoveRequest: MariadbMoveRequest, ): string { @@ -190,37 +167,11 @@ export function mariadbMoveRequestToJSON( ); } -export function mariadbMoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbMoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbMoveRequest' from JSON`, - ); -} - /** @internal */ export const MariadbMoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbMoveApplicationStatus > = z.nativeEnum(MariadbMoveApplicationStatus); -/** @internal */ -export const MariadbMoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbMoveApplicationStatus -> = MariadbMoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveApplicationStatus$ { - /** @deprecated use `MariadbMoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveApplicationStatus$inboundSchema; - /** @deprecated use `MariadbMoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveApplicationStatus$outboundSchema; -} - /** @internal */ export const MariadbMoveHealthCheckSwarm$inboundSchema: z.ZodType< MariadbMoveHealthCheckSwarm, @@ -242,59 +193,6 @@ export const MariadbMoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MariadbMoveHealthCheckSwarm$outboundSchema: z.ZodType< - MariadbMoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MariadbMoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveHealthCheckSwarm$ { - /** @deprecated use `MariadbMoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbMoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbMoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbMoveHealthCheckSwarm$Outbound; -} - -export function mariadbMoveHealthCheckSwarmToJSON( - mariadbMoveHealthCheckSwarm: MariadbMoveHealthCheckSwarm, -): string { - return JSON.stringify( - MariadbMoveHealthCheckSwarm$outboundSchema.parse( - mariadbMoveHealthCheckSwarm, - ), - ); -} - export function mariadbMoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -312,37 +210,6 @@ export const MariadbMoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbMoveGlobal$Outbound = {}; - -/** @internal */ -export const MariadbMoveGlobal$outboundSchema: z.ZodType< - MariadbMoveGlobal$Outbound, - z.ZodTypeDef, - MariadbMoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveGlobal$ { - /** @deprecated use `MariadbMoveGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveGlobal$inboundSchema; - /** @deprecated use `MariadbMoveGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveGlobal$outboundSchema; - /** @deprecated use `MariadbMoveGlobal$Outbound` instead. */ - export type Outbound = MariadbMoveGlobal$Outbound; -} - -export function mariadbMoveGlobalToJSON( - mariadbMoveGlobal: MariadbMoveGlobal, -): string { - return JSON.stringify( - MariadbMoveGlobal$outboundSchema.parse(mariadbMoveGlobal), - ); -} - export function mariadbMoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -360,37 +227,6 @@ export const MariadbMoveGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbMoveGlobalJob$Outbound = {}; - -/** @internal */ -export const MariadbMoveGlobalJob$outboundSchema: z.ZodType< - MariadbMoveGlobalJob$Outbound, - z.ZodTypeDef, - MariadbMoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveGlobalJob$ { - /** @deprecated use `MariadbMoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveGlobalJob$inboundSchema; - /** @deprecated use `MariadbMoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveGlobalJob$outboundSchema; - /** @deprecated use `MariadbMoveGlobalJob$Outbound` instead. */ - export type Outbound = MariadbMoveGlobalJob$Outbound; -} - -export function mariadbMoveGlobalJobToJSON( - mariadbMoveGlobalJob: MariadbMoveGlobalJob, -): string { - return JSON.stringify( - MariadbMoveGlobalJob$outboundSchema.parse(mariadbMoveGlobalJob), - ); -} - export function mariadbMoveGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -414,45 +250,6 @@ export const MariadbMoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MariadbMoveReplicated$outboundSchema: z.ZodType< - MariadbMoveReplicated$Outbound, - z.ZodTypeDef, - MariadbMoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveReplicated$ { - /** @deprecated use `MariadbMoveReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveReplicated$inboundSchema; - /** @deprecated use `MariadbMoveReplicated$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveReplicated$outboundSchema; - /** @deprecated use `MariadbMoveReplicated$Outbound` instead. */ - export type Outbound = MariadbMoveReplicated$Outbound; -} - -export function mariadbMoveReplicatedToJSON( - mariadbMoveReplicated: MariadbMoveReplicated, -): string { - return JSON.stringify( - MariadbMoveReplicated$outboundSchema.parse(mariadbMoveReplicated), - ); -} - export function mariadbMoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -478,48 +275,6 @@ export const MariadbMoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MariadbMoveReplicatedJob$outboundSchema: z.ZodType< - MariadbMoveReplicatedJob$Outbound, - z.ZodTypeDef, - MariadbMoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveReplicatedJob$ { - /** @deprecated use `MariadbMoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveReplicatedJob$inboundSchema; - /** @deprecated use `MariadbMoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveReplicatedJob$outboundSchema; - /** @deprecated use `MariadbMoveReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbMoveReplicatedJob$Outbound; -} - -export function mariadbMoveReplicatedJobToJSON( - mariadbMoveReplicatedJob: MariadbMoveReplicatedJob, -): string { - return JSON.stringify( - MariadbMoveReplicatedJob$outboundSchema.parse(mariadbMoveReplicatedJob), - ); -} - export function mariadbMoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -550,55 +305,6 @@ export const MariadbMoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveModeSwarm$Outbound = { - Global?: MariadbMoveGlobal$Outbound | undefined; - GlobalJob?: MariadbMoveGlobalJob$Outbound | undefined; - Replicated?: MariadbMoveReplicated$Outbound | undefined; - ReplicatedJob?: MariadbMoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MariadbMoveModeSwarm$outboundSchema: z.ZodType< - MariadbMoveModeSwarm$Outbound, - z.ZodTypeDef, - MariadbMoveModeSwarm -> = z.object({ - global: z.lazy(() => MariadbMoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MariadbMoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MariadbMoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MariadbMoveReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveModeSwarm$ { - /** @deprecated use `MariadbMoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveModeSwarm$inboundSchema; - /** @deprecated use `MariadbMoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveModeSwarm$outboundSchema; - /** @deprecated use `MariadbMoveModeSwarm$Outbound` instead. */ - export type Outbound = MariadbMoveModeSwarm$Outbound; -} - -export function mariadbMoveModeSwarmToJSON( - mariadbMoveModeSwarm: MariadbMoveModeSwarm, -): string { - return JSON.stringify( - MariadbMoveModeSwarm$outboundSchema.parse(mariadbMoveModeSwarm), - ); -} - export function mariadbMoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -616,37 +322,6 @@ export const MariadbMoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbMoveDriverOpts$Outbound = {}; - -/** @internal */ -export const MariadbMoveDriverOpts$outboundSchema: z.ZodType< - MariadbMoveDriverOpts$Outbound, - z.ZodTypeDef, - MariadbMoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveDriverOpts$ { - /** @deprecated use `MariadbMoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveDriverOpts$inboundSchema; - /** @deprecated use `MariadbMoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveDriverOpts$outboundSchema; - /** @deprecated use `MariadbMoveDriverOpts$Outbound` instead. */ - export type Outbound = MariadbMoveDriverOpts$Outbound; -} - -export function mariadbMoveDriverOptsToJSON( - mariadbMoveDriverOpts: MariadbMoveDriverOpts, -): string { - return JSON.stringify( - MariadbMoveDriverOpts$outboundSchema.parse(mariadbMoveDriverOpts), - ); -} - export function mariadbMoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -674,51 +349,6 @@ export const MariadbMoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MariadbMoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MariadbMoveNetworkSwarm$outboundSchema: z.ZodType< - MariadbMoveNetworkSwarm$Outbound, - z.ZodTypeDef, - MariadbMoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MariadbMoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveNetworkSwarm$ { - /** @deprecated use `MariadbMoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbMoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbMoveNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbMoveNetworkSwarm$Outbound; -} - -export function mariadbMoveNetworkSwarmToJSON( - mariadbMoveNetworkSwarm: MariadbMoveNetworkSwarm, -): string { - return JSON.stringify( - MariadbMoveNetworkSwarm$outboundSchema.parse(mariadbMoveNetworkSwarm), - ); -} - export function mariadbMoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -744,48 +374,6 @@ export const MariadbMovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MariadbMovePlatform$outboundSchema: z.ZodType< - MariadbMovePlatform$Outbound, - z.ZodTypeDef, - MariadbMovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMovePlatform$ { - /** @deprecated use `MariadbMovePlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbMovePlatform$inboundSchema; - /** @deprecated use `MariadbMovePlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbMovePlatform$outboundSchema; - /** @deprecated use `MariadbMovePlatform$Outbound` instead. */ - export type Outbound = MariadbMovePlatform$Outbound; -} - -export function mariadbMovePlatformToJSON( - mariadbMovePlatform: MariadbMovePlatform, -): string { - return JSON.stringify( - MariadbMovePlatform$outboundSchema.parse(mariadbMovePlatform), - ); -} - export function mariadbMovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -809,45 +397,6 @@ export const MariadbMoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MariadbMoveSpread$outboundSchema: z.ZodType< - MariadbMoveSpread$Outbound, - z.ZodTypeDef, - MariadbMoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveSpread$ { - /** @deprecated use `MariadbMoveSpread$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveSpread$inboundSchema; - /** @deprecated use `MariadbMoveSpread$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveSpread$outboundSchema; - /** @deprecated use `MariadbMoveSpread$Outbound` instead. */ - export type Outbound = MariadbMoveSpread$Outbound; -} - -export function mariadbMoveSpreadToJSON( - mariadbMoveSpread: MariadbMoveSpread, -): string { - return JSON.stringify( - MariadbMoveSpread$outboundSchema.parse(mariadbMoveSpread), - ); -} - export function mariadbMoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -871,45 +420,6 @@ export const MariadbMovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMovePreference$Outbound = { - Spread: MariadbMoveSpread$Outbound; -}; - -/** @internal */ -export const MariadbMovePreference$outboundSchema: z.ZodType< - MariadbMovePreference$Outbound, - z.ZodTypeDef, - MariadbMovePreference -> = z.object({ - spread: z.lazy(() => MariadbMoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMovePreference$ { - /** @deprecated use `MariadbMovePreference$inboundSchema` instead. */ - export const inboundSchema = MariadbMovePreference$inboundSchema; - /** @deprecated use `MariadbMovePreference$outboundSchema` instead. */ - export const outboundSchema = MariadbMovePreference$outboundSchema; - /** @deprecated use `MariadbMovePreference$Outbound` instead. */ - export type Outbound = MariadbMovePreference$Outbound; -} - -export function mariadbMovePreferenceToJSON( - mariadbMovePreference: MariadbMovePreference, -): string { - return JSON.stringify( - MariadbMovePreference$outboundSchema.parse(mariadbMovePreference), - ); -} - export function mariadbMovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -941,56 +451,6 @@ export const MariadbMovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MariadbMovePlacementSwarm$outboundSchema: z.ZodType< - MariadbMovePlacementSwarm$Outbound, - z.ZodTypeDef, - MariadbMovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MariadbMovePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MariadbMovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMovePlacementSwarm$ { - /** @deprecated use `MariadbMovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbMovePlacementSwarm$inboundSchema; - /** @deprecated use `MariadbMovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbMovePlacementSwarm$outboundSchema; - /** @deprecated use `MariadbMovePlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbMovePlacementSwarm$Outbound; -} - -export function mariadbMovePlacementSwarmToJSON( - mariadbMovePlacementSwarm: MariadbMovePlacementSwarm, -): string { - return JSON.stringify( - MariadbMovePlacementSwarm$outboundSchema.parse(mariadbMovePlacementSwarm), - ); -} - export function mariadbMovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1020,56 +480,6 @@ export const MariadbMoveRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MariadbMoveRestartPolicySwarm$outboundSchema: z.ZodType< - MariadbMoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MariadbMoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveRestartPolicySwarm$ { - /** @deprecated use `MariadbMoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbMoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbMoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbMoveRestartPolicySwarm$Outbound; -} - -export function mariadbMoveRestartPolicySwarmToJSON( - mariadbMoveRestartPolicySwarm: MariadbMoveRestartPolicySwarm, -): string { - return JSON.stringify( - MariadbMoveRestartPolicySwarm$outboundSchema.parse( - mariadbMoveRestartPolicySwarm, - ), - ); -} - export function mariadbMoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1103,62 +513,6 @@ export const MariadbMoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbMoveRollbackConfigSwarm$outboundSchema: z.ZodType< - MariadbMoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbMoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveRollbackConfigSwarm$ { - /** @deprecated use `MariadbMoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbMoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbMoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbMoveRollbackConfigSwarm$Outbound; -} - -export function mariadbMoveRollbackConfigSwarmToJSON( - mariadbMoveRollbackConfigSwarm: MariadbMoveRollbackConfigSwarm, -): string { - return JSON.stringify( - MariadbMoveRollbackConfigSwarm$outboundSchema.parse( - mariadbMoveRollbackConfigSwarm, - ), - ); -} - export function mariadbMoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1192,62 +546,6 @@ export const MariadbMoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbMoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbMoveUpdateConfigSwarm$outboundSchema: z.ZodType< - MariadbMoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbMoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveUpdateConfigSwarm$ { - /** @deprecated use `MariadbMoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbMoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbMoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbMoveUpdateConfigSwarm$Outbound; -} - -export function mariadbMoveUpdateConfigSwarmToJSON( - mariadbMoveUpdateConfigSwarm: MariadbMoveUpdateConfigSwarm, -): string { - return JSON.stringify( - MariadbMoveUpdateConfigSwarm$outboundSchema.parse( - mariadbMoveUpdateConfigSwarm, - ), - ); -} - export function mariadbMoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1307,109 +605,6 @@ export const MariadbMoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MariadbMoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MariadbMoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MariadbMoveModeSwarm$Outbound | null; - name: string; - networkSwarm: Array | null; - placementSwarm: MariadbMovePlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MariadbMoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MariadbMoveRollbackConfigSwarm$Outbound | null; - serverId: string | null; - updateConfigSwarm: MariadbMoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MariadbMoveResponseBody$outboundSchema: z.ZodType< - MariadbMoveResponseBody$Outbound, - z.ZodTypeDef, - MariadbMoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MariadbMoveApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbMoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MariadbMoveModeSwarm$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbMoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MariadbMovePlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbMoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbMoveRollbackConfigSwarm$outboundSchema), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbMoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveResponseBody$ { - /** @deprecated use `MariadbMoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveResponseBody$inboundSchema; - /** @deprecated use `MariadbMoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveResponseBody$outboundSchema; - /** @deprecated use `MariadbMoveResponseBody$Outbound` instead. */ - export type Outbound = MariadbMoveResponseBody$Outbound; -} - -export function mariadbMoveResponseBodyToJSON( - mariadbMoveResponseBody: MariadbMoveResponseBody, -): string { - return JSON.stringify( - MariadbMoveResponseBody$outboundSchema.parse(mariadbMoveResponseBody), - ); -} - export function mariadbMoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1430,42 +625,6 @@ export const MariadbMoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MariadbMoveResponse$Outbound = - | MariadbMoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MariadbMoveResponse$outboundSchema: z.ZodType< - MariadbMoveResponse$Outbound, - z.ZodTypeDef, - MariadbMoveResponse -> = z.union([ - z.lazy(() => MariadbMoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbMoveResponse$ { - /** @deprecated use `MariadbMoveResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbMoveResponse$inboundSchema; - /** @deprecated use `MariadbMoveResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbMoveResponse$outboundSchema; - /** @deprecated use `MariadbMoveResponse$Outbound` instead. */ - export type Outbound = MariadbMoveResponse$Outbound; -} - -export function mariadbMoveResponseToJSON( - mariadbMoveResponse: MariadbMoveResponse, -): string { - return JSON.stringify( - MariadbMoveResponse$outboundSchema.parse(mariadbMoveResponse), - ); -} - export function mariadbMoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbone.ts b/src/models/operations/mariadbone.ts index 735d291..5337989 100644 --- a/src/models/operations/mariadbone.ts +++ b/src/models/operations/mariadbone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -321,15 +321,6 @@ export type MariadbOneResponseBody = { export type MariadbOneResponse = MariadbOneResponseBody | models.ErrorT; -/** @internal */ -export const MariadbOneRequest$inboundSchema: z.ZodType< - MariadbOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mariadbId: z.string(), -}); - /** @internal */ export type MariadbOneRequest$Outbound = { mariadbId: string; @@ -344,19 +335,6 @@ export const MariadbOneRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneRequest$ { - /** @deprecated use `MariadbOneRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbOneRequest$inboundSchema; - /** @deprecated use `MariadbOneRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbOneRequest$outboundSchema; - /** @deprecated use `MariadbOneRequest$Outbound` instead. */ - export type Outbound = MariadbOneRequest$Outbound; -} - export function mariadbOneRequestToJSON( mariadbOneRequest: MariadbOneRequest, ): string { @@ -365,100 +343,26 @@ export function mariadbOneRequestToJSON( ); } -export function mariadbOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbOneRequest' from JSON`, - ); -} - /** @internal */ export const MariadbOneApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbOneApplicationStatus > = z.nativeEnum(MariadbOneApplicationStatus); -/** @internal */ -export const MariadbOneApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbOneApplicationStatus -> = MariadbOneApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneApplicationStatus$ { - /** @deprecated use `MariadbOneApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbOneApplicationStatus$inboundSchema; - /** @deprecated use `MariadbOneApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbOneApplicationStatus$outboundSchema; -} - /** @internal */ export const MariadbOneBackupType$inboundSchema: z.ZodNativeEnum< typeof MariadbOneBackupType > = z.nativeEnum(MariadbOneBackupType); -/** @internal */ -export const MariadbOneBackupType$outboundSchema: z.ZodNativeEnum< - typeof MariadbOneBackupType -> = MariadbOneBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneBackupType$ { - /** @deprecated use `MariadbOneBackupType$inboundSchema` instead. */ - export const inboundSchema = MariadbOneBackupType$inboundSchema; - /** @deprecated use `MariadbOneBackupType$outboundSchema` instead. */ - export const outboundSchema = MariadbOneBackupType$outboundSchema; -} - /** @internal */ export const MariadbOneDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MariadbOneDatabaseType > = z.nativeEnum(MariadbOneDatabaseType); -/** @internal */ -export const MariadbOneDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MariadbOneDatabaseType -> = MariadbOneDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneDatabaseType$ { - /** @deprecated use `MariadbOneDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MariadbOneDatabaseType$inboundSchema; - /** @deprecated use `MariadbOneDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MariadbOneDatabaseType$outboundSchema; -} - /** @internal */ export const MariadbOneMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbOneMetadataEnum > = z.nativeEnum(MariadbOneMetadataEnum); -/** @internal */ -export const MariadbOneMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbOneMetadataEnum -> = MariadbOneMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMetadataEnum$ { - /** @deprecated use `MariadbOneMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMetadataEnum$inboundSchema; - /** @deprecated use `MariadbOneMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMetadataEnum$outboundSchema; -} - /** @internal */ export const MariadbOneMariadb$inboundSchema: z.ZodType< MariadbOneMariadb, @@ -469,43 +373,6 @@ export const MariadbOneMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbOneMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbOneMariadb$outboundSchema: z.ZodType< - MariadbOneMariadb$Outbound, - z.ZodTypeDef, - MariadbOneMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMariadb$ { - /** @deprecated use `MariadbOneMariadb$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMariadb$inboundSchema; - /** @deprecated use `MariadbOneMariadb$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMariadb$outboundSchema; - /** @deprecated use `MariadbOneMariadb$Outbound` instead. */ - export type Outbound = MariadbOneMariadb$Outbound; -} - -export function mariadbOneMariadbToJSON( - mariadbOneMariadb: MariadbOneMariadb, -): string { - return JSON.stringify( - MariadbOneMariadb$outboundSchema.parse(mariadbOneMariadb), - ); -} - export function mariadbOneMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -526,41 +393,6 @@ export const MariadbOneMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbOneMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbOneMongo$outboundSchema: z.ZodType< - MariadbOneMongo$Outbound, - z.ZodTypeDef, - MariadbOneMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMongo$ { - /** @deprecated use `MariadbOneMongo$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMongo$inboundSchema; - /** @deprecated use `MariadbOneMongo$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMongo$outboundSchema; - /** @deprecated use `MariadbOneMongo$Outbound` instead. */ - export type Outbound = MariadbOneMongo$Outbound; -} - -export function mariadbOneMongoToJSON( - mariadbOneMongo: MariadbOneMongo, -): string { - return JSON.stringify(MariadbOneMongo$outboundSchema.parse(mariadbOneMongo)); -} - export function mariadbOneMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -580,39 +412,6 @@ export const MariadbOneMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MariadbOneMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MariadbOneMysql$outboundSchema: z.ZodType< - MariadbOneMysql$Outbound, - z.ZodTypeDef, - MariadbOneMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMysql$ { - /** @deprecated use `MariadbOneMysql$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMysql$inboundSchema; - /** @deprecated use `MariadbOneMysql$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMysql$outboundSchema; - /** @deprecated use `MariadbOneMysql$Outbound` instead. */ - export type Outbound = MariadbOneMysql$Outbound; -} - -export function mariadbOneMysqlToJSON( - mariadbOneMysql: MariadbOneMysql, -): string { - return JSON.stringify(MariadbOneMysql$outboundSchema.parse(mariadbOneMysql)); -} - export function mariadbOneMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -632,41 +431,6 @@ export const MariadbOnePostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbOnePostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MariadbOnePostgres$outboundSchema: z.ZodType< - MariadbOnePostgres$Outbound, - z.ZodTypeDef, - MariadbOnePostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOnePostgres$ { - /** @deprecated use `MariadbOnePostgres$inboundSchema` instead. */ - export const inboundSchema = MariadbOnePostgres$inboundSchema; - /** @deprecated use `MariadbOnePostgres$outboundSchema` instead. */ - export const outboundSchema = MariadbOnePostgres$outboundSchema; - /** @deprecated use `MariadbOnePostgres$Outbound` instead. */ - export type Outbound = MariadbOnePostgres$Outbound; -} - -export function mariadbOnePostgresToJSON( - mariadbOnePostgres: MariadbOnePostgres, -): string { - return JSON.stringify( - MariadbOnePostgres$outboundSchema.parse(mariadbOnePostgres), - ); -} - export function mariadbOnePostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -689,47 +453,6 @@ export const MariadbOneMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MariadbOnePostgres$inboundSchema).optional(), }); -/** @internal */ -export type MariadbOneMetadata$Outbound = { - mariadb?: MariadbOneMariadb$Outbound | undefined; - mongo?: MariadbOneMongo$Outbound | undefined; - mysql?: MariadbOneMysql$Outbound | undefined; - postgres?: MariadbOnePostgres$Outbound | undefined; -}; - -/** @internal */ -export const MariadbOneMetadata$outboundSchema: z.ZodType< - MariadbOneMetadata$Outbound, - z.ZodTypeDef, - MariadbOneMetadata -> = z.object({ - mariadb: z.lazy(() => MariadbOneMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MariadbOneMongo$outboundSchema).optional(), - mysql: z.lazy(() => MariadbOneMysql$outboundSchema).optional(), - postgres: z.lazy(() => MariadbOnePostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMetadata$ { - /** @deprecated use `MariadbOneMetadata$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMetadata$inboundSchema; - /** @deprecated use `MariadbOneMetadata$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMetadata$outboundSchema; - /** @deprecated use `MariadbOneMetadata$Outbound` instead. */ - export type Outbound = MariadbOneMetadata$Outbound; -} - -export function mariadbOneMetadataToJSON( - mariadbOneMetadata: MariadbOneMetadata, -): string { - return JSON.stringify( - MariadbOneMetadata$outboundSchema.parse(mariadbOneMetadata), - ); -} - export function mariadbOneMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -750,42 +473,6 @@ export const MariadbOneMetadataUnion$inboundSchema: z.ZodType< MariadbOneMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MariadbOneMetadataUnion$Outbound = - | MariadbOneMetadata$Outbound - | string; - -/** @internal */ -export const MariadbOneMetadataUnion$outboundSchema: z.ZodType< - MariadbOneMetadataUnion$Outbound, - z.ZodTypeDef, - MariadbOneMetadataUnion -> = z.union([ - z.lazy(() => MariadbOneMetadata$outboundSchema), - MariadbOneMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMetadataUnion$ { - /** @deprecated use `MariadbOneMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMetadataUnion$inboundSchema; - /** @deprecated use `MariadbOneMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMetadataUnion$outboundSchema; - /** @deprecated use `MariadbOneMetadataUnion$Outbound` instead. */ - export type Outbound = MariadbOneMetadataUnion$Outbound; -} - -export function mariadbOneMetadataUnionToJSON( - mariadbOneMetadataUnion: MariadbOneMetadataUnion, -): string { - return JSON.stringify( - MariadbOneMetadataUnion$outboundSchema.parse(mariadbOneMetadataUnion), - ); -} - export function mariadbOneMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -827,80 +514,6 @@ export const MariadbOneBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MariadbOneBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MariadbOneMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MariadbOneBackup$outboundSchema: z.ZodType< - MariadbOneBackup$Outbound, - z.ZodTypeDef, - MariadbOneBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MariadbOneBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MariadbOneDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MariadbOneMetadata$outboundSchema), - MariadbOneMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneBackup$ { - /** @deprecated use `MariadbOneBackup$inboundSchema` instead. */ - export const inboundSchema = MariadbOneBackup$inboundSchema; - /** @deprecated use `MariadbOneBackup$outboundSchema` instead. */ - export const outboundSchema = MariadbOneBackup$outboundSchema; - /** @deprecated use `MariadbOneBackup$Outbound` instead. */ - export type Outbound = MariadbOneBackup$Outbound; -} - -export function mariadbOneBackupToJSON( - mariadbOneBackup: MariadbOneBackup, -): string { - return JSON.stringify( - MariadbOneBackup$outboundSchema.parse(mariadbOneBackup), - ); -} - export function mariadbOneBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -925,51 +538,6 @@ export const MariadbOneProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbOneProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MariadbOneProject$outboundSchema: z.ZodType< - MariadbOneProject$Outbound, - z.ZodTypeDef, - MariadbOneProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneProject$ { - /** @deprecated use `MariadbOneProject$inboundSchema` instead. */ - export const inboundSchema = MariadbOneProject$inboundSchema; - /** @deprecated use `MariadbOneProject$outboundSchema` instead. */ - export const outboundSchema = MariadbOneProject$outboundSchema; - /** @deprecated use `MariadbOneProject$Outbound` instead. */ - export type Outbound = MariadbOneProject$Outbound; -} - -export function mariadbOneProjectToJSON( - mariadbOneProject: MariadbOneProject, -): string { - return JSON.stringify( - MariadbOneProject$outboundSchema.parse(mariadbOneProject), - ); -} - export function mariadbOneProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -995,53 +563,6 @@ export const MariadbOneEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbOneEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MariadbOneProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MariadbOneEnvironment$outboundSchema: z.ZodType< - MariadbOneEnvironment$Outbound, - z.ZodTypeDef, - MariadbOneEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MariadbOneProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneEnvironment$ { - /** @deprecated use `MariadbOneEnvironment$inboundSchema` instead. */ - export const inboundSchema = MariadbOneEnvironment$inboundSchema; - /** @deprecated use `MariadbOneEnvironment$outboundSchema` instead. */ - export const outboundSchema = MariadbOneEnvironment$outboundSchema; - /** @deprecated use `MariadbOneEnvironment$Outbound` instead. */ - export type Outbound = MariadbOneEnvironment$Outbound; -} - -export function mariadbOneEnvironmentToJSON( - mariadbOneEnvironment: MariadbOneEnvironment, -): string { - return JSON.stringify( - MariadbOneEnvironment$outboundSchema.parse(mariadbOneEnvironment), - ); -} - export function mariadbOneEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1073,57 +594,6 @@ export const MariadbOneHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOneHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MariadbOneHealthCheckSwarm$outboundSchema: z.ZodType< - MariadbOneHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MariadbOneHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneHealthCheckSwarm$ { - /** @deprecated use `MariadbOneHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbOneHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbOneHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbOneHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbOneHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbOneHealthCheckSwarm$Outbound; -} - -export function mariadbOneHealthCheckSwarmToJSON( - mariadbOneHealthCheckSwarm: MariadbOneHealthCheckSwarm, -): string { - return JSON.stringify( - MariadbOneHealthCheckSwarm$outboundSchema.parse(mariadbOneHealthCheckSwarm), - ); -} - export function mariadbOneHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1141,37 +611,6 @@ export const MariadbOneGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbOneGlobal$Outbound = {}; - -/** @internal */ -export const MariadbOneGlobal$outboundSchema: z.ZodType< - MariadbOneGlobal$Outbound, - z.ZodTypeDef, - MariadbOneGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneGlobal$ { - /** @deprecated use `MariadbOneGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbOneGlobal$inboundSchema; - /** @deprecated use `MariadbOneGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbOneGlobal$outboundSchema; - /** @deprecated use `MariadbOneGlobal$Outbound` instead. */ - export type Outbound = MariadbOneGlobal$Outbound; -} - -export function mariadbOneGlobalToJSON( - mariadbOneGlobal: MariadbOneGlobal, -): string { - return JSON.stringify( - MariadbOneGlobal$outboundSchema.parse(mariadbOneGlobal), - ); -} - export function mariadbOneGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1182,44 +621,13 @@ export function mariadbOneGlobalFromJSON( ); } -/** @internal */ -export const MariadbOneGlobalJob$inboundSchema: z.ZodType< - MariadbOneGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MariadbOneGlobalJob$Outbound = {}; - -/** @internal */ -export const MariadbOneGlobalJob$outboundSchema: z.ZodType< - MariadbOneGlobalJob$Outbound, - z.ZodTypeDef, - MariadbOneGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneGlobalJob$ { - /** @deprecated use `MariadbOneGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbOneGlobalJob$inboundSchema; - /** @deprecated use `MariadbOneGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbOneGlobalJob$outboundSchema; - /** @deprecated use `MariadbOneGlobalJob$Outbound` instead. */ - export type Outbound = MariadbOneGlobalJob$Outbound; -} - -export function mariadbOneGlobalJobToJSON( - mariadbOneGlobalJob: MariadbOneGlobalJob, -): string { - return JSON.stringify( - MariadbOneGlobalJob$outboundSchema.parse(mariadbOneGlobalJob), - ); -} - +/** @internal */ +export const MariadbOneGlobalJob$inboundSchema: z.ZodType< + MariadbOneGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); + export function mariadbOneGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1243,45 +651,6 @@ export const MariadbOneReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOneReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MariadbOneReplicated$outboundSchema: z.ZodType< - MariadbOneReplicated$Outbound, - z.ZodTypeDef, - MariadbOneReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneReplicated$ { - /** @deprecated use `MariadbOneReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbOneReplicated$inboundSchema; - /** @deprecated use `MariadbOneReplicated$outboundSchema` instead. */ - export const outboundSchema = MariadbOneReplicated$outboundSchema; - /** @deprecated use `MariadbOneReplicated$Outbound` instead. */ - export type Outbound = MariadbOneReplicated$Outbound; -} - -export function mariadbOneReplicatedToJSON( - mariadbOneReplicated: MariadbOneReplicated, -): string { - return JSON.stringify( - MariadbOneReplicated$outboundSchema.parse(mariadbOneReplicated), - ); -} - export function mariadbOneReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1307,48 +676,6 @@ export const MariadbOneReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOneReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MariadbOneReplicatedJob$outboundSchema: z.ZodType< - MariadbOneReplicatedJob$Outbound, - z.ZodTypeDef, - MariadbOneReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneReplicatedJob$ { - /** @deprecated use `MariadbOneReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MariadbOneReplicatedJob$inboundSchema; - /** @deprecated use `MariadbOneReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MariadbOneReplicatedJob$outboundSchema; - /** @deprecated use `MariadbOneReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbOneReplicatedJob$Outbound; -} - -export function mariadbOneReplicatedJobToJSON( - mariadbOneReplicatedJob: MariadbOneReplicatedJob, -): string { - return JSON.stringify( - MariadbOneReplicatedJob$outboundSchema.parse(mariadbOneReplicatedJob), - ); -} - export function mariadbOneReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1378,55 +705,6 @@ export const MariadbOneModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOneModeSwarm$Outbound = { - Global?: MariadbOneGlobal$Outbound | undefined; - GlobalJob?: MariadbOneGlobalJob$Outbound | undefined; - Replicated?: MariadbOneReplicated$Outbound | undefined; - ReplicatedJob?: MariadbOneReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MariadbOneModeSwarm$outboundSchema: z.ZodType< - MariadbOneModeSwarm$Outbound, - z.ZodTypeDef, - MariadbOneModeSwarm -> = z.object({ - global: z.lazy(() => MariadbOneGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MariadbOneGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MariadbOneReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MariadbOneReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneModeSwarm$ { - /** @deprecated use `MariadbOneModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbOneModeSwarm$inboundSchema; - /** @deprecated use `MariadbOneModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbOneModeSwarm$outboundSchema; - /** @deprecated use `MariadbOneModeSwarm$Outbound` instead. */ - export type Outbound = MariadbOneModeSwarm$Outbound; -} - -export function mariadbOneModeSwarmToJSON( - mariadbOneModeSwarm: MariadbOneModeSwarm, -): string { - return JSON.stringify( - MariadbOneModeSwarm$outboundSchema.parse(mariadbOneModeSwarm), - ); -} - export function mariadbOneModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1442,43 +720,11 @@ export const MariadbOneServiceType$inboundSchema: z.ZodNativeEnum< typeof MariadbOneServiceType > = z.nativeEnum(MariadbOneServiceType); -/** @internal */ -export const MariadbOneServiceType$outboundSchema: z.ZodNativeEnum< - typeof MariadbOneServiceType -> = MariadbOneServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneServiceType$ { - /** @deprecated use `MariadbOneServiceType$inboundSchema` instead. */ - export const inboundSchema = MariadbOneServiceType$inboundSchema; - /** @deprecated use `MariadbOneServiceType$outboundSchema` instead. */ - export const outboundSchema = MariadbOneServiceType$outboundSchema; -} - /** @internal */ export const MariadbOneType$inboundSchema: z.ZodNativeEnum< typeof MariadbOneType > = z.nativeEnum(MariadbOneType); -/** @internal */ -export const MariadbOneType$outboundSchema: z.ZodNativeEnum< - typeof MariadbOneType -> = MariadbOneType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneType$ { - /** @deprecated use `MariadbOneType$inboundSchema` instead. */ - export const inboundSchema = MariadbOneType$inboundSchema; - /** @deprecated use `MariadbOneType$outboundSchema` instead. */ - export const outboundSchema = MariadbOneType$outboundSchema; -} - /** @internal */ export const MariadbOneMount$inboundSchema: z.ZodType< MariadbOneMount, @@ -1502,67 +748,6 @@ export const MariadbOneMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MariadbOneMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MariadbOneMount$outboundSchema: z.ZodType< - MariadbOneMount$Outbound, - z.ZodTypeDef, - MariadbOneMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MariadbOneServiceType$outboundSchema, - type: MariadbOneType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMount$ { - /** @deprecated use `MariadbOneMount$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMount$inboundSchema; - /** @deprecated use `MariadbOneMount$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMount$outboundSchema; - /** @deprecated use `MariadbOneMount$Outbound` instead. */ - export type Outbound = MariadbOneMount$Outbound; -} - -export function mariadbOneMountToJSON( - mariadbOneMount: MariadbOneMount, -): string { - return JSON.stringify(MariadbOneMount$outboundSchema.parse(mariadbOneMount)); -} - export function mariadbOneMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1580,37 +765,6 @@ export const MariadbOneDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbOneDriverOpts$Outbound = {}; - -/** @internal */ -export const MariadbOneDriverOpts$outboundSchema: z.ZodType< - MariadbOneDriverOpts$Outbound, - z.ZodTypeDef, - MariadbOneDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneDriverOpts$ { - /** @deprecated use `MariadbOneDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbOneDriverOpts$inboundSchema; - /** @deprecated use `MariadbOneDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MariadbOneDriverOpts$outboundSchema; - /** @deprecated use `MariadbOneDriverOpts$Outbound` instead. */ - export type Outbound = MariadbOneDriverOpts$Outbound; -} - -export function mariadbOneDriverOptsToJSON( - mariadbOneDriverOpts: MariadbOneDriverOpts, -): string { - return JSON.stringify( - MariadbOneDriverOpts$outboundSchema.parse(mariadbOneDriverOpts), - ); -} - export function mariadbOneDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1638,51 +792,6 @@ export const MariadbOneNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOneNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MariadbOneDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MariadbOneNetworkSwarm$outboundSchema: z.ZodType< - MariadbOneNetworkSwarm$Outbound, - z.ZodTypeDef, - MariadbOneNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MariadbOneDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneNetworkSwarm$ { - /** @deprecated use `MariadbOneNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbOneNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbOneNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbOneNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbOneNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbOneNetworkSwarm$Outbound; -} - -export function mariadbOneNetworkSwarmToJSON( - mariadbOneNetworkSwarm: MariadbOneNetworkSwarm, -): string { - return JSON.stringify( - MariadbOneNetworkSwarm$outboundSchema.parse(mariadbOneNetworkSwarm), - ); -} - export function mariadbOneNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1708,48 +817,6 @@ export const MariadbOnePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOnePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MariadbOnePlatform$outboundSchema: z.ZodType< - MariadbOnePlatform$Outbound, - z.ZodTypeDef, - MariadbOnePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOnePlatform$ { - /** @deprecated use `MariadbOnePlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbOnePlatform$inboundSchema; - /** @deprecated use `MariadbOnePlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbOnePlatform$outboundSchema; - /** @deprecated use `MariadbOnePlatform$Outbound` instead. */ - export type Outbound = MariadbOnePlatform$Outbound; -} - -export function mariadbOnePlatformToJSON( - mariadbOnePlatform: MariadbOnePlatform, -): string { - return JSON.stringify( - MariadbOnePlatform$outboundSchema.parse(mariadbOnePlatform), - ); -} - export function mariadbOnePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1773,45 +840,6 @@ export const MariadbOneSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOneSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MariadbOneSpread$outboundSchema: z.ZodType< - MariadbOneSpread$Outbound, - z.ZodTypeDef, - MariadbOneSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneSpread$ { - /** @deprecated use `MariadbOneSpread$inboundSchema` instead. */ - export const inboundSchema = MariadbOneSpread$inboundSchema; - /** @deprecated use `MariadbOneSpread$outboundSchema` instead. */ - export const outboundSchema = MariadbOneSpread$outboundSchema; - /** @deprecated use `MariadbOneSpread$Outbound` instead. */ - export type Outbound = MariadbOneSpread$Outbound; -} - -export function mariadbOneSpreadToJSON( - mariadbOneSpread: MariadbOneSpread, -): string { - return JSON.stringify( - MariadbOneSpread$outboundSchema.parse(mariadbOneSpread), - ); -} - export function mariadbOneSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1835,45 +863,6 @@ export const MariadbOnePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOnePreference$Outbound = { - Spread: MariadbOneSpread$Outbound; -}; - -/** @internal */ -export const MariadbOnePreference$outboundSchema: z.ZodType< - MariadbOnePreference$Outbound, - z.ZodTypeDef, - MariadbOnePreference -> = z.object({ - spread: z.lazy(() => MariadbOneSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOnePreference$ { - /** @deprecated use `MariadbOnePreference$inboundSchema` instead. */ - export const inboundSchema = MariadbOnePreference$inboundSchema; - /** @deprecated use `MariadbOnePreference$outboundSchema` instead. */ - export const outboundSchema = MariadbOnePreference$outboundSchema; - /** @deprecated use `MariadbOnePreference$Outbound` instead. */ - export type Outbound = MariadbOnePreference$Outbound; -} - -export function mariadbOnePreferenceToJSON( - mariadbOnePreference: MariadbOnePreference, -): string { - return JSON.stringify( - MariadbOnePreference$outboundSchema.parse(mariadbOnePreference), - ); -} - export function mariadbOnePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1904,56 +893,6 @@ export const MariadbOnePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOnePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MariadbOnePlacementSwarm$outboundSchema: z.ZodType< - MariadbOnePlacementSwarm$Outbound, - z.ZodTypeDef, - MariadbOnePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MariadbOnePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MariadbOnePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOnePlacementSwarm$ { - /** @deprecated use `MariadbOnePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbOnePlacementSwarm$inboundSchema; - /** @deprecated use `MariadbOnePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbOnePlacementSwarm$outboundSchema; - /** @deprecated use `MariadbOnePlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbOnePlacementSwarm$Outbound; -} - -export function mariadbOnePlacementSwarmToJSON( - mariadbOnePlacementSwarm: MariadbOnePlacementSwarm, -): string { - return JSON.stringify( - MariadbOnePlacementSwarm$outboundSchema.parse(mariadbOnePlacementSwarm), - ); -} - export function mariadbOnePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1973,66 +912,16 @@ export const MariadbOneRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MariadbOneRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MariadbOneRestartPolicySwarm$outboundSchema: z.ZodType< - MariadbOneRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MariadbOneRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneRestartPolicySwarm$ { - /** @deprecated use `MariadbOneRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbOneRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbOneRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbOneRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbOneRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbOneRestartPolicySwarm$Outbound; -} - -export function mariadbOneRestartPolicySwarmToJSON( - mariadbOneRestartPolicySwarm: MariadbOneRestartPolicySwarm, -): string { - return JSON.stringify( - MariadbOneRestartPolicySwarm$outboundSchema.parse( - mariadbOneRestartPolicySwarm, - ), - ); -} - export function mariadbOneRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2066,62 +955,6 @@ export const MariadbOneRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOneRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbOneRollbackConfigSwarm$outboundSchema: z.ZodType< - MariadbOneRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbOneRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneRollbackConfigSwarm$ { - /** @deprecated use `MariadbOneRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbOneRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbOneRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbOneRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbOneRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbOneRollbackConfigSwarm$Outbound; -} - -export function mariadbOneRollbackConfigSwarmToJSON( - mariadbOneRollbackConfigSwarm: MariadbOneRollbackConfigSwarm, -): string { - return JSON.stringify( - MariadbOneRollbackConfigSwarm$outboundSchema.parse( - mariadbOneRollbackConfigSwarm, - ), - ); -} - export function mariadbOneRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2137,22 +970,6 @@ export const MariadbOneMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbOneMetricsConfigEnum > = z.nativeEnum(MariadbOneMetricsConfigEnum); -/** @internal */ -export const MariadbOneMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbOneMetricsConfigEnum -> = MariadbOneMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMetricsConfigEnum$ { - /** @deprecated use `MariadbOneMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMetricsConfigEnum$inboundSchema; - /** @deprecated use `MariadbOneMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MariadbOneMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbOneMetricsConfigUnion1, @@ -2165,48 +982,6 @@ export const MariadbOneMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbOneMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MariadbOneMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MariadbOneMetricsConfigUnion1$outboundSchema: z.ZodType< - MariadbOneMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MariadbOneMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbOneMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMetricsConfigUnion1$ { - /** @deprecated use `MariadbOneMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MariadbOneMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MariadbOneMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MariadbOneMetricsConfigUnion1$Outbound; -} - -export function mariadbOneMetricsConfigUnion1ToJSON( - mariadbOneMetricsConfigUnion1: MariadbOneMetricsConfigUnion1, -): string { - return JSON.stringify( - MariadbOneMetricsConfigUnion1$outboundSchema.parse( - mariadbOneMetricsConfigUnion1, - ), - ); -} - export function mariadbOneMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2233,54 +1008,6 @@ export const MariadbOneMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MariadbOneMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MariadbOneMetricsConfigUnion2$outboundSchema: z.ZodType< - MariadbOneMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MariadbOneMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneMetricsConfigUnion2$ { - /** @deprecated use `MariadbOneMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MariadbOneMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MariadbOneMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MariadbOneMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MariadbOneMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MariadbOneMetricsConfigUnion2$Outbound; -} - -export function mariadbOneMetricsConfigUnion2ToJSON( - mariadbOneMetricsConfigUnion2: MariadbOneMetricsConfigUnion2, -): string { - return JSON.stringify( - MariadbOneMetricsConfigUnion2$outboundSchema.parse( - mariadbOneMetricsConfigUnion2, - ), - ); -} - export function mariadbOneMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2296,22 +1023,6 @@ export const MariadbOneServerStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbOneServerStatus > = z.nativeEnum(MariadbOneServerStatus); -/** @internal */ -export const MariadbOneServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbOneServerStatus -> = MariadbOneServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneServerStatus$ { - /** @deprecated use `MariadbOneServerStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbOneServerStatus$inboundSchema; - /** @deprecated use `MariadbOneServerStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbOneServerStatus$outboundSchema; -} - /** @internal */ export const MariadbOneServer$inboundSchema: z.ZodType< MariadbOneServer, @@ -2343,78 +1054,6 @@ export const MariadbOneServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MariadbOneServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MariadbOneServer$outboundSchema: z.ZodType< - MariadbOneServer$Outbound, - z.ZodTypeDef, - MariadbOneServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MariadbOneServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneServer$ { - /** @deprecated use `MariadbOneServer$inboundSchema` instead. */ - export const inboundSchema = MariadbOneServer$inboundSchema; - /** @deprecated use `MariadbOneServer$outboundSchema` instead. */ - export const outboundSchema = MariadbOneServer$outboundSchema; - /** @deprecated use `MariadbOneServer$Outbound` instead. */ - export type Outbound = MariadbOneServer$Outbound; -} - -export function mariadbOneServerToJSON( - mariadbOneServer: MariadbOneServer, -): string { - return JSON.stringify( - MariadbOneServer$outboundSchema.parse(mariadbOneServer), - ); -} - export function mariadbOneServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2448,62 +1087,6 @@ export const MariadbOneUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbOneUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbOneUpdateConfigSwarm$outboundSchema: z.ZodType< - MariadbOneUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbOneUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneUpdateConfigSwarm$ { - /** @deprecated use `MariadbOneUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbOneUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbOneUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbOneUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbOneUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbOneUpdateConfigSwarm$Outbound; -} - -export function mariadbOneUpdateConfigSwarmToJSON( - mariadbOneUpdateConfigSwarm: MariadbOneUpdateConfigSwarm, -): string { - return JSON.stringify( - MariadbOneUpdateConfigSwarm$outboundSchema.parse( - mariadbOneUpdateConfigSwarm, - ), - ); -} - export function mariadbOneUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2567,117 +1150,6 @@ export const MariadbOneResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MariadbOneResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MariadbOneEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MariadbOneHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MariadbOneModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MariadbOnePlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MariadbOneRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MariadbOneRollbackConfigSwarm$Outbound | null; - server: MariadbOneServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MariadbOneUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MariadbOneResponseBody$outboundSchema: z.ZodType< - MariadbOneResponseBody$Outbound, - z.ZodTypeDef, - MariadbOneResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MariadbOneApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MariadbOneBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MariadbOneEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbOneHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MariadbOneModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MariadbOneMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbOneNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MariadbOnePlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbOneRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbOneRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MariadbOneServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbOneUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneResponseBody$ { - /** @deprecated use `MariadbOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = MariadbOneResponseBody$inboundSchema; - /** @deprecated use `MariadbOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = MariadbOneResponseBody$outboundSchema; - /** @deprecated use `MariadbOneResponseBody$Outbound` instead. */ - export type Outbound = MariadbOneResponseBody$Outbound; -} - -export function mariadbOneResponseBodyToJSON( - mariadbOneResponseBody: MariadbOneResponseBody, -): string { - return JSON.stringify( - MariadbOneResponseBody$outboundSchema.parse(mariadbOneResponseBody), - ); -} - export function mariadbOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2698,42 +1170,6 @@ export const MariadbOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MariadbOneResponse$Outbound = - | MariadbOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MariadbOneResponse$outboundSchema: z.ZodType< - MariadbOneResponse$Outbound, - z.ZodTypeDef, - MariadbOneResponse -> = z.union([ - z.lazy(() => MariadbOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbOneResponse$ { - /** @deprecated use `MariadbOneResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbOneResponse$inboundSchema; - /** @deprecated use `MariadbOneResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbOneResponse$outboundSchema; - /** @deprecated use `MariadbOneResponse$Outbound` instead. */ - export type Outbound = MariadbOneResponse$Outbound; -} - -export function mariadbOneResponseToJSON( - mariadbOneResponse: MariadbOneResponse, -): string { - return JSON.stringify( - MariadbOneResponse$outboundSchema.parse(mariadbOneResponse), - ); -} - export function mariadbOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbrebuild.ts b/src/models/operations/mariadbrebuild.ts index 5df4690..2d8df72 100644 --- a/src/models/operations/mariadbrebuild.ts +++ b/src/models/operations/mariadbrebuild.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type MariadbRebuildRequest = { export type MariadbRebuildResponse = models.ErrorT | boolean; -/** @internal */ -export const MariadbRebuildRequest$inboundSchema: z.ZodType< - MariadbRebuildRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mariadbId: z.string(), -}); - /** @internal */ export type MariadbRebuildRequest$Outbound = { mariadbId: string; @@ -37,19 +28,6 @@ export const MariadbRebuildRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRebuildRequest$ { - /** @deprecated use `MariadbRebuildRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbRebuildRequest$inboundSchema; - /** @deprecated use `MariadbRebuildRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbRebuildRequest$outboundSchema; - /** @deprecated use `MariadbRebuildRequest$Outbound` instead. */ - export type Outbound = MariadbRebuildRequest$Outbound; -} - export function mariadbRebuildRequestToJSON( mariadbRebuildRequest: MariadbRebuildRequest, ): string { @@ -58,16 +36,6 @@ export function mariadbRebuildRequestToJSON( ); } -export function mariadbRebuildRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbRebuildRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbRebuildRequest' from JSON`, - ); -} - /** @internal */ export const MariadbRebuildResponse$inboundSchema: z.ZodType< MariadbRebuildResponse, @@ -75,37 +43,6 @@ export const MariadbRebuildResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MariadbRebuildResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MariadbRebuildResponse$outboundSchema: z.ZodType< - MariadbRebuildResponse$Outbound, - z.ZodTypeDef, - MariadbRebuildResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRebuildResponse$ { - /** @deprecated use `MariadbRebuildResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbRebuildResponse$inboundSchema; - /** @deprecated use `MariadbRebuildResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbRebuildResponse$outboundSchema; - /** @deprecated use `MariadbRebuildResponse$Outbound` instead. */ - export type Outbound = MariadbRebuildResponse$Outbound; -} - -export function mariadbRebuildResponseToJSON( - mariadbRebuildResponse: MariadbRebuildResponse, -): string { - return JSON.stringify( - MariadbRebuildResponse$outboundSchema.parse(mariadbRebuildResponse), - ); -} - export function mariadbRebuildResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbreload.ts b/src/models/operations/mariadbreload.ts index bd475db..fa2bb42 100644 --- a/src/models/operations/mariadbreload.ts +++ b/src/models/operations/mariadbreload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type MariadbReloadRequest = { export type MariadbReloadResponse = models.ErrorT | boolean; -/** @internal */ -export const MariadbReloadRequest$inboundSchema: z.ZodType< - MariadbReloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - mariadbId: z.string(), -}); - /** @internal */ export type MariadbReloadRequest$Outbound = { appName: string; @@ -41,19 +31,6 @@ export const MariadbReloadRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbReloadRequest$ { - /** @deprecated use `MariadbReloadRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbReloadRequest$inboundSchema; - /** @deprecated use `MariadbReloadRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbReloadRequest$outboundSchema; - /** @deprecated use `MariadbReloadRequest$Outbound` instead. */ - export type Outbound = MariadbReloadRequest$Outbound; -} - export function mariadbReloadRequestToJSON( mariadbReloadRequest: MariadbReloadRequest, ): string { @@ -62,16 +39,6 @@ export function mariadbReloadRequestToJSON( ); } -export function mariadbReloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbReloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbReloadRequest' from JSON`, - ); -} - /** @internal */ export const MariadbReloadResponse$inboundSchema: z.ZodType< MariadbReloadResponse, @@ -79,37 +46,6 @@ export const MariadbReloadResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MariadbReloadResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MariadbReloadResponse$outboundSchema: z.ZodType< - MariadbReloadResponse$Outbound, - z.ZodTypeDef, - MariadbReloadResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbReloadResponse$ { - /** @deprecated use `MariadbReloadResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbReloadResponse$inboundSchema; - /** @deprecated use `MariadbReloadResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbReloadResponse$outboundSchema; - /** @deprecated use `MariadbReloadResponse$Outbound` instead. */ - export type Outbound = MariadbReloadResponse$Outbound; -} - -export function mariadbReloadResponseToJSON( - mariadbReloadResponse: MariadbReloadResponse, -): string { - return JSON.stringify( - MariadbReloadResponse$outboundSchema.parse(mariadbReloadResponse), - ); -} - export function mariadbReloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbremove.ts b/src/models/operations/mariadbremove.ts index 269eb13..21f2cc1 100644 --- a/src/models/operations/mariadbremove.ts +++ b/src/models/operations/mariadbremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -335,15 +335,6 @@ export type MariadbRemoveResponseBody = { export type MariadbRemoveResponse = MariadbRemoveResponseBody | models.ErrorT; -/** @internal */ -export const MariadbRemoveRequest$inboundSchema: z.ZodType< - MariadbRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mariadbId: z.string(), -}); - /** @internal */ export type MariadbRemoveRequest$Outbound = { mariadbId: string; @@ -358,19 +349,6 @@ export const MariadbRemoveRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveRequest$ { - /** @deprecated use `MariadbRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveRequest$inboundSchema; - /** @deprecated use `MariadbRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveRequest$outboundSchema; - /** @deprecated use `MariadbRemoveRequest$Outbound` instead. */ - export type Outbound = MariadbRemoveRequest$Outbound; -} - export function mariadbRemoveRequestToJSON( mariadbRemoveRequest: MariadbRemoveRequest, ): string { @@ -379,100 +357,26 @@ export function mariadbRemoveRequestToJSON( ); } -export function mariadbRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbRemoveRequest' from JSON`, - ); -} - /** @internal */ export const MariadbRemoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbRemoveApplicationStatus > = z.nativeEnum(MariadbRemoveApplicationStatus); -/** @internal */ -export const MariadbRemoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbRemoveApplicationStatus -> = MariadbRemoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveApplicationStatus$ { - /** @deprecated use `MariadbRemoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveApplicationStatus$inboundSchema; - /** @deprecated use `MariadbRemoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveApplicationStatus$outboundSchema; -} - /** @internal */ export const MariadbRemoveBackupType$inboundSchema: z.ZodNativeEnum< typeof MariadbRemoveBackupType > = z.nativeEnum(MariadbRemoveBackupType); -/** @internal */ -export const MariadbRemoveBackupType$outboundSchema: z.ZodNativeEnum< - typeof MariadbRemoveBackupType -> = MariadbRemoveBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveBackupType$ { - /** @deprecated use `MariadbRemoveBackupType$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveBackupType$inboundSchema; - /** @deprecated use `MariadbRemoveBackupType$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveBackupType$outboundSchema; -} - /** @internal */ export const MariadbRemoveDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MariadbRemoveDatabaseType > = z.nativeEnum(MariadbRemoveDatabaseType); -/** @internal */ -export const MariadbRemoveDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MariadbRemoveDatabaseType -> = MariadbRemoveDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveDatabaseType$ { - /** @deprecated use `MariadbRemoveDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveDatabaseType$inboundSchema; - /** @deprecated use `MariadbRemoveDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveDatabaseType$outboundSchema; -} - /** @internal */ export const MariadbRemoveMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbRemoveMetadataEnum > = z.nativeEnum(MariadbRemoveMetadataEnum); -/** @internal */ -export const MariadbRemoveMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbRemoveMetadataEnum -> = MariadbRemoveMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMetadataEnum$ { - /** @deprecated use `MariadbRemoveMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMetadataEnum$inboundSchema; - /** @deprecated use `MariadbRemoveMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMetadataEnum$outboundSchema; -} - /** @internal */ export const MariadbRemoveMariadb$inboundSchema: z.ZodType< MariadbRemoveMariadb, @@ -483,43 +387,6 @@ export const MariadbRemoveMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbRemoveMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbRemoveMariadb$outboundSchema: z.ZodType< - MariadbRemoveMariadb$Outbound, - z.ZodTypeDef, - MariadbRemoveMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMariadb$ { - /** @deprecated use `MariadbRemoveMariadb$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMariadb$inboundSchema; - /** @deprecated use `MariadbRemoveMariadb$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMariadb$outboundSchema; - /** @deprecated use `MariadbRemoveMariadb$Outbound` instead. */ - export type Outbound = MariadbRemoveMariadb$Outbound; -} - -export function mariadbRemoveMariadbToJSON( - mariadbRemoveMariadb: MariadbRemoveMariadb, -): string { - return JSON.stringify( - MariadbRemoveMariadb$outboundSchema.parse(mariadbRemoveMariadb), - ); -} - export function mariadbRemoveMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -540,43 +407,6 @@ export const MariadbRemoveMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbRemoveMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbRemoveMongo$outboundSchema: z.ZodType< - MariadbRemoveMongo$Outbound, - z.ZodTypeDef, - MariadbRemoveMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMongo$ { - /** @deprecated use `MariadbRemoveMongo$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMongo$inboundSchema; - /** @deprecated use `MariadbRemoveMongo$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMongo$outboundSchema; - /** @deprecated use `MariadbRemoveMongo$Outbound` instead. */ - export type Outbound = MariadbRemoveMongo$Outbound; -} - -export function mariadbRemoveMongoToJSON( - mariadbRemoveMongo: MariadbRemoveMongo, -): string { - return JSON.stringify( - MariadbRemoveMongo$outboundSchema.parse(mariadbRemoveMongo), - ); -} - export function mariadbRemoveMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -596,41 +426,6 @@ export const MariadbRemoveMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MariadbRemoveMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MariadbRemoveMysql$outboundSchema: z.ZodType< - MariadbRemoveMysql$Outbound, - z.ZodTypeDef, - MariadbRemoveMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMysql$ { - /** @deprecated use `MariadbRemoveMysql$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMysql$inboundSchema; - /** @deprecated use `MariadbRemoveMysql$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMysql$outboundSchema; - /** @deprecated use `MariadbRemoveMysql$Outbound` instead. */ - export type Outbound = MariadbRemoveMysql$Outbound; -} - -export function mariadbRemoveMysqlToJSON( - mariadbRemoveMysql: MariadbRemoveMysql, -): string { - return JSON.stringify( - MariadbRemoveMysql$outboundSchema.parse(mariadbRemoveMysql), - ); -} - export function mariadbRemoveMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -650,41 +445,6 @@ export const MariadbRemovePostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbRemovePostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MariadbRemovePostgres$outboundSchema: z.ZodType< - MariadbRemovePostgres$Outbound, - z.ZodTypeDef, - MariadbRemovePostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemovePostgres$ { - /** @deprecated use `MariadbRemovePostgres$inboundSchema` instead. */ - export const inboundSchema = MariadbRemovePostgres$inboundSchema; - /** @deprecated use `MariadbRemovePostgres$outboundSchema` instead. */ - export const outboundSchema = MariadbRemovePostgres$outboundSchema; - /** @deprecated use `MariadbRemovePostgres$Outbound` instead. */ - export type Outbound = MariadbRemovePostgres$Outbound; -} - -export function mariadbRemovePostgresToJSON( - mariadbRemovePostgres: MariadbRemovePostgres, -): string { - return JSON.stringify( - MariadbRemovePostgres$outboundSchema.parse(mariadbRemovePostgres), - ); -} - export function mariadbRemovePostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -707,47 +467,6 @@ export const MariadbRemoveMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MariadbRemovePostgres$inboundSchema).optional(), }); -/** @internal */ -export type MariadbRemoveMetadata$Outbound = { - mariadb?: MariadbRemoveMariadb$Outbound | undefined; - mongo?: MariadbRemoveMongo$Outbound | undefined; - mysql?: MariadbRemoveMysql$Outbound | undefined; - postgres?: MariadbRemovePostgres$Outbound | undefined; -}; - -/** @internal */ -export const MariadbRemoveMetadata$outboundSchema: z.ZodType< - MariadbRemoveMetadata$Outbound, - z.ZodTypeDef, - MariadbRemoveMetadata -> = z.object({ - mariadb: z.lazy(() => MariadbRemoveMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MariadbRemoveMongo$outboundSchema).optional(), - mysql: z.lazy(() => MariadbRemoveMysql$outboundSchema).optional(), - postgres: z.lazy(() => MariadbRemovePostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMetadata$ { - /** @deprecated use `MariadbRemoveMetadata$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMetadata$inboundSchema; - /** @deprecated use `MariadbRemoveMetadata$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMetadata$outboundSchema; - /** @deprecated use `MariadbRemoveMetadata$Outbound` instead. */ - export type Outbound = MariadbRemoveMetadata$Outbound; -} - -export function mariadbRemoveMetadataToJSON( - mariadbRemoveMetadata: MariadbRemoveMetadata, -): string { - return JSON.stringify( - MariadbRemoveMetadata$outboundSchema.parse(mariadbRemoveMetadata), - ); -} - export function mariadbRemoveMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -768,42 +487,6 @@ export const MariadbRemoveMetadataUnion$inboundSchema: z.ZodType< MariadbRemoveMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MariadbRemoveMetadataUnion$Outbound = - | MariadbRemoveMetadata$Outbound - | string; - -/** @internal */ -export const MariadbRemoveMetadataUnion$outboundSchema: z.ZodType< - MariadbRemoveMetadataUnion$Outbound, - z.ZodTypeDef, - MariadbRemoveMetadataUnion -> = z.union([ - z.lazy(() => MariadbRemoveMetadata$outboundSchema), - MariadbRemoveMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMetadataUnion$ { - /** @deprecated use `MariadbRemoveMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMetadataUnion$inboundSchema; - /** @deprecated use `MariadbRemoveMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMetadataUnion$outboundSchema; - /** @deprecated use `MariadbRemoveMetadataUnion$Outbound` instead. */ - export type Outbound = MariadbRemoveMetadataUnion$Outbound; -} - -export function mariadbRemoveMetadataUnionToJSON( - mariadbRemoveMetadataUnion: MariadbRemoveMetadataUnion, -): string { - return JSON.stringify( - MariadbRemoveMetadataUnion$outboundSchema.parse(mariadbRemoveMetadataUnion), - ); -} - export function mariadbRemoveMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -845,80 +528,6 @@ export const MariadbRemoveBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MariadbRemoveBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MariadbRemoveMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MariadbRemoveBackup$outboundSchema: z.ZodType< - MariadbRemoveBackup$Outbound, - z.ZodTypeDef, - MariadbRemoveBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MariadbRemoveBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MariadbRemoveDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MariadbRemoveMetadata$outboundSchema), - MariadbRemoveMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveBackup$ { - /** @deprecated use `MariadbRemoveBackup$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveBackup$inboundSchema; - /** @deprecated use `MariadbRemoveBackup$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveBackup$outboundSchema; - /** @deprecated use `MariadbRemoveBackup$Outbound` instead. */ - export type Outbound = MariadbRemoveBackup$Outbound; -} - -export function mariadbRemoveBackupToJSON( - mariadbRemoveBackup: MariadbRemoveBackup, -): string { - return JSON.stringify( - MariadbRemoveBackup$outboundSchema.parse(mariadbRemoveBackup), - ); -} - export function mariadbRemoveBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -943,51 +552,6 @@ export const MariadbRemoveProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbRemoveProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MariadbRemoveProject$outboundSchema: z.ZodType< - MariadbRemoveProject$Outbound, - z.ZodTypeDef, - MariadbRemoveProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveProject$ { - /** @deprecated use `MariadbRemoveProject$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveProject$inboundSchema; - /** @deprecated use `MariadbRemoveProject$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveProject$outboundSchema; - /** @deprecated use `MariadbRemoveProject$Outbound` instead. */ - export type Outbound = MariadbRemoveProject$Outbound; -} - -export function mariadbRemoveProjectToJSON( - mariadbRemoveProject: MariadbRemoveProject, -): string { - return JSON.stringify( - MariadbRemoveProject$outboundSchema.parse(mariadbRemoveProject), - ); -} - export function mariadbRemoveProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1013,53 +577,6 @@ export const MariadbRemoveEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbRemoveEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MariadbRemoveProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MariadbRemoveEnvironment$outboundSchema: z.ZodType< - MariadbRemoveEnvironment$Outbound, - z.ZodTypeDef, - MariadbRemoveEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MariadbRemoveProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveEnvironment$ { - /** @deprecated use `MariadbRemoveEnvironment$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveEnvironment$inboundSchema; - /** @deprecated use `MariadbRemoveEnvironment$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveEnvironment$outboundSchema; - /** @deprecated use `MariadbRemoveEnvironment$Outbound` instead. */ - export type Outbound = MariadbRemoveEnvironment$Outbound; -} - -export function mariadbRemoveEnvironmentToJSON( - mariadbRemoveEnvironment: MariadbRemoveEnvironment, -): string { - return JSON.stringify( - MariadbRemoveEnvironment$outboundSchema.parse(mariadbRemoveEnvironment), - ); -} - export function mariadbRemoveEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1091,59 +608,6 @@ export const MariadbRemoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MariadbRemoveHealthCheckSwarm$outboundSchema: z.ZodType< - MariadbRemoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MariadbRemoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveHealthCheckSwarm$ { - /** @deprecated use `MariadbRemoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbRemoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbRemoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbRemoveHealthCheckSwarm$Outbound; -} - -export function mariadbRemoveHealthCheckSwarmToJSON( - mariadbRemoveHealthCheckSwarm: MariadbRemoveHealthCheckSwarm, -): string { - return JSON.stringify( - MariadbRemoveHealthCheckSwarm$outboundSchema.parse( - mariadbRemoveHealthCheckSwarm, - ), - ); -} - export function mariadbRemoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1161,37 +625,6 @@ export const MariadbRemoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbRemoveGlobal$Outbound = {}; - -/** @internal */ -export const MariadbRemoveGlobal$outboundSchema: z.ZodType< - MariadbRemoveGlobal$Outbound, - z.ZodTypeDef, - MariadbRemoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveGlobal$ { - /** @deprecated use `MariadbRemoveGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveGlobal$inboundSchema; - /** @deprecated use `MariadbRemoveGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveGlobal$outboundSchema; - /** @deprecated use `MariadbRemoveGlobal$Outbound` instead. */ - export type Outbound = MariadbRemoveGlobal$Outbound; -} - -export function mariadbRemoveGlobalToJSON( - mariadbRemoveGlobal: MariadbRemoveGlobal, -): string { - return JSON.stringify( - MariadbRemoveGlobal$outboundSchema.parse(mariadbRemoveGlobal), - ); -} - export function mariadbRemoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1203,42 +636,11 @@ export function mariadbRemoveGlobalFromJSON( } /** @internal */ -export const MariadbRemoveGlobalJob$inboundSchema: z.ZodType< - MariadbRemoveGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MariadbRemoveGlobalJob$Outbound = {}; - -/** @internal */ -export const MariadbRemoveGlobalJob$outboundSchema: z.ZodType< - MariadbRemoveGlobalJob$Outbound, - z.ZodTypeDef, - MariadbRemoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveGlobalJob$ { - /** @deprecated use `MariadbRemoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveGlobalJob$inboundSchema; - /** @deprecated use `MariadbRemoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveGlobalJob$outboundSchema; - /** @deprecated use `MariadbRemoveGlobalJob$Outbound` instead. */ - export type Outbound = MariadbRemoveGlobalJob$Outbound; -} - -export function mariadbRemoveGlobalJobToJSON( - mariadbRemoveGlobalJob: MariadbRemoveGlobalJob, -): string { - return JSON.stringify( - MariadbRemoveGlobalJob$outboundSchema.parse(mariadbRemoveGlobalJob), - ); -} +export const MariadbRemoveGlobalJob$inboundSchema: z.ZodType< + MariadbRemoveGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mariadbRemoveGlobalJobFromJSON( jsonString: string, @@ -1263,45 +665,6 @@ export const MariadbRemoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MariadbRemoveReplicated$outboundSchema: z.ZodType< - MariadbRemoveReplicated$Outbound, - z.ZodTypeDef, - MariadbRemoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveReplicated$ { - /** @deprecated use `MariadbRemoveReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveReplicated$inboundSchema; - /** @deprecated use `MariadbRemoveReplicated$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveReplicated$outboundSchema; - /** @deprecated use `MariadbRemoveReplicated$Outbound` instead. */ - export type Outbound = MariadbRemoveReplicated$Outbound; -} - -export function mariadbRemoveReplicatedToJSON( - mariadbRemoveReplicated: MariadbRemoveReplicated, -): string { - return JSON.stringify( - MariadbRemoveReplicated$outboundSchema.parse(mariadbRemoveReplicated), - ); -} - export function mariadbRemoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1327,48 +690,6 @@ export const MariadbRemoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MariadbRemoveReplicatedJob$outboundSchema: z.ZodType< - MariadbRemoveReplicatedJob$Outbound, - z.ZodTypeDef, - MariadbRemoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveReplicatedJob$ { - /** @deprecated use `MariadbRemoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveReplicatedJob$inboundSchema; - /** @deprecated use `MariadbRemoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveReplicatedJob$outboundSchema; - /** @deprecated use `MariadbRemoveReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbRemoveReplicatedJob$Outbound; -} - -export function mariadbRemoveReplicatedJobToJSON( - mariadbRemoveReplicatedJob: MariadbRemoveReplicatedJob, -): string { - return JSON.stringify( - MariadbRemoveReplicatedJob$outboundSchema.parse(mariadbRemoveReplicatedJob), - ); -} - export function mariadbRemoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1399,55 +720,6 @@ export const MariadbRemoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemoveModeSwarm$Outbound = { - Global?: MariadbRemoveGlobal$Outbound | undefined; - GlobalJob?: MariadbRemoveGlobalJob$Outbound | undefined; - Replicated?: MariadbRemoveReplicated$Outbound | undefined; - ReplicatedJob?: MariadbRemoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MariadbRemoveModeSwarm$outboundSchema: z.ZodType< - MariadbRemoveModeSwarm$Outbound, - z.ZodTypeDef, - MariadbRemoveModeSwarm -> = z.object({ - global: z.lazy(() => MariadbRemoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MariadbRemoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MariadbRemoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MariadbRemoveReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveModeSwarm$ { - /** @deprecated use `MariadbRemoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveModeSwarm$inboundSchema; - /** @deprecated use `MariadbRemoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveModeSwarm$outboundSchema; - /** @deprecated use `MariadbRemoveModeSwarm$Outbound` instead. */ - export type Outbound = MariadbRemoveModeSwarm$Outbound; -} - -export function mariadbRemoveModeSwarmToJSON( - mariadbRemoveModeSwarm: MariadbRemoveModeSwarm, -): string { - return JSON.stringify( - MariadbRemoveModeSwarm$outboundSchema.parse(mariadbRemoveModeSwarm), - ); -} - export function mariadbRemoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1463,43 +735,11 @@ export const MariadbRemoveServiceType$inboundSchema: z.ZodNativeEnum< typeof MariadbRemoveServiceType > = z.nativeEnum(MariadbRemoveServiceType); -/** @internal */ -export const MariadbRemoveServiceType$outboundSchema: z.ZodNativeEnum< - typeof MariadbRemoveServiceType -> = MariadbRemoveServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveServiceType$ { - /** @deprecated use `MariadbRemoveServiceType$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveServiceType$inboundSchema; - /** @deprecated use `MariadbRemoveServiceType$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveServiceType$outboundSchema; -} - /** @internal */ export const MariadbRemoveType$inboundSchema: z.ZodNativeEnum< typeof MariadbRemoveType > = z.nativeEnum(MariadbRemoveType); -/** @internal */ -export const MariadbRemoveType$outboundSchema: z.ZodNativeEnum< - typeof MariadbRemoveType -> = MariadbRemoveType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveType$ { - /** @deprecated use `MariadbRemoveType$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveType$inboundSchema; - /** @deprecated use `MariadbRemoveType$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveType$outboundSchema; -} - /** @internal */ export const MariadbRemoveMount$inboundSchema: z.ZodType< MariadbRemoveMount, @@ -1523,69 +763,6 @@ export const MariadbRemoveMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MariadbRemoveMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MariadbRemoveMount$outboundSchema: z.ZodType< - MariadbRemoveMount$Outbound, - z.ZodTypeDef, - MariadbRemoveMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MariadbRemoveServiceType$outboundSchema, - type: MariadbRemoveType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMount$ { - /** @deprecated use `MariadbRemoveMount$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMount$inboundSchema; - /** @deprecated use `MariadbRemoveMount$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMount$outboundSchema; - /** @deprecated use `MariadbRemoveMount$Outbound` instead. */ - export type Outbound = MariadbRemoveMount$Outbound; -} - -export function mariadbRemoveMountToJSON( - mariadbRemoveMount: MariadbRemoveMount, -): string { - return JSON.stringify( - MariadbRemoveMount$outboundSchema.parse(mariadbRemoveMount), - ); -} - export function mariadbRemoveMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1603,37 +780,6 @@ export const MariadbRemoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbRemoveDriverOpts$Outbound = {}; - -/** @internal */ -export const MariadbRemoveDriverOpts$outboundSchema: z.ZodType< - MariadbRemoveDriverOpts$Outbound, - z.ZodTypeDef, - MariadbRemoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveDriverOpts$ { - /** @deprecated use `MariadbRemoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveDriverOpts$inboundSchema; - /** @deprecated use `MariadbRemoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveDriverOpts$outboundSchema; - /** @deprecated use `MariadbRemoveDriverOpts$Outbound` instead. */ - export type Outbound = MariadbRemoveDriverOpts$Outbound; -} - -export function mariadbRemoveDriverOptsToJSON( - mariadbRemoveDriverOpts: MariadbRemoveDriverOpts, -): string { - return JSON.stringify( - MariadbRemoveDriverOpts$outboundSchema.parse(mariadbRemoveDriverOpts), - ); -} - export function mariadbRemoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1661,51 +807,6 @@ export const MariadbRemoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MariadbRemoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MariadbRemoveNetworkSwarm$outboundSchema: z.ZodType< - MariadbRemoveNetworkSwarm$Outbound, - z.ZodTypeDef, - MariadbRemoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MariadbRemoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveNetworkSwarm$ { - /** @deprecated use `MariadbRemoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbRemoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbRemoveNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbRemoveNetworkSwarm$Outbound; -} - -export function mariadbRemoveNetworkSwarmToJSON( - mariadbRemoveNetworkSwarm: MariadbRemoveNetworkSwarm, -): string { - return JSON.stringify( - MariadbRemoveNetworkSwarm$outboundSchema.parse(mariadbRemoveNetworkSwarm), - ); -} - export function mariadbRemoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1731,48 +832,6 @@ export const MariadbRemovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MariadbRemovePlatform$outboundSchema: z.ZodType< - MariadbRemovePlatform$Outbound, - z.ZodTypeDef, - MariadbRemovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemovePlatform$ { - /** @deprecated use `MariadbRemovePlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbRemovePlatform$inboundSchema; - /** @deprecated use `MariadbRemovePlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbRemovePlatform$outboundSchema; - /** @deprecated use `MariadbRemovePlatform$Outbound` instead. */ - export type Outbound = MariadbRemovePlatform$Outbound; -} - -export function mariadbRemovePlatformToJSON( - mariadbRemovePlatform: MariadbRemovePlatform, -): string { - return JSON.stringify( - MariadbRemovePlatform$outboundSchema.parse(mariadbRemovePlatform), - ); -} - export function mariadbRemovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1796,45 +855,6 @@ export const MariadbRemoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MariadbRemoveSpread$outboundSchema: z.ZodType< - MariadbRemoveSpread$Outbound, - z.ZodTypeDef, - MariadbRemoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveSpread$ { - /** @deprecated use `MariadbRemoveSpread$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveSpread$inboundSchema; - /** @deprecated use `MariadbRemoveSpread$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveSpread$outboundSchema; - /** @deprecated use `MariadbRemoveSpread$Outbound` instead. */ - export type Outbound = MariadbRemoveSpread$Outbound; -} - -export function mariadbRemoveSpreadToJSON( - mariadbRemoveSpread: MariadbRemoveSpread, -): string { - return JSON.stringify( - MariadbRemoveSpread$outboundSchema.parse(mariadbRemoveSpread), - ); -} - export function mariadbRemoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1858,45 +878,6 @@ export const MariadbRemovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemovePreference$Outbound = { - Spread: MariadbRemoveSpread$Outbound; -}; - -/** @internal */ -export const MariadbRemovePreference$outboundSchema: z.ZodType< - MariadbRemovePreference$Outbound, - z.ZodTypeDef, - MariadbRemovePreference -> = z.object({ - spread: z.lazy(() => MariadbRemoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemovePreference$ { - /** @deprecated use `MariadbRemovePreference$inboundSchema` instead. */ - export const inboundSchema = MariadbRemovePreference$inboundSchema; - /** @deprecated use `MariadbRemovePreference$outboundSchema` instead. */ - export const outboundSchema = MariadbRemovePreference$outboundSchema; - /** @deprecated use `MariadbRemovePreference$Outbound` instead. */ - export type Outbound = MariadbRemovePreference$Outbound; -} - -export function mariadbRemovePreferenceToJSON( - mariadbRemovePreference: MariadbRemovePreference, -): string { - return JSON.stringify( - MariadbRemovePreference$outboundSchema.parse(mariadbRemovePreference), - ); -} - export function mariadbRemovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1928,58 +909,6 @@ export const MariadbRemovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MariadbRemovePlacementSwarm$outboundSchema: z.ZodType< - MariadbRemovePlacementSwarm$Outbound, - z.ZodTypeDef, - MariadbRemovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MariadbRemovePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MariadbRemovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemovePlacementSwarm$ { - /** @deprecated use `MariadbRemovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbRemovePlacementSwarm$inboundSchema; - /** @deprecated use `MariadbRemovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbRemovePlacementSwarm$outboundSchema; - /** @deprecated use `MariadbRemovePlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbRemovePlacementSwarm$Outbound; -} - -export function mariadbRemovePlacementSwarmToJSON( - mariadbRemovePlacementSwarm: MariadbRemovePlacementSwarm, -): string { - return JSON.stringify( - MariadbRemovePlacementSwarm$outboundSchema.parse( - mariadbRemovePlacementSwarm, - ), - ); -} - export function mariadbRemovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1999,66 +928,16 @@ export const MariadbRemoveRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MariadbRemoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MariadbRemoveRestartPolicySwarm$outboundSchema: z.ZodType< - MariadbRemoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MariadbRemoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveRestartPolicySwarm$ { - /** @deprecated use `MariadbRemoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbRemoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbRemoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbRemoveRestartPolicySwarm$Outbound; -} - -export function mariadbRemoveRestartPolicySwarmToJSON( - mariadbRemoveRestartPolicySwarm: MariadbRemoveRestartPolicySwarm, -): string { - return JSON.stringify( - MariadbRemoveRestartPolicySwarm$outboundSchema.parse( - mariadbRemoveRestartPolicySwarm, - ), - ); -} - export function mariadbRemoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2092,62 +971,6 @@ export const MariadbRemoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbRemoveRollbackConfigSwarm$outboundSchema: z.ZodType< - MariadbRemoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbRemoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveRollbackConfigSwarm$ { - /** @deprecated use `MariadbRemoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbRemoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbRemoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbRemoveRollbackConfigSwarm$Outbound; -} - -export function mariadbRemoveRollbackConfigSwarmToJSON( - mariadbRemoveRollbackConfigSwarm: MariadbRemoveRollbackConfigSwarm, -): string { - return JSON.stringify( - MariadbRemoveRollbackConfigSwarm$outboundSchema.parse( - mariadbRemoveRollbackConfigSwarm, - ), - ); -} - export function mariadbRemoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2163,22 +986,6 @@ export const MariadbRemoveMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbRemoveMetricsConfigEnum > = z.nativeEnum(MariadbRemoveMetricsConfigEnum); -/** @internal */ -export const MariadbRemoveMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbRemoveMetricsConfigEnum -> = MariadbRemoveMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMetricsConfigEnum$ { - /** @deprecated use `MariadbRemoveMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMetricsConfigEnum$inboundSchema; - /** @deprecated use `MariadbRemoveMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MariadbRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbRemoveMetricsConfigUnion1, @@ -2191,48 +998,6 @@ export const MariadbRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbRemoveMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MariadbRemoveMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MariadbRemoveMetricsConfigUnion1$outboundSchema: z.ZodType< - MariadbRemoveMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MariadbRemoveMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbRemoveMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMetricsConfigUnion1$ { - /** @deprecated use `MariadbRemoveMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MariadbRemoveMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MariadbRemoveMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MariadbRemoveMetricsConfigUnion1$Outbound; -} - -export function mariadbRemoveMetricsConfigUnion1ToJSON( - mariadbRemoveMetricsConfigUnion1: MariadbRemoveMetricsConfigUnion1, -): string { - return JSON.stringify( - MariadbRemoveMetricsConfigUnion1$outboundSchema.parse( - mariadbRemoveMetricsConfigUnion1, - ), - ); -} - export function mariadbRemoveMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2259,54 +1024,6 @@ export const MariadbRemoveMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MariadbRemoveMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MariadbRemoveMetricsConfigUnion2$outboundSchema: z.ZodType< - MariadbRemoveMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MariadbRemoveMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveMetricsConfigUnion2$ { - /** @deprecated use `MariadbRemoveMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MariadbRemoveMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MariadbRemoveMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MariadbRemoveMetricsConfigUnion2$Outbound; -} - -export function mariadbRemoveMetricsConfigUnion2ToJSON( - mariadbRemoveMetricsConfigUnion2: MariadbRemoveMetricsConfigUnion2, -): string { - return JSON.stringify( - MariadbRemoveMetricsConfigUnion2$outboundSchema.parse( - mariadbRemoveMetricsConfigUnion2, - ), - ); -} - export function mariadbRemoveMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2322,22 +1039,6 @@ export const MariadbRemoveServerStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbRemoveServerStatus > = z.nativeEnum(MariadbRemoveServerStatus); -/** @internal */ -export const MariadbRemoveServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbRemoveServerStatus -> = MariadbRemoveServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveServerStatus$ { - /** @deprecated use `MariadbRemoveServerStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveServerStatus$inboundSchema; - /** @deprecated use `MariadbRemoveServerStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveServerStatus$outboundSchema; -} - /** @internal */ export const MariadbRemoveServer$inboundSchema: z.ZodType< MariadbRemoveServer, @@ -2369,78 +1070,6 @@ export const MariadbRemoveServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MariadbRemoveServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MariadbRemoveServer$outboundSchema: z.ZodType< - MariadbRemoveServer$Outbound, - z.ZodTypeDef, - MariadbRemoveServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MariadbRemoveServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveServer$ { - /** @deprecated use `MariadbRemoveServer$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveServer$inboundSchema; - /** @deprecated use `MariadbRemoveServer$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveServer$outboundSchema; - /** @deprecated use `MariadbRemoveServer$Outbound` instead. */ - export type Outbound = MariadbRemoveServer$Outbound; -} - -export function mariadbRemoveServerToJSON( - mariadbRemoveServer: MariadbRemoveServer, -): string { - return JSON.stringify( - MariadbRemoveServer$outboundSchema.parse(mariadbRemoveServer), - ); -} - export function mariadbRemoveServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2474,62 +1103,6 @@ export const MariadbRemoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbRemoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbRemoveUpdateConfigSwarm$outboundSchema: z.ZodType< - MariadbRemoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbRemoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveUpdateConfigSwarm$ { - /** @deprecated use `MariadbRemoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbRemoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbRemoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbRemoveUpdateConfigSwarm$Outbound; -} - -export function mariadbRemoveUpdateConfigSwarmToJSON( - mariadbRemoveUpdateConfigSwarm: MariadbRemoveUpdateConfigSwarm, -): string { - return JSON.stringify( - MariadbRemoveUpdateConfigSwarm$outboundSchema.parse( - mariadbRemoveUpdateConfigSwarm, - ), - ); -} - export function mariadbRemoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2593,117 +1166,6 @@ export const MariadbRemoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MariadbRemoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MariadbRemoveEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MariadbRemoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MariadbRemoveModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MariadbRemovePlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MariadbRemoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MariadbRemoveRollbackConfigSwarm$Outbound | null; - server: MariadbRemoveServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MariadbRemoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MariadbRemoveResponseBody$outboundSchema: z.ZodType< - MariadbRemoveResponseBody$Outbound, - z.ZodTypeDef, - MariadbRemoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MariadbRemoveApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MariadbRemoveBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MariadbRemoveEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbRemoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MariadbRemoveModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MariadbRemoveMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbRemoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MariadbRemovePlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbRemoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbRemoveRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MariadbRemoveServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbRemoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveResponseBody$ { - /** @deprecated use `MariadbRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveResponseBody$inboundSchema; - /** @deprecated use `MariadbRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveResponseBody$outboundSchema; - /** @deprecated use `MariadbRemoveResponseBody$Outbound` instead. */ - export type Outbound = MariadbRemoveResponseBody$Outbound; -} - -export function mariadbRemoveResponseBodyToJSON( - mariadbRemoveResponseBody: MariadbRemoveResponseBody, -): string { - return JSON.stringify( - MariadbRemoveResponseBody$outboundSchema.parse(mariadbRemoveResponseBody), - ); -} - export function mariadbRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2724,42 +1186,6 @@ export const MariadbRemoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MariadbRemoveResponse$Outbound = - | MariadbRemoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MariadbRemoveResponse$outboundSchema: z.ZodType< - MariadbRemoveResponse$Outbound, - z.ZodTypeDef, - MariadbRemoveResponse -> = z.union([ - z.lazy(() => MariadbRemoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbRemoveResponse$ { - /** @deprecated use `MariadbRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbRemoveResponse$inboundSchema; - /** @deprecated use `MariadbRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbRemoveResponse$outboundSchema; - /** @deprecated use `MariadbRemoveResponse$Outbound` instead. */ - export type Outbound = MariadbRemoveResponse$Outbound; -} - -export function mariadbRemoveResponseToJSON( - mariadbRemoveResponse: MariadbRemoveResponse, -): string { - return JSON.stringify( - MariadbRemoveResponse$outboundSchema.parse(mariadbRemoveResponse), - ); -} - export function mariadbRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbsaveenvironment.ts b/src/models/operations/mariadbsaveenvironment.ts index 992bf81..7e46818 100644 --- a/src/models/operations/mariadbsaveenvironment.ts +++ b/src/models/operations/mariadbsaveenvironment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type MariadbSaveEnvironmentRequest = { export type MariadbSaveEnvironmentResponse = models.ErrorT | boolean; -/** @internal */ -export const MariadbSaveEnvironmentRequest$inboundSchema: z.ZodType< - MariadbSaveEnvironmentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - env: z.nullable(z.string()).optional(), - mariadbId: z.string(), -}); - /** @internal */ export type MariadbSaveEnvironmentRequest$Outbound = { env?: string | null | undefined; @@ -41,19 +31,6 @@ export const MariadbSaveEnvironmentRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveEnvironmentRequest$ { - /** @deprecated use `MariadbSaveEnvironmentRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveEnvironmentRequest$inboundSchema; - /** @deprecated use `MariadbSaveEnvironmentRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveEnvironmentRequest$outboundSchema; - /** @deprecated use `MariadbSaveEnvironmentRequest$Outbound` instead. */ - export type Outbound = MariadbSaveEnvironmentRequest$Outbound; -} - export function mariadbSaveEnvironmentRequestToJSON( mariadbSaveEnvironmentRequest: MariadbSaveEnvironmentRequest, ): string { @@ -64,16 +41,6 @@ export function mariadbSaveEnvironmentRequestToJSON( ); } -export function mariadbSaveEnvironmentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbSaveEnvironmentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbSaveEnvironmentRequest' from JSON`, - ); -} - /** @internal */ export const MariadbSaveEnvironmentResponse$inboundSchema: z.ZodType< MariadbSaveEnvironmentResponse, @@ -81,41 +48,6 @@ export const MariadbSaveEnvironmentResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MariadbSaveEnvironmentResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const MariadbSaveEnvironmentResponse$outboundSchema: z.ZodType< - MariadbSaveEnvironmentResponse$Outbound, - z.ZodTypeDef, - MariadbSaveEnvironmentResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveEnvironmentResponse$ { - /** @deprecated use `MariadbSaveEnvironmentResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveEnvironmentResponse$inboundSchema; - /** @deprecated use `MariadbSaveEnvironmentResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveEnvironmentResponse$outboundSchema; - /** @deprecated use `MariadbSaveEnvironmentResponse$Outbound` instead. */ - export type Outbound = MariadbSaveEnvironmentResponse$Outbound; -} - -export function mariadbSaveEnvironmentResponseToJSON( - mariadbSaveEnvironmentResponse: MariadbSaveEnvironmentResponse, -): string { - return JSON.stringify( - MariadbSaveEnvironmentResponse$outboundSchema.parse( - mariadbSaveEnvironmentResponse, - ), - ); -} - export function mariadbSaveEnvironmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbsaveexternalport.ts b/src/models/operations/mariadbsaveexternalport.ts index 78b8ea0..1aef927 100644 --- a/src/models/operations/mariadbsaveexternalport.ts +++ b/src/models/operations/mariadbsaveexternalport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -340,16 +340,6 @@ export type MariadbSaveExternalPortResponse = | MariadbSaveExternalPortResponseBody | models.ErrorT; -/** @internal */ -export const MariadbSaveExternalPortRequest$inboundSchema: z.ZodType< - MariadbSaveExternalPortRequest, - z.ZodTypeDef, - unknown -> = z.object({ - externalPort: z.nullable(z.number()), - mariadbId: z.string(), -}); - /** @internal */ export type MariadbSaveExternalPortRequest$Outbound = { externalPort: number | null; @@ -366,19 +356,6 @@ export const MariadbSaveExternalPortRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortRequest$ { - /** @deprecated use `MariadbSaveExternalPortRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortRequest$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortRequest$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortRequest$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortRequest$Outbound; -} - export function mariadbSaveExternalPortRequestToJSON( mariadbSaveExternalPortRequest: MariadbSaveExternalPortRequest, ): string { @@ -389,107 +366,26 @@ export function mariadbSaveExternalPortRequestToJSON( ); } -export function mariadbSaveExternalPortRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbSaveExternalPortRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbSaveExternalPortRequest' from JSON`, - ); -} - /** @internal */ export const MariadbSaveExternalPortApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(MariadbSaveExternalPortApplicationStatus); -/** @internal */ -export const MariadbSaveExternalPortApplicationStatus$outboundSchema: - z.ZodNativeEnum = - MariadbSaveExternalPortApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortApplicationStatus$ { - /** @deprecated use `MariadbSaveExternalPortApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortApplicationStatus$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortApplicationStatus$outboundSchema; -} - /** @internal */ export const MariadbSaveExternalPortBackupType$inboundSchema: z.ZodNativeEnum< typeof MariadbSaveExternalPortBackupType > = z.nativeEnum(MariadbSaveExternalPortBackupType); -/** @internal */ -export const MariadbSaveExternalPortBackupType$outboundSchema: z.ZodNativeEnum< - typeof MariadbSaveExternalPortBackupType -> = MariadbSaveExternalPortBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortBackupType$ { - /** @deprecated use `MariadbSaveExternalPortBackupType$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortBackupType$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortBackupType$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortBackupType$outboundSchema; -} - /** @internal */ export const MariadbSaveExternalPortDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MariadbSaveExternalPortDatabaseType > = z.nativeEnum(MariadbSaveExternalPortDatabaseType); -/** @internal */ -export const MariadbSaveExternalPortDatabaseType$outboundSchema: - z.ZodNativeEnum = - MariadbSaveExternalPortDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortDatabaseType$ { - /** @deprecated use `MariadbSaveExternalPortDatabaseType$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortDatabaseType$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortDatabaseType$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortDatabaseType$outboundSchema; -} - /** @internal */ export const MariadbSaveExternalPortMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbSaveExternalPortMetadataEnum > = z.nativeEnum(MariadbSaveExternalPortMetadataEnum); -/** @internal */ -export const MariadbSaveExternalPortMetadataEnum$outboundSchema: - z.ZodNativeEnum = - MariadbSaveExternalPortMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMetadataEnum$ { - /** @deprecated use `MariadbSaveExternalPortMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortMetadataEnum$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortMetadataEnum$outboundSchema; -} - /** @internal */ export const MariadbSaveExternalPortMariadb$inboundSchema: z.ZodType< MariadbSaveExternalPortMariadb, @@ -500,45 +396,6 @@ export const MariadbSaveExternalPortMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbSaveExternalPortMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortMariadb$outboundSchema: z.ZodType< - MariadbSaveExternalPortMariadb$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMariadb$ { - /** @deprecated use `MariadbSaveExternalPortMariadb$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortMariadb$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMariadb$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortMariadb$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortMariadb$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortMariadb$Outbound; -} - -export function mariadbSaveExternalPortMariadbToJSON( - mariadbSaveExternalPortMariadb: MariadbSaveExternalPortMariadb, -): string { - return JSON.stringify( - MariadbSaveExternalPortMariadb$outboundSchema.parse( - mariadbSaveExternalPortMariadb, - ), - ); -} - export function mariadbSaveExternalPortMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -559,45 +416,6 @@ export const MariadbSaveExternalPortMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbSaveExternalPortMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortMongo$outboundSchema: z.ZodType< - MariadbSaveExternalPortMongo$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMongo$ { - /** @deprecated use `MariadbSaveExternalPortMongo$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortMongo$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMongo$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortMongo$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortMongo$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortMongo$Outbound; -} - -export function mariadbSaveExternalPortMongoToJSON( - mariadbSaveExternalPortMongo: MariadbSaveExternalPortMongo, -): string { - return JSON.stringify( - MariadbSaveExternalPortMongo$outboundSchema.parse( - mariadbSaveExternalPortMongo, - ), - ); -} - export function mariadbSaveExternalPortMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -617,43 +435,6 @@ export const MariadbSaveExternalPortMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MariadbSaveExternalPortMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortMysql$outboundSchema: z.ZodType< - MariadbSaveExternalPortMysql$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMysql$ { - /** @deprecated use `MariadbSaveExternalPortMysql$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortMysql$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMysql$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortMysql$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortMysql$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortMysql$Outbound; -} - -export function mariadbSaveExternalPortMysqlToJSON( - mariadbSaveExternalPortMysql: MariadbSaveExternalPortMysql, -): string { - return JSON.stringify( - MariadbSaveExternalPortMysql$outboundSchema.parse( - mariadbSaveExternalPortMysql, - ), - ); -} - export function mariadbSaveExternalPortMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -673,43 +454,6 @@ export const MariadbSaveExternalPortPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbSaveExternalPortPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortPostgres$outboundSchema: z.ZodType< - MariadbSaveExternalPortPostgres$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortPostgres$ { - /** @deprecated use `MariadbSaveExternalPortPostgres$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortPostgres$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortPostgres$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortPostgres$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortPostgres$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortPostgres$Outbound; -} - -export function mariadbSaveExternalPortPostgresToJSON( - mariadbSaveExternalPortPostgres: MariadbSaveExternalPortPostgres, -): string { - return JSON.stringify( - MariadbSaveExternalPortPostgres$outboundSchema.parse( - mariadbSaveExternalPortPostgres, - ), - ); -} - export function mariadbSaveExternalPortPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -734,51 +478,6 @@ export const MariadbSaveExternalPortMetadata$inboundSchema: z.ZodType< .optional(), }); -/** @internal */ -export type MariadbSaveExternalPortMetadata$Outbound = { - mariadb?: MariadbSaveExternalPortMariadb$Outbound | undefined; - mongo?: MariadbSaveExternalPortMongo$Outbound | undefined; - mysql?: MariadbSaveExternalPortMysql$Outbound | undefined; - postgres?: MariadbSaveExternalPortPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MariadbSaveExternalPortMetadata$outboundSchema: z.ZodType< - MariadbSaveExternalPortMetadata$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortMetadata -> = z.object({ - mariadb: z.lazy(() => MariadbSaveExternalPortMariadb$outboundSchema) - .optional(), - mongo: z.lazy(() => MariadbSaveExternalPortMongo$outboundSchema).optional(), - mysql: z.lazy(() => MariadbSaveExternalPortMysql$outboundSchema).optional(), - postgres: z.lazy(() => MariadbSaveExternalPortPostgres$outboundSchema) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMetadata$ { - /** @deprecated use `MariadbSaveExternalPortMetadata$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortMetadata$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetadata$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortMetadata$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetadata$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortMetadata$Outbound; -} - -export function mariadbSaveExternalPortMetadataToJSON( - mariadbSaveExternalPortMetadata: MariadbSaveExternalPortMetadata, -): string { - return JSON.stringify( - MariadbSaveExternalPortMetadata$outboundSchema.parse( - mariadbSaveExternalPortMetadata, - ), - ); -} - export function mariadbSaveExternalPortMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -799,46 +498,6 @@ export const MariadbSaveExternalPortMetadataUnion$inboundSchema: z.ZodType< MariadbSaveExternalPortMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MariadbSaveExternalPortMetadataUnion$Outbound = - | MariadbSaveExternalPortMetadata$Outbound - | string; - -/** @internal */ -export const MariadbSaveExternalPortMetadataUnion$outboundSchema: z.ZodType< - MariadbSaveExternalPortMetadataUnion$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortMetadataUnion -> = z.union([ - z.lazy(() => MariadbSaveExternalPortMetadata$outboundSchema), - MariadbSaveExternalPortMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMetadataUnion$ { - /** @deprecated use `MariadbSaveExternalPortMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortMetadataUnion$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortMetadataUnion$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetadataUnion$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortMetadataUnion$Outbound; -} - -export function mariadbSaveExternalPortMetadataUnionToJSON( - mariadbSaveExternalPortMetadataUnion: MariadbSaveExternalPortMetadataUnion, -): string { - return JSON.stringify( - MariadbSaveExternalPortMetadataUnion$outboundSchema.parse( - mariadbSaveExternalPortMetadataUnion, - ), - ); -} - export function mariadbSaveExternalPortMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -881,86 +540,6 @@ export const MariadbSaveExternalPortBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MariadbSaveExternalPortBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: - | MariadbSaveExternalPortMetadata$Outbound - | string - | null - | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MariadbSaveExternalPortBackup$outboundSchema: z.ZodType< - MariadbSaveExternalPortBackup$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MariadbSaveExternalPortBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MariadbSaveExternalPortDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MariadbSaveExternalPortMetadata$outboundSchema), - MariadbSaveExternalPortMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortBackup$ { - /** @deprecated use `MariadbSaveExternalPortBackup$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortBackup$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortBackup$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortBackup$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortBackup$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortBackup$Outbound; -} - -export function mariadbSaveExternalPortBackupToJSON( - mariadbSaveExternalPortBackup: MariadbSaveExternalPortBackup, -): string { - return JSON.stringify( - MariadbSaveExternalPortBackup$outboundSchema.parse( - mariadbSaveExternalPortBackup, - ), - ); -} - export function mariadbSaveExternalPortBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -985,53 +564,6 @@ export const MariadbSaveExternalPortProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbSaveExternalPortProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortProject$outboundSchema: z.ZodType< - MariadbSaveExternalPortProject$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortProject$ { - /** @deprecated use `MariadbSaveExternalPortProject$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortProject$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortProject$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortProject$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortProject$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortProject$Outbound; -} - -export function mariadbSaveExternalPortProjectToJSON( - mariadbSaveExternalPortProject: MariadbSaveExternalPortProject, -): string { - return JSON.stringify( - MariadbSaveExternalPortProject$outboundSchema.parse( - mariadbSaveExternalPortProject, - ), - ); -} - export function mariadbSaveExternalPortProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1057,56 +589,6 @@ export const MariadbSaveExternalPortEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbSaveExternalPortEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MariadbSaveExternalPortProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortEnvironment$outboundSchema: z.ZodType< - MariadbSaveExternalPortEnvironment$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MariadbSaveExternalPortProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortEnvironment$ { - /** @deprecated use `MariadbSaveExternalPortEnvironment$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortEnvironment$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortEnvironment$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortEnvironment$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortEnvironment$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortEnvironment$Outbound; -} - -export function mariadbSaveExternalPortEnvironmentToJSON( - mariadbSaveExternalPortEnvironment: MariadbSaveExternalPortEnvironment, -): string { - return JSON.stringify( - MariadbSaveExternalPortEnvironment$outboundSchema.parse( - mariadbSaveExternalPortEnvironment, - ), - ); -} - export function mariadbSaveExternalPortEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1139,62 +621,6 @@ export const MariadbSaveExternalPortHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MariadbSaveExternalPortHealthCheckSwarm$outboundSchema: z.ZodType< - MariadbSaveExternalPortHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortHealthCheckSwarm$ { - /** @deprecated use `MariadbSaveExternalPortHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortHealthCheckSwarm$Outbound; -} - -export function mariadbSaveExternalPortHealthCheckSwarmToJSON( - mariadbSaveExternalPortHealthCheckSwarm: - MariadbSaveExternalPortHealthCheckSwarm, -): string { - return JSON.stringify( - MariadbSaveExternalPortHealthCheckSwarm$outboundSchema.parse( - mariadbSaveExternalPortHealthCheckSwarm, - ), - ); -} - export function mariadbSaveExternalPortHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -1218,39 +644,6 @@ export const MariadbSaveExternalPortGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbSaveExternalPortGlobal$Outbound = {}; - -/** @internal */ -export const MariadbSaveExternalPortGlobal$outboundSchema: z.ZodType< - MariadbSaveExternalPortGlobal$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortGlobal$ { - /** @deprecated use `MariadbSaveExternalPortGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortGlobal$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortGlobal$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortGlobal$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortGlobal$Outbound; -} - -export function mariadbSaveExternalPortGlobalToJSON( - mariadbSaveExternalPortGlobal: MariadbSaveExternalPortGlobal, -): string { - return JSON.stringify( - MariadbSaveExternalPortGlobal$outboundSchema.parse( - mariadbSaveExternalPortGlobal, - ), - ); -} - export function mariadbSaveExternalPortGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1261,45 +654,12 @@ export function mariadbSaveExternalPortGlobalFromJSON( ); } -/** @internal */ -export const MariadbSaveExternalPortGlobalJob$inboundSchema: z.ZodType< - MariadbSaveExternalPortGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MariadbSaveExternalPortGlobalJob$Outbound = {}; - -/** @internal */ -export const MariadbSaveExternalPortGlobalJob$outboundSchema: z.ZodType< - MariadbSaveExternalPortGlobalJob$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortGlobalJob$ { - /** @deprecated use `MariadbSaveExternalPortGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortGlobalJob$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortGlobalJob$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortGlobalJob$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortGlobalJob$Outbound; -} - -export function mariadbSaveExternalPortGlobalJobToJSON( - mariadbSaveExternalPortGlobalJob: MariadbSaveExternalPortGlobalJob, -): string { - return JSON.stringify( - MariadbSaveExternalPortGlobalJob$outboundSchema.parse( - mariadbSaveExternalPortGlobalJob, - ), - ); -} +/** @internal */ +export const MariadbSaveExternalPortGlobalJob$inboundSchema: z.ZodType< + MariadbSaveExternalPortGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mariadbSaveExternalPortGlobalJobFromJSON( jsonString: string, @@ -1324,48 +684,6 @@ export const MariadbSaveExternalPortReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MariadbSaveExternalPortReplicated$outboundSchema: z.ZodType< - MariadbSaveExternalPortReplicated$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortReplicated$ { - /** @deprecated use `MariadbSaveExternalPortReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortReplicated$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortReplicated$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortReplicated$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortReplicated$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortReplicated$Outbound; -} - -export function mariadbSaveExternalPortReplicatedToJSON( - mariadbSaveExternalPortReplicated: MariadbSaveExternalPortReplicated, -): string { - return JSON.stringify( - MariadbSaveExternalPortReplicated$outboundSchema.parse( - mariadbSaveExternalPortReplicated, - ), - ); -} - export function mariadbSaveExternalPortReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1391,52 +709,6 @@ export const MariadbSaveExternalPortReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MariadbSaveExternalPortReplicatedJob$outboundSchema: z.ZodType< - MariadbSaveExternalPortReplicatedJob$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortReplicatedJob$ { - /** @deprecated use `MariadbSaveExternalPortReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortReplicatedJob$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortReplicatedJob$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortReplicatedJob$Outbound; -} - -export function mariadbSaveExternalPortReplicatedJobToJSON( - mariadbSaveExternalPortReplicatedJob: MariadbSaveExternalPortReplicatedJob, -): string { - return JSON.stringify( - MariadbSaveExternalPortReplicatedJob$outboundSchema.parse( - mariadbSaveExternalPortReplicatedJob, - ), - ); -} - export function mariadbSaveExternalPortReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1471,60 +743,6 @@ export const MariadbSaveExternalPortModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortModeSwarm$Outbound = { - Global?: MariadbSaveExternalPortGlobal$Outbound | undefined; - GlobalJob?: MariadbSaveExternalPortGlobalJob$Outbound | undefined; - Replicated?: MariadbSaveExternalPortReplicated$Outbound | undefined; - ReplicatedJob?: MariadbSaveExternalPortReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MariadbSaveExternalPortModeSwarm$outboundSchema: z.ZodType< - MariadbSaveExternalPortModeSwarm$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortModeSwarm -> = z.object({ - global: z.lazy(() => MariadbSaveExternalPortGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MariadbSaveExternalPortGlobalJob$outboundSchema) - .optional(), - replicated: z.lazy(() => MariadbSaveExternalPortReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => - MariadbSaveExternalPortReplicatedJob$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortModeSwarm$ { - /** @deprecated use `MariadbSaveExternalPortModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortModeSwarm$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortModeSwarm$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortModeSwarm$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortModeSwarm$Outbound; -} - -export function mariadbSaveExternalPortModeSwarmToJSON( - mariadbSaveExternalPortModeSwarm: MariadbSaveExternalPortModeSwarm, -): string { - return JSON.stringify( - MariadbSaveExternalPortModeSwarm$outboundSchema.parse( - mariadbSaveExternalPortModeSwarm, - ), - ); -} - export function mariadbSaveExternalPortModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1540,44 +758,11 @@ export const MariadbSaveExternalPortServiceType$inboundSchema: z.ZodNativeEnum< typeof MariadbSaveExternalPortServiceType > = z.nativeEnum(MariadbSaveExternalPortServiceType); -/** @internal */ -export const MariadbSaveExternalPortServiceType$outboundSchema: z.ZodNativeEnum< - typeof MariadbSaveExternalPortServiceType -> = MariadbSaveExternalPortServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortServiceType$ { - /** @deprecated use `MariadbSaveExternalPortServiceType$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortServiceType$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortServiceType$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortServiceType$outboundSchema; -} - /** @internal */ export const MariadbSaveExternalPortType$inboundSchema: z.ZodNativeEnum< typeof MariadbSaveExternalPortType > = z.nativeEnum(MariadbSaveExternalPortType); -/** @internal */ -export const MariadbSaveExternalPortType$outboundSchema: z.ZodNativeEnum< - typeof MariadbSaveExternalPortType -> = MariadbSaveExternalPortType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortType$ { - /** @deprecated use `MariadbSaveExternalPortType$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortType$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortType$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortType$outboundSchema; -} - /** @internal */ export const MariadbSaveExternalPortMount$inboundSchema: z.ZodType< MariadbSaveExternalPortMount, @@ -1601,71 +786,6 @@ export const MariadbSaveExternalPortMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MariadbSaveExternalPortMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MariadbSaveExternalPortMount$outboundSchema: z.ZodType< - MariadbSaveExternalPortMount$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MariadbSaveExternalPortServiceType$outboundSchema, - type: MariadbSaveExternalPortType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMount$ { - /** @deprecated use `MariadbSaveExternalPortMount$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortMount$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMount$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortMount$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortMount$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortMount$Outbound; -} - -export function mariadbSaveExternalPortMountToJSON( - mariadbSaveExternalPortMount: MariadbSaveExternalPortMount, -): string { - return JSON.stringify( - MariadbSaveExternalPortMount$outboundSchema.parse( - mariadbSaveExternalPortMount, - ), - ); -} - export function mariadbSaveExternalPortMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1683,40 +803,6 @@ export const MariadbSaveExternalPortDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbSaveExternalPortDriverOpts$Outbound = {}; - -/** @internal */ -export const MariadbSaveExternalPortDriverOpts$outboundSchema: z.ZodType< - MariadbSaveExternalPortDriverOpts$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortDriverOpts$ { - /** @deprecated use `MariadbSaveExternalPortDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortDriverOpts$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortDriverOpts$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortDriverOpts$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortDriverOpts$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortDriverOpts$Outbound; -} - -export function mariadbSaveExternalPortDriverOptsToJSON( - mariadbSaveExternalPortDriverOpts: MariadbSaveExternalPortDriverOpts, -): string { - return JSON.stringify( - MariadbSaveExternalPortDriverOpts$outboundSchema.parse( - mariadbSaveExternalPortDriverOpts, - ), - ); -} - export function mariadbSaveExternalPortDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1745,56 +831,6 @@ export const MariadbSaveExternalPortNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MariadbSaveExternalPortDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MariadbSaveExternalPortNetworkSwarm$outboundSchema: z.ZodType< - MariadbSaveExternalPortNetworkSwarm$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MariadbSaveExternalPortDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortNetworkSwarm$ { - /** @deprecated use `MariadbSaveExternalPortNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortNetworkSwarm$Outbound; -} - -export function mariadbSaveExternalPortNetworkSwarmToJSON( - mariadbSaveExternalPortNetworkSwarm: MariadbSaveExternalPortNetworkSwarm, -): string { - return JSON.stringify( - MariadbSaveExternalPortNetworkSwarm$outboundSchema.parse( - mariadbSaveExternalPortNetworkSwarm, - ), - ); -} - export function mariadbSaveExternalPortNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1821,50 +857,6 @@ export const MariadbSaveExternalPortPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortPlatform$outboundSchema: z.ZodType< - MariadbSaveExternalPortPlatform$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortPlatform$ { - /** @deprecated use `MariadbSaveExternalPortPlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortPlatform$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortPlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortPlatform$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortPlatform$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortPlatform$Outbound; -} - -export function mariadbSaveExternalPortPlatformToJSON( - mariadbSaveExternalPortPlatform: MariadbSaveExternalPortPlatform, -): string { - return JSON.stringify( - MariadbSaveExternalPortPlatform$outboundSchema.parse( - mariadbSaveExternalPortPlatform, - ), - ); -} - export function mariadbSaveExternalPortPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1888,47 +880,6 @@ export const MariadbSaveExternalPortSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortSpread$outboundSchema: z.ZodType< - MariadbSaveExternalPortSpread$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortSpread$ { - /** @deprecated use `MariadbSaveExternalPortSpread$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortSpread$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortSpread$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortSpread$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortSpread$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortSpread$Outbound; -} - -export function mariadbSaveExternalPortSpreadToJSON( - mariadbSaveExternalPortSpread: MariadbSaveExternalPortSpread, -): string { - return JSON.stringify( - MariadbSaveExternalPortSpread$outboundSchema.parse( - mariadbSaveExternalPortSpread, - ), - ); -} - export function mariadbSaveExternalPortSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1952,48 +903,6 @@ export const MariadbSaveExternalPortPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortPreference$Outbound = { - Spread: MariadbSaveExternalPortSpread$Outbound; -}; - -/** @internal */ -export const MariadbSaveExternalPortPreference$outboundSchema: z.ZodType< - MariadbSaveExternalPortPreference$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortPreference -> = z.object({ - spread: z.lazy(() => MariadbSaveExternalPortSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortPreference$ { - /** @deprecated use `MariadbSaveExternalPortPreference$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortPreference$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortPreference$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortPreference$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortPreference$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortPreference$Outbound; -} - -export function mariadbSaveExternalPortPreferenceToJSON( - mariadbSaveExternalPortPreference: MariadbSaveExternalPortPreference, -): string { - return JSON.stringify( - MariadbSaveExternalPortPreference$outboundSchema.parse( - mariadbSaveExternalPortPreference, - ), - ); -} - export function mariadbSaveExternalPortPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -2024,64 +933,8 @@ export const MariadbSaveExternalPortPlacementSwarm$inboundSchema: z.ZodType< "MaxReplicas": "maxReplicas", "Platforms": "platforms", "Preferences": "preferences", - }); -}); - -/** @internal */ -export type MariadbSaveExternalPortPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MariadbSaveExternalPortPlacementSwarm$outboundSchema: z.ZodType< - MariadbSaveExternalPortPlacementSwarm$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array( - z.lazy(() => MariadbSaveExternalPortPlatform$outboundSchema), - ).optional(), - preferences: z.array( - z.lazy(() => MariadbSaveExternalPortPreference$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortPlacementSwarm$ { - /** @deprecated use `MariadbSaveExternalPortPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortPlacementSwarm$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortPlacementSwarm$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortPlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortPlacementSwarm$Outbound; -} - -export function mariadbSaveExternalPortPlacementSwarmToJSON( - mariadbSaveExternalPortPlacementSwarm: MariadbSaveExternalPortPlacementSwarm, -): string { - return JSON.stringify( - MariadbSaveExternalPortPlacementSwarm$outboundSchema.parse( - mariadbSaveExternalPortPlacementSwarm, - ), - ); -} + }); +}); export function mariadbSaveExternalPortPlacementSwarmFromJSON( jsonString: string, @@ -2113,60 +966,6 @@ export const MariadbSaveExternalPortRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MariadbSaveExternalPortRestartPolicySwarm$outboundSchema: - z.ZodType< - MariadbSaveExternalPortRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortRestartPolicySwarm - > = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), - }).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortRestartPolicySwarm$ { - /** @deprecated use `MariadbSaveExternalPortRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortRestartPolicySwarm$Outbound; -} - -export function mariadbSaveExternalPortRestartPolicySwarmToJSON( - mariadbSaveExternalPortRestartPolicySwarm: - MariadbSaveExternalPortRestartPolicySwarm, -): string { - return JSON.stringify( - MariadbSaveExternalPortRestartPolicySwarm$outboundSchema.parse( - mariadbSaveExternalPortRestartPolicySwarm, - ), - ); -} - export function mariadbSaveExternalPortRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2204,66 +1003,6 @@ export const MariadbSaveExternalPortRollbackConfigSwarm$inboundSchema: }); }); -/** @internal */ -export type MariadbSaveExternalPortRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbSaveExternalPortRollbackConfigSwarm$outboundSchema: - z.ZodType< - MariadbSaveExternalPortRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortRollbackConfigSwarm - > = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), - }).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortRollbackConfigSwarm$ { - /** @deprecated use `MariadbSaveExternalPortRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortRollbackConfigSwarm$Outbound; -} - -export function mariadbSaveExternalPortRollbackConfigSwarmToJSON( - mariadbSaveExternalPortRollbackConfigSwarm: - MariadbSaveExternalPortRollbackConfigSwarm, -): string { - return JSON.stringify( - MariadbSaveExternalPortRollbackConfigSwarm$outboundSchema.parse( - mariadbSaveExternalPortRollbackConfigSwarm, - ), - ); -} - export function mariadbSaveExternalPortRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2285,24 +1024,6 @@ export const MariadbSaveExternalPortMetricsConfigEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(MariadbSaveExternalPortMetricsConfigEnum); -/** @internal */ -export const MariadbSaveExternalPortMetricsConfigEnum$outboundSchema: - z.ZodNativeEnum = - MariadbSaveExternalPortMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMetricsConfigEnum$ { - /** @deprecated use `MariadbSaveExternalPortMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortMetricsConfigEnum$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MariadbSaveExternalPortMetricsConfigUnion1$inboundSchema: z.ZodType = @@ -2313,52 +1034,6 @@ export const MariadbSaveExternalPortMetricsConfigUnion1$inboundSchema: MariadbSaveExternalPortMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MariadbSaveExternalPortMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MariadbSaveExternalPortMetricsConfigUnion1$outboundSchema: - z.ZodType< - MariadbSaveExternalPortMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortMetricsConfigUnion1 - > = z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbSaveExternalPortMetricsConfigEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMetricsConfigUnion1$ { - /** @deprecated use `MariadbSaveExternalPortMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortMetricsConfigUnion1$Outbound; -} - -export function mariadbSaveExternalPortMetricsConfigUnion1ToJSON( - mariadbSaveExternalPortMetricsConfigUnion1: - MariadbSaveExternalPortMetricsConfigUnion1, -): string { - return JSON.stringify( - MariadbSaveExternalPortMetricsConfigUnion1$outboundSchema.parse( - mariadbSaveExternalPortMetricsConfigUnion1, - ), - ); -} - export function mariadbSaveExternalPortMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult< @@ -2389,58 +1064,6 @@ export const MariadbSaveExternalPortMetricsConfigUnion2$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type MariadbSaveExternalPortMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MariadbSaveExternalPortMetricsConfigUnion2$outboundSchema: - z.ZodType< - MariadbSaveExternalPortMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortMetricsConfigUnion2 - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortMetricsConfigUnion2$ { - /** @deprecated use `MariadbSaveExternalPortMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortMetricsConfigUnion2$Outbound; -} - -export function mariadbSaveExternalPortMetricsConfigUnion2ToJSON( - mariadbSaveExternalPortMetricsConfigUnion2: - MariadbSaveExternalPortMetricsConfigUnion2, -): string { - return JSON.stringify( - MariadbSaveExternalPortMetricsConfigUnion2$outboundSchema.parse( - mariadbSaveExternalPortMetricsConfigUnion2, - ), - ); -} - export function mariadbSaveExternalPortMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult< @@ -2462,24 +1085,6 @@ export const MariadbSaveExternalPortServerStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbSaveExternalPortServerStatus > = z.nativeEnum(MariadbSaveExternalPortServerStatus); -/** @internal */ -export const MariadbSaveExternalPortServerStatus$outboundSchema: - z.ZodNativeEnum = - MariadbSaveExternalPortServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortServerStatus$ { - /** @deprecated use `MariadbSaveExternalPortServerStatus$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortServerStatus$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortServerStatus$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortServerStatus$outboundSchema; -} - /** @internal */ export const MariadbSaveExternalPortServer$inboundSchema: z.ZodType< MariadbSaveExternalPortServer, @@ -2511,80 +1116,6 @@ export const MariadbSaveExternalPortServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MariadbSaveExternalPortServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MariadbSaveExternalPortServer$outboundSchema: z.ZodType< - MariadbSaveExternalPortServer$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MariadbSaveExternalPortServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortServer$ { - /** @deprecated use `MariadbSaveExternalPortServer$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortServer$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortServer$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortServer$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortServer$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortServer$Outbound; -} - -export function mariadbSaveExternalPortServerToJSON( - mariadbSaveExternalPortServer: MariadbSaveExternalPortServer, -): string { - return JSON.stringify( - MariadbSaveExternalPortServer$outboundSchema.parse( - mariadbSaveExternalPortServer, - ), - ); -} - export function mariadbSaveExternalPortServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2618,65 +1149,6 @@ export const MariadbSaveExternalPortUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbSaveExternalPortUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbSaveExternalPortUpdateConfigSwarm$outboundSchema: z.ZodType< - MariadbSaveExternalPortUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortUpdateConfigSwarm$ { - /** @deprecated use `MariadbSaveExternalPortUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortUpdateConfigSwarm$Outbound; -} - -export function mariadbSaveExternalPortUpdateConfigSwarmToJSON( - mariadbSaveExternalPortUpdateConfigSwarm: - MariadbSaveExternalPortUpdateConfigSwarm, -): string { - return JSON.stringify( - MariadbSaveExternalPortUpdateConfigSwarm$outboundSchema.parse( - mariadbSaveExternalPortUpdateConfigSwarm, - ), - ); -} - export function mariadbSaveExternalPortUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2748,127 +1220,6 @@ export const MariadbSaveExternalPortResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MariadbSaveExternalPortResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MariadbSaveExternalPortEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MariadbSaveExternalPortHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MariadbSaveExternalPortModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MariadbSaveExternalPortPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MariadbSaveExternalPortRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: - | MariadbSaveExternalPortRollbackConfigSwarm$Outbound - | null; - server: MariadbSaveExternalPortServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MariadbSaveExternalPortUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MariadbSaveExternalPortResponseBody$outboundSchema: z.ZodType< - MariadbSaveExternalPortResponseBody$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MariadbSaveExternalPortApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MariadbSaveExternalPortBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MariadbSaveExternalPortEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbSaveExternalPortHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => MariadbSaveExternalPortModeSwarm$outboundSchema), - ), - mounts: z.array(z.lazy(() => MariadbSaveExternalPortMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbSaveExternalPortNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MariadbSaveExternalPortPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbSaveExternalPortRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbSaveExternalPortRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable( - z.lazy(() => MariadbSaveExternalPortServer$outboundSchema), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbSaveExternalPortUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortResponseBody$ { - /** @deprecated use `MariadbSaveExternalPortResponseBody$inboundSchema` instead. */ - export const inboundSchema = - MariadbSaveExternalPortResponseBody$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortResponseBody$outboundSchema` instead. */ - export const outboundSchema = - MariadbSaveExternalPortResponseBody$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortResponseBody$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortResponseBody$Outbound; -} - -export function mariadbSaveExternalPortResponseBodyToJSON( - mariadbSaveExternalPortResponseBody: MariadbSaveExternalPortResponseBody, -): string { - return JSON.stringify( - MariadbSaveExternalPortResponseBody$outboundSchema.parse( - mariadbSaveExternalPortResponseBody, - ), - ); -} - export function mariadbSaveExternalPortResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2890,44 +1241,6 @@ export const MariadbSaveExternalPortResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MariadbSaveExternalPortResponse$Outbound = - | MariadbSaveExternalPortResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MariadbSaveExternalPortResponse$outboundSchema: z.ZodType< - MariadbSaveExternalPortResponse$Outbound, - z.ZodTypeDef, - MariadbSaveExternalPortResponse -> = z.union([ - z.lazy(() => MariadbSaveExternalPortResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbSaveExternalPortResponse$ { - /** @deprecated use `MariadbSaveExternalPortResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbSaveExternalPortResponse$inboundSchema; - /** @deprecated use `MariadbSaveExternalPortResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbSaveExternalPortResponse$outboundSchema; - /** @deprecated use `MariadbSaveExternalPortResponse$Outbound` instead. */ - export type Outbound = MariadbSaveExternalPortResponse$Outbound; -} - -export function mariadbSaveExternalPortResponseToJSON( - mariadbSaveExternalPortResponse: MariadbSaveExternalPortResponse, -): string { - return JSON.stringify( - MariadbSaveExternalPortResponse$outboundSchema.parse( - mariadbSaveExternalPortResponse, - ), - ); -} - export function mariadbSaveExternalPortResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbstart.ts b/src/models/operations/mariadbstart.ts index 0c16cc2..e2f3702 100644 --- a/src/models/operations/mariadbstart.ts +++ b/src/models/operations/mariadbstart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -329,15 +329,6 @@ export type MariadbStartResponseBody = { export type MariadbStartResponse = MariadbStartResponseBody | models.ErrorT; -/** @internal */ -export const MariadbStartRequest$inboundSchema: z.ZodType< - MariadbStartRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mariadbId: z.string(), -}); - /** @internal */ export type MariadbStartRequest$Outbound = { mariadbId: string; @@ -352,19 +343,6 @@ export const MariadbStartRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartRequest$ { - /** @deprecated use `MariadbStartRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbStartRequest$inboundSchema; - /** @deprecated use `MariadbStartRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbStartRequest$outboundSchema; - /** @deprecated use `MariadbStartRequest$Outbound` instead. */ - export type Outbound = MariadbStartRequest$Outbound; -} - export function mariadbStartRequestToJSON( mariadbStartRequest: MariadbStartRequest, ): string { @@ -373,100 +351,26 @@ export function mariadbStartRequestToJSON( ); } -export function mariadbStartRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbStartRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbStartRequest' from JSON`, - ); -} - /** @internal */ export const MariadbStartApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbStartApplicationStatus > = z.nativeEnum(MariadbStartApplicationStatus); -/** @internal */ -export const MariadbStartApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbStartApplicationStatus -> = MariadbStartApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartApplicationStatus$ { - /** @deprecated use `MariadbStartApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbStartApplicationStatus$inboundSchema; - /** @deprecated use `MariadbStartApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbStartApplicationStatus$outboundSchema; -} - /** @internal */ export const MariadbStartBackupType$inboundSchema: z.ZodNativeEnum< typeof MariadbStartBackupType > = z.nativeEnum(MariadbStartBackupType); -/** @internal */ -export const MariadbStartBackupType$outboundSchema: z.ZodNativeEnum< - typeof MariadbStartBackupType -> = MariadbStartBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartBackupType$ { - /** @deprecated use `MariadbStartBackupType$inboundSchema` instead. */ - export const inboundSchema = MariadbStartBackupType$inboundSchema; - /** @deprecated use `MariadbStartBackupType$outboundSchema` instead. */ - export const outboundSchema = MariadbStartBackupType$outboundSchema; -} - /** @internal */ export const MariadbStartDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MariadbStartDatabaseType > = z.nativeEnum(MariadbStartDatabaseType); -/** @internal */ -export const MariadbStartDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MariadbStartDatabaseType -> = MariadbStartDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartDatabaseType$ { - /** @deprecated use `MariadbStartDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MariadbStartDatabaseType$inboundSchema; - /** @deprecated use `MariadbStartDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MariadbStartDatabaseType$outboundSchema; -} - /** @internal */ export const MariadbStartMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbStartMetadataEnum > = z.nativeEnum(MariadbStartMetadataEnum); -/** @internal */ -export const MariadbStartMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbStartMetadataEnum -> = MariadbStartMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMetadataEnum$ { - /** @deprecated use `MariadbStartMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMetadataEnum$inboundSchema; - /** @deprecated use `MariadbStartMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMetadataEnum$outboundSchema; -} - /** @internal */ export const MariadbStartMariadb$inboundSchema: z.ZodType< MariadbStartMariadb, @@ -477,43 +381,6 @@ export const MariadbStartMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbStartMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbStartMariadb$outboundSchema: z.ZodType< - MariadbStartMariadb$Outbound, - z.ZodTypeDef, - MariadbStartMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMariadb$ { - /** @deprecated use `MariadbStartMariadb$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMariadb$inboundSchema; - /** @deprecated use `MariadbStartMariadb$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMariadb$outboundSchema; - /** @deprecated use `MariadbStartMariadb$Outbound` instead. */ - export type Outbound = MariadbStartMariadb$Outbound; -} - -export function mariadbStartMariadbToJSON( - mariadbStartMariadb: MariadbStartMariadb, -): string { - return JSON.stringify( - MariadbStartMariadb$outboundSchema.parse(mariadbStartMariadb), - ); -} - export function mariadbStartMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -534,43 +401,6 @@ export const MariadbStartMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbStartMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbStartMongo$outboundSchema: z.ZodType< - MariadbStartMongo$Outbound, - z.ZodTypeDef, - MariadbStartMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMongo$ { - /** @deprecated use `MariadbStartMongo$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMongo$inboundSchema; - /** @deprecated use `MariadbStartMongo$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMongo$outboundSchema; - /** @deprecated use `MariadbStartMongo$Outbound` instead. */ - export type Outbound = MariadbStartMongo$Outbound; -} - -export function mariadbStartMongoToJSON( - mariadbStartMongo: MariadbStartMongo, -): string { - return JSON.stringify( - MariadbStartMongo$outboundSchema.parse(mariadbStartMongo), - ); -} - export function mariadbStartMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -590,41 +420,6 @@ export const MariadbStartMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MariadbStartMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MariadbStartMysql$outboundSchema: z.ZodType< - MariadbStartMysql$Outbound, - z.ZodTypeDef, - MariadbStartMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMysql$ { - /** @deprecated use `MariadbStartMysql$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMysql$inboundSchema; - /** @deprecated use `MariadbStartMysql$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMysql$outboundSchema; - /** @deprecated use `MariadbStartMysql$Outbound` instead. */ - export type Outbound = MariadbStartMysql$Outbound; -} - -export function mariadbStartMysqlToJSON( - mariadbStartMysql: MariadbStartMysql, -): string { - return JSON.stringify( - MariadbStartMysql$outboundSchema.parse(mariadbStartMysql), - ); -} - export function mariadbStartMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -644,41 +439,6 @@ export const MariadbStartPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbStartPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MariadbStartPostgres$outboundSchema: z.ZodType< - MariadbStartPostgres$Outbound, - z.ZodTypeDef, - MariadbStartPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartPostgres$ { - /** @deprecated use `MariadbStartPostgres$inboundSchema` instead. */ - export const inboundSchema = MariadbStartPostgres$inboundSchema; - /** @deprecated use `MariadbStartPostgres$outboundSchema` instead. */ - export const outboundSchema = MariadbStartPostgres$outboundSchema; - /** @deprecated use `MariadbStartPostgres$Outbound` instead. */ - export type Outbound = MariadbStartPostgres$Outbound; -} - -export function mariadbStartPostgresToJSON( - mariadbStartPostgres: MariadbStartPostgres, -): string { - return JSON.stringify( - MariadbStartPostgres$outboundSchema.parse(mariadbStartPostgres), - ); -} - export function mariadbStartPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -701,47 +461,6 @@ export const MariadbStartMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MariadbStartPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MariadbStartMetadata$Outbound = { - mariadb?: MariadbStartMariadb$Outbound | undefined; - mongo?: MariadbStartMongo$Outbound | undefined; - mysql?: MariadbStartMysql$Outbound | undefined; - postgres?: MariadbStartPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MariadbStartMetadata$outboundSchema: z.ZodType< - MariadbStartMetadata$Outbound, - z.ZodTypeDef, - MariadbStartMetadata -> = z.object({ - mariadb: z.lazy(() => MariadbStartMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MariadbStartMongo$outboundSchema).optional(), - mysql: z.lazy(() => MariadbStartMysql$outboundSchema).optional(), - postgres: z.lazy(() => MariadbStartPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMetadata$ { - /** @deprecated use `MariadbStartMetadata$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMetadata$inboundSchema; - /** @deprecated use `MariadbStartMetadata$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMetadata$outboundSchema; - /** @deprecated use `MariadbStartMetadata$Outbound` instead. */ - export type Outbound = MariadbStartMetadata$Outbound; -} - -export function mariadbStartMetadataToJSON( - mariadbStartMetadata: MariadbStartMetadata, -): string { - return JSON.stringify( - MariadbStartMetadata$outboundSchema.parse(mariadbStartMetadata), - ); -} - export function mariadbStartMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -762,42 +481,6 @@ export const MariadbStartMetadataUnion$inboundSchema: z.ZodType< MariadbStartMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MariadbStartMetadataUnion$Outbound = - | MariadbStartMetadata$Outbound - | string; - -/** @internal */ -export const MariadbStartMetadataUnion$outboundSchema: z.ZodType< - MariadbStartMetadataUnion$Outbound, - z.ZodTypeDef, - MariadbStartMetadataUnion -> = z.union([ - z.lazy(() => MariadbStartMetadata$outboundSchema), - MariadbStartMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMetadataUnion$ { - /** @deprecated use `MariadbStartMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMetadataUnion$inboundSchema; - /** @deprecated use `MariadbStartMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMetadataUnion$outboundSchema; - /** @deprecated use `MariadbStartMetadataUnion$Outbound` instead. */ - export type Outbound = MariadbStartMetadataUnion$Outbound; -} - -export function mariadbStartMetadataUnionToJSON( - mariadbStartMetadataUnion: MariadbStartMetadataUnion, -): string { - return JSON.stringify( - MariadbStartMetadataUnion$outboundSchema.parse(mariadbStartMetadataUnion), - ); -} - export function mariadbStartMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -839,80 +522,6 @@ export const MariadbStartBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MariadbStartBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MariadbStartMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MariadbStartBackup$outboundSchema: z.ZodType< - MariadbStartBackup$Outbound, - z.ZodTypeDef, - MariadbStartBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MariadbStartBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MariadbStartDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MariadbStartMetadata$outboundSchema), - MariadbStartMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartBackup$ { - /** @deprecated use `MariadbStartBackup$inboundSchema` instead. */ - export const inboundSchema = MariadbStartBackup$inboundSchema; - /** @deprecated use `MariadbStartBackup$outboundSchema` instead. */ - export const outboundSchema = MariadbStartBackup$outboundSchema; - /** @deprecated use `MariadbStartBackup$Outbound` instead. */ - export type Outbound = MariadbStartBackup$Outbound; -} - -export function mariadbStartBackupToJSON( - mariadbStartBackup: MariadbStartBackup, -): string { - return JSON.stringify( - MariadbStartBackup$outboundSchema.parse(mariadbStartBackup), - ); -} - export function mariadbStartBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -937,51 +546,6 @@ export const MariadbStartProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbStartProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MariadbStartProject$outboundSchema: z.ZodType< - MariadbStartProject$Outbound, - z.ZodTypeDef, - MariadbStartProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartProject$ { - /** @deprecated use `MariadbStartProject$inboundSchema` instead. */ - export const inboundSchema = MariadbStartProject$inboundSchema; - /** @deprecated use `MariadbStartProject$outboundSchema` instead. */ - export const outboundSchema = MariadbStartProject$outboundSchema; - /** @deprecated use `MariadbStartProject$Outbound` instead. */ - export type Outbound = MariadbStartProject$Outbound; -} - -export function mariadbStartProjectToJSON( - mariadbStartProject: MariadbStartProject, -): string { - return JSON.stringify( - MariadbStartProject$outboundSchema.parse(mariadbStartProject), - ); -} - export function mariadbStartProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1007,53 +571,6 @@ export const MariadbStartEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbStartEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MariadbStartProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MariadbStartEnvironment$outboundSchema: z.ZodType< - MariadbStartEnvironment$Outbound, - z.ZodTypeDef, - MariadbStartEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MariadbStartProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartEnvironment$ { - /** @deprecated use `MariadbStartEnvironment$inboundSchema` instead. */ - export const inboundSchema = MariadbStartEnvironment$inboundSchema; - /** @deprecated use `MariadbStartEnvironment$outboundSchema` instead. */ - export const outboundSchema = MariadbStartEnvironment$outboundSchema; - /** @deprecated use `MariadbStartEnvironment$Outbound` instead. */ - export type Outbound = MariadbStartEnvironment$Outbound; -} - -export function mariadbStartEnvironmentToJSON( - mariadbStartEnvironment: MariadbStartEnvironment, -): string { - return JSON.stringify( - MariadbStartEnvironment$outboundSchema.parse(mariadbStartEnvironment), - ); -} - export function mariadbStartEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1085,59 +602,6 @@ export const MariadbStartHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MariadbStartHealthCheckSwarm$outboundSchema: z.ZodType< - MariadbStartHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MariadbStartHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartHealthCheckSwarm$ { - /** @deprecated use `MariadbStartHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStartHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbStartHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStartHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbStartHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbStartHealthCheckSwarm$Outbound; -} - -export function mariadbStartHealthCheckSwarmToJSON( - mariadbStartHealthCheckSwarm: MariadbStartHealthCheckSwarm, -): string { - return JSON.stringify( - MariadbStartHealthCheckSwarm$outboundSchema.parse( - mariadbStartHealthCheckSwarm, - ), - ); -} - export function mariadbStartHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1155,37 +619,6 @@ export const MariadbStartGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbStartGlobal$Outbound = {}; - -/** @internal */ -export const MariadbStartGlobal$outboundSchema: z.ZodType< - MariadbStartGlobal$Outbound, - z.ZodTypeDef, - MariadbStartGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartGlobal$ { - /** @deprecated use `MariadbStartGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbStartGlobal$inboundSchema; - /** @deprecated use `MariadbStartGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbStartGlobal$outboundSchema; - /** @deprecated use `MariadbStartGlobal$Outbound` instead. */ - export type Outbound = MariadbStartGlobal$Outbound; -} - -export function mariadbStartGlobalToJSON( - mariadbStartGlobal: MariadbStartGlobal, -): string { - return JSON.stringify( - MariadbStartGlobal$outboundSchema.parse(mariadbStartGlobal), - ); -} - export function mariadbStartGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1197,42 +630,11 @@ export function mariadbStartGlobalFromJSON( } /** @internal */ -export const MariadbStartGlobalJob$inboundSchema: z.ZodType< - MariadbStartGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MariadbStartGlobalJob$Outbound = {}; - -/** @internal */ -export const MariadbStartGlobalJob$outboundSchema: z.ZodType< - MariadbStartGlobalJob$Outbound, - z.ZodTypeDef, - MariadbStartGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartGlobalJob$ { - /** @deprecated use `MariadbStartGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbStartGlobalJob$inboundSchema; - /** @deprecated use `MariadbStartGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbStartGlobalJob$outboundSchema; - /** @deprecated use `MariadbStartGlobalJob$Outbound` instead. */ - export type Outbound = MariadbStartGlobalJob$Outbound; -} - -export function mariadbStartGlobalJobToJSON( - mariadbStartGlobalJob: MariadbStartGlobalJob, -): string { - return JSON.stringify( - MariadbStartGlobalJob$outboundSchema.parse(mariadbStartGlobalJob), - ); -} +export const MariadbStartGlobalJob$inboundSchema: z.ZodType< + MariadbStartGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mariadbStartGlobalJobFromJSON( jsonString: string, @@ -1257,45 +659,6 @@ export const MariadbStartReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MariadbStartReplicated$outboundSchema: z.ZodType< - MariadbStartReplicated$Outbound, - z.ZodTypeDef, - MariadbStartReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartReplicated$ { - /** @deprecated use `MariadbStartReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbStartReplicated$inboundSchema; - /** @deprecated use `MariadbStartReplicated$outboundSchema` instead. */ - export const outboundSchema = MariadbStartReplicated$outboundSchema; - /** @deprecated use `MariadbStartReplicated$Outbound` instead. */ - export type Outbound = MariadbStartReplicated$Outbound; -} - -export function mariadbStartReplicatedToJSON( - mariadbStartReplicated: MariadbStartReplicated, -): string { - return JSON.stringify( - MariadbStartReplicated$outboundSchema.parse(mariadbStartReplicated), - ); -} - export function mariadbStartReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1321,48 +684,6 @@ export const MariadbStartReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MariadbStartReplicatedJob$outboundSchema: z.ZodType< - MariadbStartReplicatedJob$Outbound, - z.ZodTypeDef, - MariadbStartReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartReplicatedJob$ { - /** @deprecated use `MariadbStartReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MariadbStartReplicatedJob$inboundSchema; - /** @deprecated use `MariadbStartReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MariadbStartReplicatedJob$outboundSchema; - /** @deprecated use `MariadbStartReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbStartReplicatedJob$Outbound; -} - -export function mariadbStartReplicatedJobToJSON( - mariadbStartReplicatedJob: MariadbStartReplicatedJob, -): string { - return JSON.stringify( - MariadbStartReplicatedJob$outboundSchema.parse(mariadbStartReplicatedJob), - ); -} - export function mariadbStartReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1393,55 +714,6 @@ export const MariadbStartModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartModeSwarm$Outbound = { - Global?: MariadbStartGlobal$Outbound | undefined; - GlobalJob?: MariadbStartGlobalJob$Outbound | undefined; - Replicated?: MariadbStartReplicated$Outbound | undefined; - ReplicatedJob?: MariadbStartReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MariadbStartModeSwarm$outboundSchema: z.ZodType< - MariadbStartModeSwarm$Outbound, - z.ZodTypeDef, - MariadbStartModeSwarm -> = z.object({ - global: z.lazy(() => MariadbStartGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MariadbStartGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MariadbStartReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MariadbStartReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartModeSwarm$ { - /** @deprecated use `MariadbStartModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStartModeSwarm$inboundSchema; - /** @deprecated use `MariadbStartModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStartModeSwarm$outboundSchema; - /** @deprecated use `MariadbStartModeSwarm$Outbound` instead. */ - export type Outbound = MariadbStartModeSwarm$Outbound; -} - -export function mariadbStartModeSwarmToJSON( - mariadbStartModeSwarm: MariadbStartModeSwarm, -): string { - return JSON.stringify( - MariadbStartModeSwarm$outboundSchema.parse(mariadbStartModeSwarm), - ); -} - export function mariadbStartModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1457,43 +729,11 @@ export const MariadbStartServiceType$inboundSchema: z.ZodNativeEnum< typeof MariadbStartServiceType > = z.nativeEnum(MariadbStartServiceType); -/** @internal */ -export const MariadbStartServiceType$outboundSchema: z.ZodNativeEnum< - typeof MariadbStartServiceType -> = MariadbStartServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartServiceType$ { - /** @deprecated use `MariadbStartServiceType$inboundSchema` instead. */ - export const inboundSchema = MariadbStartServiceType$inboundSchema; - /** @deprecated use `MariadbStartServiceType$outboundSchema` instead. */ - export const outboundSchema = MariadbStartServiceType$outboundSchema; -} - /** @internal */ export const MariadbStartType$inboundSchema: z.ZodNativeEnum< typeof MariadbStartType > = z.nativeEnum(MariadbStartType); -/** @internal */ -export const MariadbStartType$outboundSchema: z.ZodNativeEnum< - typeof MariadbStartType -> = MariadbStartType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartType$ { - /** @deprecated use `MariadbStartType$inboundSchema` instead. */ - export const inboundSchema = MariadbStartType$inboundSchema; - /** @deprecated use `MariadbStartType$outboundSchema` instead. */ - export const outboundSchema = MariadbStartType$outboundSchema; -} - /** @internal */ export const MariadbStartMount$inboundSchema: z.ZodType< MariadbStartMount, @@ -1517,69 +757,6 @@ export const MariadbStartMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MariadbStartMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MariadbStartMount$outboundSchema: z.ZodType< - MariadbStartMount$Outbound, - z.ZodTypeDef, - MariadbStartMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MariadbStartServiceType$outboundSchema, - type: MariadbStartType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMount$ { - /** @deprecated use `MariadbStartMount$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMount$inboundSchema; - /** @deprecated use `MariadbStartMount$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMount$outboundSchema; - /** @deprecated use `MariadbStartMount$Outbound` instead. */ - export type Outbound = MariadbStartMount$Outbound; -} - -export function mariadbStartMountToJSON( - mariadbStartMount: MariadbStartMount, -): string { - return JSON.stringify( - MariadbStartMount$outboundSchema.parse(mariadbStartMount), - ); -} - export function mariadbStartMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1597,37 +774,6 @@ export const MariadbStartDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbStartDriverOpts$Outbound = {}; - -/** @internal */ -export const MariadbStartDriverOpts$outboundSchema: z.ZodType< - MariadbStartDriverOpts$Outbound, - z.ZodTypeDef, - MariadbStartDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartDriverOpts$ { - /** @deprecated use `MariadbStartDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbStartDriverOpts$inboundSchema; - /** @deprecated use `MariadbStartDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MariadbStartDriverOpts$outboundSchema; - /** @deprecated use `MariadbStartDriverOpts$Outbound` instead. */ - export type Outbound = MariadbStartDriverOpts$Outbound; -} - -export function mariadbStartDriverOptsToJSON( - mariadbStartDriverOpts: MariadbStartDriverOpts, -): string { - return JSON.stringify( - MariadbStartDriverOpts$outboundSchema.parse(mariadbStartDriverOpts), - ); -} - export function mariadbStartDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1655,51 +801,6 @@ export const MariadbStartNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MariadbStartDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MariadbStartNetworkSwarm$outboundSchema: z.ZodType< - MariadbStartNetworkSwarm$Outbound, - z.ZodTypeDef, - MariadbStartNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MariadbStartDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartNetworkSwarm$ { - /** @deprecated use `MariadbStartNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStartNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbStartNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStartNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbStartNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbStartNetworkSwarm$Outbound; -} - -export function mariadbStartNetworkSwarmToJSON( - mariadbStartNetworkSwarm: MariadbStartNetworkSwarm, -): string { - return JSON.stringify( - MariadbStartNetworkSwarm$outboundSchema.parse(mariadbStartNetworkSwarm), - ); -} - export function mariadbStartNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1725,48 +826,6 @@ export const MariadbStartPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MariadbStartPlatform$outboundSchema: z.ZodType< - MariadbStartPlatform$Outbound, - z.ZodTypeDef, - MariadbStartPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartPlatform$ { - /** @deprecated use `MariadbStartPlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbStartPlatform$inboundSchema; - /** @deprecated use `MariadbStartPlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbStartPlatform$outboundSchema; - /** @deprecated use `MariadbStartPlatform$Outbound` instead. */ - export type Outbound = MariadbStartPlatform$Outbound; -} - -export function mariadbStartPlatformToJSON( - mariadbStartPlatform: MariadbStartPlatform, -): string { - return JSON.stringify( - MariadbStartPlatform$outboundSchema.parse(mariadbStartPlatform), - ); -} - export function mariadbStartPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1790,45 +849,6 @@ export const MariadbStartSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MariadbStartSpread$outboundSchema: z.ZodType< - MariadbStartSpread$Outbound, - z.ZodTypeDef, - MariadbStartSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartSpread$ { - /** @deprecated use `MariadbStartSpread$inboundSchema` instead. */ - export const inboundSchema = MariadbStartSpread$inboundSchema; - /** @deprecated use `MariadbStartSpread$outboundSchema` instead. */ - export const outboundSchema = MariadbStartSpread$outboundSchema; - /** @deprecated use `MariadbStartSpread$Outbound` instead. */ - export type Outbound = MariadbStartSpread$Outbound; -} - -export function mariadbStartSpreadToJSON( - mariadbStartSpread: MariadbStartSpread, -): string { - return JSON.stringify( - MariadbStartSpread$outboundSchema.parse(mariadbStartSpread), - ); -} - export function mariadbStartSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1852,45 +872,6 @@ export const MariadbStartPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartPreference$Outbound = { - Spread: MariadbStartSpread$Outbound; -}; - -/** @internal */ -export const MariadbStartPreference$outboundSchema: z.ZodType< - MariadbStartPreference$Outbound, - z.ZodTypeDef, - MariadbStartPreference -> = z.object({ - spread: z.lazy(() => MariadbStartSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartPreference$ { - /** @deprecated use `MariadbStartPreference$inboundSchema` instead. */ - export const inboundSchema = MariadbStartPreference$inboundSchema; - /** @deprecated use `MariadbStartPreference$outboundSchema` instead. */ - export const outboundSchema = MariadbStartPreference$outboundSchema; - /** @deprecated use `MariadbStartPreference$Outbound` instead. */ - export type Outbound = MariadbStartPreference$Outbound; -} - -export function mariadbStartPreferenceToJSON( - mariadbStartPreference: MariadbStartPreference, -): string { - return JSON.stringify( - MariadbStartPreference$outboundSchema.parse(mariadbStartPreference), - ); -} - export function mariadbStartPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1922,56 +903,6 @@ export const MariadbStartPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MariadbStartPlacementSwarm$outboundSchema: z.ZodType< - MariadbStartPlacementSwarm$Outbound, - z.ZodTypeDef, - MariadbStartPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MariadbStartPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MariadbStartPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartPlacementSwarm$ { - /** @deprecated use `MariadbStartPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStartPlacementSwarm$inboundSchema; - /** @deprecated use `MariadbStartPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStartPlacementSwarm$outboundSchema; - /** @deprecated use `MariadbStartPlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbStartPlacementSwarm$Outbound; -} - -export function mariadbStartPlacementSwarmToJSON( - mariadbStartPlacementSwarm: MariadbStartPlacementSwarm, -): string { - return JSON.stringify( - MariadbStartPlacementSwarm$outboundSchema.parse(mariadbStartPlacementSwarm), - ); -} - export function mariadbStartPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1991,66 +922,16 @@ export const MariadbStartRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MariadbStartRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MariadbStartRestartPolicySwarm$outboundSchema: z.ZodType< - MariadbStartRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MariadbStartRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartRestartPolicySwarm$ { - /** @deprecated use `MariadbStartRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStartRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbStartRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStartRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbStartRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbStartRestartPolicySwarm$Outbound; -} - -export function mariadbStartRestartPolicySwarmToJSON( - mariadbStartRestartPolicySwarm: MariadbStartRestartPolicySwarm, -): string { - return JSON.stringify( - MariadbStartRestartPolicySwarm$outboundSchema.parse( - mariadbStartRestartPolicySwarm, - ), - ); -} - export function mariadbStartRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2084,62 +965,6 @@ export const MariadbStartRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbStartRollbackConfigSwarm$outboundSchema: z.ZodType< - MariadbStartRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbStartRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartRollbackConfigSwarm$ { - /** @deprecated use `MariadbStartRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStartRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbStartRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStartRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbStartRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbStartRollbackConfigSwarm$Outbound; -} - -export function mariadbStartRollbackConfigSwarmToJSON( - mariadbStartRollbackConfigSwarm: MariadbStartRollbackConfigSwarm, -): string { - return JSON.stringify( - MariadbStartRollbackConfigSwarm$outboundSchema.parse( - mariadbStartRollbackConfigSwarm, - ), - ); -} - export function mariadbStartRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2155,22 +980,6 @@ export const MariadbStartMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbStartMetricsConfigEnum > = z.nativeEnum(MariadbStartMetricsConfigEnum); -/** @internal */ -export const MariadbStartMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbStartMetricsConfigEnum -> = MariadbStartMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMetricsConfigEnum$ { - /** @deprecated use `MariadbStartMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMetricsConfigEnum$inboundSchema; - /** @deprecated use `MariadbStartMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MariadbStartMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbStartMetricsConfigUnion1, @@ -2183,48 +992,6 @@ export const MariadbStartMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbStartMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MariadbStartMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MariadbStartMetricsConfigUnion1$outboundSchema: z.ZodType< - MariadbStartMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MariadbStartMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbStartMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMetricsConfigUnion1$ { - /** @deprecated use `MariadbStartMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MariadbStartMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MariadbStartMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MariadbStartMetricsConfigUnion1$Outbound; -} - -export function mariadbStartMetricsConfigUnion1ToJSON( - mariadbStartMetricsConfigUnion1: MariadbStartMetricsConfigUnion1, -): string { - return JSON.stringify( - MariadbStartMetricsConfigUnion1$outboundSchema.parse( - mariadbStartMetricsConfigUnion1, - ), - ); -} - export function mariadbStartMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2251,54 +1018,6 @@ export const MariadbStartMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MariadbStartMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MariadbStartMetricsConfigUnion2$outboundSchema: z.ZodType< - MariadbStartMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MariadbStartMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartMetricsConfigUnion2$ { - /** @deprecated use `MariadbStartMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MariadbStartMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MariadbStartMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MariadbStartMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MariadbStartMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MariadbStartMetricsConfigUnion2$Outbound; -} - -export function mariadbStartMetricsConfigUnion2ToJSON( - mariadbStartMetricsConfigUnion2: MariadbStartMetricsConfigUnion2, -): string { - return JSON.stringify( - MariadbStartMetricsConfigUnion2$outboundSchema.parse( - mariadbStartMetricsConfigUnion2, - ), - ); -} - export function mariadbStartMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2314,22 +1033,6 @@ export const MariadbStartServerStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbStartServerStatus > = z.nativeEnum(MariadbStartServerStatus); -/** @internal */ -export const MariadbStartServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbStartServerStatus -> = MariadbStartServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartServerStatus$ { - /** @deprecated use `MariadbStartServerStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbStartServerStatus$inboundSchema; - /** @deprecated use `MariadbStartServerStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbStartServerStatus$outboundSchema; -} - /** @internal */ export const MariadbStartServer$inboundSchema: z.ZodType< MariadbStartServer, @@ -2361,78 +1064,6 @@ export const MariadbStartServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MariadbStartServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MariadbStartServer$outboundSchema: z.ZodType< - MariadbStartServer$Outbound, - z.ZodTypeDef, - MariadbStartServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MariadbStartServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartServer$ { - /** @deprecated use `MariadbStartServer$inboundSchema` instead. */ - export const inboundSchema = MariadbStartServer$inboundSchema; - /** @deprecated use `MariadbStartServer$outboundSchema` instead. */ - export const outboundSchema = MariadbStartServer$outboundSchema; - /** @deprecated use `MariadbStartServer$Outbound` instead. */ - export type Outbound = MariadbStartServer$Outbound; -} - -export function mariadbStartServerToJSON( - mariadbStartServer: MariadbStartServer, -): string { - return JSON.stringify( - MariadbStartServer$outboundSchema.parse(mariadbStartServer), - ); -} - export function mariadbStartServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2466,62 +1097,6 @@ export const MariadbStartUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStartUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbStartUpdateConfigSwarm$outboundSchema: z.ZodType< - MariadbStartUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbStartUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartUpdateConfigSwarm$ { - /** @deprecated use `MariadbStartUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStartUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbStartUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStartUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbStartUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbStartUpdateConfigSwarm$Outbound; -} - -export function mariadbStartUpdateConfigSwarmToJSON( - mariadbStartUpdateConfigSwarm: MariadbStartUpdateConfigSwarm, -): string { - return JSON.stringify( - MariadbStartUpdateConfigSwarm$outboundSchema.parse( - mariadbStartUpdateConfigSwarm, - ), - ); -} - export function mariadbStartUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2585,117 +1160,6 @@ export const MariadbStartResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MariadbStartResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MariadbStartEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MariadbStartHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MariadbStartModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MariadbStartPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MariadbStartRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MariadbStartRollbackConfigSwarm$Outbound | null; - server: MariadbStartServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MariadbStartUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MariadbStartResponseBody$outboundSchema: z.ZodType< - MariadbStartResponseBody$Outbound, - z.ZodTypeDef, - MariadbStartResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MariadbStartApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MariadbStartBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MariadbStartEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbStartHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MariadbStartModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MariadbStartMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbStartNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MariadbStartPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbStartRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbStartRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MariadbStartServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbStartUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartResponseBody$ { - /** @deprecated use `MariadbStartResponseBody$inboundSchema` instead. */ - export const inboundSchema = MariadbStartResponseBody$inboundSchema; - /** @deprecated use `MariadbStartResponseBody$outboundSchema` instead. */ - export const outboundSchema = MariadbStartResponseBody$outboundSchema; - /** @deprecated use `MariadbStartResponseBody$Outbound` instead. */ - export type Outbound = MariadbStartResponseBody$Outbound; -} - -export function mariadbStartResponseBodyToJSON( - mariadbStartResponseBody: MariadbStartResponseBody, -): string { - return JSON.stringify( - MariadbStartResponseBody$outboundSchema.parse(mariadbStartResponseBody), - ); -} - export function mariadbStartResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2716,42 +1180,6 @@ export const MariadbStartResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MariadbStartResponse$Outbound = - | MariadbStartResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MariadbStartResponse$outboundSchema: z.ZodType< - MariadbStartResponse$Outbound, - z.ZodTypeDef, - MariadbStartResponse -> = z.union([ - z.lazy(() => MariadbStartResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStartResponse$ { - /** @deprecated use `MariadbStartResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbStartResponse$inboundSchema; - /** @deprecated use `MariadbStartResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbStartResponse$outboundSchema; - /** @deprecated use `MariadbStartResponse$Outbound` instead. */ - export type Outbound = MariadbStartResponse$Outbound; -} - -export function mariadbStartResponseToJSON( - mariadbStartResponse: MariadbStartResponse, -): string { - return JSON.stringify( - MariadbStartResponse$outboundSchema.parse(mariadbStartResponse), - ); -} - export function mariadbStartResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbstop.ts b/src/models/operations/mariadbstop.ts index 1bab0ad..19b8642 100644 --- a/src/models/operations/mariadbstop.ts +++ b/src/models/operations/mariadbstop.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -327,15 +327,6 @@ export type MariadbStopResponseBody = { export type MariadbStopResponse = MariadbStopResponseBody | models.ErrorT; -/** @internal */ -export const MariadbStopRequest$inboundSchema: z.ZodType< - MariadbStopRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mariadbId: z.string(), -}); - /** @internal */ export type MariadbStopRequest$Outbound = { mariadbId: string; @@ -350,19 +341,6 @@ export const MariadbStopRequest$outboundSchema: z.ZodType< mariadbId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopRequest$ { - /** @deprecated use `MariadbStopRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbStopRequest$inboundSchema; - /** @deprecated use `MariadbStopRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbStopRequest$outboundSchema; - /** @deprecated use `MariadbStopRequest$Outbound` instead. */ - export type Outbound = MariadbStopRequest$Outbound; -} - export function mariadbStopRequestToJSON( mariadbStopRequest: MariadbStopRequest, ): string { @@ -371,100 +349,26 @@ export function mariadbStopRequestToJSON( ); } -export function mariadbStopRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbStopRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbStopRequest' from JSON`, - ); -} - /** @internal */ export const MariadbStopApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbStopApplicationStatus > = z.nativeEnum(MariadbStopApplicationStatus); -/** @internal */ -export const MariadbStopApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbStopApplicationStatus -> = MariadbStopApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopApplicationStatus$ { - /** @deprecated use `MariadbStopApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbStopApplicationStatus$inboundSchema; - /** @deprecated use `MariadbStopApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbStopApplicationStatus$outboundSchema; -} - /** @internal */ export const MariadbStopBackupType$inboundSchema: z.ZodNativeEnum< typeof MariadbStopBackupType > = z.nativeEnum(MariadbStopBackupType); -/** @internal */ -export const MariadbStopBackupType$outboundSchema: z.ZodNativeEnum< - typeof MariadbStopBackupType -> = MariadbStopBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopBackupType$ { - /** @deprecated use `MariadbStopBackupType$inboundSchema` instead. */ - export const inboundSchema = MariadbStopBackupType$inboundSchema; - /** @deprecated use `MariadbStopBackupType$outboundSchema` instead. */ - export const outboundSchema = MariadbStopBackupType$outboundSchema; -} - /** @internal */ export const MariadbStopDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MariadbStopDatabaseType > = z.nativeEnum(MariadbStopDatabaseType); -/** @internal */ -export const MariadbStopDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MariadbStopDatabaseType -> = MariadbStopDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopDatabaseType$ { - /** @deprecated use `MariadbStopDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MariadbStopDatabaseType$inboundSchema; - /** @deprecated use `MariadbStopDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MariadbStopDatabaseType$outboundSchema; -} - /** @internal */ export const MariadbStopMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbStopMetadataEnum > = z.nativeEnum(MariadbStopMetadataEnum); -/** @internal */ -export const MariadbStopMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbStopMetadataEnum -> = MariadbStopMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMetadataEnum$ { - /** @deprecated use `MariadbStopMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMetadataEnum$inboundSchema; - /** @deprecated use `MariadbStopMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMetadataEnum$outboundSchema; -} - /** @internal */ export const MariadbStopMariadb$inboundSchema: z.ZodType< MariadbStopMariadb, @@ -475,43 +379,6 @@ export const MariadbStopMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbStopMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbStopMariadb$outboundSchema: z.ZodType< - MariadbStopMariadb$Outbound, - z.ZodTypeDef, - MariadbStopMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMariadb$ { - /** @deprecated use `MariadbStopMariadb$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMariadb$inboundSchema; - /** @deprecated use `MariadbStopMariadb$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMariadb$outboundSchema; - /** @deprecated use `MariadbStopMariadb$Outbound` instead. */ - export type Outbound = MariadbStopMariadb$Outbound; -} - -export function mariadbStopMariadbToJSON( - mariadbStopMariadb: MariadbStopMariadb, -): string { - return JSON.stringify( - MariadbStopMariadb$outboundSchema.parse(mariadbStopMariadb), - ); -} - export function mariadbStopMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -532,43 +399,6 @@ export const MariadbStopMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbStopMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MariadbStopMongo$outboundSchema: z.ZodType< - MariadbStopMongo$Outbound, - z.ZodTypeDef, - MariadbStopMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMongo$ { - /** @deprecated use `MariadbStopMongo$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMongo$inboundSchema; - /** @deprecated use `MariadbStopMongo$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMongo$outboundSchema; - /** @deprecated use `MariadbStopMongo$Outbound` instead. */ - export type Outbound = MariadbStopMongo$Outbound; -} - -export function mariadbStopMongoToJSON( - mariadbStopMongo: MariadbStopMongo, -): string { - return JSON.stringify( - MariadbStopMongo$outboundSchema.parse(mariadbStopMongo), - ); -} - export function mariadbStopMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -588,41 +418,6 @@ export const MariadbStopMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MariadbStopMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MariadbStopMysql$outboundSchema: z.ZodType< - MariadbStopMysql$Outbound, - z.ZodTypeDef, - MariadbStopMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMysql$ { - /** @deprecated use `MariadbStopMysql$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMysql$inboundSchema; - /** @deprecated use `MariadbStopMysql$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMysql$outboundSchema; - /** @deprecated use `MariadbStopMysql$Outbound` instead. */ - export type Outbound = MariadbStopMysql$Outbound; -} - -export function mariadbStopMysqlToJSON( - mariadbStopMysql: MariadbStopMysql, -): string { - return JSON.stringify( - MariadbStopMysql$outboundSchema.parse(mariadbStopMysql), - ); -} - export function mariadbStopMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -642,41 +437,6 @@ export const MariadbStopPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MariadbStopPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MariadbStopPostgres$outboundSchema: z.ZodType< - MariadbStopPostgres$Outbound, - z.ZodTypeDef, - MariadbStopPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopPostgres$ { - /** @deprecated use `MariadbStopPostgres$inboundSchema` instead. */ - export const inboundSchema = MariadbStopPostgres$inboundSchema; - /** @deprecated use `MariadbStopPostgres$outboundSchema` instead. */ - export const outboundSchema = MariadbStopPostgres$outboundSchema; - /** @deprecated use `MariadbStopPostgres$Outbound` instead. */ - export type Outbound = MariadbStopPostgres$Outbound; -} - -export function mariadbStopPostgresToJSON( - mariadbStopPostgres: MariadbStopPostgres, -): string { - return JSON.stringify( - MariadbStopPostgres$outboundSchema.parse(mariadbStopPostgres), - ); -} - export function mariadbStopPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -699,47 +459,6 @@ export const MariadbStopMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MariadbStopPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MariadbStopMetadata$Outbound = { - mariadb?: MariadbStopMariadb$Outbound | undefined; - mongo?: MariadbStopMongo$Outbound | undefined; - mysql?: MariadbStopMysql$Outbound | undefined; - postgres?: MariadbStopPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MariadbStopMetadata$outboundSchema: z.ZodType< - MariadbStopMetadata$Outbound, - z.ZodTypeDef, - MariadbStopMetadata -> = z.object({ - mariadb: z.lazy(() => MariadbStopMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MariadbStopMongo$outboundSchema).optional(), - mysql: z.lazy(() => MariadbStopMysql$outboundSchema).optional(), - postgres: z.lazy(() => MariadbStopPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMetadata$ { - /** @deprecated use `MariadbStopMetadata$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMetadata$inboundSchema; - /** @deprecated use `MariadbStopMetadata$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMetadata$outboundSchema; - /** @deprecated use `MariadbStopMetadata$Outbound` instead. */ - export type Outbound = MariadbStopMetadata$Outbound; -} - -export function mariadbStopMetadataToJSON( - mariadbStopMetadata: MariadbStopMetadata, -): string { - return JSON.stringify( - MariadbStopMetadata$outboundSchema.parse(mariadbStopMetadata), - ); -} - export function mariadbStopMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -760,42 +479,6 @@ export const MariadbStopMetadataUnion$inboundSchema: z.ZodType< MariadbStopMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MariadbStopMetadataUnion$Outbound = - | MariadbStopMetadata$Outbound - | string; - -/** @internal */ -export const MariadbStopMetadataUnion$outboundSchema: z.ZodType< - MariadbStopMetadataUnion$Outbound, - z.ZodTypeDef, - MariadbStopMetadataUnion -> = z.union([ - z.lazy(() => MariadbStopMetadata$outboundSchema), - MariadbStopMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMetadataUnion$ { - /** @deprecated use `MariadbStopMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMetadataUnion$inboundSchema; - /** @deprecated use `MariadbStopMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMetadataUnion$outboundSchema; - /** @deprecated use `MariadbStopMetadataUnion$Outbound` instead. */ - export type Outbound = MariadbStopMetadataUnion$Outbound; -} - -export function mariadbStopMetadataUnionToJSON( - mariadbStopMetadataUnion: MariadbStopMetadataUnion, -): string { - return JSON.stringify( - MariadbStopMetadataUnion$outboundSchema.parse(mariadbStopMetadataUnion), - ); -} - export function mariadbStopMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -837,80 +520,6 @@ export const MariadbStopBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MariadbStopBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MariadbStopMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MariadbStopBackup$outboundSchema: z.ZodType< - MariadbStopBackup$Outbound, - z.ZodTypeDef, - MariadbStopBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MariadbStopBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MariadbStopDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MariadbStopMetadata$outboundSchema), - MariadbStopMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopBackup$ { - /** @deprecated use `MariadbStopBackup$inboundSchema` instead. */ - export const inboundSchema = MariadbStopBackup$inboundSchema; - /** @deprecated use `MariadbStopBackup$outboundSchema` instead. */ - export const outboundSchema = MariadbStopBackup$outboundSchema; - /** @deprecated use `MariadbStopBackup$Outbound` instead. */ - export type Outbound = MariadbStopBackup$Outbound; -} - -export function mariadbStopBackupToJSON( - mariadbStopBackup: MariadbStopBackup, -): string { - return JSON.stringify( - MariadbStopBackup$outboundSchema.parse(mariadbStopBackup), - ); -} - export function mariadbStopBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -935,51 +544,6 @@ export const MariadbStopProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbStopProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MariadbStopProject$outboundSchema: z.ZodType< - MariadbStopProject$Outbound, - z.ZodTypeDef, - MariadbStopProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopProject$ { - /** @deprecated use `MariadbStopProject$inboundSchema` instead. */ - export const inboundSchema = MariadbStopProject$inboundSchema; - /** @deprecated use `MariadbStopProject$outboundSchema` instead. */ - export const outboundSchema = MariadbStopProject$outboundSchema; - /** @deprecated use `MariadbStopProject$Outbound` instead. */ - export type Outbound = MariadbStopProject$Outbound; -} - -export function mariadbStopProjectToJSON( - mariadbStopProject: MariadbStopProject, -): string { - return JSON.stringify( - MariadbStopProject$outboundSchema.parse(mariadbStopProject), - ); -} - export function mariadbStopProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1005,53 +569,6 @@ export const MariadbStopEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MariadbStopEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MariadbStopProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MariadbStopEnvironment$outboundSchema: z.ZodType< - MariadbStopEnvironment$Outbound, - z.ZodTypeDef, - MariadbStopEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MariadbStopProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopEnvironment$ { - /** @deprecated use `MariadbStopEnvironment$inboundSchema` instead. */ - export const inboundSchema = MariadbStopEnvironment$inboundSchema; - /** @deprecated use `MariadbStopEnvironment$outboundSchema` instead. */ - export const outboundSchema = MariadbStopEnvironment$outboundSchema; - /** @deprecated use `MariadbStopEnvironment$Outbound` instead. */ - export type Outbound = MariadbStopEnvironment$Outbound; -} - -export function mariadbStopEnvironmentToJSON( - mariadbStopEnvironment: MariadbStopEnvironment, -): string { - return JSON.stringify( - MariadbStopEnvironment$outboundSchema.parse(mariadbStopEnvironment), - ); -} - export function mariadbStopEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1083,59 +600,6 @@ export const MariadbStopHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MariadbStopHealthCheckSwarm$outboundSchema: z.ZodType< - MariadbStopHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MariadbStopHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopHealthCheckSwarm$ { - /** @deprecated use `MariadbStopHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStopHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbStopHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStopHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbStopHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbStopHealthCheckSwarm$Outbound; -} - -export function mariadbStopHealthCheckSwarmToJSON( - mariadbStopHealthCheckSwarm: MariadbStopHealthCheckSwarm, -): string { - return JSON.stringify( - MariadbStopHealthCheckSwarm$outboundSchema.parse( - mariadbStopHealthCheckSwarm, - ), - ); -} - export function mariadbStopHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1153,37 +617,6 @@ export const MariadbStopGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbStopGlobal$Outbound = {}; - -/** @internal */ -export const MariadbStopGlobal$outboundSchema: z.ZodType< - MariadbStopGlobal$Outbound, - z.ZodTypeDef, - MariadbStopGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopGlobal$ { - /** @deprecated use `MariadbStopGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbStopGlobal$inboundSchema; - /** @deprecated use `MariadbStopGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbStopGlobal$outboundSchema; - /** @deprecated use `MariadbStopGlobal$Outbound` instead. */ - export type Outbound = MariadbStopGlobal$Outbound; -} - -export function mariadbStopGlobalToJSON( - mariadbStopGlobal: MariadbStopGlobal, -): string { - return JSON.stringify( - MariadbStopGlobal$outboundSchema.parse(mariadbStopGlobal), - ); -} - export function mariadbStopGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1195,42 +628,11 @@ export function mariadbStopGlobalFromJSON( } /** @internal */ -export const MariadbStopGlobalJob$inboundSchema: z.ZodType< - MariadbStopGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MariadbStopGlobalJob$Outbound = {}; - -/** @internal */ -export const MariadbStopGlobalJob$outboundSchema: z.ZodType< - MariadbStopGlobalJob$Outbound, - z.ZodTypeDef, - MariadbStopGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopGlobalJob$ { - /** @deprecated use `MariadbStopGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbStopGlobalJob$inboundSchema; - /** @deprecated use `MariadbStopGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbStopGlobalJob$outboundSchema; - /** @deprecated use `MariadbStopGlobalJob$Outbound` instead. */ - export type Outbound = MariadbStopGlobalJob$Outbound; -} - -export function mariadbStopGlobalJobToJSON( - mariadbStopGlobalJob: MariadbStopGlobalJob, -): string { - return JSON.stringify( - MariadbStopGlobalJob$outboundSchema.parse(mariadbStopGlobalJob), - ); -} +export const MariadbStopGlobalJob$inboundSchema: z.ZodType< + MariadbStopGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mariadbStopGlobalJobFromJSON( jsonString: string, @@ -1255,45 +657,6 @@ export const MariadbStopReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MariadbStopReplicated$outboundSchema: z.ZodType< - MariadbStopReplicated$Outbound, - z.ZodTypeDef, - MariadbStopReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopReplicated$ { - /** @deprecated use `MariadbStopReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbStopReplicated$inboundSchema; - /** @deprecated use `MariadbStopReplicated$outboundSchema` instead. */ - export const outboundSchema = MariadbStopReplicated$outboundSchema; - /** @deprecated use `MariadbStopReplicated$Outbound` instead. */ - export type Outbound = MariadbStopReplicated$Outbound; -} - -export function mariadbStopReplicatedToJSON( - mariadbStopReplicated: MariadbStopReplicated, -): string { - return JSON.stringify( - MariadbStopReplicated$outboundSchema.parse(mariadbStopReplicated), - ); -} - export function mariadbStopReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1319,48 +682,6 @@ export const MariadbStopReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MariadbStopReplicatedJob$outboundSchema: z.ZodType< - MariadbStopReplicatedJob$Outbound, - z.ZodTypeDef, - MariadbStopReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopReplicatedJob$ { - /** @deprecated use `MariadbStopReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MariadbStopReplicatedJob$inboundSchema; - /** @deprecated use `MariadbStopReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MariadbStopReplicatedJob$outboundSchema; - /** @deprecated use `MariadbStopReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbStopReplicatedJob$Outbound; -} - -export function mariadbStopReplicatedJobToJSON( - mariadbStopReplicatedJob: MariadbStopReplicatedJob, -): string { - return JSON.stringify( - MariadbStopReplicatedJob$outboundSchema.parse(mariadbStopReplicatedJob), - ); -} - export function mariadbStopReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1391,55 +712,6 @@ export const MariadbStopModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopModeSwarm$Outbound = { - Global?: MariadbStopGlobal$Outbound | undefined; - GlobalJob?: MariadbStopGlobalJob$Outbound | undefined; - Replicated?: MariadbStopReplicated$Outbound | undefined; - ReplicatedJob?: MariadbStopReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MariadbStopModeSwarm$outboundSchema: z.ZodType< - MariadbStopModeSwarm$Outbound, - z.ZodTypeDef, - MariadbStopModeSwarm -> = z.object({ - global: z.lazy(() => MariadbStopGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MariadbStopGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MariadbStopReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MariadbStopReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopModeSwarm$ { - /** @deprecated use `MariadbStopModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStopModeSwarm$inboundSchema; - /** @deprecated use `MariadbStopModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStopModeSwarm$outboundSchema; - /** @deprecated use `MariadbStopModeSwarm$Outbound` instead. */ - export type Outbound = MariadbStopModeSwarm$Outbound; -} - -export function mariadbStopModeSwarmToJSON( - mariadbStopModeSwarm: MariadbStopModeSwarm, -): string { - return JSON.stringify( - MariadbStopModeSwarm$outboundSchema.parse(mariadbStopModeSwarm), - ); -} - export function mariadbStopModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1455,43 +727,11 @@ export const MariadbStopServiceType$inboundSchema: z.ZodNativeEnum< typeof MariadbStopServiceType > = z.nativeEnum(MariadbStopServiceType); -/** @internal */ -export const MariadbStopServiceType$outboundSchema: z.ZodNativeEnum< - typeof MariadbStopServiceType -> = MariadbStopServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopServiceType$ { - /** @deprecated use `MariadbStopServiceType$inboundSchema` instead. */ - export const inboundSchema = MariadbStopServiceType$inboundSchema; - /** @deprecated use `MariadbStopServiceType$outboundSchema` instead. */ - export const outboundSchema = MariadbStopServiceType$outboundSchema; -} - /** @internal */ export const MariadbStopType$inboundSchema: z.ZodNativeEnum< typeof MariadbStopType > = z.nativeEnum(MariadbStopType); -/** @internal */ -export const MariadbStopType$outboundSchema: z.ZodNativeEnum< - typeof MariadbStopType -> = MariadbStopType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopType$ { - /** @deprecated use `MariadbStopType$inboundSchema` instead. */ - export const inboundSchema = MariadbStopType$inboundSchema; - /** @deprecated use `MariadbStopType$outboundSchema` instead. */ - export const outboundSchema = MariadbStopType$outboundSchema; -} - /** @internal */ export const MariadbStopMount$inboundSchema: z.ZodType< MariadbStopMount, @@ -1515,69 +755,6 @@ export const MariadbStopMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MariadbStopMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MariadbStopMount$outboundSchema: z.ZodType< - MariadbStopMount$Outbound, - z.ZodTypeDef, - MariadbStopMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MariadbStopServiceType$outboundSchema, - type: MariadbStopType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMount$ { - /** @deprecated use `MariadbStopMount$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMount$inboundSchema; - /** @deprecated use `MariadbStopMount$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMount$outboundSchema; - /** @deprecated use `MariadbStopMount$Outbound` instead. */ - export type Outbound = MariadbStopMount$Outbound; -} - -export function mariadbStopMountToJSON( - mariadbStopMount: MariadbStopMount, -): string { - return JSON.stringify( - MariadbStopMount$outboundSchema.parse(mariadbStopMount), - ); -} - export function mariadbStopMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1595,37 +772,6 @@ export const MariadbStopDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MariadbStopDriverOpts$Outbound = {}; - -/** @internal */ -export const MariadbStopDriverOpts$outboundSchema: z.ZodType< - MariadbStopDriverOpts$Outbound, - z.ZodTypeDef, - MariadbStopDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopDriverOpts$ { - /** @deprecated use `MariadbStopDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbStopDriverOpts$inboundSchema; - /** @deprecated use `MariadbStopDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MariadbStopDriverOpts$outboundSchema; - /** @deprecated use `MariadbStopDriverOpts$Outbound` instead. */ - export type Outbound = MariadbStopDriverOpts$Outbound; -} - -export function mariadbStopDriverOptsToJSON( - mariadbStopDriverOpts: MariadbStopDriverOpts, -): string { - return JSON.stringify( - MariadbStopDriverOpts$outboundSchema.parse(mariadbStopDriverOpts), - ); -} - export function mariadbStopDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1653,51 +799,6 @@ export const MariadbStopNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MariadbStopDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MariadbStopNetworkSwarm$outboundSchema: z.ZodType< - MariadbStopNetworkSwarm$Outbound, - z.ZodTypeDef, - MariadbStopNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MariadbStopDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopNetworkSwarm$ { - /** @deprecated use `MariadbStopNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStopNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbStopNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStopNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbStopNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbStopNetworkSwarm$Outbound; -} - -export function mariadbStopNetworkSwarmToJSON( - mariadbStopNetworkSwarm: MariadbStopNetworkSwarm, -): string { - return JSON.stringify( - MariadbStopNetworkSwarm$outboundSchema.parse(mariadbStopNetworkSwarm), - ); -} - export function mariadbStopNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1723,48 +824,6 @@ export const MariadbStopPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MariadbStopPlatform$outboundSchema: z.ZodType< - MariadbStopPlatform$Outbound, - z.ZodTypeDef, - MariadbStopPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopPlatform$ { - /** @deprecated use `MariadbStopPlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbStopPlatform$inboundSchema; - /** @deprecated use `MariadbStopPlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbStopPlatform$outboundSchema; - /** @deprecated use `MariadbStopPlatform$Outbound` instead. */ - export type Outbound = MariadbStopPlatform$Outbound; -} - -export function mariadbStopPlatformToJSON( - mariadbStopPlatform: MariadbStopPlatform, -): string { - return JSON.stringify( - MariadbStopPlatform$outboundSchema.parse(mariadbStopPlatform), - ); -} - export function mariadbStopPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1788,45 +847,6 @@ export const MariadbStopSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MariadbStopSpread$outboundSchema: z.ZodType< - MariadbStopSpread$Outbound, - z.ZodTypeDef, - MariadbStopSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopSpread$ { - /** @deprecated use `MariadbStopSpread$inboundSchema` instead. */ - export const inboundSchema = MariadbStopSpread$inboundSchema; - /** @deprecated use `MariadbStopSpread$outboundSchema` instead. */ - export const outboundSchema = MariadbStopSpread$outboundSchema; - /** @deprecated use `MariadbStopSpread$Outbound` instead. */ - export type Outbound = MariadbStopSpread$Outbound; -} - -export function mariadbStopSpreadToJSON( - mariadbStopSpread: MariadbStopSpread, -): string { - return JSON.stringify( - MariadbStopSpread$outboundSchema.parse(mariadbStopSpread), - ); -} - export function mariadbStopSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1850,45 +870,6 @@ export const MariadbStopPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopPreference$Outbound = { - Spread: MariadbStopSpread$Outbound; -}; - -/** @internal */ -export const MariadbStopPreference$outboundSchema: z.ZodType< - MariadbStopPreference$Outbound, - z.ZodTypeDef, - MariadbStopPreference -> = z.object({ - spread: z.lazy(() => MariadbStopSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopPreference$ { - /** @deprecated use `MariadbStopPreference$inboundSchema` instead. */ - export const inboundSchema = MariadbStopPreference$inboundSchema; - /** @deprecated use `MariadbStopPreference$outboundSchema` instead. */ - export const outboundSchema = MariadbStopPreference$outboundSchema; - /** @deprecated use `MariadbStopPreference$Outbound` instead. */ - export type Outbound = MariadbStopPreference$Outbound; -} - -export function mariadbStopPreferenceToJSON( - mariadbStopPreference: MariadbStopPreference, -): string { - return JSON.stringify( - MariadbStopPreference$outboundSchema.parse(mariadbStopPreference), - ); -} - export function mariadbStopPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1920,56 +901,6 @@ export const MariadbStopPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MariadbStopPlacementSwarm$outboundSchema: z.ZodType< - MariadbStopPlacementSwarm$Outbound, - z.ZodTypeDef, - MariadbStopPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MariadbStopPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MariadbStopPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopPlacementSwarm$ { - /** @deprecated use `MariadbStopPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStopPlacementSwarm$inboundSchema; - /** @deprecated use `MariadbStopPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStopPlacementSwarm$outboundSchema; - /** @deprecated use `MariadbStopPlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbStopPlacementSwarm$Outbound; -} - -export function mariadbStopPlacementSwarmToJSON( - mariadbStopPlacementSwarm: MariadbStopPlacementSwarm, -): string { - return JSON.stringify( - MariadbStopPlacementSwarm$outboundSchema.parse(mariadbStopPlacementSwarm), - ); -} - export function mariadbStopPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1989,66 +920,16 @@ export const MariadbStopRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MariadbStopRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MariadbStopRestartPolicySwarm$outboundSchema: z.ZodType< - MariadbStopRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MariadbStopRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopRestartPolicySwarm$ { - /** @deprecated use `MariadbStopRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStopRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbStopRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStopRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbStopRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbStopRestartPolicySwarm$Outbound; -} - -export function mariadbStopRestartPolicySwarmToJSON( - mariadbStopRestartPolicySwarm: MariadbStopRestartPolicySwarm, -): string { - return JSON.stringify( - MariadbStopRestartPolicySwarm$outboundSchema.parse( - mariadbStopRestartPolicySwarm, - ), - ); -} - export function mariadbStopRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2082,62 +963,6 @@ export const MariadbStopRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbStopRollbackConfigSwarm$outboundSchema: z.ZodType< - MariadbStopRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbStopRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopRollbackConfigSwarm$ { - /** @deprecated use `MariadbStopRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStopRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbStopRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStopRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbStopRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbStopRollbackConfigSwarm$Outbound; -} - -export function mariadbStopRollbackConfigSwarmToJSON( - mariadbStopRollbackConfigSwarm: MariadbStopRollbackConfigSwarm, -): string { - return JSON.stringify( - MariadbStopRollbackConfigSwarm$outboundSchema.parse( - mariadbStopRollbackConfigSwarm, - ), - ); -} - export function mariadbStopRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2153,22 +978,6 @@ export const MariadbStopMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MariadbStopMetricsConfigEnum > = z.nativeEnum(MariadbStopMetricsConfigEnum); -/** @internal */ -export const MariadbStopMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MariadbStopMetricsConfigEnum -> = MariadbStopMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMetricsConfigEnum$ { - /** @deprecated use `MariadbStopMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMetricsConfigEnum$inboundSchema; - /** @deprecated use `MariadbStopMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MariadbStopMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbStopMetricsConfigUnion1, @@ -2181,48 +990,6 @@ export const MariadbStopMetricsConfigUnion1$inboundSchema: z.ZodType< MariadbStopMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MariadbStopMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MariadbStopMetricsConfigUnion1$outboundSchema: z.ZodType< - MariadbStopMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MariadbStopMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbStopMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMetricsConfigUnion1$ { - /** @deprecated use `MariadbStopMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MariadbStopMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MariadbStopMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MariadbStopMetricsConfigUnion1$Outbound; -} - -export function mariadbStopMetricsConfigUnion1ToJSON( - mariadbStopMetricsConfigUnion1: MariadbStopMetricsConfigUnion1, -): string { - return JSON.stringify( - MariadbStopMetricsConfigUnion1$outboundSchema.parse( - mariadbStopMetricsConfigUnion1, - ), - ); -} - export function mariadbStopMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2249,54 +1016,6 @@ export const MariadbStopMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MariadbStopMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MariadbStopMetricsConfigUnion2$outboundSchema: z.ZodType< - MariadbStopMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MariadbStopMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopMetricsConfigUnion2$ { - /** @deprecated use `MariadbStopMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MariadbStopMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MariadbStopMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MariadbStopMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MariadbStopMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MariadbStopMetricsConfigUnion2$Outbound; -} - -export function mariadbStopMetricsConfigUnion2ToJSON( - mariadbStopMetricsConfigUnion2: MariadbStopMetricsConfigUnion2, -): string { - return JSON.stringify( - MariadbStopMetricsConfigUnion2$outboundSchema.parse( - mariadbStopMetricsConfigUnion2, - ), - ); -} - export function mariadbStopMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2312,22 +1031,6 @@ export const MariadbStopServerStatus$inboundSchema: z.ZodNativeEnum< typeof MariadbStopServerStatus > = z.nativeEnum(MariadbStopServerStatus); -/** @internal */ -export const MariadbStopServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MariadbStopServerStatus -> = MariadbStopServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopServerStatus$ { - /** @deprecated use `MariadbStopServerStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbStopServerStatus$inboundSchema; - /** @deprecated use `MariadbStopServerStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbStopServerStatus$outboundSchema; -} - /** @internal */ export const MariadbStopServer$inboundSchema: z.ZodType< MariadbStopServer, @@ -2359,78 +1062,6 @@ export const MariadbStopServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MariadbStopServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MariadbStopServer$outboundSchema: z.ZodType< - MariadbStopServer$Outbound, - z.ZodTypeDef, - MariadbStopServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MariadbStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MariadbStopServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopServer$ { - /** @deprecated use `MariadbStopServer$inboundSchema` instead. */ - export const inboundSchema = MariadbStopServer$inboundSchema; - /** @deprecated use `MariadbStopServer$outboundSchema` instead. */ - export const outboundSchema = MariadbStopServer$outboundSchema; - /** @deprecated use `MariadbStopServer$Outbound` instead. */ - export type Outbound = MariadbStopServer$Outbound; -} - -export function mariadbStopServerToJSON( - mariadbStopServer: MariadbStopServer, -): string { - return JSON.stringify( - MariadbStopServer$outboundSchema.parse(mariadbStopServer), - ); -} - export function mariadbStopServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2464,62 +1095,6 @@ export const MariadbStopUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MariadbStopUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MariadbStopUpdateConfigSwarm$outboundSchema: z.ZodType< - MariadbStopUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MariadbStopUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopUpdateConfigSwarm$ { - /** @deprecated use `MariadbStopUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbStopUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbStopUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbStopUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbStopUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbStopUpdateConfigSwarm$Outbound; -} - -export function mariadbStopUpdateConfigSwarmToJSON( - mariadbStopUpdateConfigSwarm: MariadbStopUpdateConfigSwarm, -): string { - return JSON.stringify( - MariadbStopUpdateConfigSwarm$outboundSchema.parse( - mariadbStopUpdateConfigSwarm, - ), - ); -} - export function mariadbStopUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2583,117 +1158,6 @@ export const MariadbStopResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MariadbStopResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MariadbStopEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MariadbStopHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - mariadbId: string; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MariadbStopModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MariadbStopPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MariadbStopRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MariadbStopRollbackConfigSwarm$Outbound | null; - server: MariadbStopServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MariadbStopUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MariadbStopResponseBody$outboundSchema: z.ZodType< - MariadbStopResponseBody$Outbound, - z.ZodTypeDef, - MariadbStopResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MariadbStopApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MariadbStopBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MariadbStopEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbStopHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MariadbStopModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MariadbStopMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbStopNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MariadbStopPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbStopRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbStopRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MariadbStopServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbStopUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopResponseBody$ { - /** @deprecated use `MariadbStopResponseBody$inboundSchema` instead. */ - export const inboundSchema = MariadbStopResponseBody$inboundSchema; - /** @deprecated use `MariadbStopResponseBody$outboundSchema` instead. */ - export const outboundSchema = MariadbStopResponseBody$outboundSchema; - /** @deprecated use `MariadbStopResponseBody$Outbound` instead. */ - export type Outbound = MariadbStopResponseBody$Outbound; -} - -export function mariadbStopResponseBodyToJSON( - mariadbStopResponseBody: MariadbStopResponseBody, -): string { - return JSON.stringify( - MariadbStopResponseBody$outboundSchema.parse(mariadbStopResponseBody), - ); -} - export function mariadbStopResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2714,42 +1178,6 @@ export const MariadbStopResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MariadbStopResponse$Outbound = - | MariadbStopResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MariadbStopResponse$outboundSchema: z.ZodType< - MariadbStopResponse$Outbound, - z.ZodTypeDef, - MariadbStopResponse -> = z.union([ - z.lazy(() => MariadbStopResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbStopResponse$ { - /** @deprecated use `MariadbStopResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbStopResponse$inboundSchema; - /** @deprecated use `MariadbStopResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbStopResponse$outboundSchema; - /** @deprecated use `MariadbStopResponse$Outbound` instead. */ - export type Outbound = MariadbStopResponse$Outbound; -} - -export function mariadbStopResponseToJSON( - mariadbStopResponse: MariadbStopResponse, -): string { - return JSON.stringify( - MariadbStopResponse$outboundSchema.parse(mariadbStopResponse), - ); -} - export function mariadbStopResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mariadbupdate.ts b/src/models/operations/mariadbupdate.ts index 4f7e95d..b87a540 100644 --- a/src/models/operations/mariadbupdate.ts +++ b/src/models/operations/mariadbupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -134,47 +134,10 @@ export type MariadbUpdateRequest = { export type MariadbUpdateResponse = models.ErrorT | boolean; -/** @internal */ -export const MariadbUpdateApplicationStatus$inboundSchema: z.ZodNativeEnum< - typeof MariadbUpdateApplicationStatus -> = z.nativeEnum(MariadbUpdateApplicationStatus); - /** @internal */ export const MariadbUpdateApplicationStatus$outboundSchema: z.ZodNativeEnum< typeof MariadbUpdateApplicationStatus -> = MariadbUpdateApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateApplicationStatus$ { - /** @deprecated use `MariadbUpdateApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateApplicationStatus$inboundSchema; - /** @deprecated use `MariadbUpdateApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateApplicationStatus$outboundSchema; -} - -/** @internal */ -export const MariadbUpdateHealthCheckSwarm$inboundSchema: z.ZodType< - MariadbUpdateHealthCheckSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Interval: z.number().optional(), - Retries: z.number().optional(), - StartPeriod: z.number().optional(), - Test: z.array(z.string()).optional(), - Timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Interval": "interval", - "Retries": "retries", - "StartPeriod": "startPeriod", - "Test": "test", - "Timeout": "timeout", - }); -}); +> = z.nativeEnum(MariadbUpdateApplicationStatus); /** @internal */ export type MariadbUpdateHealthCheckSwarm$Outbound = { @@ -206,19 +169,6 @@ export const MariadbUpdateHealthCheckSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateHealthCheckSwarm$ { - /** @deprecated use `MariadbUpdateHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateHealthCheckSwarm$inboundSchema; - /** @deprecated use `MariadbUpdateHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateHealthCheckSwarm$outboundSchema; - /** @deprecated use `MariadbUpdateHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MariadbUpdateHealthCheckSwarm$Outbound; -} - export function mariadbUpdateHealthCheckSwarmToJSON( mariadbUpdateHealthCheckSwarm: MariadbUpdateHealthCheckSwarm, ): string { @@ -229,23 +179,6 @@ export function mariadbUpdateHealthCheckSwarmToJSON( ); } -export function mariadbUpdateHealthCheckSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateHealthCheckSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateHealthCheckSwarm' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateGlobal$inboundSchema: z.ZodType< - MariadbUpdateGlobal, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MariadbUpdateGlobal$Outbound = {}; @@ -256,19 +189,6 @@ export const MariadbUpdateGlobal$outboundSchema: z.ZodType< MariadbUpdateGlobal > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateGlobal$ { - /** @deprecated use `MariadbUpdateGlobal$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateGlobal$inboundSchema; - /** @deprecated use `MariadbUpdateGlobal$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateGlobal$outboundSchema; - /** @deprecated use `MariadbUpdateGlobal$Outbound` instead. */ - export type Outbound = MariadbUpdateGlobal$Outbound; -} - export function mariadbUpdateGlobalToJSON( mariadbUpdateGlobal: MariadbUpdateGlobal, ): string { @@ -277,23 +197,6 @@ export function mariadbUpdateGlobalToJSON( ); } -export function mariadbUpdateGlobalFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateGlobal$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateGlobal' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateGlobalJob$inboundSchema: z.ZodType< - MariadbUpdateGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MariadbUpdateGlobalJob$Outbound = {}; @@ -304,19 +207,6 @@ export const MariadbUpdateGlobalJob$outboundSchema: z.ZodType< MariadbUpdateGlobalJob > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateGlobalJob$ { - /** @deprecated use `MariadbUpdateGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateGlobalJob$inboundSchema; - /** @deprecated use `MariadbUpdateGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateGlobalJob$outboundSchema; - /** @deprecated use `MariadbUpdateGlobalJob$Outbound` instead. */ - export type Outbound = MariadbUpdateGlobalJob$Outbound; -} - export function mariadbUpdateGlobalJobToJSON( mariadbUpdateGlobalJob: MariadbUpdateGlobalJob, ): string { @@ -325,29 +215,6 @@ export function mariadbUpdateGlobalJobToJSON( ); } -export function mariadbUpdateGlobalJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateGlobalJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateGlobalJob' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateReplicated$inboundSchema: z.ZodType< - MariadbUpdateReplicated, - z.ZodTypeDef, - unknown -> = z.object({ - Replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Replicas": "replicas", - }); -}); - /** @internal */ export type MariadbUpdateReplicated$Outbound = { Replicas?: number | undefined; @@ -366,19 +233,6 @@ export const MariadbUpdateReplicated$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateReplicated$ { - /** @deprecated use `MariadbUpdateReplicated$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateReplicated$inboundSchema; - /** @deprecated use `MariadbUpdateReplicated$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateReplicated$outboundSchema; - /** @deprecated use `MariadbUpdateReplicated$Outbound` instead. */ - export type Outbound = MariadbUpdateReplicated$Outbound; -} - export function mariadbUpdateReplicatedToJSON( mariadbUpdateReplicated: MariadbUpdateReplicated, ): string { @@ -387,31 +241,6 @@ export function mariadbUpdateReplicatedToJSON( ); } -export function mariadbUpdateReplicatedFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateReplicated$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateReplicated' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateReplicatedJob$inboundSchema: z.ZodType< - MariadbUpdateReplicatedJob, - z.ZodTypeDef, - unknown -> = z.object({ - MaxConcurrent: z.number().optional(), - TotalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "MaxConcurrent": "maxConcurrent", - "TotalCompletions": "totalCompletions", - }); -}); - /** @internal */ export type MariadbUpdateReplicatedJob$Outbound = { MaxConcurrent?: number | undefined; @@ -433,19 +262,6 @@ export const MariadbUpdateReplicatedJob$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateReplicatedJob$ { - /** @deprecated use `MariadbUpdateReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateReplicatedJob$inboundSchema; - /** @deprecated use `MariadbUpdateReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateReplicatedJob$outboundSchema; - /** @deprecated use `MariadbUpdateReplicatedJob$Outbound` instead. */ - export type Outbound = MariadbUpdateReplicatedJob$Outbound; -} - export function mariadbUpdateReplicatedJobToJSON( mariadbUpdateReplicatedJob: MariadbUpdateReplicatedJob, ): string { @@ -454,36 +270,6 @@ export function mariadbUpdateReplicatedJobToJSON( ); } -export function mariadbUpdateReplicatedJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateReplicatedJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateReplicatedJob' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateModeSwarm$inboundSchema: z.ZodType< - MariadbUpdateModeSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Global: z.lazy(() => MariadbUpdateGlobal$inboundSchema).optional(), - GlobalJob: z.lazy(() => MariadbUpdateGlobalJob$inboundSchema).optional(), - Replicated: z.lazy(() => MariadbUpdateReplicated$inboundSchema).optional(), - ReplicatedJob: z.lazy(() => MariadbUpdateReplicatedJob$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "Global": "global", - "GlobalJob": "globalJob", - "Replicated": "replicated", - "ReplicatedJob": "replicatedJob", - }); -}); - /** @internal */ export type MariadbUpdateModeSwarm$Outbound = { Global?: MariadbUpdateGlobal$Outbound | undefined; @@ -512,19 +298,6 @@ export const MariadbUpdateModeSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateModeSwarm$ { - /** @deprecated use `MariadbUpdateModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateModeSwarm$inboundSchema; - /** @deprecated use `MariadbUpdateModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateModeSwarm$outboundSchema; - /** @deprecated use `MariadbUpdateModeSwarm$Outbound` instead. */ - export type Outbound = MariadbUpdateModeSwarm$Outbound; -} - export function mariadbUpdateModeSwarmToJSON( mariadbUpdateModeSwarm: MariadbUpdateModeSwarm, ): string { @@ -533,23 +306,6 @@ export function mariadbUpdateModeSwarmToJSON( ); } -export function mariadbUpdateModeSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateModeSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateModeSwarm' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateDriverOpts$inboundSchema: z.ZodType< - MariadbUpdateDriverOpts, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MariadbUpdateDriverOpts$Outbound = {}; @@ -560,19 +316,6 @@ export const MariadbUpdateDriverOpts$outboundSchema: z.ZodType< MariadbUpdateDriverOpts > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateDriverOpts$ { - /** @deprecated use `MariadbUpdateDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateDriverOpts$inboundSchema; - /** @deprecated use `MariadbUpdateDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateDriverOpts$outboundSchema; - /** @deprecated use `MariadbUpdateDriverOpts$Outbound` instead. */ - export type Outbound = MariadbUpdateDriverOpts$Outbound; -} - export function mariadbUpdateDriverOptsToJSON( mariadbUpdateDriverOpts: MariadbUpdateDriverOpts, ): string { @@ -581,33 +324,6 @@ export function mariadbUpdateDriverOptsToJSON( ); } -export function mariadbUpdateDriverOptsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateDriverOpts$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateDriverOpts' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateNetworkSwarm$inboundSchema: z.ZodType< - MariadbUpdateNetworkSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Aliases: z.array(z.string()).optional(), - DriverOpts: z.lazy(() => MariadbUpdateDriverOpts$inboundSchema).optional(), - Target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Aliases": "aliases", - "DriverOpts": "driverOpts", - "Target": "target", - }); -}); - /** @internal */ export type MariadbUpdateNetworkSwarm$Outbound = { Aliases?: Array | undefined; @@ -632,19 +348,6 @@ export const MariadbUpdateNetworkSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateNetworkSwarm$ { - /** @deprecated use `MariadbUpdateNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateNetworkSwarm$inboundSchema; - /** @deprecated use `MariadbUpdateNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateNetworkSwarm$outboundSchema; - /** @deprecated use `MariadbUpdateNetworkSwarm$Outbound` instead. */ - export type Outbound = MariadbUpdateNetworkSwarm$Outbound; -} - export function mariadbUpdateNetworkSwarmToJSON( mariadbUpdateNetworkSwarm: MariadbUpdateNetworkSwarm, ): string { @@ -653,31 +356,6 @@ export function mariadbUpdateNetworkSwarmToJSON( ); } -export function mariadbUpdateNetworkSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateNetworkSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateNetworkSwarm' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdatePlatform$inboundSchema: z.ZodType< - MariadbUpdatePlatform, - z.ZodTypeDef, - unknown -> = z.object({ - Architecture: z.string(), - OS: z.string(), -}).transform((v) => { - return remap$(v, { - "Architecture": "architecture", - "OS": "os", - }); -}); - /** @internal */ export type MariadbUpdatePlatform$Outbound = { Architecture: string; @@ -699,19 +377,6 @@ export const MariadbUpdatePlatform$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdatePlatform$ { - /** @deprecated use `MariadbUpdatePlatform$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdatePlatform$inboundSchema; - /** @deprecated use `MariadbUpdatePlatform$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdatePlatform$outboundSchema; - /** @deprecated use `MariadbUpdatePlatform$Outbound` instead. */ - export type Outbound = MariadbUpdatePlatform$Outbound; -} - export function mariadbUpdatePlatformToJSON( mariadbUpdatePlatform: MariadbUpdatePlatform, ): string { @@ -720,29 +385,6 @@ export function mariadbUpdatePlatformToJSON( ); } -export function mariadbUpdatePlatformFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdatePlatform$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdatePlatform' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateSpread$inboundSchema: z.ZodType< - MariadbUpdateSpread, - z.ZodTypeDef, - unknown -> = z.object({ - SpreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - "SpreadDescriptor": "spreadDescriptor", - }); -}); - /** @internal */ export type MariadbUpdateSpread$Outbound = { SpreadDescriptor: string; @@ -761,19 +403,6 @@ export const MariadbUpdateSpread$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateSpread$ { - /** @deprecated use `MariadbUpdateSpread$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateSpread$inboundSchema; - /** @deprecated use `MariadbUpdateSpread$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateSpread$outboundSchema; - /** @deprecated use `MariadbUpdateSpread$Outbound` instead. */ - export type Outbound = MariadbUpdateSpread$Outbound; -} - export function mariadbUpdateSpreadToJSON( mariadbUpdateSpread: MariadbUpdateSpread, ): string { @@ -782,29 +411,6 @@ export function mariadbUpdateSpreadToJSON( ); } -export function mariadbUpdateSpreadFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateSpread$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateSpread' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdatePreference$inboundSchema: z.ZodType< - MariadbUpdatePreference, - z.ZodTypeDef, - unknown -> = z.object({ - Spread: z.lazy(() => MariadbUpdateSpread$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Spread": "spread", - }); -}); - /** @internal */ export type MariadbUpdatePreference$Outbound = { Spread: MariadbUpdateSpread$Outbound; @@ -823,19 +429,6 @@ export const MariadbUpdatePreference$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdatePreference$ { - /** @deprecated use `MariadbUpdatePreference$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdatePreference$inboundSchema; - /** @deprecated use `MariadbUpdatePreference$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdatePreference$outboundSchema; - /** @deprecated use `MariadbUpdatePreference$Outbound` instead. */ - export type Outbound = MariadbUpdatePreference$Outbound; -} - export function mariadbUpdatePreferenceToJSON( mariadbUpdatePreference: MariadbUpdatePreference, ): string { @@ -844,37 +437,6 @@ export function mariadbUpdatePreferenceToJSON( ); } -export function mariadbUpdatePreferenceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdatePreference$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdatePreference' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdatePlacementSwarm$inboundSchema: z.ZodType< - MariadbUpdatePlacementSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Constraints: z.array(z.string()).optional(), - MaxReplicas: z.number().optional(), - Platforms: z.array(z.lazy(() => MariadbUpdatePlatform$inboundSchema)) - .optional(), - Preferences: z.array(z.lazy(() => MariadbUpdatePreference$inboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - "Constraints": "constraints", - "MaxReplicas": "maxReplicas", - "Platforms": "platforms", - "Preferences": "preferences", - }); -}); - /** @internal */ export type MariadbUpdatePlacementSwarm$Outbound = { Constraints?: Array | undefined; @@ -904,19 +466,6 @@ export const MariadbUpdatePlacementSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdatePlacementSwarm$ { - /** @deprecated use `MariadbUpdatePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdatePlacementSwarm$inboundSchema; - /** @deprecated use `MariadbUpdatePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdatePlacementSwarm$outboundSchema; - /** @deprecated use `MariadbUpdatePlacementSwarm$Outbound` instead. */ - export type Outbound = MariadbUpdatePlacementSwarm$Outbound; -} - export function mariadbUpdatePlacementSwarmToJSON( mariadbUpdatePlacementSwarm: MariadbUpdatePlacementSwarm, ): string { @@ -927,35 +476,6 @@ export function mariadbUpdatePlacementSwarmToJSON( ); } -export function mariadbUpdatePlacementSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdatePlacementSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdatePlacementSwarm' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateRestartPolicySwarm$inboundSchema: z.ZodType< - MariadbUpdateRestartPolicySwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - /** @internal */ export type MariadbUpdateRestartPolicySwarm$Outbound = { Condition?: string | undefined; @@ -983,19 +503,6 @@ export const MariadbUpdateRestartPolicySwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateRestartPolicySwarm$ { - /** @deprecated use `MariadbUpdateRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateRestartPolicySwarm$inboundSchema; - /** @deprecated use `MariadbUpdateRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateRestartPolicySwarm$outboundSchema; - /** @deprecated use `MariadbUpdateRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MariadbUpdateRestartPolicySwarm$Outbound; -} - export function mariadbUpdateRestartPolicySwarmToJSON( mariadbUpdateRestartPolicySwarm: MariadbUpdateRestartPolicySwarm, ): string { @@ -1006,39 +513,6 @@ export function mariadbUpdateRestartPolicySwarmToJSON( ); } -export function mariadbUpdateRestartPolicySwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateRestartPolicySwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateRestartPolicySwarm' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateRollbackConfigSwarm$inboundSchema: z.ZodType< - MariadbUpdateRollbackConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type MariadbUpdateRollbackConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1072,19 +546,6 @@ export const MariadbUpdateRollbackConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateRollbackConfigSwarm$ { - /** @deprecated use `MariadbUpdateRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MariadbUpdateRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MariadbUpdateRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbUpdateRollbackConfigSwarm$Outbound; -} - export function mariadbUpdateRollbackConfigSwarmToJSON( mariadbUpdateRollbackConfigSwarm: MariadbUpdateRollbackConfigSwarm, ): string { @@ -1095,39 +556,6 @@ export function mariadbUpdateRollbackConfigSwarmToJSON( ); } -export function mariadbUpdateRollbackConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateRollbackConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateRollbackConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateUpdateConfigSwarm$inboundSchema: z.ZodType< - MariadbUpdateUpdateConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type MariadbUpdateUpdateConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1161,19 +589,6 @@ export const MariadbUpdateUpdateConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateUpdateConfigSwarm$ { - /** @deprecated use `MariadbUpdateUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MariadbUpdateUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MariadbUpdateUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MariadbUpdateUpdateConfigSwarm$Outbound; -} - export function mariadbUpdateUpdateConfigSwarmToJSON( mariadbUpdateUpdateConfigSwarm: MariadbUpdateUpdateConfigSwarm, ): string { @@ -1184,65 +599,6 @@ export function mariadbUpdateUpdateConfigSwarmToJSON( ); } -export function mariadbUpdateUpdateConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateUpdateConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateUpdateConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const MariadbUpdateRequest$inboundSchema: z.ZodType< - MariadbUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationStatus: MariadbUpdateApplicationStatus$inboundSchema.optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - databaseName: z.string().optional(), - databasePassword: z.string().optional(), - databaseRootPassword: z.string().optional(), - databaseUser: z.string().optional(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("mariadb:6"), - env: z.nullable(z.string()).optional(), - environmentId: z.string().optional(), - externalPort: z.nullable(z.number()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => MariadbUpdateHealthCheckSwarm$inboundSchema), - ).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - mariadbId: z.string(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => MariadbUpdateModeSwarm$inboundSchema)) - .optional(), - name: z.string().optional(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MariadbUpdateNetworkSwarm$inboundSchema)), - ).optional(), - placementSwarm: z.nullable( - z.lazy(() => MariadbUpdatePlacementSwarm$inboundSchema), - ).optional(), - replicas: z.number().optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => MariadbUpdateRestartPolicySwarm$inboundSchema), - ).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MariadbUpdateRollbackConfigSwarm$inboundSchema), - ).optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => MariadbUpdateUpdateConfigSwarm$inboundSchema), - ).optional(), -}); - /** @internal */ export type MariadbUpdateRequest$Outbound = { appName?: string | undefined; @@ -1333,19 +689,6 @@ export const MariadbUpdateRequest$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateRequest$ { - /** @deprecated use `MariadbUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateRequest$inboundSchema; - /** @deprecated use `MariadbUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateRequest$outboundSchema; - /** @deprecated use `MariadbUpdateRequest$Outbound` instead. */ - export type Outbound = MariadbUpdateRequest$Outbound; -} - export function mariadbUpdateRequestToJSON( mariadbUpdateRequest: MariadbUpdateRequest, ): string { @@ -1354,16 +697,6 @@ export function mariadbUpdateRequestToJSON( ); } -export function mariadbUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MariadbUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MariadbUpdateRequest' from JSON`, - ); -} - /** @internal */ export const MariadbUpdateResponse$inboundSchema: z.ZodType< MariadbUpdateResponse, @@ -1371,37 +704,6 @@ export const MariadbUpdateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MariadbUpdateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MariadbUpdateResponse$outboundSchema: z.ZodType< - MariadbUpdateResponse$Outbound, - z.ZodTypeDef, - MariadbUpdateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MariadbUpdateResponse$ { - /** @deprecated use `MariadbUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = MariadbUpdateResponse$inboundSchema; - /** @deprecated use `MariadbUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = MariadbUpdateResponse$outboundSchema; - /** @deprecated use `MariadbUpdateResponse$Outbound` instead. */ - export type Outbound = MariadbUpdateResponse$Outbound; -} - -export function mariadbUpdateResponseToJSON( - mariadbUpdateResponse: MariadbUpdateResponse, -): string { - return JSON.stringify( - MariadbUpdateResponse$outboundSchema.parse(mariadbUpdateResponse), - ); -} - export function mariadbUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongochangestatus.ts b/src/models/operations/mongochangestatus.ts index 2aaa795..687c18a 100644 --- a/src/models/operations/mongochangestatus.ts +++ b/src/models/operations/mongochangestatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -348,38 +348,10 @@ export type MongoChangeStatusResponse = | models.ErrorT; /** @internal */ -export const MongoChangeStatusApplicationStatusRequest$inboundSchema: +export const MongoChangeStatusApplicationStatusRequest$outboundSchema: z.ZodNativeEnum = z .nativeEnum(MongoChangeStatusApplicationStatusRequest); -/** @internal */ -export const MongoChangeStatusApplicationStatusRequest$outboundSchema: - z.ZodNativeEnum = - MongoChangeStatusApplicationStatusRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusApplicationStatusRequest$ { - /** @deprecated use `MongoChangeStatusApplicationStatusRequest$inboundSchema` instead. */ - export const inboundSchema = - MongoChangeStatusApplicationStatusRequest$inboundSchema; - /** @deprecated use `MongoChangeStatusApplicationStatusRequest$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusApplicationStatusRequest$outboundSchema; -} - -/** @internal */ -export const MongoChangeStatusRequest$inboundSchema: z.ZodType< - MongoChangeStatusRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationStatus: MongoChangeStatusApplicationStatusRequest$inboundSchema, - mongoId: z.string(), -}); - /** @internal */ export type MongoChangeStatusRequest$Outbound = { applicationStatus: string; @@ -396,19 +368,6 @@ export const MongoChangeStatusRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusRequest$ { - /** @deprecated use `MongoChangeStatusRequest$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusRequest$inboundSchema; - /** @deprecated use `MongoChangeStatusRequest$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusRequest$outboundSchema; - /** @deprecated use `MongoChangeStatusRequest$Outbound` instead. */ - export type Outbound = MongoChangeStatusRequest$Outbound; -} - export function mongoChangeStatusRequestToJSON( mongoChangeStatusRequest: MongoChangeStatusRequest, ): string { @@ -417,102 +376,26 @@ export function mongoChangeStatusRequestToJSON( ); } -export function mongoChangeStatusRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoChangeStatusRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoChangeStatusRequest' from JSON`, - ); -} - /** @internal */ export const MongoChangeStatusApplicationStatusResponse$inboundSchema: z.ZodNativeEnum = z .nativeEnum(MongoChangeStatusApplicationStatusResponse); -/** @internal */ -export const MongoChangeStatusApplicationStatusResponse$outboundSchema: - z.ZodNativeEnum = - MongoChangeStatusApplicationStatusResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusApplicationStatusResponse$ { - /** @deprecated use `MongoChangeStatusApplicationStatusResponse$inboundSchema` instead. */ - export const inboundSchema = - MongoChangeStatusApplicationStatusResponse$inboundSchema; - /** @deprecated use `MongoChangeStatusApplicationStatusResponse$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusApplicationStatusResponse$outboundSchema; -} - /** @internal */ export const MongoChangeStatusBackupType$inboundSchema: z.ZodNativeEnum< typeof MongoChangeStatusBackupType > = z.nativeEnum(MongoChangeStatusBackupType); -/** @internal */ -export const MongoChangeStatusBackupType$outboundSchema: z.ZodNativeEnum< - typeof MongoChangeStatusBackupType -> = MongoChangeStatusBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusBackupType$ { - /** @deprecated use `MongoChangeStatusBackupType$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusBackupType$inboundSchema; - /** @deprecated use `MongoChangeStatusBackupType$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusBackupType$outboundSchema; -} - /** @internal */ export const MongoChangeStatusDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MongoChangeStatusDatabaseType > = z.nativeEnum(MongoChangeStatusDatabaseType); -/** @internal */ -export const MongoChangeStatusDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MongoChangeStatusDatabaseType -> = MongoChangeStatusDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusDatabaseType$ { - /** @deprecated use `MongoChangeStatusDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusDatabaseType$inboundSchema; - /** @deprecated use `MongoChangeStatusDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusDatabaseType$outboundSchema; -} - /** @internal */ export const MongoChangeStatusMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MongoChangeStatusMetadataEnum > = z.nativeEnum(MongoChangeStatusMetadataEnum); -/** @internal */ -export const MongoChangeStatusMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoChangeStatusMetadataEnum -> = MongoChangeStatusMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMetadataEnum$ { - /** @deprecated use `MongoChangeStatusMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusMetadataEnum$inboundSchema; - /** @deprecated use `MongoChangeStatusMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusMetadataEnum$outboundSchema; -} - /** @internal */ export const MongoChangeStatusMariadb$inboundSchema: z.ZodType< MongoChangeStatusMariadb, @@ -523,43 +406,6 @@ export const MongoChangeStatusMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoChangeStatusMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoChangeStatusMariadb$outboundSchema: z.ZodType< - MongoChangeStatusMariadb$Outbound, - z.ZodTypeDef, - MongoChangeStatusMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMariadb$ { - /** @deprecated use `MongoChangeStatusMariadb$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusMariadb$inboundSchema; - /** @deprecated use `MongoChangeStatusMariadb$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusMariadb$outboundSchema; - /** @deprecated use `MongoChangeStatusMariadb$Outbound` instead. */ - export type Outbound = MongoChangeStatusMariadb$Outbound; -} - -export function mongoChangeStatusMariadbToJSON( - mongoChangeStatusMariadb: MongoChangeStatusMariadb, -): string { - return JSON.stringify( - MongoChangeStatusMariadb$outboundSchema.parse(mongoChangeStatusMariadb), - ); -} - export function mongoChangeStatusMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -580,43 +426,6 @@ export const MongoChangeStatusMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoChangeStatusMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoChangeStatusMongo$outboundSchema: z.ZodType< - MongoChangeStatusMongo$Outbound, - z.ZodTypeDef, - MongoChangeStatusMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMongo$ { - /** @deprecated use `MongoChangeStatusMongo$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusMongo$inboundSchema; - /** @deprecated use `MongoChangeStatusMongo$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusMongo$outboundSchema; - /** @deprecated use `MongoChangeStatusMongo$Outbound` instead. */ - export type Outbound = MongoChangeStatusMongo$Outbound; -} - -export function mongoChangeStatusMongoToJSON( - mongoChangeStatusMongo: MongoChangeStatusMongo, -): string { - return JSON.stringify( - MongoChangeStatusMongo$outboundSchema.parse(mongoChangeStatusMongo), - ); -} - export function mongoChangeStatusMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -636,41 +445,6 @@ export const MongoChangeStatusMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MongoChangeStatusMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MongoChangeStatusMysql$outboundSchema: z.ZodType< - MongoChangeStatusMysql$Outbound, - z.ZodTypeDef, - MongoChangeStatusMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMysql$ { - /** @deprecated use `MongoChangeStatusMysql$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusMysql$inboundSchema; - /** @deprecated use `MongoChangeStatusMysql$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusMysql$outboundSchema; - /** @deprecated use `MongoChangeStatusMysql$Outbound` instead. */ - export type Outbound = MongoChangeStatusMysql$Outbound; -} - -export function mongoChangeStatusMysqlToJSON( - mongoChangeStatusMysql: MongoChangeStatusMysql, -): string { - return JSON.stringify( - MongoChangeStatusMysql$outboundSchema.parse(mongoChangeStatusMysql), - ); -} - export function mongoChangeStatusMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -690,41 +464,6 @@ export const MongoChangeStatusPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoChangeStatusPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MongoChangeStatusPostgres$outboundSchema: z.ZodType< - MongoChangeStatusPostgres$Outbound, - z.ZodTypeDef, - MongoChangeStatusPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusPostgres$ { - /** @deprecated use `MongoChangeStatusPostgres$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusPostgres$inboundSchema; - /** @deprecated use `MongoChangeStatusPostgres$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusPostgres$outboundSchema; - /** @deprecated use `MongoChangeStatusPostgres$Outbound` instead. */ - export type Outbound = MongoChangeStatusPostgres$Outbound; -} - -export function mongoChangeStatusPostgresToJSON( - mongoChangeStatusPostgres: MongoChangeStatusPostgres, -): string { - return JSON.stringify( - MongoChangeStatusPostgres$outboundSchema.parse(mongoChangeStatusPostgres), - ); -} - export function mongoChangeStatusPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -747,47 +486,6 @@ export const MongoChangeStatusMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MongoChangeStatusPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MongoChangeStatusMetadata$Outbound = { - mariadb?: MongoChangeStatusMariadb$Outbound | undefined; - mongo?: MongoChangeStatusMongo$Outbound | undefined; - mysql?: MongoChangeStatusMysql$Outbound | undefined; - postgres?: MongoChangeStatusPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MongoChangeStatusMetadata$outboundSchema: z.ZodType< - MongoChangeStatusMetadata$Outbound, - z.ZodTypeDef, - MongoChangeStatusMetadata -> = z.object({ - mariadb: z.lazy(() => MongoChangeStatusMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MongoChangeStatusMongo$outboundSchema).optional(), - mysql: z.lazy(() => MongoChangeStatusMysql$outboundSchema).optional(), - postgres: z.lazy(() => MongoChangeStatusPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMetadata$ { - /** @deprecated use `MongoChangeStatusMetadata$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusMetadata$inboundSchema; - /** @deprecated use `MongoChangeStatusMetadata$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusMetadata$outboundSchema; - /** @deprecated use `MongoChangeStatusMetadata$Outbound` instead. */ - export type Outbound = MongoChangeStatusMetadata$Outbound; -} - -export function mongoChangeStatusMetadataToJSON( - mongoChangeStatusMetadata: MongoChangeStatusMetadata, -): string { - return JSON.stringify( - MongoChangeStatusMetadata$outboundSchema.parse(mongoChangeStatusMetadata), - ); -} - export function mongoChangeStatusMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -808,44 +506,6 @@ export const MongoChangeStatusMetadataUnion$inboundSchema: z.ZodType< MongoChangeStatusMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MongoChangeStatusMetadataUnion$Outbound = - | MongoChangeStatusMetadata$Outbound - | string; - -/** @internal */ -export const MongoChangeStatusMetadataUnion$outboundSchema: z.ZodType< - MongoChangeStatusMetadataUnion$Outbound, - z.ZodTypeDef, - MongoChangeStatusMetadataUnion -> = z.union([ - z.lazy(() => MongoChangeStatusMetadata$outboundSchema), - MongoChangeStatusMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMetadataUnion$ { - /** @deprecated use `MongoChangeStatusMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusMetadataUnion$inboundSchema; - /** @deprecated use `MongoChangeStatusMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusMetadataUnion$outboundSchema; - /** @deprecated use `MongoChangeStatusMetadataUnion$Outbound` instead. */ - export type Outbound = MongoChangeStatusMetadataUnion$Outbound; -} - -export function mongoChangeStatusMetadataUnionToJSON( - mongoChangeStatusMetadataUnion: MongoChangeStatusMetadataUnion, -): string { - return JSON.stringify( - MongoChangeStatusMetadataUnion$outboundSchema.parse( - mongoChangeStatusMetadataUnion, - ), - ); -} - export function mongoChangeStatusMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -887,80 +547,6 @@ export const MongoChangeStatusBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MongoChangeStatusBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MongoChangeStatusMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MongoChangeStatusBackup$outboundSchema: z.ZodType< - MongoChangeStatusBackup$Outbound, - z.ZodTypeDef, - MongoChangeStatusBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MongoChangeStatusBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MongoChangeStatusDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MongoChangeStatusMetadata$outboundSchema), - MongoChangeStatusMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusBackup$ { - /** @deprecated use `MongoChangeStatusBackup$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusBackup$inboundSchema; - /** @deprecated use `MongoChangeStatusBackup$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusBackup$outboundSchema; - /** @deprecated use `MongoChangeStatusBackup$Outbound` instead. */ - export type Outbound = MongoChangeStatusBackup$Outbound; -} - -export function mongoChangeStatusBackupToJSON( - mongoChangeStatusBackup: MongoChangeStatusBackup, -): string { - return JSON.stringify( - MongoChangeStatusBackup$outboundSchema.parse(mongoChangeStatusBackup), - ); -} - export function mongoChangeStatusBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -985,51 +571,6 @@ export const MongoChangeStatusProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoChangeStatusProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MongoChangeStatusProject$outboundSchema: z.ZodType< - MongoChangeStatusProject$Outbound, - z.ZodTypeDef, - MongoChangeStatusProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusProject$ { - /** @deprecated use `MongoChangeStatusProject$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusProject$inboundSchema; - /** @deprecated use `MongoChangeStatusProject$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusProject$outboundSchema; - /** @deprecated use `MongoChangeStatusProject$Outbound` instead. */ - export type Outbound = MongoChangeStatusProject$Outbound; -} - -export function mongoChangeStatusProjectToJSON( - mongoChangeStatusProject: MongoChangeStatusProject, -): string { - return JSON.stringify( - MongoChangeStatusProject$outboundSchema.parse(mongoChangeStatusProject), - ); -} - export function mongoChangeStatusProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1055,55 +596,6 @@ export const MongoChangeStatusEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoChangeStatusEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MongoChangeStatusProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MongoChangeStatusEnvironment$outboundSchema: z.ZodType< - MongoChangeStatusEnvironment$Outbound, - z.ZodTypeDef, - MongoChangeStatusEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MongoChangeStatusProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusEnvironment$ { - /** @deprecated use `MongoChangeStatusEnvironment$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusEnvironment$inboundSchema; - /** @deprecated use `MongoChangeStatusEnvironment$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusEnvironment$outboundSchema; - /** @deprecated use `MongoChangeStatusEnvironment$Outbound` instead. */ - export type Outbound = MongoChangeStatusEnvironment$Outbound; -} - -export function mongoChangeStatusEnvironmentToJSON( - mongoChangeStatusEnvironment: MongoChangeStatusEnvironment, -): string { - return JSON.stringify( - MongoChangeStatusEnvironment$outboundSchema.parse( - mongoChangeStatusEnvironment, - ), - ); -} - export function mongoChangeStatusEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1135,60 +627,6 @@ export const MongoChangeStatusHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MongoChangeStatusHealthCheckSwarm$outboundSchema: z.ZodType< - MongoChangeStatusHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MongoChangeStatusHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusHealthCheckSwarm$ { - /** @deprecated use `MongoChangeStatusHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoChangeStatusHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoChangeStatusHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoChangeStatusHealthCheckSwarm$Outbound; -} - -export function mongoChangeStatusHealthCheckSwarmToJSON( - mongoChangeStatusHealthCheckSwarm: MongoChangeStatusHealthCheckSwarm, -): string { - return JSON.stringify( - MongoChangeStatusHealthCheckSwarm$outboundSchema.parse( - mongoChangeStatusHealthCheckSwarm, - ), - ); -} - export function mongoChangeStatusHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1206,37 +644,6 @@ export const MongoChangeStatusGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoChangeStatusGlobal$Outbound = {}; - -/** @internal */ -export const MongoChangeStatusGlobal$outboundSchema: z.ZodType< - MongoChangeStatusGlobal$Outbound, - z.ZodTypeDef, - MongoChangeStatusGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusGlobal$ { - /** @deprecated use `MongoChangeStatusGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusGlobal$inboundSchema; - /** @deprecated use `MongoChangeStatusGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusGlobal$outboundSchema; - /** @deprecated use `MongoChangeStatusGlobal$Outbound` instead. */ - export type Outbound = MongoChangeStatusGlobal$Outbound; -} - -export function mongoChangeStatusGlobalToJSON( - mongoChangeStatusGlobal: MongoChangeStatusGlobal, -): string { - return JSON.stringify( - MongoChangeStatusGlobal$outboundSchema.parse(mongoChangeStatusGlobal), - ); -} - export function mongoChangeStatusGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1250,40 +657,9 @@ export function mongoChangeStatusGlobalFromJSON( /** @internal */ export const MongoChangeStatusGlobalJob$inboundSchema: z.ZodType< MongoChangeStatusGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MongoChangeStatusGlobalJob$Outbound = {}; - -/** @internal */ -export const MongoChangeStatusGlobalJob$outboundSchema: z.ZodType< - MongoChangeStatusGlobalJob$Outbound, - z.ZodTypeDef, - MongoChangeStatusGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusGlobalJob$ { - /** @deprecated use `MongoChangeStatusGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusGlobalJob$inboundSchema; - /** @deprecated use `MongoChangeStatusGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusGlobalJob$outboundSchema; - /** @deprecated use `MongoChangeStatusGlobalJob$Outbound` instead. */ - export type Outbound = MongoChangeStatusGlobalJob$Outbound; -} - -export function mongoChangeStatusGlobalJobToJSON( - mongoChangeStatusGlobalJob: MongoChangeStatusGlobalJob, -): string { - return JSON.stringify( - MongoChangeStatusGlobalJob$outboundSchema.parse(mongoChangeStatusGlobalJob), - ); -} + z.ZodTypeDef, + unknown +> = z.object({}); export function mongoChangeStatusGlobalJobFromJSON( jsonString: string, @@ -1308,47 +684,6 @@ export const MongoChangeStatusReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MongoChangeStatusReplicated$outboundSchema: z.ZodType< - MongoChangeStatusReplicated$Outbound, - z.ZodTypeDef, - MongoChangeStatusReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusReplicated$ { - /** @deprecated use `MongoChangeStatusReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusReplicated$inboundSchema; - /** @deprecated use `MongoChangeStatusReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusReplicated$outboundSchema; - /** @deprecated use `MongoChangeStatusReplicated$Outbound` instead. */ - export type Outbound = MongoChangeStatusReplicated$Outbound; -} - -export function mongoChangeStatusReplicatedToJSON( - mongoChangeStatusReplicated: MongoChangeStatusReplicated, -): string { - return JSON.stringify( - MongoChangeStatusReplicated$outboundSchema.parse( - mongoChangeStatusReplicated, - ), - ); -} - export function mongoChangeStatusReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1374,50 +709,6 @@ export const MongoChangeStatusReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MongoChangeStatusReplicatedJob$outboundSchema: z.ZodType< - MongoChangeStatusReplicatedJob$Outbound, - z.ZodTypeDef, - MongoChangeStatusReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusReplicatedJob$ { - /** @deprecated use `MongoChangeStatusReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusReplicatedJob$inboundSchema; - /** @deprecated use `MongoChangeStatusReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusReplicatedJob$outboundSchema; - /** @deprecated use `MongoChangeStatusReplicatedJob$Outbound` instead. */ - export type Outbound = MongoChangeStatusReplicatedJob$Outbound; -} - -export function mongoChangeStatusReplicatedJobToJSON( - mongoChangeStatusReplicatedJob: MongoChangeStatusReplicatedJob, -): string { - return JSON.stringify( - MongoChangeStatusReplicatedJob$outboundSchema.parse( - mongoChangeStatusReplicatedJob, - ), - ); -} - export function mongoChangeStatusReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1449,56 +740,6 @@ export const MongoChangeStatusModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusModeSwarm$Outbound = { - Global?: MongoChangeStatusGlobal$Outbound | undefined; - GlobalJob?: MongoChangeStatusGlobalJob$Outbound | undefined; - Replicated?: MongoChangeStatusReplicated$Outbound | undefined; - ReplicatedJob?: MongoChangeStatusReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MongoChangeStatusModeSwarm$outboundSchema: z.ZodType< - MongoChangeStatusModeSwarm$Outbound, - z.ZodTypeDef, - MongoChangeStatusModeSwarm -> = z.object({ - global: z.lazy(() => MongoChangeStatusGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MongoChangeStatusGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MongoChangeStatusReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => MongoChangeStatusReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusModeSwarm$ { - /** @deprecated use `MongoChangeStatusModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusModeSwarm$inboundSchema; - /** @deprecated use `MongoChangeStatusModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusModeSwarm$outboundSchema; - /** @deprecated use `MongoChangeStatusModeSwarm$Outbound` instead. */ - export type Outbound = MongoChangeStatusModeSwarm$Outbound; -} - -export function mongoChangeStatusModeSwarmToJSON( - mongoChangeStatusModeSwarm: MongoChangeStatusModeSwarm, -): string { - return JSON.stringify( - MongoChangeStatusModeSwarm$outboundSchema.parse(mongoChangeStatusModeSwarm), - ); -} - export function mongoChangeStatusModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1514,43 +755,11 @@ export const MongoChangeStatusServiceType$inboundSchema: z.ZodNativeEnum< typeof MongoChangeStatusServiceType > = z.nativeEnum(MongoChangeStatusServiceType); -/** @internal */ -export const MongoChangeStatusServiceType$outboundSchema: z.ZodNativeEnum< - typeof MongoChangeStatusServiceType -> = MongoChangeStatusServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusServiceType$ { - /** @deprecated use `MongoChangeStatusServiceType$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusServiceType$inboundSchema; - /** @deprecated use `MongoChangeStatusServiceType$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusServiceType$outboundSchema; -} - /** @internal */ export const MongoChangeStatusType$inboundSchema: z.ZodNativeEnum< typeof MongoChangeStatusType > = z.nativeEnum(MongoChangeStatusType); -/** @internal */ -export const MongoChangeStatusType$outboundSchema: z.ZodNativeEnum< - typeof MongoChangeStatusType -> = MongoChangeStatusType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusType$ { - /** @deprecated use `MongoChangeStatusType$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusType$inboundSchema; - /** @deprecated use `MongoChangeStatusType$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusType$outboundSchema; -} - /** @internal */ export const MongoChangeStatusMount$inboundSchema: z.ZodType< MongoChangeStatusMount, @@ -1574,69 +783,6 @@ export const MongoChangeStatusMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MongoChangeStatusMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MongoChangeStatusMount$outboundSchema: z.ZodType< - MongoChangeStatusMount$Outbound, - z.ZodTypeDef, - MongoChangeStatusMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MongoChangeStatusServiceType$outboundSchema, - type: MongoChangeStatusType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMount$ { - /** @deprecated use `MongoChangeStatusMount$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusMount$inboundSchema; - /** @deprecated use `MongoChangeStatusMount$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusMount$outboundSchema; - /** @deprecated use `MongoChangeStatusMount$Outbound` instead. */ - export type Outbound = MongoChangeStatusMount$Outbound; -} - -export function mongoChangeStatusMountToJSON( - mongoChangeStatusMount: MongoChangeStatusMount, -): string { - return JSON.stringify( - MongoChangeStatusMount$outboundSchema.parse(mongoChangeStatusMount), - ); -} - export function mongoChangeStatusMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1654,39 +800,6 @@ export const MongoChangeStatusDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoChangeStatusDriverOpts$Outbound = {}; - -/** @internal */ -export const MongoChangeStatusDriverOpts$outboundSchema: z.ZodType< - MongoChangeStatusDriverOpts$Outbound, - z.ZodTypeDef, - MongoChangeStatusDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusDriverOpts$ { - /** @deprecated use `MongoChangeStatusDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusDriverOpts$inboundSchema; - /** @deprecated use `MongoChangeStatusDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusDriverOpts$outboundSchema; - /** @deprecated use `MongoChangeStatusDriverOpts$Outbound` instead. */ - export type Outbound = MongoChangeStatusDriverOpts$Outbound; -} - -export function mongoChangeStatusDriverOptsToJSON( - mongoChangeStatusDriverOpts: MongoChangeStatusDriverOpts, -): string { - return JSON.stringify( - MongoChangeStatusDriverOpts$outboundSchema.parse( - mongoChangeStatusDriverOpts, - ), - ); -} - export function mongoChangeStatusDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1715,54 +828,6 @@ export const MongoChangeStatusNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MongoChangeStatusDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MongoChangeStatusNetworkSwarm$outboundSchema: z.ZodType< - MongoChangeStatusNetworkSwarm$Outbound, - z.ZodTypeDef, - MongoChangeStatusNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MongoChangeStatusDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusNetworkSwarm$ { - /** @deprecated use `MongoChangeStatusNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusNetworkSwarm$inboundSchema; - /** @deprecated use `MongoChangeStatusNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusNetworkSwarm$outboundSchema; - /** @deprecated use `MongoChangeStatusNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoChangeStatusNetworkSwarm$Outbound; -} - -export function mongoChangeStatusNetworkSwarmToJSON( - mongoChangeStatusNetworkSwarm: MongoChangeStatusNetworkSwarm, -): string { - return JSON.stringify( - MongoChangeStatusNetworkSwarm$outboundSchema.parse( - mongoChangeStatusNetworkSwarm, - ), - ); -} - export function mongoChangeStatusNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1788,48 +853,6 @@ export const MongoChangeStatusPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MongoChangeStatusPlatform$outboundSchema: z.ZodType< - MongoChangeStatusPlatform$Outbound, - z.ZodTypeDef, - MongoChangeStatusPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusPlatform$ { - /** @deprecated use `MongoChangeStatusPlatform$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusPlatform$inboundSchema; - /** @deprecated use `MongoChangeStatusPlatform$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusPlatform$outboundSchema; - /** @deprecated use `MongoChangeStatusPlatform$Outbound` instead. */ - export type Outbound = MongoChangeStatusPlatform$Outbound; -} - -export function mongoChangeStatusPlatformToJSON( - mongoChangeStatusPlatform: MongoChangeStatusPlatform, -): string { - return JSON.stringify( - MongoChangeStatusPlatform$outboundSchema.parse(mongoChangeStatusPlatform), - ); -} - export function mongoChangeStatusPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1853,45 +876,6 @@ export const MongoChangeStatusSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MongoChangeStatusSpread$outboundSchema: z.ZodType< - MongoChangeStatusSpread$Outbound, - z.ZodTypeDef, - MongoChangeStatusSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusSpread$ { - /** @deprecated use `MongoChangeStatusSpread$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusSpread$inboundSchema; - /** @deprecated use `MongoChangeStatusSpread$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusSpread$outboundSchema; - /** @deprecated use `MongoChangeStatusSpread$Outbound` instead. */ - export type Outbound = MongoChangeStatusSpread$Outbound; -} - -export function mongoChangeStatusSpreadToJSON( - mongoChangeStatusSpread: MongoChangeStatusSpread, -): string { - return JSON.stringify( - MongoChangeStatusSpread$outboundSchema.parse(mongoChangeStatusSpread), - ); -} - export function mongoChangeStatusSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1915,47 +899,6 @@ export const MongoChangeStatusPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusPreference$Outbound = { - Spread: MongoChangeStatusSpread$Outbound; -}; - -/** @internal */ -export const MongoChangeStatusPreference$outboundSchema: z.ZodType< - MongoChangeStatusPreference$Outbound, - z.ZodTypeDef, - MongoChangeStatusPreference -> = z.object({ - spread: z.lazy(() => MongoChangeStatusSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusPreference$ { - /** @deprecated use `MongoChangeStatusPreference$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusPreference$inboundSchema; - /** @deprecated use `MongoChangeStatusPreference$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusPreference$outboundSchema; - /** @deprecated use `MongoChangeStatusPreference$Outbound` instead. */ - export type Outbound = MongoChangeStatusPreference$Outbound; -} - -export function mongoChangeStatusPreferenceToJSON( - mongoChangeStatusPreference: MongoChangeStatusPreference, -): string { - return JSON.stringify( - MongoChangeStatusPreference$outboundSchema.parse( - mongoChangeStatusPreference, - ), - ); -} - export function mongoChangeStatusPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1987,58 +930,6 @@ export const MongoChangeStatusPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MongoChangeStatusPlacementSwarm$outboundSchema: z.ZodType< - MongoChangeStatusPlacementSwarm$Outbound, - z.ZodTypeDef, - MongoChangeStatusPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MongoChangeStatusPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MongoChangeStatusPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusPlacementSwarm$ { - /** @deprecated use `MongoChangeStatusPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusPlacementSwarm$inboundSchema; - /** @deprecated use `MongoChangeStatusPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusPlacementSwarm$outboundSchema; - /** @deprecated use `MongoChangeStatusPlacementSwarm$Outbound` instead. */ - export type Outbound = MongoChangeStatusPlacementSwarm$Outbound; -} - -export function mongoChangeStatusPlacementSwarmToJSON( - mongoChangeStatusPlacementSwarm: MongoChangeStatusPlacementSwarm, -): string { - return JSON.stringify( - MongoChangeStatusPlacementSwarm$outboundSchema.parse( - mongoChangeStatusPlacementSwarm, - ), - ); -} - export function mongoChangeStatusPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2058,68 +949,16 @@ export const MongoChangeStatusRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MongoChangeStatusRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MongoChangeStatusRestartPolicySwarm$outboundSchema: z.ZodType< - MongoChangeStatusRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MongoChangeStatusRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusRestartPolicySwarm$ { - /** @deprecated use `MongoChangeStatusRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - MongoChangeStatusRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoChangeStatusRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoChangeStatusRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoChangeStatusRestartPolicySwarm$Outbound; -} - -export function mongoChangeStatusRestartPolicySwarmToJSON( - mongoChangeStatusRestartPolicySwarm: MongoChangeStatusRestartPolicySwarm, -): string { - return JSON.stringify( - MongoChangeStatusRestartPolicySwarm$outboundSchema.parse( - mongoChangeStatusRestartPolicySwarm, - ), - ); -} - export function mongoChangeStatusRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2154,64 +993,6 @@ export const MongoChangeStatusRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoChangeStatusRollbackConfigSwarm$outboundSchema: z.ZodType< - MongoChangeStatusRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MongoChangeStatusRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusRollbackConfigSwarm$ { - /** @deprecated use `MongoChangeStatusRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MongoChangeStatusRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoChangeStatusRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoChangeStatusRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoChangeStatusRollbackConfigSwarm$Outbound; -} - -export function mongoChangeStatusRollbackConfigSwarmToJSON( - mongoChangeStatusRollbackConfigSwarm: MongoChangeStatusRollbackConfigSwarm, -): string { - return JSON.stringify( - MongoChangeStatusRollbackConfigSwarm$outboundSchema.parse( - mongoChangeStatusRollbackConfigSwarm, - ), - ); -} - export function mongoChangeStatusRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2228,23 +1009,6 @@ export const MongoChangeStatusMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MongoChangeStatusMetricsConfigEnum > = z.nativeEnum(MongoChangeStatusMetricsConfigEnum); -/** @internal */ -export const MongoChangeStatusMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoChangeStatusMetricsConfigEnum -> = MongoChangeStatusMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMetricsConfigEnum$ { - /** @deprecated use `MongoChangeStatusMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusMetricsConfigEnum$inboundSchema; - /** @deprecated use `MongoChangeStatusMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MongoChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< MongoChangeStatusMetricsConfigUnion1, @@ -2257,50 +1021,6 @@ export const MongoChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< MongoChangeStatusMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MongoChangeStatusMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MongoChangeStatusMetricsConfigUnion1$outboundSchema: z.ZodType< - MongoChangeStatusMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MongoChangeStatusMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MongoChangeStatusMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMetricsConfigUnion1$ { - /** @deprecated use `MongoChangeStatusMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - MongoChangeStatusMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MongoChangeStatusMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MongoChangeStatusMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MongoChangeStatusMetricsConfigUnion1$Outbound; -} - -export function mongoChangeStatusMetricsConfigUnion1ToJSON( - mongoChangeStatusMetricsConfigUnion1: MongoChangeStatusMetricsConfigUnion1, -): string { - return JSON.stringify( - MongoChangeStatusMetricsConfigUnion1$outboundSchema.parse( - mongoChangeStatusMetricsConfigUnion1, - ), - ); -} - export function mongoChangeStatusMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2328,56 +1048,6 @@ export const MongoChangeStatusMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MongoChangeStatusMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MongoChangeStatusMetricsConfigUnion2$outboundSchema: z.ZodType< - MongoChangeStatusMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MongoChangeStatusMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusMetricsConfigUnion2$ { - /** @deprecated use `MongoChangeStatusMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - MongoChangeStatusMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MongoChangeStatusMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MongoChangeStatusMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MongoChangeStatusMetricsConfigUnion2$Outbound; -} - -export function mongoChangeStatusMetricsConfigUnion2ToJSON( - mongoChangeStatusMetricsConfigUnion2: MongoChangeStatusMetricsConfigUnion2, -): string { - return JSON.stringify( - MongoChangeStatusMetricsConfigUnion2$outboundSchema.parse( - mongoChangeStatusMetricsConfigUnion2, - ), - ); -} - export function mongoChangeStatusMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2394,22 +1064,6 @@ export const MongoChangeStatusServerStatus$inboundSchema: z.ZodNativeEnum< typeof MongoChangeStatusServerStatus > = z.nativeEnum(MongoChangeStatusServerStatus); -/** @internal */ -export const MongoChangeStatusServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoChangeStatusServerStatus -> = MongoChangeStatusServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusServerStatus$ { - /** @deprecated use `MongoChangeStatusServerStatus$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusServerStatus$inboundSchema; - /** @deprecated use `MongoChangeStatusServerStatus$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusServerStatus$outboundSchema; -} - /** @internal */ export const MongoChangeStatusServer$inboundSchema: z.ZodType< MongoChangeStatusServer, @@ -2441,78 +1095,6 @@ export const MongoChangeStatusServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MongoChangeStatusServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MongoChangeStatusServer$outboundSchema: z.ZodType< - MongoChangeStatusServer$Outbound, - z.ZodTypeDef, - MongoChangeStatusServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MongoChangeStatusServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusServer$ { - /** @deprecated use `MongoChangeStatusServer$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusServer$inboundSchema; - /** @deprecated use `MongoChangeStatusServer$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusServer$outboundSchema; - /** @deprecated use `MongoChangeStatusServer$Outbound` instead. */ - export type Outbound = MongoChangeStatusServer$Outbound; -} - -export function mongoChangeStatusServerToJSON( - mongoChangeStatusServer: MongoChangeStatusServer, -): string { - return JSON.stringify( - MongoChangeStatusServer$outboundSchema.parse(mongoChangeStatusServer), - ); -} - export function mongoChangeStatusServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2546,63 +1128,6 @@ export const MongoChangeStatusUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoChangeStatusUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoChangeStatusUpdateConfigSwarm$outboundSchema: z.ZodType< - MongoChangeStatusUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MongoChangeStatusUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusUpdateConfigSwarm$ { - /** @deprecated use `MongoChangeStatusUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoChangeStatusUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoChangeStatusUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoChangeStatusUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoChangeStatusUpdateConfigSwarm$Outbound; -} - -export function mongoChangeStatusUpdateConfigSwarmToJSON( - mongoChangeStatusUpdateConfigSwarm: MongoChangeStatusUpdateConfigSwarm, -): string { - return JSON.stringify( - MongoChangeStatusUpdateConfigSwarm$outboundSchema.parse( - mongoChangeStatusUpdateConfigSwarm, - ), - ); -} - export function mongoChangeStatusUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2666,119 +1191,6 @@ export const MongoChangeStatusResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MongoChangeStatusResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MongoChangeStatusEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MongoChangeStatusHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MongoChangeStatusModeSwarm$Outbound | null; - mongoId: string; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MongoChangeStatusPlacementSwarm$Outbound | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: MongoChangeStatusRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MongoChangeStatusRollbackConfigSwarm$Outbound | null; - server: MongoChangeStatusServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MongoChangeStatusUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MongoChangeStatusResponseBody$outboundSchema: z.ZodType< - MongoChangeStatusResponseBody$Outbound, - z.ZodTypeDef, - MongoChangeStatusResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MongoChangeStatusApplicationStatusResponse$outboundSchema, - backups: z.array(z.lazy(() => MongoChangeStatusBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MongoChangeStatusEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoChangeStatusHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => MongoChangeStatusModeSwarm$outboundSchema), - ), - mongoId: z.string(), - mounts: z.array(z.lazy(() => MongoChangeStatusMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoChangeStatusNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MongoChangeStatusPlacementSwarm$outboundSchema), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoChangeStatusRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoChangeStatusRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MongoChangeStatusServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoChangeStatusUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusResponseBody$ { - /** @deprecated use `MongoChangeStatusResponseBody$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusResponseBody$inboundSchema; - /** @deprecated use `MongoChangeStatusResponseBody$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusResponseBody$outboundSchema; - /** @deprecated use `MongoChangeStatusResponseBody$Outbound` instead. */ - export type Outbound = MongoChangeStatusResponseBody$Outbound; -} - -export function mongoChangeStatusResponseBodyToJSON( - mongoChangeStatusResponseBody: MongoChangeStatusResponseBody, -): string { - return JSON.stringify( - MongoChangeStatusResponseBody$outboundSchema.parse( - mongoChangeStatusResponseBody, - ), - ); -} - export function mongoChangeStatusResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2799,42 +1211,6 @@ export const MongoChangeStatusResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MongoChangeStatusResponse$Outbound = - | MongoChangeStatusResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MongoChangeStatusResponse$outboundSchema: z.ZodType< - MongoChangeStatusResponse$Outbound, - z.ZodTypeDef, - MongoChangeStatusResponse -> = z.union([ - z.lazy(() => MongoChangeStatusResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoChangeStatusResponse$ { - /** @deprecated use `MongoChangeStatusResponse$inboundSchema` instead. */ - export const inboundSchema = MongoChangeStatusResponse$inboundSchema; - /** @deprecated use `MongoChangeStatusResponse$outboundSchema` instead. */ - export const outboundSchema = MongoChangeStatusResponse$outboundSchema; - /** @deprecated use `MongoChangeStatusResponse$Outbound` instead. */ - export type Outbound = MongoChangeStatusResponse$Outbound; -} - -export function mongoChangeStatusResponseToJSON( - mongoChangeStatusResponse: MongoChangeStatusResponse, -): string { - return JSON.stringify( - MongoChangeStatusResponse$outboundSchema.parse(mongoChangeStatusResponse), - ); -} - export function mongoChangeStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongocreate.ts b/src/models/operations/mongocreate.ts index dca9ea0..b1f9a1a 100644 --- a/src/models/operations/mongocreate.ts +++ b/src/models/operations/mongocreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,23 +22,6 @@ export type MongoCreateRequest = { export type MongoCreateResponse = models.ErrorT | boolean; -/** @internal */ -export const MongoCreateRequest$inboundSchema: z.ZodType< - MongoCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("mongo:15"), - environmentId: z.string(), - name: z.string(), - replicaSets: z.nullable(z.boolean().default(false)), - serverId: z.nullable(z.string()).optional(), -}); - /** @internal */ export type MongoCreateRequest$Outbound = { appName: string; @@ -69,19 +52,6 @@ export const MongoCreateRequest$outboundSchema: z.ZodType< serverId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoCreateRequest$ { - /** @deprecated use `MongoCreateRequest$inboundSchema` instead. */ - export const inboundSchema = MongoCreateRequest$inboundSchema; - /** @deprecated use `MongoCreateRequest$outboundSchema` instead. */ - export const outboundSchema = MongoCreateRequest$outboundSchema; - /** @deprecated use `MongoCreateRequest$Outbound` instead. */ - export type Outbound = MongoCreateRequest$Outbound; -} - export function mongoCreateRequestToJSON( mongoCreateRequest: MongoCreateRequest, ): string { @@ -90,16 +60,6 @@ export function mongoCreateRequestToJSON( ); } -export function mongoCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoCreateRequest' from JSON`, - ); -} - /** @internal */ export const MongoCreateResponse$inboundSchema: z.ZodType< MongoCreateResponse, @@ -107,37 +67,6 @@ export const MongoCreateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MongoCreateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MongoCreateResponse$outboundSchema: z.ZodType< - MongoCreateResponse$Outbound, - z.ZodTypeDef, - MongoCreateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoCreateResponse$ { - /** @deprecated use `MongoCreateResponse$inboundSchema` instead. */ - export const inboundSchema = MongoCreateResponse$inboundSchema; - /** @deprecated use `MongoCreateResponse$outboundSchema` instead. */ - export const outboundSchema = MongoCreateResponse$outboundSchema; - /** @deprecated use `MongoCreateResponse$Outbound` instead. */ - export type Outbound = MongoCreateResponse$Outbound; -} - -export function mongoCreateResponseToJSON( - mongoCreateResponse: MongoCreateResponse, -): string { - return JSON.stringify( - MongoCreateResponse$outboundSchema.parse(mongoCreateResponse), - ); -} - export function mongoCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongodeploy.ts b/src/models/operations/mongodeploy.ts index 4ab4180..6c2422c 100644 --- a/src/models/operations/mongodeploy.ts +++ b/src/models/operations/mongodeploy.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -326,15 +326,6 @@ export type MongoDeployResponseBody = { export type MongoDeployResponse = MongoDeployResponseBody | models.ErrorT; -/** @internal */ -export const MongoDeployRequest$inboundSchema: z.ZodType< - MongoDeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mongoId: z.string(), -}); - /** @internal */ export type MongoDeployRequest$Outbound = { mongoId: string; @@ -349,19 +340,6 @@ export const MongoDeployRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployRequest$ { - /** @deprecated use `MongoDeployRequest$inboundSchema` instead. */ - export const inboundSchema = MongoDeployRequest$inboundSchema; - /** @deprecated use `MongoDeployRequest$outboundSchema` instead. */ - export const outboundSchema = MongoDeployRequest$outboundSchema; - /** @deprecated use `MongoDeployRequest$Outbound` instead. */ - export type Outbound = MongoDeployRequest$Outbound; -} - export function mongoDeployRequestToJSON( mongoDeployRequest: MongoDeployRequest, ): string { @@ -370,100 +348,26 @@ export function mongoDeployRequestToJSON( ); } -export function mongoDeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoDeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoDeployRequest' from JSON`, - ); -} - /** @internal */ export const MongoDeployApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MongoDeployApplicationStatus > = z.nativeEnum(MongoDeployApplicationStatus); -/** @internal */ -export const MongoDeployApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoDeployApplicationStatus -> = MongoDeployApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployApplicationStatus$ { - /** @deprecated use `MongoDeployApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MongoDeployApplicationStatus$inboundSchema; - /** @deprecated use `MongoDeployApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MongoDeployApplicationStatus$outboundSchema; -} - /** @internal */ export const MongoDeployBackupType$inboundSchema: z.ZodNativeEnum< typeof MongoDeployBackupType > = z.nativeEnum(MongoDeployBackupType); -/** @internal */ -export const MongoDeployBackupType$outboundSchema: z.ZodNativeEnum< - typeof MongoDeployBackupType -> = MongoDeployBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployBackupType$ { - /** @deprecated use `MongoDeployBackupType$inboundSchema` instead. */ - export const inboundSchema = MongoDeployBackupType$inboundSchema; - /** @deprecated use `MongoDeployBackupType$outboundSchema` instead. */ - export const outboundSchema = MongoDeployBackupType$outboundSchema; -} - /** @internal */ export const MongoDeployDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MongoDeployDatabaseType > = z.nativeEnum(MongoDeployDatabaseType); -/** @internal */ -export const MongoDeployDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MongoDeployDatabaseType -> = MongoDeployDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployDatabaseType$ { - /** @deprecated use `MongoDeployDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MongoDeployDatabaseType$inboundSchema; - /** @deprecated use `MongoDeployDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MongoDeployDatabaseType$outboundSchema; -} - /** @internal */ export const MongoDeployMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MongoDeployMetadataEnum > = z.nativeEnum(MongoDeployMetadataEnum); -/** @internal */ -export const MongoDeployMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoDeployMetadataEnum -> = MongoDeployMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMetadataEnum$ { - /** @deprecated use `MongoDeployMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMetadataEnum$inboundSchema; - /** @deprecated use `MongoDeployMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMetadataEnum$outboundSchema; -} - /** @internal */ export const MongoDeployMariadb$inboundSchema: z.ZodType< MongoDeployMariadb, @@ -474,43 +378,6 @@ export const MongoDeployMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoDeployMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoDeployMariadb$outboundSchema: z.ZodType< - MongoDeployMariadb$Outbound, - z.ZodTypeDef, - MongoDeployMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMariadb$ { - /** @deprecated use `MongoDeployMariadb$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMariadb$inboundSchema; - /** @deprecated use `MongoDeployMariadb$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMariadb$outboundSchema; - /** @deprecated use `MongoDeployMariadb$Outbound` instead. */ - export type Outbound = MongoDeployMariadb$Outbound; -} - -export function mongoDeployMariadbToJSON( - mongoDeployMariadb: MongoDeployMariadb, -): string { - return JSON.stringify( - MongoDeployMariadb$outboundSchema.parse(mongoDeployMariadb), - ); -} - export function mongoDeployMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -531,43 +398,6 @@ export const MongoDeployMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoDeployMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoDeployMongo$outboundSchema: z.ZodType< - MongoDeployMongo$Outbound, - z.ZodTypeDef, - MongoDeployMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMongo$ { - /** @deprecated use `MongoDeployMongo$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMongo$inboundSchema; - /** @deprecated use `MongoDeployMongo$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMongo$outboundSchema; - /** @deprecated use `MongoDeployMongo$Outbound` instead. */ - export type Outbound = MongoDeployMongo$Outbound; -} - -export function mongoDeployMongoToJSON( - mongoDeployMongo: MongoDeployMongo, -): string { - return JSON.stringify( - MongoDeployMongo$outboundSchema.parse(mongoDeployMongo), - ); -} - export function mongoDeployMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -587,41 +417,6 @@ export const MongoDeployMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MongoDeployMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MongoDeployMysql$outboundSchema: z.ZodType< - MongoDeployMysql$Outbound, - z.ZodTypeDef, - MongoDeployMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMysql$ { - /** @deprecated use `MongoDeployMysql$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMysql$inboundSchema; - /** @deprecated use `MongoDeployMysql$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMysql$outboundSchema; - /** @deprecated use `MongoDeployMysql$Outbound` instead. */ - export type Outbound = MongoDeployMysql$Outbound; -} - -export function mongoDeployMysqlToJSON( - mongoDeployMysql: MongoDeployMysql, -): string { - return JSON.stringify( - MongoDeployMysql$outboundSchema.parse(mongoDeployMysql), - ); -} - export function mongoDeployMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -641,41 +436,6 @@ export const MongoDeployPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoDeployPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MongoDeployPostgres$outboundSchema: z.ZodType< - MongoDeployPostgres$Outbound, - z.ZodTypeDef, - MongoDeployPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployPostgres$ { - /** @deprecated use `MongoDeployPostgres$inboundSchema` instead. */ - export const inboundSchema = MongoDeployPostgres$inboundSchema; - /** @deprecated use `MongoDeployPostgres$outboundSchema` instead. */ - export const outboundSchema = MongoDeployPostgres$outboundSchema; - /** @deprecated use `MongoDeployPostgres$Outbound` instead. */ - export type Outbound = MongoDeployPostgres$Outbound; -} - -export function mongoDeployPostgresToJSON( - mongoDeployPostgres: MongoDeployPostgres, -): string { - return JSON.stringify( - MongoDeployPostgres$outboundSchema.parse(mongoDeployPostgres), - ); -} - export function mongoDeployPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -698,47 +458,6 @@ export const MongoDeployMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MongoDeployPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MongoDeployMetadata$Outbound = { - mariadb?: MongoDeployMariadb$Outbound | undefined; - mongo?: MongoDeployMongo$Outbound | undefined; - mysql?: MongoDeployMysql$Outbound | undefined; - postgres?: MongoDeployPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MongoDeployMetadata$outboundSchema: z.ZodType< - MongoDeployMetadata$Outbound, - z.ZodTypeDef, - MongoDeployMetadata -> = z.object({ - mariadb: z.lazy(() => MongoDeployMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MongoDeployMongo$outboundSchema).optional(), - mysql: z.lazy(() => MongoDeployMysql$outboundSchema).optional(), - postgres: z.lazy(() => MongoDeployPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMetadata$ { - /** @deprecated use `MongoDeployMetadata$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMetadata$inboundSchema; - /** @deprecated use `MongoDeployMetadata$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMetadata$outboundSchema; - /** @deprecated use `MongoDeployMetadata$Outbound` instead. */ - export type Outbound = MongoDeployMetadata$Outbound; -} - -export function mongoDeployMetadataToJSON( - mongoDeployMetadata: MongoDeployMetadata, -): string { - return JSON.stringify( - MongoDeployMetadata$outboundSchema.parse(mongoDeployMetadata), - ); -} - export function mongoDeployMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -759,42 +478,6 @@ export const MongoDeployMetadataUnion$inboundSchema: z.ZodType< MongoDeployMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MongoDeployMetadataUnion$Outbound = - | MongoDeployMetadata$Outbound - | string; - -/** @internal */ -export const MongoDeployMetadataUnion$outboundSchema: z.ZodType< - MongoDeployMetadataUnion$Outbound, - z.ZodTypeDef, - MongoDeployMetadataUnion -> = z.union([ - z.lazy(() => MongoDeployMetadata$outboundSchema), - MongoDeployMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMetadataUnion$ { - /** @deprecated use `MongoDeployMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMetadataUnion$inboundSchema; - /** @deprecated use `MongoDeployMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMetadataUnion$outboundSchema; - /** @deprecated use `MongoDeployMetadataUnion$Outbound` instead. */ - export type Outbound = MongoDeployMetadataUnion$Outbound; -} - -export function mongoDeployMetadataUnionToJSON( - mongoDeployMetadataUnion: MongoDeployMetadataUnion, -): string { - return JSON.stringify( - MongoDeployMetadataUnion$outboundSchema.parse(mongoDeployMetadataUnion), - ); -} - export function mongoDeployMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -836,80 +519,6 @@ export const MongoDeployBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MongoDeployBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MongoDeployMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MongoDeployBackup$outboundSchema: z.ZodType< - MongoDeployBackup$Outbound, - z.ZodTypeDef, - MongoDeployBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MongoDeployBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MongoDeployDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MongoDeployMetadata$outboundSchema), - MongoDeployMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployBackup$ { - /** @deprecated use `MongoDeployBackup$inboundSchema` instead. */ - export const inboundSchema = MongoDeployBackup$inboundSchema; - /** @deprecated use `MongoDeployBackup$outboundSchema` instead. */ - export const outboundSchema = MongoDeployBackup$outboundSchema; - /** @deprecated use `MongoDeployBackup$Outbound` instead. */ - export type Outbound = MongoDeployBackup$Outbound; -} - -export function mongoDeployBackupToJSON( - mongoDeployBackup: MongoDeployBackup, -): string { - return JSON.stringify( - MongoDeployBackup$outboundSchema.parse(mongoDeployBackup), - ); -} - export function mongoDeployBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -934,51 +543,6 @@ export const MongoDeployProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoDeployProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MongoDeployProject$outboundSchema: z.ZodType< - MongoDeployProject$Outbound, - z.ZodTypeDef, - MongoDeployProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployProject$ { - /** @deprecated use `MongoDeployProject$inboundSchema` instead. */ - export const inboundSchema = MongoDeployProject$inboundSchema; - /** @deprecated use `MongoDeployProject$outboundSchema` instead. */ - export const outboundSchema = MongoDeployProject$outboundSchema; - /** @deprecated use `MongoDeployProject$Outbound` instead. */ - export type Outbound = MongoDeployProject$Outbound; -} - -export function mongoDeployProjectToJSON( - mongoDeployProject: MongoDeployProject, -): string { - return JSON.stringify( - MongoDeployProject$outboundSchema.parse(mongoDeployProject), - ); -} - export function mongoDeployProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1004,53 +568,6 @@ export const MongoDeployEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoDeployEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MongoDeployProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MongoDeployEnvironment$outboundSchema: z.ZodType< - MongoDeployEnvironment$Outbound, - z.ZodTypeDef, - MongoDeployEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MongoDeployProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployEnvironment$ { - /** @deprecated use `MongoDeployEnvironment$inboundSchema` instead. */ - export const inboundSchema = MongoDeployEnvironment$inboundSchema; - /** @deprecated use `MongoDeployEnvironment$outboundSchema` instead. */ - export const outboundSchema = MongoDeployEnvironment$outboundSchema; - /** @deprecated use `MongoDeployEnvironment$Outbound` instead. */ - export type Outbound = MongoDeployEnvironment$Outbound; -} - -export function mongoDeployEnvironmentToJSON( - mongoDeployEnvironment: MongoDeployEnvironment, -): string { - return JSON.stringify( - MongoDeployEnvironment$outboundSchema.parse(mongoDeployEnvironment), - ); -} - export function mongoDeployEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1082,59 +599,6 @@ export const MongoDeployHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MongoDeployHealthCheckSwarm$outboundSchema: z.ZodType< - MongoDeployHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MongoDeployHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployHealthCheckSwarm$ { - /** @deprecated use `MongoDeployHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoDeployHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoDeployHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoDeployHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoDeployHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoDeployHealthCheckSwarm$Outbound; -} - -export function mongoDeployHealthCheckSwarmToJSON( - mongoDeployHealthCheckSwarm: MongoDeployHealthCheckSwarm, -): string { - return JSON.stringify( - MongoDeployHealthCheckSwarm$outboundSchema.parse( - mongoDeployHealthCheckSwarm, - ), - ); -} - export function mongoDeployHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1152,37 +616,6 @@ export const MongoDeployGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoDeployGlobal$Outbound = {}; - -/** @internal */ -export const MongoDeployGlobal$outboundSchema: z.ZodType< - MongoDeployGlobal$Outbound, - z.ZodTypeDef, - MongoDeployGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployGlobal$ { - /** @deprecated use `MongoDeployGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoDeployGlobal$inboundSchema; - /** @deprecated use `MongoDeployGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoDeployGlobal$outboundSchema; - /** @deprecated use `MongoDeployGlobal$Outbound` instead. */ - export type Outbound = MongoDeployGlobal$Outbound; -} - -export function mongoDeployGlobalToJSON( - mongoDeployGlobal: MongoDeployGlobal, -): string { - return JSON.stringify( - MongoDeployGlobal$outboundSchema.parse(mongoDeployGlobal), - ); -} - export function mongoDeployGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1196,40 +629,9 @@ export function mongoDeployGlobalFromJSON( /** @internal */ export const MongoDeployGlobalJob$inboundSchema: z.ZodType< MongoDeployGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MongoDeployGlobalJob$Outbound = {}; - -/** @internal */ -export const MongoDeployGlobalJob$outboundSchema: z.ZodType< - MongoDeployGlobalJob$Outbound, - z.ZodTypeDef, - MongoDeployGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployGlobalJob$ { - /** @deprecated use `MongoDeployGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoDeployGlobalJob$inboundSchema; - /** @deprecated use `MongoDeployGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoDeployGlobalJob$outboundSchema; - /** @deprecated use `MongoDeployGlobalJob$Outbound` instead. */ - export type Outbound = MongoDeployGlobalJob$Outbound; -} - -export function mongoDeployGlobalJobToJSON( - mongoDeployGlobalJob: MongoDeployGlobalJob, -): string { - return JSON.stringify( - MongoDeployGlobalJob$outboundSchema.parse(mongoDeployGlobalJob), - ); -} + z.ZodTypeDef, + unknown +> = z.object({}); export function mongoDeployGlobalJobFromJSON( jsonString: string, @@ -1254,45 +656,6 @@ export const MongoDeployReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MongoDeployReplicated$outboundSchema: z.ZodType< - MongoDeployReplicated$Outbound, - z.ZodTypeDef, - MongoDeployReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployReplicated$ { - /** @deprecated use `MongoDeployReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoDeployReplicated$inboundSchema; - /** @deprecated use `MongoDeployReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoDeployReplicated$outboundSchema; - /** @deprecated use `MongoDeployReplicated$Outbound` instead. */ - export type Outbound = MongoDeployReplicated$Outbound; -} - -export function mongoDeployReplicatedToJSON( - mongoDeployReplicated: MongoDeployReplicated, -): string { - return JSON.stringify( - MongoDeployReplicated$outboundSchema.parse(mongoDeployReplicated), - ); -} - export function mongoDeployReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1318,48 +681,6 @@ export const MongoDeployReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MongoDeployReplicatedJob$outboundSchema: z.ZodType< - MongoDeployReplicatedJob$Outbound, - z.ZodTypeDef, - MongoDeployReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployReplicatedJob$ { - /** @deprecated use `MongoDeployReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoDeployReplicatedJob$inboundSchema; - /** @deprecated use `MongoDeployReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MongoDeployReplicatedJob$outboundSchema; - /** @deprecated use `MongoDeployReplicatedJob$Outbound` instead. */ - export type Outbound = MongoDeployReplicatedJob$Outbound; -} - -export function mongoDeployReplicatedJobToJSON( - mongoDeployReplicatedJob: MongoDeployReplicatedJob, -): string { - return JSON.stringify( - MongoDeployReplicatedJob$outboundSchema.parse(mongoDeployReplicatedJob), - ); -} - export function mongoDeployReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1390,55 +711,6 @@ export const MongoDeployModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployModeSwarm$Outbound = { - Global?: MongoDeployGlobal$Outbound | undefined; - GlobalJob?: MongoDeployGlobalJob$Outbound | undefined; - Replicated?: MongoDeployReplicated$Outbound | undefined; - ReplicatedJob?: MongoDeployReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MongoDeployModeSwarm$outboundSchema: z.ZodType< - MongoDeployModeSwarm$Outbound, - z.ZodTypeDef, - MongoDeployModeSwarm -> = z.object({ - global: z.lazy(() => MongoDeployGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MongoDeployGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MongoDeployReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MongoDeployReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployModeSwarm$ { - /** @deprecated use `MongoDeployModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoDeployModeSwarm$inboundSchema; - /** @deprecated use `MongoDeployModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoDeployModeSwarm$outboundSchema; - /** @deprecated use `MongoDeployModeSwarm$Outbound` instead. */ - export type Outbound = MongoDeployModeSwarm$Outbound; -} - -export function mongoDeployModeSwarmToJSON( - mongoDeployModeSwarm: MongoDeployModeSwarm, -): string { - return JSON.stringify( - MongoDeployModeSwarm$outboundSchema.parse(mongoDeployModeSwarm), - ); -} - export function mongoDeployModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1454,43 +726,11 @@ export const MongoDeployServiceType$inboundSchema: z.ZodNativeEnum< typeof MongoDeployServiceType > = z.nativeEnum(MongoDeployServiceType); -/** @internal */ -export const MongoDeployServiceType$outboundSchema: z.ZodNativeEnum< - typeof MongoDeployServiceType -> = MongoDeployServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployServiceType$ { - /** @deprecated use `MongoDeployServiceType$inboundSchema` instead. */ - export const inboundSchema = MongoDeployServiceType$inboundSchema; - /** @deprecated use `MongoDeployServiceType$outboundSchema` instead. */ - export const outboundSchema = MongoDeployServiceType$outboundSchema; -} - /** @internal */ export const MongoDeployType$inboundSchema: z.ZodNativeEnum< typeof MongoDeployType > = z.nativeEnum(MongoDeployType); -/** @internal */ -export const MongoDeployType$outboundSchema: z.ZodNativeEnum< - typeof MongoDeployType -> = MongoDeployType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployType$ { - /** @deprecated use `MongoDeployType$inboundSchema` instead. */ - export const inboundSchema = MongoDeployType$inboundSchema; - /** @deprecated use `MongoDeployType$outboundSchema` instead. */ - export const outboundSchema = MongoDeployType$outboundSchema; -} - /** @internal */ export const MongoDeployMount$inboundSchema: z.ZodType< MongoDeployMount, @@ -1514,69 +754,6 @@ export const MongoDeployMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MongoDeployMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MongoDeployMount$outboundSchema: z.ZodType< - MongoDeployMount$Outbound, - z.ZodTypeDef, - MongoDeployMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MongoDeployServiceType$outboundSchema, - type: MongoDeployType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMount$ { - /** @deprecated use `MongoDeployMount$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMount$inboundSchema; - /** @deprecated use `MongoDeployMount$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMount$outboundSchema; - /** @deprecated use `MongoDeployMount$Outbound` instead. */ - export type Outbound = MongoDeployMount$Outbound; -} - -export function mongoDeployMountToJSON( - mongoDeployMount: MongoDeployMount, -): string { - return JSON.stringify( - MongoDeployMount$outboundSchema.parse(mongoDeployMount), - ); -} - export function mongoDeployMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1594,37 +771,6 @@ export const MongoDeployDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoDeployDriverOpts$Outbound = {}; - -/** @internal */ -export const MongoDeployDriverOpts$outboundSchema: z.ZodType< - MongoDeployDriverOpts$Outbound, - z.ZodTypeDef, - MongoDeployDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployDriverOpts$ { - /** @deprecated use `MongoDeployDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoDeployDriverOpts$inboundSchema; - /** @deprecated use `MongoDeployDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoDeployDriverOpts$outboundSchema; - /** @deprecated use `MongoDeployDriverOpts$Outbound` instead. */ - export type Outbound = MongoDeployDriverOpts$Outbound; -} - -export function mongoDeployDriverOptsToJSON( - mongoDeployDriverOpts: MongoDeployDriverOpts, -): string { - return JSON.stringify( - MongoDeployDriverOpts$outboundSchema.parse(mongoDeployDriverOpts), - ); -} - export function mongoDeployDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1652,51 +798,6 @@ export const MongoDeployNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MongoDeployDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MongoDeployNetworkSwarm$outboundSchema: z.ZodType< - MongoDeployNetworkSwarm$Outbound, - z.ZodTypeDef, - MongoDeployNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MongoDeployDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployNetworkSwarm$ { - /** @deprecated use `MongoDeployNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoDeployNetworkSwarm$inboundSchema; - /** @deprecated use `MongoDeployNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoDeployNetworkSwarm$outboundSchema; - /** @deprecated use `MongoDeployNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoDeployNetworkSwarm$Outbound; -} - -export function mongoDeployNetworkSwarmToJSON( - mongoDeployNetworkSwarm: MongoDeployNetworkSwarm, -): string { - return JSON.stringify( - MongoDeployNetworkSwarm$outboundSchema.parse(mongoDeployNetworkSwarm), - ); -} - export function mongoDeployNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1722,48 +823,6 @@ export const MongoDeployPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MongoDeployPlatform$outboundSchema: z.ZodType< - MongoDeployPlatform$Outbound, - z.ZodTypeDef, - MongoDeployPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployPlatform$ { - /** @deprecated use `MongoDeployPlatform$inboundSchema` instead. */ - export const inboundSchema = MongoDeployPlatform$inboundSchema; - /** @deprecated use `MongoDeployPlatform$outboundSchema` instead. */ - export const outboundSchema = MongoDeployPlatform$outboundSchema; - /** @deprecated use `MongoDeployPlatform$Outbound` instead. */ - export type Outbound = MongoDeployPlatform$Outbound; -} - -export function mongoDeployPlatformToJSON( - mongoDeployPlatform: MongoDeployPlatform, -): string { - return JSON.stringify( - MongoDeployPlatform$outboundSchema.parse(mongoDeployPlatform), - ); -} - export function mongoDeployPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1787,45 +846,6 @@ export const MongoDeploySpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeploySpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MongoDeploySpread$outboundSchema: z.ZodType< - MongoDeploySpread$Outbound, - z.ZodTypeDef, - MongoDeploySpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeploySpread$ { - /** @deprecated use `MongoDeploySpread$inboundSchema` instead. */ - export const inboundSchema = MongoDeploySpread$inboundSchema; - /** @deprecated use `MongoDeploySpread$outboundSchema` instead. */ - export const outboundSchema = MongoDeploySpread$outboundSchema; - /** @deprecated use `MongoDeploySpread$Outbound` instead. */ - export type Outbound = MongoDeploySpread$Outbound; -} - -export function mongoDeploySpreadToJSON( - mongoDeploySpread: MongoDeploySpread, -): string { - return JSON.stringify( - MongoDeploySpread$outboundSchema.parse(mongoDeploySpread), - ); -} - export function mongoDeploySpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1849,45 +869,6 @@ export const MongoDeployPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployPreference$Outbound = { - Spread: MongoDeploySpread$Outbound; -}; - -/** @internal */ -export const MongoDeployPreference$outboundSchema: z.ZodType< - MongoDeployPreference$Outbound, - z.ZodTypeDef, - MongoDeployPreference -> = z.object({ - spread: z.lazy(() => MongoDeploySpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployPreference$ { - /** @deprecated use `MongoDeployPreference$inboundSchema` instead. */ - export const inboundSchema = MongoDeployPreference$inboundSchema; - /** @deprecated use `MongoDeployPreference$outboundSchema` instead. */ - export const outboundSchema = MongoDeployPreference$outboundSchema; - /** @deprecated use `MongoDeployPreference$Outbound` instead. */ - export type Outbound = MongoDeployPreference$Outbound; -} - -export function mongoDeployPreferenceToJSON( - mongoDeployPreference: MongoDeployPreference, -): string { - return JSON.stringify( - MongoDeployPreference$outboundSchema.parse(mongoDeployPreference), - ); -} - export function mongoDeployPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1919,56 +900,6 @@ export const MongoDeployPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MongoDeployPlacementSwarm$outboundSchema: z.ZodType< - MongoDeployPlacementSwarm$Outbound, - z.ZodTypeDef, - MongoDeployPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MongoDeployPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MongoDeployPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployPlacementSwarm$ { - /** @deprecated use `MongoDeployPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoDeployPlacementSwarm$inboundSchema; - /** @deprecated use `MongoDeployPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoDeployPlacementSwarm$outboundSchema; - /** @deprecated use `MongoDeployPlacementSwarm$Outbound` instead. */ - export type Outbound = MongoDeployPlacementSwarm$Outbound; -} - -export function mongoDeployPlacementSwarmToJSON( - mongoDeployPlacementSwarm: MongoDeployPlacementSwarm, -): string { - return JSON.stringify( - MongoDeployPlacementSwarm$outboundSchema.parse(mongoDeployPlacementSwarm), - ); -} - export function mongoDeployPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1986,68 +917,18 @@ export const MongoDeployRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MongoDeployRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MongoDeployRestartPolicySwarm$outboundSchema: z.ZodType< - MongoDeployRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MongoDeployRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployRestartPolicySwarm$ { - /** @deprecated use `MongoDeployRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MongoDeployRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoDeployRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MongoDeployRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoDeployRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoDeployRestartPolicySwarm$Outbound; -} - -export function mongoDeployRestartPolicySwarmToJSON( - mongoDeployRestartPolicySwarm: MongoDeployRestartPolicySwarm, -): string { - return JSON.stringify( - MongoDeployRestartPolicySwarm$outboundSchema.parse( - mongoDeployRestartPolicySwarm, - ), - ); -} - export function mongoDeployRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2081,62 +962,6 @@ export const MongoDeployRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoDeployRollbackConfigSwarm$outboundSchema: z.ZodType< - MongoDeployRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MongoDeployRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployRollbackConfigSwarm$ { - /** @deprecated use `MongoDeployRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoDeployRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoDeployRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoDeployRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoDeployRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoDeployRollbackConfigSwarm$Outbound; -} - -export function mongoDeployRollbackConfigSwarmToJSON( - mongoDeployRollbackConfigSwarm: MongoDeployRollbackConfigSwarm, -): string { - return JSON.stringify( - MongoDeployRollbackConfigSwarm$outboundSchema.parse( - mongoDeployRollbackConfigSwarm, - ), - ); -} - export function mongoDeployRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2152,22 +977,6 @@ export const MongoDeployMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MongoDeployMetricsConfigEnum > = z.nativeEnum(MongoDeployMetricsConfigEnum); -/** @internal */ -export const MongoDeployMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoDeployMetricsConfigEnum -> = MongoDeployMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMetricsConfigEnum$ { - /** @deprecated use `MongoDeployMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMetricsConfigEnum$inboundSchema; - /** @deprecated use `MongoDeployMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MongoDeployMetricsConfigUnion1$inboundSchema: z.ZodType< MongoDeployMetricsConfigUnion1, @@ -2180,48 +989,6 @@ export const MongoDeployMetricsConfigUnion1$inboundSchema: z.ZodType< MongoDeployMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MongoDeployMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MongoDeployMetricsConfigUnion1$outboundSchema: z.ZodType< - MongoDeployMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MongoDeployMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MongoDeployMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMetricsConfigUnion1$ { - /** @deprecated use `MongoDeployMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MongoDeployMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MongoDeployMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MongoDeployMetricsConfigUnion1$Outbound; -} - -export function mongoDeployMetricsConfigUnion1ToJSON( - mongoDeployMetricsConfigUnion1: MongoDeployMetricsConfigUnion1, -): string { - return JSON.stringify( - MongoDeployMetricsConfigUnion1$outboundSchema.parse( - mongoDeployMetricsConfigUnion1, - ), - ); -} - export function mongoDeployMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2248,54 +1015,6 @@ export const MongoDeployMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MongoDeployMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MongoDeployMetricsConfigUnion2$outboundSchema: z.ZodType< - MongoDeployMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MongoDeployMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployMetricsConfigUnion2$ { - /** @deprecated use `MongoDeployMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MongoDeployMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MongoDeployMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MongoDeployMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MongoDeployMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MongoDeployMetricsConfigUnion2$Outbound; -} - -export function mongoDeployMetricsConfigUnion2ToJSON( - mongoDeployMetricsConfigUnion2: MongoDeployMetricsConfigUnion2, -): string { - return JSON.stringify( - MongoDeployMetricsConfigUnion2$outboundSchema.parse( - mongoDeployMetricsConfigUnion2, - ), - ); -} - export function mongoDeployMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2311,22 +1030,6 @@ export const MongoDeployServerStatus$inboundSchema: z.ZodNativeEnum< typeof MongoDeployServerStatus > = z.nativeEnum(MongoDeployServerStatus); -/** @internal */ -export const MongoDeployServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoDeployServerStatus -> = MongoDeployServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployServerStatus$ { - /** @deprecated use `MongoDeployServerStatus$inboundSchema` instead. */ - export const inboundSchema = MongoDeployServerStatus$inboundSchema; - /** @deprecated use `MongoDeployServerStatus$outboundSchema` instead. */ - export const outboundSchema = MongoDeployServerStatus$outboundSchema; -} - /** @internal */ export const MongoDeployServer$inboundSchema: z.ZodType< MongoDeployServer, @@ -2358,78 +1061,6 @@ export const MongoDeployServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MongoDeployServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MongoDeployServer$outboundSchema: z.ZodType< - MongoDeployServer$Outbound, - z.ZodTypeDef, - MongoDeployServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MongoDeployServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployServer$ { - /** @deprecated use `MongoDeployServer$inboundSchema` instead. */ - export const inboundSchema = MongoDeployServer$inboundSchema; - /** @deprecated use `MongoDeployServer$outboundSchema` instead. */ - export const outboundSchema = MongoDeployServer$outboundSchema; - /** @deprecated use `MongoDeployServer$Outbound` instead. */ - export type Outbound = MongoDeployServer$Outbound; -} - -export function mongoDeployServerToJSON( - mongoDeployServer: MongoDeployServer, -): string { - return JSON.stringify( - MongoDeployServer$outboundSchema.parse(mongoDeployServer), - ); -} - export function mongoDeployServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2463,62 +1094,6 @@ export const MongoDeployUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoDeployUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoDeployUpdateConfigSwarm$outboundSchema: z.ZodType< - MongoDeployUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MongoDeployUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployUpdateConfigSwarm$ { - /** @deprecated use `MongoDeployUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoDeployUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoDeployUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoDeployUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoDeployUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoDeployUpdateConfigSwarm$Outbound; -} - -export function mongoDeployUpdateConfigSwarmToJSON( - mongoDeployUpdateConfigSwarm: MongoDeployUpdateConfigSwarm, -): string { - return JSON.stringify( - MongoDeployUpdateConfigSwarm$outboundSchema.parse( - mongoDeployUpdateConfigSwarm, - ), - ); -} - export function mongoDeployUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2581,115 +1156,6 @@ export const MongoDeployResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MongoDeployResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MongoDeployEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MongoDeployHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MongoDeployModeSwarm$Outbound | null; - mongoId: string; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MongoDeployPlacementSwarm$Outbound | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: MongoDeployRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MongoDeployRollbackConfigSwarm$Outbound | null; - server: MongoDeployServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MongoDeployUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MongoDeployResponseBody$outboundSchema: z.ZodType< - MongoDeployResponseBody$Outbound, - z.ZodTypeDef, - MongoDeployResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MongoDeployApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MongoDeployBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MongoDeployEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoDeployHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MongoDeployModeSwarm$outboundSchema)), - mongoId: z.string(), - mounts: z.array(z.lazy(() => MongoDeployMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoDeployNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MongoDeployPlacementSwarm$outboundSchema), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoDeployRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoDeployRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MongoDeployServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoDeployUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployResponseBody$ { - /** @deprecated use `MongoDeployResponseBody$inboundSchema` instead. */ - export const inboundSchema = MongoDeployResponseBody$inboundSchema; - /** @deprecated use `MongoDeployResponseBody$outboundSchema` instead. */ - export const outboundSchema = MongoDeployResponseBody$outboundSchema; - /** @deprecated use `MongoDeployResponseBody$Outbound` instead. */ - export type Outbound = MongoDeployResponseBody$Outbound; -} - -export function mongoDeployResponseBodyToJSON( - mongoDeployResponseBody: MongoDeployResponseBody, -): string { - return JSON.stringify( - MongoDeployResponseBody$outboundSchema.parse(mongoDeployResponseBody), - ); -} - export function mongoDeployResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2710,42 +1176,6 @@ export const MongoDeployResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MongoDeployResponse$Outbound = - | MongoDeployResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MongoDeployResponse$outboundSchema: z.ZodType< - MongoDeployResponse$Outbound, - z.ZodTypeDef, - MongoDeployResponse -> = z.union([ - z.lazy(() => MongoDeployResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoDeployResponse$ { - /** @deprecated use `MongoDeployResponse$inboundSchema` instead. */ - export const inboundSchema = MongoDeployResponse$inboundSchema; - /** @deprecated use `MongoDeployResponse$outboundSchema` instead. */ - export const outboundSchema = MongoDeployResponse$outboundSchema; - /** @deprecated use `MongoDeployResponse$Outbound` instead. */ - export type Outbound = MongoDeployResponse$Outbound; -} - -export function mongoDeployResponseToJSON( - mongoDeployResponse: MongoDeployResponse, -): string { - return JSON.stringify( - MongoDeployResponse$outboundSchema.parse(mongoDeployResponse), - ); -} - export function mongoDeployResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongomove.ts b/src/models/operations/mongomove.ts index 4b5d318..cb94355 100644 --- a/src/models/operations/mongomove.ts +++ b/src/models/operations/mongomove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -142,16 +142,6 @@ export type MongoMoveResponseBody = { export type MongoMoveResponse = MongoMoveResponseBody | models.ErrorT; -/** @internal */ -export const MongoMoveRequest$inboundSchema: z.ZodType< - MongoMoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mongoId: z.string(), - targetEnvironmentId: z.string(), -}); - /** @internal */ export type MongoMoveRequest$Outbound = { mongoId: string; @@ -168,19 +158,6 @@ export const MongoMoveRequest$outboundSchema: z.ZodType< targetEnvironmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveRequest$ { - /** @deprecated use `MongoMoveRequest$inboundSchema` instead. */ - export const inboundSchema = MongoMoveRequest$inboundSchema; - /** @deprecated use `MongoMoveRequest$outboundSchema` instead. */ - export const outboundSchema = MongoMoveRequest$outboundSchema; - /** @deprecated use `MongoMoveRequest$Outbound` instead. */ - export type Outbound = MongoMoveRequest$Outbound; -} - export function mongoMoveRequestToJSON( mongoMoveRequest: MongoMoveRequest, ): string { @@ -189,37 +166,11 @@ export function mongoMoveRequestToJSON( ); } -export function mongoMoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoMoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoMoveRequest' from JSON`, - ); -} - /** @internal */ export const MongoMoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MongoMoveApplicationStatus > = z.nativeEnum(MongoMoveApplicationStatus); -/** @internal */ -export const MongoMoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoMoveApplicationStatus -> = MongoMoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveApplicationStatus$ { - /** @deprecated use `MongoMoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MongoMoveApplicationStatus$inboundSchema; - /** @deprecated use `MongoMoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MongoMoveApplicationStatus$outboundSchema; -} - /** @internal */ export const MongoMoveHealthCheckSwarm$inboundSchema: z.ZodType< MongoMoveHealthCheckSwarm, @@ -241,57 +192,6 @@ export const MongoMoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MongoMoveHealthCheckSwarm$outboundSchema: z.ZodType< - MongoMoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MongoMoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveHealthCheckSwarm$ { - /** @deprecated use `MongoMoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoMoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoMoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoMoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoMoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoMoveHealthCheckSwarm$Outbound; -} - -export function mongoMoveHealthCheckSwarmToJSON( - mongoMoveHealthCheckSwarm: MongoMoveHealthCheckSwarm, -): string { - return JSON.stringify( - MongoMoveHealthCheckSwarm$outboundSchema.parse(mongoMoveHealthCheckSwarm), - ); -} - export function mongoMoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -309,35 +209,6 @@ export const MongoMoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoMoveGlobal$Outbound = {}; - -/** @internal */ -export const MongoMoveGlobal$outboundSchema: z.ZodType< - MongoMoveGlobal$Outbound, - z.ZodTypeDef, - MongoMoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveGlobal$ { - /** @deprecated use `MongoMoveGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoMoveGlobal$inboundSchema; - /** @deprecated use `MongoMoveGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoMoveGlobal$outboundSchema; - /** @deprecated use `MongoMoveGlobal$Outbound` instead. */ - export type Outbound = MongoMoveGlobal$Outbound; -} - -export function mongoMoveGlobalToJSON( - mongoMoveGlobal: MongoMoveGlobal, -): string { - return JSON.stringify(MongoMoveGlobal$outboundSchema.parse(mongoMoveGlobal)); -} - export function mongoMoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -355,37 +226,6 @@ export const MongoMoveGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoMoveGlobalJob$Outbound = {}; - -/** @internal */ -export const MongoMoveGlobalJob$outboundSchema: z.ZodType< - MongoMoveGlobalJob$Outbound, - z.ZodTypeDef, - MongoMoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveGlobalJob$ { - /** @deprecated use `MongoMoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoMoveGlobalJob$inboundSchema; - /** @deprecated use `MongoMoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoMoveGlobalJob$outboundSchema; - /** @deprecated use `MongoMoveGlobalJob$Outbound` instead. */ - export type Outbound = MongoMoveGlobalJob$Outbound; -} - -export function mongoMoveGlobalJobToJSON( - mongoMoveGlobalJob: MongoMoveGlobalJob, -): string { - return JSON.stringify( - MongoMoveGlobalJob$outboundSchema.parse(mongoMoveGlobalJob), - ); -} - export function mongoMoveGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -409,45 +249,6 @@ export const MongoMoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MongoMoveReplicated$outboundSchema: z.ZodType< - MongoMoveReplicated$Outbound, - z.ZodTypeDef, - MongoMoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveReplicated$ { - /** @deprecated use `MongoMoveReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoMoveReplicated$inboundSchema; - /** @deprecated use `MongoMoveReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoMoveReplicated$outboundSchema; - /** @deprecated use `MongoMoveReplicated$Outbound` instead. */ - export type Outbound = MongoMoveReplicated$Outbound; -} - -export function mongoMoveReplicatedToJSON( - mongoMoveReplicated: MongoMoveReplicated, -): string { - return JSON.stringify( - MongoMoveReplicated$outboundSchema.parse(mongoMoveReplicated), - ); -} - export function mongoMoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -473,48 +274,6 @@ export const MongoMoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MongoMoveReplicatedJob$outboundSchema: z.ZodType< - MongoMoveReplicatedJob$Outbound, - z.ZodTypeDef, - MongoMoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveReplicatedJob$ { - /** @deprecated use `MongoMoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoMoveReplicatedJob$inboundSchema; - /** @deprecated use `MongoMoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MongoMoveReplicatedJob$outboundSchema; - /** @deprecated use `MongoMoveReplicatedJob$Outbound` instead. */ - export type Outbound = MongoMoveReplicatedJob$Outbound; -} - -export function mongoMoveReplicatedJobToJSON( - mongoMoveReplicatedJob: MongoMoveReplicatedJob, -): string { - return JSON.stringify( - MongoMoveReplicatedJob$outboundSchema.parse(mongoMoveReplicatedJob), - ); -} - export function mongoMoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -544,54 +303,6 @@ export const MongoMoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveModeSwarm$Outbound = { - Global?: MongoMoveGlobal$Outbound | undefined; - GlobalJob?: MongoMoveGlobalJob$Outbound | undefined; - Replicated?: MongoMoveReplicated$Outbound | undefined; - ReplicatedJob?: MongoMoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MongoMoveModeSwarm$outboundSchema: z.ZodType< - MongoMoveModeSwarm$Outbound, - z.ZodTypeDef, - MongoMoveModeSwarm -> = z.object({ - global: z.lazy(() => MongoMoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MongoMoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MongoMoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MongoMoveReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveModeSwarm$ { - /** @deprecated use `MongoMoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoMoveModeSwarm$inboundSchema; - /** @deprecated use `MongoMoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoMoveModeSwarm$outboundSchema; - /** @deprecated use `MongoMoveModeSwarm$Outbound` instead. */ - export type Outbound = MongoMoveModeSwarm$Outbound; -} - -export function mongoMoveModeSwarmToJSON( - mongoMoveModeSwarm: MongoMoveModeSwarm, -): string { - return JSON.stringify( - MongoMoveModeSwarm$outboundSchema.parse(mongoMoveModeSwarm), - ); -} - export function mongoMoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -609,37 +320,6 @@ export const MongoMoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoMoveDriverOpts$Outbound = {}; - -/** @internal */ -export const MongoMoveDriverOpts$outboundSchema: z.ZodType< - MongoMoveDriverOpts$Outbound, - z.ZodTypeDef, - MongoMoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveDriverOpts$ { - /** @deprecated use `MongoMoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoMoveDriverOpts$inboundSchema; - /** @deprecated use `MongoMoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoMoveDriverOpts$outboundSchema; - /** @deprecated use `MongoMoveDriverOpts$Outbound` instead. */ - export type Outbound = MongoMoveDriverOpts$Outbound; -} - -export function mongoMoveDriverOptsToJSON( - mongoMoveDriverOpts: MongoMoveDriverOpts, -): string { - return JSON.stringify( - MongoMoveDriverOpts$outboundSchema.parse(mongoMoveDriverOpts), - ); -} - export function mongoMoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -667,51 +347,6 @@ export const MongoMoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MongoMoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MongoMoveNetworkSwarm$outboundSchema: z.ZodType< - MongoMoveNetworkSwarm$Outbound, - z.ZodTypeDef, - MongoMoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MongoMoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveNetworkSwarm$ { - /** @deprecated use `MongoMoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoMoveNetworkSwarm$inboundSchema; - /** @deprecated use `MongoMoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoMoveNetworkSwarm$outboundSchema; - /** @deprecated use `MongoMoveNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoMoveNetworkSwarm$Outbound; -} - -export function mongoMoveNetworkSwarmToJSON( - mongoMoveNetworkSwarm: MongoMoveNetworkSwarm, -): string { - return JSON.stringify( - MongoMoveNetworkSwarm$outboundSchema.parse(mongoMoveNetworkSwarm), - ); -} - export function mongoMoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -737,48 +372,6 @@ export const MongoMovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MongoMovePlatform$outboundSchema: z.ZodType< - MongoMovePlatform$Outbound, - z.ZodTypeDef, - MongoMovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMovePlatform$ { - /** @deprecated use `MongoMovePlatform$inboundSchema` instead. */ - export const inboundSchema = MongoMovePlatform$inboundSchema; - /** @deprecated use `MongoMovePlatform$outboundSchema` instead. */ - export const outboundSchema = MongoMovePlatform$outboundSchema; - /** @deprecated use `MongoMovePlatform$Outbound` instead. */ - export type Outbound = MongoMovePlatform$Outbound; -} - -export function mongoMovePlatformToJSON( - mongoMovePlatform: MongoMovePlatform, -): string { - return JSON.stringify( - MongoMovePlatform$outboundSchema.parse(mongoMovePlatform), - ); -} - export function mongoMovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -802,43 +395,6 @@ export const MongoMoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MongoMoveSpread$outboundSchema: z.ZodType< - MongoMoveSpread$Outbound, - z.ZodTypeDef, - MongoMoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveSpread$ { - /** @deprecated use `MongoMoveSpread$inboundSchema` instead. */ - export const inboundSchema = MongoMoveSpread$inboundSchema; - /** @deprecated use `MongoMoveSpread$outboundSchema` instead. */ - export const outboundSchema = MongoMoveSpread$outboundSchema; - /** @deprecated use `MongoMoveSpread$Outbound` instead. */ - export type Outbound = MongoMoveSpread$Outbound; -} - -export function mongoMoveSpreadToJSON( - mongoMoveSpread: MongoMoveSpread, -): string { - return JSON.stringify(MongoMoveSpread$outboundSchema.parse(mongoMoveSpread)); -} - export function mongoMoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -862,45 +418,6 @@ export const MongoMovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMovePreference$Outbound = { - Spread: MongoMoveSpread$Outbound; -}; - -/** @internal */ -export const MongoMovePreference$outboundSchema: z.ZodType< - MongoMovePreference$Outbound, - z.ZodTypeDef, - MongoMovePreference -> = z.object({ - spread: z.lazy(() => MongoMoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMovePreference$ { - /** @deprecated use `MongoMovePreference$inboundSchema` instead. */ - export const inboundSchema = MongoMovePreference$inboundSchema; - /** @deprecated use `MongoMovePreference$outboundSchema` instead. */ - export const outboundSchema = MongoMovePreference$outboundSchema; - /** @deprecated use `MongoMovePreference$Outbound` instead. */ - export type Outbound = MongoMovePreference$Outbound; -} - -export function mongoMovePreferenceToJSON( - mongoMovePreference: MongoMovePreference, -): string { - return JSON.stringify( - MongoMovePreference$outboundSchema.parse(mongoMovePreference), - ); -} - export function mongoMovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -931,55 +448,6 @@ export const MongoMovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MongoMovePlacementSwarm$outboundSchema: z.ZodType< - MongoMovePlacementSwarm$Outbound, - z.ZodTypeDef, - MongoMovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MongoMovePlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => MongoMovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMovePlacementSwarm$ { - /** @deprecated use `MongoMovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoMovePlacementSwarm$inboundSchema; - /** @deprecated use `MongoMovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoMovePlacementSwarm$outboundSchema; - /** @deprecated use `MongoMovePlacementSwarm$Outbound` instead. */ - export type Outbound = MongoMovePlacementSwarm$Outbound; -} - -export function mongoMovePlacementSwarmToJSON( - mongoMovePlacementSwarm: MongoMovePlacementSwarm, -): string { - return JSON.stringify( - MongoMovePlacementSwarm$outboundSchema.parse(mongoMovePlacementSwarm), - ); -} - export function mongoMovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1009,56 +477,6 @@ export const MongoMoveRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MongoMoveRestartPolicySwarm$outboundSchema: z.ZodType< - MongoMoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MongoMoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveRestartPolicySwarm$ { - /** @deprecated use `MongoMoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MongoMoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoMoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MongoMoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoMoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoMoveRestartPolicySwarm$Outbound; -} - -export function mongoMoveRestartPolicySwarmToJSON( - mongoMoveRestartPolicySwarm: MongoMoveRestartPolicySwarm, -): string { - return JSON.stringify( - MongoMoveRestartPolicySwarm$outboundSchema.parse( - mongoMoveRestartPolicySwarm, - ), - ); -} - export function mongoMoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1092,62 +510,6 @@ export const MongoMoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoMoveRollbackConfigSwarm$outboundSchema: z.ZodType< - MongoMoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MongoMoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveRollbackConfigSwarm$ { - /** @deprecated use `MongoMoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoMoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoMoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoMoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoMoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoMoveRollbackConfigSwarm$Outbound; -} - -export function mongoMoveRollbackConfigSwarmToJSON( - mongoMoveRollbackConfigSwarm: MongoMoveRollbackConfigSwarm, -): string { - return JSON.stringify( - MongoMoveRollbackConfigSwarm$outboundSchema.parse( - mongoMoveRollbackConfigSwarm, - ), - ); -} - export function mongoMoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1181,60 +543,6 @@ export const MongoMoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoMoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoMoveUpdateConfigSwarm$outboundSchema: z.ZodType< - MongoMoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MongoMoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveUpdateConfigSwarm$ { - /** @deprecated use `MongoMoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoMoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoMoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoMoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoMoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoMoveUpdateConfigSwarm$Outbound; -} - -export function mongoMoveUpdateConfigSwarmToJSON( - mongoMoveUpdateConfigSwarm: MongoMoveUpdateConfigSwarm, -): string { - return JSON.stringify( - MongoMoveUpdateConfigSwarm$outboundSchema.parse(mongoMoveUpdateConfigSwarm), - ); -} - export function mongoMoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1293,107 +601,6 @@ export const MongoMoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MongoMoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MongoMoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MongoMoveModeSwarm$Outbound | null; - mongoId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MongoMovePlacementSwarm$Outbound | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: MongoMoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MongoMoveRollbackConfigSwarm$Outbound | null; - serverId: string | null; - updateConfigSwarm: MongoMoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MongoMoveResponseBody$outboundSchema: z.ZodType< - MongoMoveResponseBody$Outbound, - z.ZodTypeDef, - MongoMoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MongoMoveApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoMoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MongoMoveModeSwarm$outboundSchema)), - mongoId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoMoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MongoMovePlacementSwarm$outboundSchema), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoMoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoMoveRollbackConfigSwarm$outboundSchema), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoMoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveResponseBody$ { - /** @deprecated use `MongoMoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = MongoMoveResponseBody$inboundSchema; - /** @deprecated use `MongoMoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = MongoMoveResponseBody$outboundSchema; - /** @deprecated use `MongoMoveResponseBody$Outbound` instead. */ - export type Outbound = MongoMoveResponseBody$Outbound; -} - -export function mongoMoveResponseBodyToJSON( - mongoMoveResponseBody: MongoMoveResponseBody, -): string { - return JSON.stringify( - MongoMoveResponseBody$outboundSchema.parse(mongoMoveResponseBody), - ); -} - export function mongoMoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1414,42 +621,6 @@ export const MongoMoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MongoMoveResponse$Outbound = - | MongoMoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MongoMoveResponse$outboundSchema: z.ZodType< - MongoMoveResponse$Outbound, - z.ZodTypeDef, - MongoMoveResponse -> = z.union([ - z.lazy(() => MongoMoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoMoveResponse$ { - /** @deprecated use `MongoMoveResponse$inboundSchema` instead. */ - export const inboundSchema = MongoMoveResponse$inboundSchema; - /** @deprecated use `MongoMoveResponse$outboundSchema` instead. */ - export const outboundSchema = MongoMoveResponse$outboundSchema; - /** @deprecated use `MongoMoveResponse$Outbound` instead. */ - export type Outbound = MongoMoveResponse$Outbound; -} - -export function mongoMoveResponseToJSON( - mongoMoveResponse: MongoMoveResponse, -): string { - return JSON.stringify( - MongoMoveResponse$outboundSchema.parse(mongoMoveResponse), - ); -} - export function mongoMoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongoone.ts b/src/models/operations/mongoone.ts index 1e095ca..531d3ab 100644 --- a/src/models/operations/mongoone.ts +++ b/src/models/operations/mongoone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -318,15 +318,6 @@ export type MongoOneResponseBody = { export type MongoOneResponse = MongoOneResponseBody | models.ErrorT; -/** @internal */ -export const MongoOneRequest$inboundSchema: z.ZodType< - MongoOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mongoId: z.string(), -}); - /** @internal */ export type MongoOneRequest$Outbound = { mongoId: string; @@ -341,119 +332,32 @@ export const MongoOneRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneRequest$ { - /** @deprecated use `MongoOneRequest$inboundSchema` instead. */ - export const inboundSchema = MongoOneRequest$inboundSchema; - /** @deprecated use `MongoOneRequest$outboundSchema` instead. */ - export const outboundSchema = MongoOneRequest$outboundSchema; - /** @deprecated use `MongoOneRequest$Outbound` instead. */ - export type Outbound = MongoOneRequest$Outbound; -} - export function mongoOneRequestToJSON( mongoOneRequest: MongoOneRequest, ): string { return JSON.stringify(MongoOneRequest$outboundSchema.parse(mongoOneRequest)); } -export function mongoOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoOneRequest' from JSON`, - ); -} - /** @internal */ export const MongoOneApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MongoOneApplicationStatus > = z.nativeEnum(MongoOneApplicationStatus); -/** @internal */ -export const MongoOneApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoOneApplicationStatus -> = MongoOneApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneApplicationStatus$ { - /** @deprecated use `MongoOneApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MongoOneApplicationStatus$inboundSchema; - /** @deprecated use `MongoOneApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MongoOneApplicationStatus$outboundSchema; -} - /** @internal */ export const MongoOneBackupType$inboundSchema: z.ZodNativeEnum< typeof MongoOneBackupType > = z.nativeEnum(MongoOneBackupType); -/** @internal */ -export const MongoOneBackupType$outboundSchema: z.ZodNativeEnum< - typeof MongoOneBackupType -> = MongoOneBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneBackupType$ { - /** @deprecated use `MongoOneBackupType$inboundSchema` instead. */ - export const inboundSchema = MongoOneBackupType$inboundSchema; - /** @deprecated use `MongoOneBackupType$outboundSchema` instead. */ - export const outboundSchema = MongoOneBackupType$outboundSchema; -} - /** @internal */ export const MongoOneDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MongoOneDatabaseType > = z.nativeEnum(MongoOneDatabaseType); -/** @internal */ -export const MongoOneDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MongoOneDatabaseType -> = MongoOneDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneDatabaseType$ { - /** @deprecated use `MongoOneDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MongoOneDatabaseType$inboundSchema; - /** @deprecated use `MongoOneDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MongoOneDatabaseType$outboundSchema; -} - /** @internal */ export const MongoOneMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MongoOneMetadataEnum > = z.nativeEnum(MongoOneMetadataEnum); -/** @internal */ -export const MongoOneMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoOneMetadataEnum -> = MongoOneMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMetadataEnum$ { - /** @deprecated use `MongoOneMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MongoOneMetadataEnum$inboundSchema; - /** @deprecated use `MongoOneMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MongoOneMetadataEnum$outboundSchema; -} - /** @internal */ export const MongoOneMariadb$inboundSchema: z.ZodType< MongoOneMariadb, @@ -464,41 +368,6 @@ export const MongoOneMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoOneMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoOneMariadb$outboundSchema: z.ZodType< - MongoOneMariadb$Outbound, - z.ZodTypeDef, - MongoOneMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMariadb$ { - /** @deprecated use `MongoOneMariadb$inboundSchema` instead. */ - export const inboundSchema = MongoOneMariadb$inboundSchema; - /** @deprecated use `MongoOneMariadb$outboundSchema` instead. */ - export const outboundSchema = MongoOneMariadb$outboundSchema; - /** @deprecated use `MongoOneMariadb$Outbound` instead. */ - export type Outbound = MongoOneMariadb$Outbound; -} - -export function mongoOneMariadbToJSON( - mongoOneMariadb: MongoOneMariadb, -): string { - return JSON.stringify(MongoOneMariadb$outboundSchema.parse(mongoOneMariadb)); -} - export function mongoOneMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -519,39 +388,6 @@ export const MongoOneMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoOneMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoOneMongo$outboundSchema: z.ZodType< - MongoOneMongo$Outbound, - z.ZodTypeDef, - MongoOneMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMongo$ { - /** @deprecated use `MongoOneMongo$inboundSchema` instead. */ - export const inboundSchema = MongoOneMongo$inboundSchema; - /** @deprecated use `MongoOneMongo$outboundSchema` instead. */ - export const outboundSchema = MongoOneMongo$outboundSchema; - /** @deprecated use `MongoOneMongo$Outbound` instead. */ - export type Outbound = MongoOneMongo$Outbound; -} - -export function mongoOneMongoToJSON(mongoOneMongo: MongoOneMongo): string { - return JSON.stringify(MongoOneMongo$outboundSchema.parse(mongoOneMongo)); -} - export function mongoOneMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -571,37 +407,6 @@ export const MongoOneMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MongoOneMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MongoOneMysql$outboundSchema: z.ZodType< - MongoOneMysql$Outbound, - z.ZodTypeDef, - MongoOneMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMysql$ { - /** @deprecated use `MongoOneMysql$inboundSchema` instead. */ - export const inboundSchema = MongoOneMysql$inboundSchema; - /** @deprecated use `MongoOneMysql$outboundSchema` instead. */ - export const outboundSchema = MongoOneMysql$outboundSchema; - /** @deprecated use `MongoOneMysql$Outbound` instead. */ - export type Outbound = MongoOneMysql$Outbound; -} - -export function mongoOneMysqlToJSON(mongoOneMysql: MongoOneMysql): string { - return JSON.stringify(MongoOneMysql$outboundSchema.parse(mongoOneMysql)); -} - export function mongoOneMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -621,41 +426,6 @@ export const MongoOnePostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoOnePostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MongoOnePostgres$outboundSchema: z.ZodType< - MongoOnePostgres$Outbound, - z.ZodTypeDef, - MongoOnePostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOnePostgres$ { - /** @deprecated use `MongoOnePostgres$inboundSchema` instead. */ - export const inboundSchema = MongoOnePostgres$inboundSchema; - /** @deprecated use `MongoOnePostgres$outboundSchema` instead. */ - export const outboundSchema = MongoOnePostgres$outboundSchema; - /** @deprecated use `MongoOnePostgres$Outbound` instead. */ - export type Outbound = MongoOnePostgres$Outbound; -} - -export function mongoOnePostgresToJSON( - mongoOnePostgres: MongoOnePostgres, -): string { - return JSON.stringify( - MongoOnePostgres$outboundSchema.parse(mongoOnePostgres), - ); -} - export function mongoOnePostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -678,47 +448,6 @@ export const MongoOneMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MongoOnePostgres$inboundSchema).optional(), }); -/** @internal */ -export type MongoOneMetadata$Outbound = { - mariadb?: MongoOneMariadb$Outbound | undefined; - mongo?: MongoOneMongo$Outbound | undefined; - mysql?: MongoOneMysql$Outbound | undefined; - postgres?: MongoOnePostgres$Outbound | undefined; -}; - -/** @internal */ -export const MongoOneMetadata$outboundSchema: z.ZodType< - MongoOneMetadata$Outbound, - z.ZodTypeDef, - MongoOneMetadata -> = z.object({ - mariadb: z.lazy(() => MongoOneMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MongoOneMongo$outboundSchema).optional(), - mysql: z.lazy(() => MongoOneMysql$outboundSchema).optional(), - postgres: z.lazy(() => MongoOnePostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMetadata$ { - /** @deprecated use `MongoOneMetadata$inboundSchema` instead. */ - export const inboundSchema = MongoOneMetadata$inboundSchema; - /** @deprecated use `MongoOneMetadata$outboundSchema` instead. */ - export const outboundSchema = MongoOneMetadata$outboundSchema; - /** @deprecated use `MongoOneMetadata$Outbound` instead. */ - export type Outbound = MongoOneMetadata$Outbound; -} - -export function mongoOneMetadataToJSON( - mongoOneMetadata: MongoOneMetadata, -): string { - return JSON.stringify( - MongoOneMetadata$outboundSchema.parse(mongoOneMetadata), - ); -} - export function mongoOneMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -739,40 +468,6 @@ export const MongoOneMetadataUnion$inboundSchema: z.ZodType< MongoOneMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MongoOneMetadataUnion$Outbound = MongoOneMetadata$Outbound | string; - -/** @internal */ -export const MongoOneMetadataUnion$outboundSchema: z.ZodType< - MongoOneMetadataUnion$Outbound, - z.ZodTypeDef, - MongoOneMetadataUnion -> = z.union([ - z.lazy(() => MongoOneMetadata$outboundSchema), - MongoOneMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMetadataUnion$ { - /** @deprecated use `MongoOneMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MongoOneMetadataUnion$inboundSchema; - /** @deprecated use `MongoOneMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MongoOneMetadataUnion$outboundSchema; - /** @deprecated use `MongoOneMetadataUnion$Outbound` instead. */ - export type Outbound = MongoOneMetadataUnion$Outbound; -} - -export function mongoOneMetadataUnionToJSON( - mongoOneMetadataUnion: MongoOneMetadataUnion, -): string { - return JSON.stringify( - MongoOneMetadataUnion$outboundSchema.parse(mongoOneMetadataUnion), - ); -} - export function mongoOneMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -814,76 +509,6 @@ export const MongoOneBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MongoOneBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MongoOneMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MongoOneBackup$outboundSchema: z.ZodType< - MongoOneBackup$Outbound, - z.ZodTypeDef, - MongoOneBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MongoOneBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MongoOneDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MongoOneMetadata$outboundSchema), - MongoOneMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneBackup$ { - /** @deprecated use `MongoOneBackup$inboundSchema` instead. */ - export const inboundSchema = MongoOneBackup$inboundSchema; - /** @deprecated use `MongoOneBackup$outboundSchema` instead. */ - export const outboundSchema = MongoOneBackup$outboundSchema; - /** @deprecated use `MongoOneBackup$Outbound` instead. */ - export type Outbound = MongoOneBackup$Outbound; -} - -export function mongoOneBackupToJSON(mongoOneBackup: MongoOneBackup): string { - return JSON.stringify(MongoOneBackup$outboundSchema.parse(mongoOneBackup)); -} - export function mongoOneBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -908,49 +533,6 @@ export const MongoOneProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoOneProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MongoOneProject$outboundSchema: z.ZodType< - MongoOneProject$Outbound, - z.ZodTypeDef, - MongoOneProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneProject$ { - /** @deprecated use `MongoOneProject$inboundSchema` instead. */ - export const inboundSchema = MongoOneProject$inboundSchema; - /** @deprecated use `MongoOneProject$outboundSchema` instead. */ - export const outboundSchema = MongoOneProject$outboundSchema; - /** @deprecated use `MongoOneProject$Outbound` instead. */ - export type Outbound = MongoOneProject$Outbound; -} - -export function mongoOneProjectToJSON( - mongoOneProject: MongoOneProject, -): string { - return JSON.stringify(MongoOneProject$outboundSchema.parse(mongoOneProject)); -} - export function mongoOneProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -976,53 +558,6 @@ export const MongoOneEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoOneEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MongoOneProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MongoOneEnvironment$outboundSchema: z.ZodType< - MongoOneEnvironment$Outbound, - z.ZodTypeDef, - MongoOneEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MongoOneProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneEnvironment$ { - /** @deprecated use `MongoOneEnvironment$inboundSchema` instead. */ - export const inboundSchema = MongoOneEnvironment$inboundSchema; - /** @deprecated use `MongoOneEnvironment$outboundSchema` instead. */ - export const outboundSchema = MongoOneEnvironment$outboundSchema; - /** @deprecated use `MongoOneEnvironment$Outbound` instead. */ - export type Outbound = MongoOneEnvironment$Outbound; -} - -export function mongoOneEnvironmentToJSON( - mongoOneEnvironment: MongoOneEnvironment, -): string { - return JSON.stringify( - MongoOneEnvironment$outboundSchema.parse(mongoOneEnvironment), - ); -} - export function mongoOneEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1047,63 +582,12 @@ export const MongoOneHealthCheckSwarm$inboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { "Interval": "interval", - "Retries": "retries", - "StartPeriod": "startPeriod", - "Test": "test", - "Timeout": "timeout", - }); -}); - -/** @internal */ -export type MongoOneHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MongoOneHealthCheckSwarm$outboundSchema: z.ZodType< - MongoOneHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MongoOneHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneHealthCheckSwarm$ { - /** @deprecated use `MongoOneHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoOneHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoOneHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoOneHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoOneHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoOneHealthCheckSwarm$Outbound; -} - -export function mongoOneHealthCheckSwarmToJSON( - mongoOneHealthCheckSwarm: MongoOneHealthCheckSwarm, -): string { - return JSON.stringify( - MongoOneHealthCheckSwarm$outboundSchema.parse(mongoOneHealthCheckSwarm), - ); -} + "Retries": "retries", + "StartPeriod": "startPeriod", + "Test": "test", + "Timeout": "timeout", + }); +}); export function mongoOneHealthCheckSwarmFromJSON( jsonString: string, @@ -1122,33 +606,6 @@ export const MongoOneGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoOneGlobal$Outbound = {}; - -/** @internal */ -export const MongoOneGlobal$outboundSchema: z.ZodType< - MongoOneGlobal$Outbound, - z.ZodTypeDef, - MongoOneGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneGlobal$ { - /** @deprecated use `MongoOneGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoOneGlobal$inboundSchema; - /** @deprecated use `MongoOneGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoOneGlobal$outboundSchema; - /** @deprecated use `MongoOneGlobal$Outbound` instead. */ - export type Outbound = MongoOneGlobal$Outbound; -} - -export function mongoOneGlobalToJSON(mongoOneGlobal: MongoOneGlobal): string { - return JSON.stringify(MongoOneGlobal$outboundSchema.parse(mongoOneGlobal)); -} - export function mongoOneGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1166,37 +623,6 @@ export const MongoOneGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoOneGlobalJob$Outbound = {}; - -/** @internal */ -export const MongoOneGlobalJob$outboundSchema: z.ZodType< - MongoOneGlobalJob$Outbound, - z.ZodTypeDef, - MongoOneGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneGlobalJob$ { - /** @deprecated use `MongoOneGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoOneGlobalJob$inboundSchema; - /** @deprecated use `MongoOneGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoOneGlobalJob$outboundSchema; - /** @deprecated use `MongoOneGlobalJob$Outbound` instead. */ - export type Outbound = MongoOneGlobalJob$Outbound; -} - -export function mongoOneGlobalJobToJSON( - mongoOneGlobalJob: MongoOneGlobalJob, -): string { - return JSON.stringify( - MongoOneGlobalJob$outboundSchema.parse(mongoOneGlobalJob), - ); -} - export function mongoOneGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1220,45 +646,6 @@ export const MongoOneReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOneReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MongoOneReplicated$outboundSchema: z.ZodType< - MongoOneReplicated$Outbound, - z.ZodTypeDef, - MongoOneReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneReplicated$ { - /** @deprecated use `MongoOneReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoOneReplicated$inboundSchema; - /** @deprecated use `MongoOneReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoOneReplicated$outboundSchema; - /** @deprecated use `MongoOneReplicated$Outbound` instead. */ - export type Outbound = MongoOneReplicated$Outbound; -} - -export function mongoOneReplicatedToJSON( - mongoOneReplicated: MongoOneReplicated, -): string { - return JSON.stringify( - MongoOneReplicated$outboundSchema.parse(mongoOneReplicated), - ); -} - export function mongoOneReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1284,48 +671,6 @@ export const MongoOneReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOneReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MongoOneReplicatedJob$outboundSchema: z.ZodType< - MongoOneReplicatedJob$Outbound, - z.ZodTypeDef, - MongoOneReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneReplicatedJob$ { - /** @deprecated use `MongoOneReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoOneReplicatedJob$inboundSchema; - /** @deprecated use `MongoOneReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MongoOneReplicatedJob$outboundSchema; - /** @deprecated use `MongoOneReplicatedJob$Outbound` instead. */ - export type Outbound = MongoOneReplicatedJob$Outbound; -} - -export function mongoOneReplicatedJobToJSON( - mongoOneReplicatedJob: MongoOneReplicatedJob, -): string { - return JSON.stringify( - MongoOneReplicatedJob$outboundSchema.parse(mongoOneReplicatedJob), - ); -} - export function mongoOneReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1355,54 +700,6 @@ export const MongoOneModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOneModeSwarm$Outbound = { - Global?: MongoOneGlobal$Outbound | undefined; - GlobalJob?: MongoOneGlobalJob$Outbound | undefined; - Replicated?: MongoOneReplicated$Outbound | undefined; - ReplicatedJob?: MongoOneReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MongoOneModeSwarm$outboundSchema: z.ZodType< - MongoOneModeSwarm$Outbound, - z.ZodTypeDef, - MongoOneModeSwarm -> = z.object({ - global: z.lazy(() => MongoOneGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MongoOneGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MongoOneReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MongoOneReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneModeSwarm$ { - /** @deprecated use `MongoOneModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoOneModeSwarm$inboundSchema; - /** @deprecated use `MongoOneModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoOneModeSwarm$outboundSchema; - /** @deprecated use `MongoOneModeSwarm$Outbound` instead. */ - export type Outbound = MongoOneModeSwarm$Outbound; -} - -export function mongoOneModeSwarmToJSON( - mongoOneModeSwarm: MongoOneModeSwarm, -): string { - return JSON.stringify( - MongoOneModeSwarm$outboundSchema.parse(mongoOneModeSwarm), - ); -} - export function mongoOneModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1418,41 +715,10 @@ export const MongoOneServiceType$inboundSchema: z.ZodNativeEnum< typeof MongoOneServiceType > = z.nativeEnum(MongoOneServiceType); -/** @internal */ -export const MongoOneServiceType$outboundSchema: z.ZodNativeEnum< - typeof MongoOneServiceType -> = MongoOneServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneServiceType$ { - /** @deprecated use `MongoOneServiceType$inboundSchema` instead. */ - export const inboundSchema = MongoOneServiceType$inboundSchema; - /** @deprecated use `MongoOneServiceType$outboundSchema` instead. */ - export const outboundSchema = MongoOneServiceType$outboundSchema; -} - /** @internal */ export const MongoOneType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(MongoOneType); -/** @internal */ -export const MongoOneType$outboundSchema: z.ZodNativeEnum = - MongoOneType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneType$ { - /** @deprecated use `MongoOneType$inboundSchema` instead. */ - export const inboundSchema = MongoOneType$inboundSchema; - /** @deprecated use `MongoOneType$outboundSchema` instead. */ - export const outboundSchema = MongoOneType$outboundSchema; -} - /** @internal */ export const MongoOneMount$inboundSchema: z.ZodType< MongoOneMount, @@ -1476,65 +742,6 @@ export const MongoOneMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MongoOneMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MongoOneMount$outboundSchema: z.ZodType< - MongoOneMount$Outbound, - z.ZodTypeDef, - MongoOneMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MongoOneServiceType$outboundSchema, - type: MongoOneType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMount$ { - /** @deprecated use `MongoOneMount$inboundSchema` instead. */ - export const inboundSchema = MongoOneMount$inboundSchema; - /** @deprecated use `MongoOneMount$outboundSchema` instead. */ - export const outboundSchema = MongoOneMount$outboundSchema; - /** @deprecated use `MongoOneMount$Outbound` instead. */ - export type Outbound = MongoOneMount$Outbound; -} - -export function mongoOneMountToJSON(mongoOneMount: MongoOneMount): string { - return JSON.stringify(MongoOneMount$outboundSchema.parse(mongoOneMount)); -} - export function mongoOneMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1552,37 +759,6 @@ export const MongoOneDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoOneDriverOpts$Outbound = {}; - -/** @internal */ -export const MongoOneDriverOpts$outboundSchema: z.ZodType< - MongoOneDriverOpts$Outbound, - z.ZodTypeDef, - MongoOneDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneDriverOpts$ { - /** @deprecated use `MongoOneDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoOneDriverOpts$inboundSchema; - /** @deprecated use `MongoOneDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoOneDriverOpts$outboundSchema; - /** @deprecated use `MongoOneDriverOpts$Outbound` instead. */ - export type Outbound = MongoOneDriverOpts$Outbound; -} - -export function mongoOneDriverOptsToJSON( - mongoOneDriverOpts: MongoOneDriverOpts, -): string { - return JSON.stringify( - MongoOneDriverOpts$outboundSchema.parse(mongoOneDriverOpts), - ); -} - export function mongoOneDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1610,51 +786,6 @@ export const MongoOneNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOneNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MongoOneDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MongoOneNetworkSwarm$outboundSchema: z.ZodType< - MongoOneNetworkSwarm$Outbound, - z.ZodTypeDef, - MongoOneNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MongoOneDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneNetworkSwarm$ { - /** @deprecated use `MongoOneNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoOneNetworkSwarm$inboundSchema; - /** @deprecated use `MongoOneNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoOneNetworkSwarm$outboundSchema; - /** @deprecated use `MongoOneNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoOneNetworkSwarm$Outbound; -} - -export function mongoOneNetworkSwarmToJSON( - mongoOneNetworkSwarm: MongoOneNetworkSwarm, -): string { - return JSON.stringify( - MongoOneNetworkSwarm$outboundSchema.parse(mongoOneNetworkSwarm), - ); -} - export function mongoOneNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1680,48 +811,6 @@ export const MongoOnePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOnePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MongoOnePlatform$outboundSchema: z.ZodType< - MongoOnePlatform$Outbound, - z.ZodTypeDef, - MongoOnePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOnePlatform$ { - /** @deprecated use `MongoOnePlatform$inboundSchema` instead. */ - export const inboundSchema = MongoOnePlatform$inboundSchema; - /** @deprecated use `MongoOnePlatform$outboundSchema` instead. */ - export const outboundSchema = MongoOnePlatform$outboundSchema; - /** @deprecated use `MongoOnePlatform$Outbound` instead. */ - export type Outbound = MongoOnePlatform$Outbound; -} - -export function mongoOnePlatformToJSON( - mongoOnePlatform: MongoOnePlatform, -): string { - return JSON.stringify( - MongoOnePlatform$outboundSchema.parse(mongoOnePlatform), - ); -} - export function mongoOnePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1745,41 +834,6 @@ export const MongoOneSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOneSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MongoOneSpread$outboundSchema: z.ZodType< - MongoOneSpread$Outbound, - z.ZodTypeDef, - MongoOneSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneSpread$ { - /** @deprecated use `MongoOneSpread$inboundSchema` instead. */ - export const inboundSchema = MongoOneSpread$inboundSchema; - /** @deprecated use `MongoOneSpread$outboundSchema` instead. */ - export const outboundSchema = MongoOneSpread$outboundSchema; - /** @deprecated use `MongoOneSpread$Outbound` instead. */ - export type Outbound = MongoOneSpread$Outbound; -} - -export function mongoOneSpreadToJSON(mongoOneSpread: MongoOneSpread): string { - return JSON.stringify(MongoOneSpread$outboundSchema.parse(mongoOneSpread)); -} - export function mongoOneSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1803,45 +857,6 @@ export const MongoOnePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOnePreference$Outbound = { - Spread: MongoOneSpread$Outbound; -}; - -/** @internal */ -export const MongoOnePreference$outboundSchema: z.ZodType< - MongoOnePreference$Outbound, - z.ZodTypeDef, - MongoOnePreference -> = z.object({ - spread: z.lazy(() => MongoOneSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOnePreference$ { - /** @deprecated use `MongoOnePreference$inboundSchema` instead. */ - export const inboundSchema = MongoOnePreference$inboundSchema; - /** @deprecated use `MongoOnePreference$outboundSchema` instead. */ - export const outboundSchema = MongoOnePreference$outboundSchema; - /** @deprecated use `MongoOnePreference$Outbound` instead. */ - export type Outbound = MongoOnePreference$Outbound; -} - -export function mongoOnePreferenceToJSON( - mongoOnePreference: MongoOnePreference, -): string { - return JSON.stringify( - MongoOnePreference$outboundSchema.parse(mongoOnePreference), - ); -} - export function mongoOnePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1865,61 +880,12 @@ export const MongoOnePlacementSwarm$inboundSchema: z.ZodType< .optional(), }).transform((v) => { return remap$(v, { - "Constraints": "constraints", - "MaxReplicas": "maxReplicas", - "Platforms": "platforms", - "Preferences": "preferences", - }); -}); - -/** @internal */ -export type MongoOnePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MongoOnePlacementSwarm$outboundSchema: z.ZodType< - MongoOnePlacementSwarm$Outbound, - z.ZodTypeDef, - MongoOnePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MongoOnePlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => MongoOnePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOnePlacementSwarm$ { - /** @deprecated use `MongoOnePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoOnePlacementSwarm$inboundSchema; - /** @deprecated use `MongoOnePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoOnePlacementSwarm$outboundSchema; - /** @deprecated use `MongoOnePlacementSwarm$Outbound` instead. */ - export type Outbound = MongoOnePlacementSwarm$Outbound; -} - -export function mongoOnePlacementSwarmToJSON( - mongoOnePlacementSwarm: MongoOnePlacementSwarm, -): string { - return JSON.stringify( - MongoOnePlacementSwarm$outboundSchema.parse(mongoOnePlacementSwarm), - ); -} + "Constraints": "constraints", + "MaxReplicas": "maxReplicas", + "Platforms": "platforms", + "Preferences": "preferences", + }); +}); export function mongoOnePlacementSwarmFromJSON( jsonString: string, @@ -1950,54 +916,6 @@ export const MongoOneRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOneRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MongoOneRestartPolicySwarm$outboundSchema: z.ZodType< - MongoOneRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MongoOneRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneRestartPolicySwarm$ { - /** @deprecated use `MongoOneRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MongoOneRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoOneRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MongoOneRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoOneRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoOneRestartPolicySwarm$Outbound; -} - -export function mongoOneRestartPolicySwarmToJSON( - mongoOneRestartPolicySwarm: MongoOneRestartPolicySwarm, -): string { - return JSON.stringify( - MongoOneRestartPolicySwarm$outboundSchema.parse(mongoOneRestartPolicySwarm), - ); -} - export function mongoOneRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2031,62 +949,6 @@ export const MongoOneRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOneRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoOneRollbackConfigSwarm$outboundSchema: z.ZodType< - MongoOneRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MongoOneRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneRollbackConfigSwarm$ { - /** @deprecated use `MongoOneRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoOneRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoOneRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoOneRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoOneRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoOneRollbackConfigSwarm$Outbound; -} - -export function mongoOneRollbackConfigSwarmToJSON( - mongoOneRollbackConfigSwarm: MongoOneRollbackConfigSwarm, -): string { - return JSON.stringify( - MongoOneRollbackConfigSwarm$outboundSchema.parse( - mongoOneRollbackConfigSwarm, - ), - ); -} - export function mongoOneRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2102,22 +964,6 @@ export const MongoOneMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MongoOneMetricsConfigEnum > = z.nativeEnum(MongoOneMetricsConfigEnum); -/** @internal */ -export const MongoOneMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoOneMetricsConfigEnum -> = MongoOneMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMetricsConfigEnum$ { - /** @deprecated use `MongoOneMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MongoOneMetricsConfigEnum$inboundSchema; - /** @deprecated use `MongoOneMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MongoOneMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MongoOneMetricsConfigUnion1$inboundSchema: z.ZodType< MongoOneMetricsConfigUnion1, @@ -2130,48 +976,6 @@ export const MongoOneMetricsConfigUnion1$inboundSchema: z.ZodType< MongoOneMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MongoOneMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MongoOneMetricsConfigUnion1$outboundSchema: z.ZodType< - MongoOneMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MongoOneMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MongoOneMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMetricsConfigUnion1$ { - /** @deprecated use `MongoOneMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MongoOneMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MongoOneMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MongoOneMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MongoOneMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MongoOneMetricsConfigUnion1$Outbound; -} - -export function mongoOneMetricsConfigUnion1ToJSON( - mongoOneMetricsConfigUnion1: MongoOneMetricsConfigUnion1, -): string { - return JSON.stringify( - MongoOneMetricsConfigUnion1$outboundSchema.parse( - mongoOneMetricsConfigUnion1, - ), - ); -} - export function mongoOneMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2198,54 +1002,6 @@ export const MongoOneMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MongoOneMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MongoOneMetricsConfigUnion2$outboundSchema: z.ZodType< - MongoOneMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MongoOneMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneMetricsConfigUnion2$ { - /** @deprecated use `MongoOneMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MongoOneMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MongoOneMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MongoOneMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MongoOneMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MongoOneMetricsConfigUnion2$Outbound; -} - -export function mongoOneMetricsConfigUnion2ToJSON( - mongoOneMetricsConfigUnion2: MongoOneMetricsConfigUnion2, -): string { - return JSON.stringify( - MongoOneMetricsConfigUnion2$outboundSchema.parse( - mongoOneMetricsConfigUnion2, - ), - ); -} - export function mongoOneMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2261,22 +1017,6 @@ export const MongoOneServerStatus$inboundSchema: z.ZodNativeEnum< typeof MongoOneServerStatus > = z.nativeEnum(MongoOneServerStatus); -/** @internal */ -export const MongoOneServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoOneServerStatus -> = MongoOneServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneServerStatus$ { - /** @deprecated use `MongoOneServerStatus$inboundSchema` instead. */ - export const inboundSchema = MongoOneServerStatus$inboundSchema; - /** @deprecated use `MongoOneServerStatus$outboundSchema` instead. */ - export const outboundSchema = MongoOneServerStatus$outboundSchema; -} - /** @internal */ export const MongoOneServer$inboundSchema: z.ZodType< MongoOneServer, @@ -2308,74 +1048,6 @@ export const MongoOneServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MongoOneServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MongoOneServer$outboundSchema: z.ZodType< - MongoOneServer$Outbound, - z.ZodTypeDef, - MongoOneServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MongoOneServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneServer$ { - /** @deprecated use `MongoOneServer$inboundSchema` instead. */ - export const inboundSchema = MongoOneServer$inboundSchema; - /** @deprecated use `MongoOneServer$outboundSchema` instead. */ - export const outboundSchema = MongoOneServer$outboundSchema; - /** @deprecated use `MongoOneServer$Outbound` instead. */ - export type Outbound = MongoOneServer$Outbound; -} - -export function mongoOneServerToJSON(mongoOneServer: MongoOneServer): string { - return JSON.stringify(MongoOneServer$outboundSchema.parse(mongoOneServer)); -} - export function mongoOneServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2409,60 +1081,6 @@ export const MongoOneUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoOneUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoOneUpdateConfigSwarm$outboundSchema: z.ZodType< - MongoOneUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MongoOneUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneUpdateConfigSwarm$ { - /** @deprecated use `MongoOneUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoOneUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoOneUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoOneUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoOneUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoOneUpdateConfigSwarm$Outbound; -} - -export function mongoOneUpdateConfigSwarmToJSON( - mongoOneUpdateConfigSwarm: MongoOneUpdateConfigSwarm, -): string { - return JSON.stringify( - MongoOneUpdateConfigSwarm$outboundSchema.parse(mongoOneUpdateConfigSwarm), - ); -} - export function mongoOneUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2525,115 +1143,6 @@ export const MongoOneResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MongoOneResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MongoOneEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MongoOneHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MongoOneModeSwarm$Outbound | null; - mongoId: string; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MongoOnePlacementSwarm$Outbound | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: MongoOneRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MongoOneRollbackConfigSwarm$Outbound | null; - server: MongoOneServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MongoOneUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MongoOneResponseBody$outboundSchema: z.ZodType< - MongoOneResponseBody$Outbound, - z.ZodTypeDef, - MongoOneResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MongoOneApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MongoOneBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MongoOneEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoOneHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MongoOneModeSwarm$outboundSchema)), - mongoId: z.string(), - mounts: z.array(z.lazy(() => MongoOneMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoOneNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MongoOnePlacementSwarm$outboundSchema), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoOneRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoOneRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MongoOneServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoOneUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneResponseBody$ { - /** @deprecated use `MongoOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = MongoOneResponseBody$inboundSchema; - /** @deprecated use `MongoOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = MongoOneResponseBody$outboundSchema; - /** @deprecated use `MongoOneResponseBody$Outbound` instead. */ - export type Outbound = MongoOneResponseBody$Outbound; -} - -export function mongoOneResponseBodyToJSON( - mongoOneResponseBody: MongoOneResponseBody, -): string { - return JSON.stringify( - MongoOneResponseBody$outboundSchema.parse(mongoOneResponseBody), - ); -} - export function mongoOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2654,42 +1163,6 @@ export const MongoOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MongoOneResponse$Outbound = - | MongoOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MongoOneResponse$outboundSchema: z.ZodType< - MongoOneResponse$Outbound, - z.ZodTypeDef, - MongoOneResponse -> = z.union([ - z.lazy(() => MongoOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoOneResponse$ { - /** @deprecated use `MongoOneResponse$inboundSchema` instead. */ - export const inboundSchema = MongoOneResponse$inboundSchema; - /** @deprecated use `MongoOneResponse$outboundSchema` instead. */ - export const outboundSchema = MongoOneResponse$outboundSchema; - /** @deprecated use `MongoOneResponse$Outbound` instead. */ - export type Outbound = MongoOneResponse$Outbound; -} - -export function mongoOneResponseToJSON( - mongoOneResponse: MongoOneResponse, -): string { - return JSON.stringify( - MongoOneResponse$outboundSchema.parse(mongoOneResponse), - ); -} - export function mongoOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongorebuild.ts b/src/models/operations/mongorebuild.ts index 8a97983..2556d29 100644 --- a/src/models/operations/mongorebuild.ts +++ b/src/models/operations/mongorebuild.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type MongoRebuildRequest = { export type MongoRebuildResponse = models.ErrorT | boolean; -/** @internal */ -export const MongoRebuildRequest$inboundSchema: z.ZodType< - MongoRebuildRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mongoId: z.string(), -}); - /** @internal */ export type MongoRebuildRequest$Outbound = { mongoId: string; @@ -37,19 +28,6 @@ export const MongoRebuildRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRebuildRequest$ { - /** @deprecated use `MongoRebuildRequest$inboundSchema` instead. */ - export const inboundSchema = MongoRebuildRequest$inboundSchema; - /** @deprecated use `MongoRebuildRequest$outboundSchema` instead. */ - export const outboundSchema = MongoRebuildRequest$outboundSchema; - /** @deprecated use `MongoRebuildRequest$Outbound` instead. */ - export type Outbound = MongoRebuildRequest$Outbound; -} - export function mongoRebuildRequestToJSON( mongoRebuildRequest: MongoRebuildRequest, ): string { @@ -58,16 +36,6 @@ export function mongoRebuildRequestToJSON( ); } -export function mongoRebuildRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoRebuildRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoRebuildRequest' from JSON`, - ); -} - /** @internal */ export const MongoRebuildResponse$inboundSchema: z.ZodType< MongoRebuildResponse, @@ -75,37 +43,6 @@ export const MongoRebuildResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MongoRebuildResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MongoRebuildResponse$outboundSchema: z.ZodType< - MongoRebuildResponse$Outbound, - z.ZodTypeDef, - MongoRebuildResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRebuildResponse$ { - /** @deprecated use `MongoRebuildResponse$inboundSchema` instead. */ - export const inboundSchema = MongoRebuildResponse$inboundSchema; - /** @deprecated use `MongoRebuildResponse$outboundSchema` instead. */ - export const outboundSchema = MongoRebuildResponse$outboundSchema; - /** @deprecated use `MongoRebuildResponse$Outbound` instead. */ - export type Outbound = MongoRebuildResponse$Outbound; -} - -export function mongoRebuildResponseToJSON( - mongoRebuildResponse: MongoRebuildResponse, -): string { - return JSON.stringify( - MongoRebuildResponse$outboundSchema.parse(mongoRebuildResponse), - ); -} - export function mongoRebuildResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongoreload.ts b/src/models/operations/mongoreload.ts index cd40b7f..24c77f8 100644 --- a/src/models/operations/mongoreload.ts +++ b/src/models/operations/mongoreload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type MongoReloadRequest = { export type MongoReloadResponse = models.ErrorT | boolean; -/** @internal */ -export const MongoReloadRequest$inboundSchema: z.ZodType< - MongoReloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - mongoId: z.string(), -}); - /** @internal */ export type MongoReloadRequest$Outbound = { appName: string; @@ -41,19 +31,6 @@ export const MongoReloadRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoReloadRequest$ { - /** @deprecated use `MongoReloadRequest$inboundSchema` instead. */ - export const inboundSchema = MongoReloadRequest$inboundSchema; - /** @deprecated use `MongoReloadRequest$outboundSchema` instead. */ - export const outboundSchema = MongoReloadRequest$outboundSchema; - /** @deprecated use `MongoReloadRequest$Outbound` instead. */ - export type Outbound = MongoReloadRequest$Outbound; -} - export function mongoReloadRequestToJSON( mongoReloadRequest: MongoReloadRequest, ): string { @@ -62,16 +39,6 @@ export function mongoReloadRequestToJSON( ); } -export function mongoReloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoReloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoReloadRequest' from JSON`, - ); -} - /** @internal */ export const MongoReloadResponse$inboundSchema: z.ZodType< MongoReloadResponse, @@ -79,37 +46,6 @@ export const MongoReloadResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MongoReloadResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MongoReloadResponse$outboundSchema: z.ZodType< - MongoReloadResponse$Outbound, - z.ZodTypeDef, - MongoReloadResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoReloadResponse$ { - /** @deprecated use `MongoReloadResponse$inboundSchema` instead. */ - export const inboundSchema = MongoReloadResponse$inboundSchema; - /** @deprecated use `MongoReloadResponse$outboundSchema` instead. */ - export const outboundSchema = MongoReloadResponse$outboundSchema; - /** @deprecated use `MongoReloadResponse$Outbound` instead. */ - export type Outbound = MongoReloadResponse$Outbound; -} - -export function mongoReloadResponseToJSON( - mongoReloadResponse: MongoReloadResponse, -): string { - return JSON.stringify( - MongoReloadResponse$outboundSchema.parse(mongoReloadResponse), - ); -} - export function mongoReloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongoremove.ts b/src/models/operations/mongoremove.ts index 84dd83c..e7483f3 100644 --- a/src/models/operations/mongoremove.ts +++ b/src/models/operations/mongoremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -326,15 +326,6 @@ export type MongoRemoveResponseBody = { export type MongoRemoveResponse = MongoRemoveResponseBody | models.ErrorT; -/** @internal */ -export const MongoRemoveRequest$inboundSchema: z.ZodType< - MongoRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mongoId: z.string(), -}); - /** @internal */ export type MongoRemoveRequest$Outbound = { mongoId: string; @@ -349,19 +340,6 @@ export const MongoRemoveRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveRequest$ { - /** @deprecated use `MongoRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveRequest$inboundSchema; - /** @deprecated use `MongoRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveRequest$outboundSchema; - /** @deprecated use `MongoRemoveRequest$Outbound` instead. */ - export type Outbound = MongoRemoveRequest$Outbound; -} - export function mongoRemoveRequestToJSON( mongoRemoveRequest: MongoRemoveRequest, ): string { @@ -370,100 +348,26 @@ export function mongoRemoveRequestToJSON( ); } -export function mongoRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoRemoveRequest' from JSON`, - ); -} - /** @internal */ export const MongoRemoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MongoRemoveApplicationStatus > = z.nativeEnum(MongoRemoveApplicationStatus); -/** @internal */ -export const MongoRemoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoRemoveApplicationStatus -> = MongoRemoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveApplicationStatus$ { - /** @deprecated use `MongoRemoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveApplicationStatus$inboundSchema; - /** @deprecated use `MongoRemoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveApplicationStatus$outboundSchema; -} - /** @internal */ export const MongoRemoveBackupType$inboundSchema: z.ZodNativeEnum< typeof MongoRemoveBackupType > = z.nativeEnum(MongoRemoveBackupType); -/** @internal */ -export const MongoRemoveBackupType$outboundSchema: z.ZodNativeEnum< - typeof MongoRemoveBackupType -> = MongoRemoveBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveBackupType$ { - /** @deprecated use `MongoRemoveBackupType$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveBackupType$inboundSchema; - /** @deprecated use `MongoRemoveBackupType$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveBackupType$outboundSchema; -} - /** @internal */ export const MongoRemoveDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MongoRemoveDatabaseType > = z.nativeEnum(MongoRemoveDatabaseType); -/** @internal */ -export const MongoRemoveDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MongoRemoveDatabaseType -> = MongoRemoveDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveDatabaseType$ { - /** @deprecated use `MongoRemoveDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveDatabaseType$inboundSchema; - /** @deprecated use `MongoRemoveDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveDatabaseType$outboundSchema; -} - /** @internal */ export const MongoRemoveMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MongoRemoveMetadataEnum > = z.nativeEnum(MongoRemoveMetadataEnum); -/** @internal */ -export const MongoRemoveMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoRemoveMetadataEnum -> = MongoRemoveMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMetadataEnum$ { - /** @deprecated use `MongoRemoveMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMetadataEnum$inboundSchema; - /** @deprecated use `MongoRemoveMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMetadataEnum$outboundSchema; -} - /** @internal */ export const MongoRemoveMariadb$inboundSchema: z.ZodType< MongoRemoveMariadb, @@ -474,43 +378,6 @@ export const MongoRemoveMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoRemoveMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoRemoveMariadb$outboundSchema: z.ZodType< - MongoRemoveMariadb$Outbound, - z.ZodTypeDef, - MongoRemoveMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMariadb$ { - /** @deprecated use `MongoRemoveMariadb$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMariadb$inboundSchema; - /** @deprecated use `MongoRemoveMariadb$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMariadb$outboundSchema; - /** @deprecated use `MongoRemoveMariadb$Outbound` instead. */ - export type Outbound = MongoRemoveMariadb$Outbound; -} - -export function mongoRemoveMariadbToJSON( - mongoRemoveMariadb: MongoRemoveMariadb, -): string { - return JSON.stringify( - MongoRemoveMariadb$outboundSchema.parse(mongoRemoveMariadb), - ); -} - export function mongoRemoveMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -531,43 +398,6 @@ export const MongoRemoveMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoRemoveMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoRemoveMongo$outboundSchema: z.ZodType< - MongoRemoveMongo$Outbound, - z.ZodTypeDef, - MongoRemoveMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMongo$ { - /** @deprecated use `MongoRemoveMongo$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMongo$inboundSchema; - /** @deprecated use `MongoRemoveMongo$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMongo$outboundSchema; - /** @deprecated use `MongoRemoveMongo$Outbound` instead. */ - export type Outbound = MongoRemoveMongo$Outbound; -} - -export function mongoRemoveMongoToJSON( - mongoRemoveMongo: MongoRemoveMongo, -): string { - return JSON.stringify( - MongoRemoveMongo$outboundSchema.parse(mongoRemoveMongo), - ); -} - export function mongoRemoveMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -587,41 +417,6 @@ export const MongoRemoveMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MongoRemoveMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MongoRemoveMysql$outboundSchema: z.ZodType< - MongoRemoveMysql$Outbound, - z.ZodTypeDef, - MongoRemoveMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMysql$ { - /** @deprecated use `MongoRemoveMysql$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMysql$inboundSchema; - /** @deprecated use `MongoRemoveMysql$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMysql$outboundSchema; - /** @deprecated use `MongoRemoveMysql$Outbound` instead. */ - export type Outbound = MongoRemoveMysql$Outbound; -} - -export function mongoRemoveMysqlToJSON( - mongoRemoveMysql: MongoRemoveMysql, -): string { - return JSON.stringify( - MongoRemoveMysql$outboundSchema.parse(mongoRemoveMysql), - ); -} - export function mongoRemoveMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -641,41 +436,6 @@ export const MongoRemovePostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoRemovePostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MongoRemovePostgres$outboundSchema: z.ZodType< - MongoRemovePostgres$Outbound, - z.ZodTypeDef, - MongoRemovePostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemovePostgres$ { - /** @deprecated use `MongoRemovePostgres$inboundSchema` instead. */ - export const inboundSchema = MongoRemovePostgres$inboundSchema; - /** @deprecated use `MongoRemovePostgres$outboundSchema` instead. */ - export const outboundSchema = MongoRemovePostgres$outboundSchema; - /** @deprecated use `MongoRemovePostgres$Outbound` instead. */ - export type Outbound = MongoRemovePostgres$Outbound; -} - -export function mongoRemovePostgresToJSON( - mongoRemovePostgres: MongoRemovePostgres, -): string { - return JSON.stringify( - MongoRemovePostgres$outboundSchema.parse(mongoRemovePostgres), - ); -} - export function mongoRemovePostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -698,47 +458,6 @@ export const MongoRemoveMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MongoRemovePostgres$inboundSchema).optional(), }); -/** @internal */ -export type MongoRemoveMetadata$Outbound = { - mariadb?: MongoRemoveMariadb$Outbound | undefined; - mongo?: MongoRemoveMongo$Outbound | undefined; - mysql?: MongoRemoveMysql$Outbound | undefined; - postgres?: MongoRemovePostgres$Outbound | undefined; -}; - -/** @internal */ -export const MongoRemoveMetadata$outboundSchema: z.ZodType< - MongoRemoveMetadata$Outbound, - z.ZodTypeDef, - MongoRemoveMetadata -> = z.object({ - mariadb: z.lazy(() => MongoRemoveMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MongoRemoveMongo$outboundSchema).optional(), - mysql: z.lazy(() => MongoRemoveMysql$outboundSchema).optional(), - postgres: z.lazy(() => MongoRemovePostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMetadata$ { - /** @deprecated use `MongoRemoveMetadata$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMetadata$inboundSchema; - /** @deprecated use `MongoRemoveMetadata$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMetadata$outboundSchema; - /** @deprecated use `MongoRemoveMetadata$Outbound` instead. */ - export type Outbound = MongoRemoveMetadata$Outbound; -} - -export function mongoRemoveMetadataToJSON( - mongoRemoveMetadata: MongoRemoveMetadata, -): string { - return JSON.stringify( - MongoRemoveMetadata$outboundSchema.parse(mongoRemoveMetadata), - ); -} - export function mongoRemoveMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -759,42 +478,6 @@ export const MongoRemoveMetadataUnion$inboundSchema: z.ZodType< MongoRemoveMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MongoRemoveMetadataUnion$Outbound = - | MongoRemoveMetadata$Outbound - | string; - -/** @internal */ -export const MongoRemoveMetadataUnion$outboundSchema: z.ZodType< - MongoRemoveMetadataUnion$Outbound, - z.ZodTypeDef, - MongoRemoveMetadataUnion -> = z.union([ - z.lazy(() => MongoRemoveMetadata$outboundSchema), - MongoRemoveMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMetadataUnion$ { - /** @deprecated use `MongoRemoveMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMetadataUnion$inboundSchema; - /** @deprecated use `MongoRemoveMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMetadataUnion$outboundSchema; - /** @deprecated use `MongoRemoveMetadataUnion$Outbound` instead. */ - export type Outbound = MongoRemoveMetadataUnion$Outbound; -} - -export function mongoRemoveMetadataUnionToJSON( - mongoRemoveMetadataUnion: MongoRemoveMetadataUnion, -): string { - return JSON.stringify( - MongoRemoveMetadataUnion$outboundSchema.parse(mongoRemoveMetadataUnion), - ); -} - export function mongoRemoveMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -836,80 +519,6 @@ export const MongoRemoveBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MongoRemoveBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MongoRemoveMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MongoRemoveBackup$outboundSchema: z.ZodType< - MongoRemoveBackup$Outbound, - z.ZodTypeDef, - MongoRemoveBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MongoRemoveBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MongoRemoveDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MongoRemoveMetadata$outboundSchema), - MongoRemoveMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveBackup$ { - /** @deprecated use `MongoRemoveBackup$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveBackup$inboundSchema; - /** @deprecated use `MongoRemoveBackup$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveBackup$outboundSchema; - /** @deprecated use `MongoRemoveBackup$Outbound` instead. */ - export type Outbound = MongoRemoveBackup$Outbound; -} - -export function mongoRemoveBackupToJSON( - mongoRemoveBackup: MongoRemoveBackup, -): string { - return JSON.stringify( - MongoRemoveBackup$outboundSchema.parse(mongoRemoveBackup), - ); -} - export function mongoRemoveBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -934,51 +543,6 @@ export const MongoRemoveProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoRemoveProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MongoRemoveProject$outboundSchema: z.ZodType< - MongoRemoveProject$Outbound, - z.ZodTypeDef, - MongoRemoveProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveProject$ { - /** @deprecated use `MongoRemoveProject$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveProject$inboundSchema; - /** @deprecated use `MongoRemoveProject$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveProject$outboundSchema; - /** @deprecated use `MongoRemoveProject$Outbound` instead. */ - export type Outbound = MongoRemoveProject$Outbound; -} - -export function mongoRemoveProjectToJSON( - mongoRemoveProject: MongoRemoveProject, -): string { - return JSON.stringify( - MongoRemoveProject$outboundSchema.parse(mongoRemoveProject), - ); -} - export function mongoRemoveProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1004,53 +568,6 @@ export const MongoRemoveEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoRemoveEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MongoRemoveProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MongoRemoveEnvironment$outboundSchema: z.ZodType< - MongoRemoveEnvironment$Outbound, - z.ZodTypeDef, - MongoRemoveEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MongoRemoveProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveEnvironment$ { - /** @deprecated use `MongoRemoveEnvironment$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveEnvironment$inboundSchema; - /** @deprecated use `MongoRemoveEnvironment$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveEnvironment$outboundSchema; - /** @deprecated use `MongoRemoveEnvironment$Outbound` instead. */ - export type Outbound = MongoRemoveEnvironment$Outbound; -} - -export function mongoRemoveEnvironmentToJSON( - mongoRemoveEnvironment: MongoRemoveEnvironment, -): string { - return JSON.stringify( - MongoRemoveEnvironment$outboundSchema.parse(mongoRemoveEnvironment), - ); -} - export function mongoRemoveEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1082,59 +599,6 @@ export const MongoRemoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MongoRemoveHealthCheckSwarm$outboundSchema: z.ZodType< - MongoRemoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MongoRemoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveHealthCheckSwarm$ { - /** @deprecated use `MongoRemoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoRemoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoRemoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoRemoveHealthCheckSwarm$Outbound; -} - -export function mongoRemoveHealthCheckSwarmToJSON( - mongoRemoveHealthCheckSwarm: MongoRemoveHealthCheckSwarm, -): string { - return JSON.stringify( - MongoRemoveHealthCheckSwarm$outboundSchema.parse( - mongoRemoveHealthCheckSwarm, - ), - ); -} - export function mongoRemoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1152,37 +616,6 @@ export const MongoRemoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoRemoveGlobal$Outbound = {}; - -/** @internal */ -export const MongoRemoveGlobal$outboundSchema: z.ZodType< - MongoRemoveGlobal$Outbound, - z.ZodTypeDef, - MongoRemoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveGlobal$ { - /** @deprecated use `MongoRemoveGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveGlobal$inboundSchema; - /** @deprecated use `MongoRemoveGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveGlobal$outboundSchema; - /** @deprecated use `MongoRemoveGlobal$Outbound` instead. */ - export type Outbound = MongoRemoveGlobal$Outbound; -} - -export function mongoRemoveGlobalToJSON( - mongoRemoveGlobal: MongoRemoveGlobal, -): string { - return JSON.stringify( - MongoRemoveGlobal$outboundSchema.parse(mongoRemoveGlobal), - ); -} - export function mongoRemoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1196,40 +629,9 @@ export function mongoRemoveGlobalFromJSON( /** @internal */ export const MongoRemoveGlobalJob$inboundSchema: z.ZodType< MongoRemoveGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MongoRemoveGlobalJob$Outbound = {}; - -/** @internal */ -export const MongoRemoveGlobalJob$outboundSchema: z.ZodType< - MongoRemoveGlobalJob$Outbound, - z.ZodTypeDef, - MongoRemoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveGlobalJob$ { - /** @deprecated use `MongoRemoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveGlobalJob$inboundSchema; - /** @deprecated use `MongoRemoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveGlobalJob$outboundSchema; - /** @deprecated use `MongoRemoveGlobalJob$Outbound` instead. */ - export type Outbound = MongoRemoveGlobalJob$Outbound; -} - -export function mongoRemoveGlobalJobToJSON( - mongoRemoveGlobalJob: MongoRemoveGlobalJob, -): string { - return JSON.stringify( - MongoRemoveGlobalJob$outboundSchema.parse(mongoRemoveGlobalJob), - ); -} + z.ZodTypeDef, + unknown +> = z.object({}); export function mongoRemoveGlobalJobFromJSON( jsonString: string, @@ -1254,45 +656,6 @@ export const MongoRemoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MongoRemoveReplicated$outboundSchema: z.ZodType< - MongoRemoveReplicated$Outbound, - z.ZodTypeDef, - MongoRemoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveReplicated$ { - /** @deprecated use `MongoRemoveReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveReplicated$inboundSchema; - /** @deprecated use `MongoRemoveReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveReplicated$outboundSchema; - /** @deprecated use `MongoRemoveReplicated$Outbound` instead. */ - export type Outbound = MongoRemoveReplicated$Outbound; -} - -export function mongoRemoveReplicatedToJSON( - mongoRemoveReplicated: MongoRemoveReplicated, -): string { - return JSON.stringify( - MongoRemoveReplicated$outboundSchema.parse(mongoRemoveReplicated), - ); -} - export function mongoRemoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1318,48 +681,6 @@ export const MongoRemoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MongoRemoveReplicatedJob$outboundSchema: z.ZodType< - MongoRemoveReplicatedJob$Outbound, - z.ZodTypeDef, - MongoRemoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveReplicatedJob$ { - /** @deprecated use `MongoRemoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveReplicatedJob$inboundSchema; - /** @deprecated use `MongoRemoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveReplicatedJob$outboundSchema; - /** @deprecated use `MongoRemoveReplicatedJob$Outbound` instead. */ - export type Outbound = MongoRemoveReplicatedJob$Outbound; -} - -export function mongoRemoveReplicatedJobToJSON( - mongoRemoveReplicatedJob: MongoRemoveReplicatedJob, -): string { - return JSON.stringify( - MongoRemoveReplicatedJob$outboundSchema.parse(mongoRemoveReplicatedJob), - ); -} - export function mongoRemoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1390,55 +711,6 @@ export const MongoRemoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemoveModeSwarm$Outbound = { - Global?: MongoRemoveGlobal$Outbound | undefined; - GlobalJob?: MongoRemoveGlobalJob$Outbound | undefined; - Replicated?: MongoRemoveReplicated$Outbound | undefined; - ReplicatedJob?: MongoRemoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MongoRemoveModeSwarm$outboundSchema: z.ZodType< - MongoRemoveModeSwarm$Outbound, - z.ZodTypeDef, - MongoRemoveModeSwarm -> = z.object({ - global: z.lazy(() => MongoRemoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MongoRemoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MongoRemoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MongoRemoveReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveModeSwarm$ { - /** @deprecated use `MongoRemoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveModeSwarm$inboundSchema; - /** @deprecated use `MongoRemoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveModeSwarm$outboundSchema; - /** @deprecated use `MongoRemoveModeSwarm$Outbound` instead. */ - export type Outbound = MongoRemoveModeSwarm$Outbound; -} - -export function mongoRemoveModeSwarmToJSON( - mongoRemoveModeSwarm: MongoRemoveModeSwarm, -): string { - return JSON.stringify( - MongoRemoveModeSwarm$outboundSchema.parse(mongoRemoveModeSwarm), - ); -} - export function mongoRemoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1454,43 +726,11 @@ export const MongoRemoveServiceType$inboundSchema: z.ZodNativeEnum< typeof MongoRemoveServiceType > = z.nativeEnum(MongoRemoveServiceType); -/** @internal */ -export const MongoRemoveServiceType$outboundSchema: z.ZodNativeEnum< - typeof MongoRemoveServiceType -> = MongoRemoveServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveServiceType$ { - /** @deprecated use `MongoRemoveServiceType$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveServiceType$inboundSchema; - /** @deprecated use `MongoRemoveServiceType$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveServiceType$outboundSchema; -} - /** @internal */ export const MongoRemoveType$inboundSchema: z.ZodNativeEnum< typeof MongoRemoveType > = z.nativeEnum(MongoRemoveType); -/** @internal */ -export const MongoRemoveType$outboundSchema: z.ZodNativeEnum< - typeof MongoRemoveType -> = MongoRemoveType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveType$ { - /** @deprecated use `MongoRemoveType$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveType$inboundSchema; - /** @deprecated use `MongoRemoveType$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveType$outboundSchema; -} - /** @internal */ export const MongoRemoveMount$inboundSchema: z.ZodType< MongoRemoveMount, @@ -1514,69 +754,6 @@ export const MongoRemoveMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MongoRemoveMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MongoRemoveMount$outboundSchema: z.ZodType< - MongoRemoveMount$Outbound, - z.ZodTypeDef, - MongoRemoveMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MongoRemoveServiceType$outboundSchema, - type: MongoRemoveType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMount$ { - /** @deprecated use `MongoRemoveMount$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMount$inboundSchema; - /** @deprecated use `MongoRemoveMount$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMount$outboundSchema; - /** @deprecated use `MongoRemoveMount$Outbound` instead. */ - export type Outbound = MongoRemoveMount$Outbound; -} - -export function mongoRemoveMountToJSON( - mongoRemoveMount: MongoRemoveMount, -): string { - return JSON.stringify( - MongoRemoveMount$outboundSchema.parse(mongoRemoveMount), - ); -} - export function mongoRemoveMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1594,37 +771,6 @@ export const MongoRemoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoRemoveDriverOpts$Outbound = {}; - -/** @internal */ -export const MongoRemoveDriverOpts$outboundSchema: z.ZodType< - MongoRemoveDriverOpts$Outbound, - z.ZodTypeDef, - MongoRemoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveDriverOpts$ { - /** @deprecated use `MongoRemoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveDriverOpts$inboundSchema; - /** @deprecated use `MongoRemoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveDriverOpts$outboundSchema; - /** @deprecated use `MongoRemoveDriverOpts$Outbound` instead. */ - export type Outbound = MongoRemoveDriverOpts$Outbound; -} - -export function mongoRemoveDriverOptsToJSON( - mongoRemoveDriverOpts: MongoRemoveDriverOpts, -): string { - return JSON.stringify( - MongoRemoveDriverOpts$outboundSchema.parse(mongoRemoveDriverOpts), - ); -} - export function mongoRemoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1652,51 +798,6 @@ export const MongoRemoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MongoRemoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MongoRemoveNetworkSwarm$outboundSchema: z.ZodType< - MongoRemoveNetworkSwarm$Outbound, - z.ZodTypeDef, - MongoRemoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MongoRemoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveNetworkSwarm$ { - /** @deprecated use `MongoRemoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveNetworkSwarm$inboundSchema; - /** @deprecated use `MongoRemoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveNetworkSwarm$outboundSchema; - /** @deprecated use `MongoRemoveNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoRemoveNetworkSwarm$Outbound; -} - -export function mongoRemoveNetworkSwarmToJSON( - mongoRemoveNetworkSwarm: MongoRemoveNetworkSwarm, -): string { - return JSON.stringify( - MongoRemoveNetworkSwarm$outboundSchema.parse(mongoRemoveNetworkSwarm), - ); -} - export function mongoRemoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1722,48 +823,6 @@ export const MongoRemovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MongoRemovePlatform$outboundSchema: z.ZodType< - MongoRemovePlatform$Outbound, - z.ZodTypeDef, - MongoRemovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemovePlatform$ { - /** @deprecated use `MongoRemovePlatform$inboundSchema` instead. */ - export const inboundSchema = MongoRemovePlatform$inboundSchema; - /** @deprecated use `MongoRemovePlatform$outboundSchema` instead. */ - export const outboundSchema = MongoRemovePlatform$outboundSchema; - /** @deprecated use `MongoRemovePlatform$Outbound` instead. */ - export type Outbound = MongoRemovePlatform$Outbound; -} - -export function mongoRemovePlatformToJSON( - mongoRemovePlatform: MongoRemovePlatform, -): string { - return JSON.stringify( - MongoRemovePlatform$outboundSchema.parse(mongoRemovePlatform), - ); -} - export function mongoRemovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1787,45 +846,6 @@ export const MongoRemoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MongoRemoveSpread$outboundSchema: z.ZodType< - MongoRemoveSpread$Outbound, - z.ZodTypeDef, - MongoRemoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveSpread$ { - /** @deprecated use `MongoRemoveSpread$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveSpread$inboundSchema; - /** @deprecated use `MongoRemoveSpread$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveSpread$outboundSchema; - /** @deprecated use `MongoRemoveSpread$Outbound` instead. */ - export type Outbound = MongoRemoveSpread$Outbound; -} - -export function mongoRemoveSpreadToJSON( - mongoRemoveSpread: MongoRemoveSpread, -): string { - return JSON.stringify( - MongoRemoveSpread$outboundSchema.parse(mongoRemoveSpread), - ); -} - export function mongoRemoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1849,45 +869,6 @@ export const MongoRemovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemovePreference$Outbound = { - Spread: MongoRemoveSpread$Outbound; -}; - -/** @internal */ -export const MongoRemovePreference$outboundSchema: z.ZodType< - MongoRemovePreference$Outbound, - z.ZodTypeDef, - MongoRemovePreference -> = z.object({ - spread: z.lazy(() => MongoRemoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemovePreference$ { - /** @deprecated use `MongoRemovePreference$inboundSchema` instead. */ - export const inboundSchema = MongoRemovePreference$inboundSchema; - /** @deprecated use `MongoRemovePreference$outboundSchema` instead. */ - export const outboundSchema = MongoRemovePreference$outboundSchema; - /** @deprecated use `MongoRemovePreference$Outbound` instead. */ - export type Outbound = MongoRemovePreference$Outbound; -} - -export function mongoRemovePreferenceToJSON( - mongoRemovePreference: MongoRemovePreference, -): string { - return JSON.stringify( - MongoRemovePreference$outboundSchema.parse(mongoRemovePreference), - ); -} - export function mongoRemovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1919,56 +900,6 @@ export const MongoRemovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MongoRemovePlacementSwarm$outboundSchema: z.ZodType< - MongoRemovePlacementSwarm$Outbound, - z.ZodTypeDef, - MongoRemovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MongoRemovePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MongoRemovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemovePlacementSwarm$ { - /** @deprecated use `MongoRemovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoRemovePlacementSwarm$inboundSchema; - /** @deprecated use `MongoRemovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoRemovePlacementSwarm$outboundSchema; - /** @deprecated use `MongoRemovePlacementSwarm$Outbound` instead. */ - export type Outbound = MongoRemovePlacementSwarm$Outbound; -} - -export function mongoRemovePlacementSwarmToJSON( - mongoRemovePlacementSwarm: MongoRemovePlacementSwarm, -): string { - return JSON.stringify( - MongoRemovePlacementSwarm$outboundSchema.parse(mongoRemovePlacementSwarm), - ); -} - export function mongoRemovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1986,68 +917,18 @@ export const MongoRemoveRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MongoRemoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MongoRemoveRestartPolicySwarm$outboundSchema: z.ZodType< - MongoRemoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MongoRemoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveRestartPolicySwarm$ { - /** @deprecated use `MongoRemoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoRemoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoRemoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoRemoveRestartPolicySwarm$Outbound; -} - -export function mongoRemoveRestartPolicySwarmToJSON( - mongoRemoveRestartPolicySwarm: MongoRemoveRestartPolicySwarm, -): string { - return JSON.stringify( - MongoRemoveRestartPolicySwarm$outboundSchema.parse( - mongoRemoveRestartPolicySwarm, - ), - ); -} - export function mongoRemoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2081,62 +962,6 @@ export const MongoRemoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoRemoveRollbackConfigSwarm$outboundSchema: z.ZodType< - MongoRemoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MongoRemoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveRollbackConfigSwarm$ { - /** @deprecated use `MongoRemoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoRemoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoRemoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoRemoveRollbackConfigSwarm$Outbound; -} - -export function mongoRemoveRollbackConfigSwarmToJSON( - mongoRemoveRollbackConfigSwarm: MongoRemoveRollbackConfigSwarm, -): string { - return JSON.stringify( - MongoRemoveRollbackConfigSwarm$outboundSchema.parse( - mongoRemoveRollbackConfigSwarm, - ), - ); -} - export function mongoRemoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2152,22 +977,6 @@ export const MongoRemoveMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MongoRemoveMetricsConfigEnum > = z.nativeEnum(MongoRemoveMetricsConfigEnum); -/** @internal */ -export const MongoRemoveMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoRemoveMetricsConfigEnum -> = MongoRemoveMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMetricsConfigEnum$ { - /** @deprecated use `MongoRemoveMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMetricsConfigEnum$inboundSchema; - /** @deprecated use `MongoRemoveMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MongoRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< MongoRemoveMetricsConfigUnion1, @@ -2180,48 +989,6 @@ export const MongoRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< MongoRemoveMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MongoRemoveMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MongoRemoveMetricsConfigUnion1$outboundSchema: z.ZodType< - MongoRemoveMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MongoRemoveMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MongoRemoveMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMetricsConfigUnion1$ { - /** @deprecated use `MongoRemoveMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MongoRemoveMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MongoRemoveMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MongoRemoveMetricsConfigUnion1$Outbound; -} - -export function mongoRemoveMetricsConfigUnion1ToJSON( - mongoRemoveMetricsConfigUnion1: MongoRemoveMetricsConfigUnion1, -): string { - return JSON.stringify( - MongoRemoveMetricsConfigUnion1$outboundSchema.parse( - mongoRemoveMetricsConfigUnion1, - ), - ); -} - export function mongoRemoveMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2248,54 +1015,6 @@ export const MongoRemoveMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MongoRemoveMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MongoRemoveMetricsConfigUnion2$outboundSchema: z.ZodType< - MongoRemoveMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MongoRemoveMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveMetricsConfigUnion2$ { - /** @deprecated use `MongoRemoveMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MongoRemoveMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MongoRemoveMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MongoRemoveMetricsConfigUnion2$Outbound; -} - -export function mongoRemoveMetricsConfigUnion2ToJSON( - mongoRemoveMetricsConfigUnion2: MongoRemoveMetricsConfigUnion2, -): string { - return JSON.stringify( - MongoRemoveMetricsConfigUnion2$outboundSchema.parse( - mongoRemoveMetricsConfigUnion2, - ), - ); -} - export function mongoRemoveMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2311,22 +1030,6 @@ export const MongoRemoveServerStatus$inboundSchema: z.ZodNativeEnum< typeof MongoRemoveServerStatus > = z.nativeEnum(MongoRemoveServerStatus); -/** @internal */ -export const MongoRemoveServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoRemoveServerStatus -> = MongoRemoveServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveServerStatus$ { - /** @deprecated use `MongoRemoveServerStatus$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveServerStatus$inboundSchema; - /** @deprecated use `MongoRemoveServerStatus$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveServerStatus$outboundSchema; -} - /** @internal */ export const MongoRemoveServer$inboundSchema: z.ZodType< MongoRemoveServer, @@ -2358,78 +1061,6 @@ export const MongoRemoveServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MongoRemoveServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MongoRemoveServer$outboundSchema: z.ZodType< - MongoRemoveServer$Outbound, - z.ZodTypeDef, - MongoRemoveServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MongoRemoveServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveServer$ { - /** @deprecated use `MongoRemoveServer$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveServer$inboundSchema; - /** @deprecated use `MongoRemoveServer$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveServer$outboundSchema; - /** @deprecated use `MongoRemoveServer$Outbound` instead. */ - export type Outbound = MongoRemoveServer$Outbound; -} - -export function mongoRemoveServerToJSON( - mongoRemoveServer: MongoRemoveServer, -): string { - return JSON.stringify( - MongoRemoveServer$outboundSchema.parse(mongoRemoveServer), - ); -} - export function mongoRemoveServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2463,62 +1094,6 @@ export const MongoRemoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoRemoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoRemoveUpdateConfigSwarm$outboundSchema: z.ZodType< - MongoRemoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MongoRemoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveUpdateConfigSwarm$ { - /** @deprecated use `MongoRemoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoRemoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoRemoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoRemoveUpdateConfigSwarm$Outbound; -} - -export function mongoRemoveUpdateConfigSwarmToJSON( - mongoRemoveUpdateConfigSwarm: MongoRemoveUpdateConfigSwarm, -): string { - return JSON.stringify( - MongoRemoveUpdateConfigSwarm$outboundSchema.parse( - mongoRemoveUpdateConfigSwarm, - ), - ); -} - export function mongoRemoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2581,115 +1156,6 @@ export const MongoRemoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MongoRemoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MongoRemoveEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MongoRemoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MongoRemoveModeSwarm$Outbound | null; - mongoId: string; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MongoRemovePlacementSwarm$Outbound | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: MongoRemoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MongoRemoveRollbackConfigSwarm$Outbound | null; - server: MongoRemoveServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MongoRemoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MongoRemoveResponseBody$outboundSchema: z.ZodType< - MongoRemoveResponseBody$Outbound, - z.ZodTypeDef, - MongoRemoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MongoRemoveApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MongoRemoveBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MongoRemoveEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoRemoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MongoRemoveModeSwarm$outboundSchema)), - mongoId: z.string(), - mounts: z.array(z.lazy(() => MongoRemoveMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoRemoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MongoRemovePlacementSwarm$outboundSchema), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoRemoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoRemoveRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MongoRemoveServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoRemoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveResponseBody$ { - /** @deprecated use `MongoRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveResponseBody$inboundSchema; - /** @deprecated use `MongoRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveResponseBody$outboundSchema; - /** @deprecated use `MongoRemoveResponseBody$Outbound` instead. */ - export type Outbound = MongoRemoveResponseBody$Outbound; -} - -export function mongoRemoveResponseBodyToJSON( - mongoRemoveResponseBody: MongoRemoveResponseBody, -): string { - return JSON.stringify( - MongoRemoveResponseBody$outboundSchema.parse(mongoRemoveResponseBody), - ); -} - export function mongoRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2710,42 +1176,6 @@ export const MongoRemoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MongoRemoveResponse$Outbound = - | MongoRemoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MongoRemoveResponse$outboundSchema: z.ZodType< - MongoRemoveResponse$Outbound, - z.ZodTypeDef, - MongoRemoveResponse -> = z.union([ - z.lazy(() => MongoRemoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoRemoveResponse$ { - /** @deprecated use `MongoRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = MongoRemoveResponse$inboundSchema; - /** @deprecated use `MongoRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = MongoRemoveResponse$outboundSchema; - /** @deprecated use `MongoRemoveResponse$Outbound` instead. */ - export type Outbound = MongoRemoveResponse$Outbound; -} - -export function mongoRemoveResponseToJSON( - mongoRemoveResponse: MongoRemoveResponse, -): string { - return JSON.stringify( - MongoRemoveResponse$outboundSchema.parse(mongoRemoveResponse), - ); -} - export function mongoRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongosaveenvironment.ts b/src/models/operations/mongosaveenvironment.ts index 1881314..bf61935 100644 --- a/src/models/operations/mongosaveenvironment.ts +++ b/src/models/operations/mongosaveenvironment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type MongoSaveEnvironmentRequest = { export type MongoSaveEnvironmentResponse = models.ErrorT | boolean; -/** @internal */ -export const MongoSaveEnvironmentRequest$inboundSchema: z.ZodType< - MongoSaveEnvironmentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - env: z.nullable(z.string()).optional(), - mongoId: z.string(), -}); - /** @internal */ export type MongoSaveEnvironmentRequest$Outbound = { env?: string | null | undefined; @@ -41,19 +31,6 @@ export const MongoSaveEnvironmentRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveEnvironmentRequest$ { - /** @deprecated use `MongoSaveEnvironmentRequest$inboundSchema` instead. */ - export const inboundSchema = MongoSaveEnvironmentRequest$inboundSchema; - /** @deprecated use `MongoSaveEnvironmentRequest$outboundSchema` instead. */ - export const outboundSchema = MongoSaveEnvironmentRequest$outboundSchema; - /** @deprecated use `MongoSaveEnvironmentRequest$Outbound` instead. */ - export type Outbound = MongoSaveEnvironmentRequest$Outbound; -} - export function mongoSaveEnvironmentRequestToJSON( mongoSaveEnvironmentRequest: MongoSaveEnvironmentRequest, ): string { @@ -64,16 +41,6 @@ export function mongoSaveEnvironmentRequestToJSON( ); } -export function mongoSaveEnvironmentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoSaveEnvironmentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoSaveEnvironmentRequest' from JSON`, - ); -} - /** @internal */ export const MongoSaveEnvironmentResponse$inboundSchema: z.ZodType< MongoSaveEnvironmentResponse, @@ -81,41 +48,6 @@ export const MongoSaveEnvironmentResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MongoSaveEnvironmentResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const MongoSaveEnvironmentResponse$outboundSchema: z.ZodType< - MongoSaveEnvironmentResponse$Outbound, - z.ZodTypeDef, - MongoSaveEnvironmentResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveEnvironmentResponse$ { - /** @deprecated use `MongoSaveEnvironmentResponse$inboundSchema` instead. */ - export const inboundSchema = MongoSaveEnvironmentResponse$inboundSchema; - /** @deprecated use `MongoSaveEnvironmentResponse$outboundSchema` instead. */ - export const outboundSchema = MongoSaveEnvironmentResponse$outboundSchema; - /** @deprecated use `MongoSaveEnvironmentResponse$Outbound` instead. */ - export type Outbound = MongoSaveEnvironmentResponse$Outbound; -} - -export function mongoSaveEnvironmentResponseToJSON( - mongoSaveEnvironmentResponse: MongoSaveEnvironmentResponse, -): string { - return JSON.stringify( - MongoSaveEnvironmentResponse$outboundSchema.parse( - mongoSaveEnvironmentResponse, - ), - ); -} - export function mongoSaveEnvironmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongosaveexternalport.ts b/src/models/operations/mongosaveexternalport.ts index ac14323..23f9b4b 100644 --- a/src/models/operations/mongosaveexternalport.ts +++ b/src/models/operations/mongosaveexternalport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -339,16 +339,6 @@ export type MongoSaveExternalPortResponse = | MongoSaveExternalPortResponseBody | models.ErrorT; -/** @internal */ -export const MongoSaveExternalPortRequest$inboundSchema: z.ZodType< - MongoSaveExternalPortRequest, - z.ZodTypeDef, - unknown -> = z.object({ - externalPort: z.nullable(z.number()), - mongoId: z.string(), -}); - /** @internal */ export type MongoSaveExternalPortRequest$Outbound = { externalPort: number | null; @@ -365,19 +355,6 @@ export const MongoSaveExternalPortRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortRequest$ { - /** @deprecated use `MongoSaveExternalPortRequest$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortRequest$inboundSchema; - /** @deprecated use `MongoSaveExternalPortRequest$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortRequest$outboundSchema; - /** @deprecated use `MongoSaveExternalPortRequest$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortRequest$Outbound; -} - export function mongoSaveExternalPortRequestToJSON( mongoSaveExternalPortRequest: MongoSaveExternalPortRequest, ): string { @@ -388,105 +365,27 @@ export function mongoSaveExternalPortRequestToJSON( ); } -export function mongoSaveExternalPortRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoSaveExternalPortRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoSaveExternalPortRequest' from JSON`, - ); -} - /** @internal */ export const MongoSaveExternalPortApplicationStatus$inboundSchema: z.ZodNativeEnum = z.nativeEnum( MongoSaveExternalPortApplicationStatus, ); -/** @internal */ -export const MongoSaveExternalPortApplicationStatus$outboundSchema: - z.ZodNativeEnum = - MongoSaveExternalPortApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortApplicationStatus$ { - /** @deprecated use `MongoSaveExternalPortApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortApplicationStatus$inboundSchema; - /** @deprecated use `MongoSaveExternalPortApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortApplicationStatus$outboundSchema; -} - /** @internal */ export const MongoSaveExternalPortBackupType$inboundSchema: z.ZodNativeEnum< typeof MongoSaveExternalPortBackupType > = z.nativeEnum(MongoSaveExternalPortBackupType); -/** @internal */ -export const MongoSaveExternalPortBackupType$outboundSchema: z.ZodNativeEnum< - typeof MongoSaveExternalPortBackupType -> = MongoSaveExternalPortBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortBackupType$ { - /** @deprecated use `MongoSaveExternalPortBackupType$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortBackupType$inboundSchema; - /** @deprecated use `MongoSaveExternalPortBackupType$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortBackupType$outboundSchema; -} - /** @internal */ export const MongoSaveExternalPortDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MongoSaveExternalPortDatabaseType > = z.nativeEnum(MongoSaveExternalPortDatabaseType); -/** @internal */ -export const MongoSaveExternalPortDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MongoSaveExternalPortDatabaseType -> = MongoSaveExternalPortDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortDatabaseType$ { - /** @deprecated use `MongoSaveExternalPortDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortDatabaseType$inboundSchema; - /** @deprecated use `MongoSaveExternalPortDatabaseType$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortDatabaseType$outboundSchema; -} - /** @internal */ export const MongoSaveExternalPortMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MongoSaveExternalPortMetadataEnum > = z.nativeEnum(MongoSaveExternalPortMetadataEnum); -/** @internal */ -export const MongoSaveExternalPortMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoSaveExternalPortMetadataEnum -> = MongoSaveExternalPortMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMetadataEnum$ { - /** @deprecated use `MongoSaveExternalPortMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortMetadataEnum$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortMetadataEnum$outboundSchema; -} - /** @internal */ export const MongoSaveExternalPortMariadb$inboundSchema: z.ZodType< MongoSaveExternalPortMariadb, @@ -497,45 +396,6 @@ export const MongoSaveExternalPortMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoSaveExternalPortMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoSaveExternalPortMariadb$outboundSchema: z.ZodType< - MongoSaveExternalPortMariadb$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMariadb$ { - /** @deprecated use `MongoSaveExternalPortMariadb$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortMariadb$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMariadb$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortMariadb$outboundSchema; - /** @deprecated use `MongoSaveExternalPortMariadb$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortMariadb$Outbound; -} - -export function mongoSaveExternalPortMariadbToJSON( - mongoSaveExternalPortMariadb: MongoSaveExternalPortMariadb, -): string { - return JSON.stringify( - MongoSaveExternalPortMariadb$outboundSchema.parse( - mongoSaveExternalPortMariadb, - ), - ); -} - export function mongoSaveExternalPortMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -556,43 +416,6 @@ export const MongoSaveExternalPortMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoSaveExternalPortMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoSaveExternalPortMongo$outboundSchema: z.ZodType< - MongoSaveExternalPortMongo$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMongo$ { - /** @deprecated use `MongoSaveExternalPortMongo$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortMongo$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMongo$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortMongo$outboundSchema; - /** @deprecated use `MongoSaveExternalPortMongo$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortMongo$Outbound; -} - -export function mongoSaveExternalPortMongoToJSON( - mongoSaveExternalPortMongo: MongoSaveExternalPortMongo, -): string { - return JSON.stringify( - MongoSaveExternalPortMongo$outboundSchema.parse(mongoSaveExternalPortMongo), - ); -} - export function mongoSaveExternalPortMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -612,41 +435,6 @@ export const MongoSaveExternalPortMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MongoSaveExternalPortMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MongoSaveExternalPortMysql$outboundSchema: z.ZodType< - MongoSaveExternalPortMysql$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMysql$ { - /** @deprecated use `MongoSaveExternalPortMysql$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortMysql$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMysql$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortMysql$outboundSchema; - /** @deprecated use `MongoSaveExternalPortMysql$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortMysql$Outbound; -} - -export function mongoSaveExternalPortMysqlToJSON( - mongoSaveExternalPortMysql: MongoSaveExternalPortMysql, -): string { - return JSON.stringify( - MongoSaveExternalPortMysql$outboundSchema.parse(mongoSaveExternalPortMysql), - ); -} - export function mongoSaveExternalPortMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -666,43 +454,6 @@ export const MongoSaveExternalPortPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoSaveExternalPortPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MongoSaveExternalPortPostgres$outboundSchema: z.ZodType< - MongoSaveExternalPortPostgres$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortPostgres$ { - /** @deprecated use `MongoSaveExternalPortPostgres$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortPostgres$inboundSchema; - /** @deprecated use `MongoSaveExternalPortPostgres$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortPostgres$outboundSchema; - /** @deprecated use `MongoSaveExternalPortPostgres$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortPostgres$Outbound; -} - -export function mongoSaveExternalPortPostgresToJSON( - mongoSaveExternalPortPostgres: MongoSaveExternalPortPostgres, -): string { - return JSON.stringify( - MongoSaveExternalPortPostgres$outboundSchema.parse( - mongoSaveExternalPortPostgres, - ), - ); -} - export function mongoSaveExternalPortPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -726,50 +477,6 @@ export const MongoSaveExternalPortMetadata$inboundSchema: z.ZodType< .optional(), }); -/** @internal */ -export type MongoSaveExternalPortMetadata$Outbound = { - mariadb?: MongoSaveExternalPortMariadb$Outbound | undefined; - mongo?: MongoSaveExternalPortMongo$Outbound | undefined; - mysql?: MongoSaveExternalPortMysql$Outbound | undefined; - postgres?: MongoSaveExternalPortPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MongoSaveExternalPortMetadata$outboundSchema: z.ZodType< - MongoSaveExternalPortMetadata$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortMetadata -> = z.object({ - mariadb: z.lazy(() => MongoSaveExternalPortMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MongoSaveExternalPortMongo$outboundSchema).optional(), - mysql: z.lazy(() => MongoSaveExternalPortMysql$outboundSchema).optional(), - postgres: z.lazy(() => MongoSaveExternalPortPostgres$outboundSchema) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMetadata$ { - /** @deprecated use `MongoSaveExternalPortMetadata$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortMetadata$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMetadata$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortMetadata$outboundSchema; - /** @deprecated use `MongoSaveExternalPortMetadata$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortMetadata$Outbound; -} - -export function mongoSaveExternalPortMetadataToJSON( - mongoSaveExternalPortMetadata: MongoSaveExternalPortMetadata, -): string { - return JSON.stringify( - MongoSaveExternalPortMetadata$outboundSchema.parse( - mongoSaveExternalPortMetadata, - ), - ); -} - export function mongoSaveExternalPortMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -790,45 +497,6 @@ export const MongoSaveExternalPortMetadataUnion$inboundSchema: z.ZodType< MongoSaveExternalPortMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MongoSaveExternalPortMetadataUnion$Outbound = - | MongoSaveExternalPortMetadata$Outbound - | string; - -/** @internal */ -export const MongoSaveExternalPortMetadataUnion$outboundSchema: z.ZodType< - MongoSaveExternalPortMetadataUnion$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortMetadataUnion -> = z.union([ - z.lazy(() => MongoSaveExternalPortMetadata$outboundSchema), - MongoSaveExternalPortMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMetadataUnion$ { - /** @deprecated use `MongoSaveExternalPortMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortMetadataUnion$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortMetadataUnion$outboundSchema; - /** @deprecated use `MongoSaveExternalPortMetadataUnion$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortMetadataUnion$Outbound; -} - -export function mongoSaveExternalPortMetadataUnionToJSON( - mongoSaveExternalPortMetadataUnion: MongoSaveExternalPortMetadataUnion, -): string { - return JSON.stringify( - MongoSaveExternalPortMetadataUnion$outboundSchema.parse( - mongoSaveExternalPortMetadataUnion, - ), - ); -} - export function mongoSaveExternalPortMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -871,82 +539,6 @@ export const MongoSaveExternalPortBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MongoSaveExternalPortBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MongoSaveExternalPortMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MongoSaveExternalPortBackup$outboundSchema: z.ZodType< - MongoSaveExternalPortBackup$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MongoSaveExternalPortBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MongoSaveExternalPortDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MongoSaveExternalPortMetadata$outboundSchema), - MongoSaveExternalPortMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortBackup$ { - /** @deprecated use `MongoSaveExternalPortBackup$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortBackup$inboundSchema; - /** @deprecated use `MongoSaveExternalPortBackup$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortBackup$outboundSchema; - /** @deprecated use `MongoSaveExternalPortBackup$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortBackup$Outbound; -} - -export function mongoSaveExternalPortBackupToJSON( - mongoSaveExternalPortBackup: MongoSaveExternalPortBackup, -): string { - return JSON.stringify( - MongoSaveExternalPortBackup$outboundSchema.parse( - mongoSaveExternalPortBackup, - ), - ); -} - export function mongoSaveExternalPortBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -971,53 +563,6 @@ export const MongoSaveExternalPortProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoSaveExternalPortProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MongoSaveExternalPortProject$outboundSchema: z.ZodType< - MongoSaveExternalPortProject$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortProject$ { - /** @deprecated use `MongoSaveExternalPortProject$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortProject$inboundSchema; - /** @deprecated use `MongoSaveExternalPortProject$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortProject$outboundSchema; - /** @deprecated use `MongoSaveExternalPortProject$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortProject$Outbound; -} - -export function mongoSaveExternalPortProjectToJSON( - mongoSaveExternalPortProject: MongoSaveExternalPortProject, -): string { - return JSON.stringify( - MongoSaveExternalPortProject$outboundSchema.parse( - mongoSaveExternalPortProject, - ), - ); -} - export function mongoSaveExternalPortProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1043,55 +588,6 @@ export const MongoSaveExternalPortEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoSaveExternalPortEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MongoSaveExternalPortProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MongoSaveExternalPortEnvironment$outboundSchema: z.ZodType< - MongoSaveExternalPortEnvironment$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MongoSaveExternalPortProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortEnvironment$ { - /** @deprecated use `MongoSaveExternalPortEnvironment$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortEnvironment$inboundSchema; - /** @deprecated use `MongoSaveExternalPortEnvironment$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortEnvironment$outboundSchema; - /** @deprecated use `MongoSaveExternalPortEnvironment$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortEnvironment$Outbound; -} - -export function mongoSaveExternalPortEnvironmentToJSON( - mongoSaveExternalPortEnvironment: MongoSaveExternalPortEnvironment, -): string { - return JSON.stringify( - MongoSaveExternalPortEnvironment$outboundSchema.parse( - mongoSaveExternalPortEnvironment, - ), - ); -} - export function mongoSaveExternalPortEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1123,61 +619,6 @@ export const MongoSaveExternalPortHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MongoSaveExternalPortHealthCheckSwarm$outboundSchema: z.ZodType< - MongoSaveExternalPortHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortHealthCheckSwarm$ { - /** @deprecated use `MongoSaveExternalPortHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoSaveExternalPortHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoSaveExternalPortHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortHealthCheckSwarm$Outbound; -} - -export function mongoSaveExternalPortHealthCheckSwarmToJSON( - mongoSaveExternalPortHealthCheckSwarm: MongoSaveExternalPortHealthCheckSwarm, -): string { - return JSON.stringify( - MongoSaveExternalPortHealthCheckSwarm$outboundSchema.parse( - mongoSaveExternalPortHealthCheckSwarm, - ), - ); -} - export function mongoSaveExternalPortHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1196,39 +637,6 @@ export const MongoSaveExternalPortGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoSaveExternalPortGlobal$Outbound = {}; - -/** @internal */ -export const MongoSaveExternalPortGlobal$outboundSchema: z.ZodType< - MongoSaveExternalPortGlobal$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortGlobal$ { - /** @deprecated use `MongoSaveExternalPortGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortGlobal$inboundSchema; - /** @deprecated use `MongoSaveExternalPortGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortGlobal$outboundSchema; - /** @deprecated use `MongoSaveExternalPortGlobal$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortGlobal$Outbound; -} - -export function mongoSaveExternalPortGlobalToJSON( - mongoSaveExternalPortGlobal: MongoSaveExternalPortGlobal, -): string { - return JSON.stringify( - MongoSaveExternalPortGlobal$outboundSchema.parse( - mongoSaveExternalPortGlobal, - ), - ); -} - export function mongoSaveExternalPortGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1246,39 +654,6 @@ export const MongoSaveExternalPortGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoSaveExternalPortGlobalJob$Outbound = {}; - -/** @internal */ -export const MongoSaveExternalPortGlobalJob$outboundSchema: z.ZodType< - MongoSaveExternalPortGlobalJob$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortGlobalJob$ { - /** @deprecated use `MongoSaveExternalPortGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortGlobalJob$inboundSchema; - /** @deprecated use `MongoSaveExternalPortGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortGlobalJob$outboundSchema; - /** @deprecated use `MongoSaveExternalPortGlobalJob$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortGlobalJob$Outbound; -} - -export function mongoSaveExternalPortGlobalJobToJSON( - mongoSaveExternalPortGlobalJob: MongoSaveExternalPortGlobalJob, -): string { - return JSON.stringify( - MongoSaveExternalPortGlobalJob$outboundSchema.parse( - mongoSaveExternalPortGlobalJob, - ), - ); -} - export function mongoSaveExternalPortGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1300,48 +675,7 @@ export const MongoSaveExternalPortReplicated$inboundSchema: z.ZodType< return remap$(v, { "Replicas": "replicas", }); -}); - -/** @internal */ -export type MongoSaveExternalPortReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MongoSaveExternalPortReplicated$outboundSchema: z.ZodType< - MongoSaveExternalPortReplicated$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortReplicated$ { - /** @deprecated use `MongoSaveExternalPortReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortReplicated$inboundSchema; - /** @deprecated use `MongoSaveExternalPortReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortReplicated$outboundSchema; - /** @deprecated use `MongoSaveExternalPortReplicated$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortReplicated$Outbound; -} - -export function mongoSaveExternalPortReplicatedToJSON( - mongoSaveExternalPortReplicated: MongoSaveExternalPortReplicated, -): string { - return JSON.stringify( - MongoSaveExternalPortReplicated$outboundSchema.parse( - mongoSaveExternalPortReplicated, - ), - ); -} +}); export function mongoSaveExternalPortReplicatedFromJSON( jsonString: string, @@ -1368,51 +702,6 @@ export const MongoSaveExternalPortReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MongoSaveExternalPortReplicatedJob$outboundSchema: z.ZodType< - MongoSaveExternalPortReplicatedJob$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortReplicatedJob$ { - /** @deprecated use `MongoSaveExternalPortReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortReplicatedJob$inboundSchema; - /** @deprecated use `MongoSaveExternalPortReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortReplicatedJob$outboundSchema; - /** @deprecated use `MongoSaveExternalPortReplicatedJob$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortReplicatedJob$Outbound; -} - -export function mongoSaveExternalPortReplicatedJobToJSON( - mongoSaveExternalPortReplicatedJob: MongoSaveExternalPortReplicatedJob, -): string { - return JSON.stringify( - MongoSaveExternalPortReplicatedJob$outboundSchema.parse( - mongoSaveExternalPortReplicatedJob, - ), - ); -} - export function mongoSaveExternalPortReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1446,59 +735,6 @@ export const MongoSaveExternalPortModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortModeSwarm$Outbound = { - Global?: MongoSaveExternalPortGlobal$Outbound | undefined; - GlobalJob?: MongoSaveExternalPortGlobalJob$Outbound | undefined; - Replicated?: MongoSaveExternalPortReplicated$Outbound | undefined; - ReplicatedJob?: MongoSaveExternalPortReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MongoSaveExternalPortModeSwarm$outboundSchema: z.ZodType< - MongoSaveExternalPortModeSwarm$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortModeSwarm -> = z.object({ - global: z.lazy(() => MongoSaveExternalPortGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MongoSaveExternalPortGlobalJob$outboundSchema) - .optional(), - replicated: z.lazy(() => MongoSaveExternalPortReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => MongoSaveExternalPortReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortModeSwarm$ { - /** @deprecated use `MongoSaveExternalPortModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortModeSwarm$inboundSchema; - /** @deprecated use `MongoSaveExternalPortModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortModeSwarm$outboundSchema; - /** @deprecated use `MongoSaveExternalPortModeSwarm$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortModeSwarm$Outbound; -} - -export function mongoSaveExternalPortModeSwarmToJSON( - mongoSaveExternalPortModeSwarm: MongoSaveExternalPortModeSwarm, -): string { - return JSON.stringify( - MongoSaveExternalPortModeSwarm$outboundSchema.parse( - mongoSaveExternalPortModeSwarm, - ), - ); -} - export function mongoSaveExternalPortModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1514,43 +750,11 @@ export const MongoSaveExternalPortServiceType$inboundSchema: z.ZodNativeEnum< typeof MongoSaveExternalPortServiceType > = z.nativeEnum(MongoSaveExternalPortServiceType); -/** @internal */ -export const MongoSaveExternalPortServiceType$outboundSchema: z.ZodNativeEnum< - typeof MongoSaveExternalPortServiceType -> = MongoSaveExternalPortServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortServiceType$ { - /** @deprecated use `MongoSaveExternalPortServiceType$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortServiceType$inboundSchema; - /** @deprecated use `MongoSaveExternalPortServiceType$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortServiceType$outboundSchema; -} - /** @internal */ export const MongoSaveExternalPortType$inboundSchema: z.ZodNativeEnum< typeof MongoSaveExternalPortType > = z.nativeEnum(MongoSaveExternalPortType); -/** @internal */ -export const MongoSaveExternalPortType$outboundSchema: z.ZodNativeEnum< - typeof MongoSaveExternalPortType -> = MongoSaveExternalPortType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortType$ { - /** @deprecated use `MongoSaveExternalPortType$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortType$inboundSchema; - /** @deprecated use `MongoSaveExternalPortType$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortType$outboundSchema; -} - /** @internal */ export const MongoSaveExternalPortMount$inboundSchema: z.ZodType< MongoSaveExternalPortMount, @@ -1574,69 +778,6 @@ export const MongoSaveExternalPortMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MongoSaveExternalPortMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MongoSaveExternalPortMount$outboundSchema: z.ZodType< - MongoSaveExternalPortMount$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MongoSaveExternalPortServiceType$outboundSchema, - type: MongoSaveExternalPortType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMount$ { - /** @deprecated use `MongoSaveExternalPortMount$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortMount$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMount$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortMount$outboundSchema; - /** @deprecated use `MongoSaveExternalPortMount$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortMount$Outbound; -} - -export function mongoSaveExternalPortMountToJSON( - mongoSaveExternalPortMount: MongoSaveExternalPortMount, -): string { - return JSON.stringify( - MongoSaveExternalPortMount$outboundSchema.parse(mongoSaveExternalPortMount), - ); -} - export function mongoSaveExternalPortMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1654,39 +795,6 @@ export const MongoSaveExternalPortDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoSaveExternalPortDriverOpts$Outbound = {}; - -/** @internal */ -export const MongoSaveExternalPortDriverOpts$outboundSchema: z.ZodType< - MongoSaveExternalPortDriverOpts$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortDriverOpts$ { - /** @deprecated use `MongoSaveExternalPortDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortDriverOpts$inboundSchema; - /** @deprecated use `MongoSaveExternalPortDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortDriverOpts$outboundSchema; - /** @deprecated use `MongoSaveExternalPortDriverOpts$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortDriverOpts$Outbound; -} - -export function mongoSaveExternalPortDriverOptsToJSON( - mongoSaveExternalPortDriverOpts: MongoSaveExternalPortDriverOpts, -): string { - return JSON.stringify( - MongoSaveExternalPortDriverOpts$outboundSchema.parse( - mongoSaveExternalPortDriverOpts, - ), - ); -} - export function mongoSaveExternalPortDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1715,55 +823,6 @@ export const MongoSaveExternalPortNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MongoSaveExternalPortDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MongoSaveExternalPortNetworkSwarm$outboundSchema: z.ZodType< - MongoSaveExternalPortNetworkSwarm$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MongoSaveExternalPortDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortNetworkSwarm$ { - /** @deprecated use `MongoSaveExternalPortNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortNetworkSwarm$inboundSchema; - /** @deprecated use `MongoSaveExternalPortNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortNetworkSwarm$outboundSchema; - /** @deprecated use `MongoSaveExternalPortNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortNetworkSwarm$Outbound; -} - -export function mongoSaveExternalPortNetworkSwarmToJSON( - mongoSaveExternalPortNetworkSwarm: MongoSaveExternalPortNetworkSwarm, -): string { - return JSON.stringify( - MongoSaveExternalPortNetworkSwarm$outboundSchema.parse( - mongoSaveExternalPortNetworkSwarm, - ), - ); -} - export function mongoSaveExternalPortNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1789,50 +848,6 @@ export const MongoSaveExternalPortPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MongoSaveExternalPortPlatform$outboundSchema: z.ZodType< - MongoSaveExternalPortPlatform$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortPlatform$ { - /** @deprecated use `MongoSaveExternalPortPlatform$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortPlatform$inboundSchema; - /** @deprecated use `MongoSaveExternalPortPlatform$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortPlatform$outboundSchema; - /** @deprecated use `MongoSaveExternalPortPlatform$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortPlatform$Outbound; -} - -export function mongoSaveExternalPortPlatformToJSON( - mongoSaveExternalPortPlatform: MongoSaveExternalPortPlatform, -): string { - return JSON.stringify( - MongoSaveExternalPortPlatform$outboundSchema.parse( - mongoSaveExternalPortPlatform, - ), - ); -} - export function mongoSaveExternalPortPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1856,47 +871,6 @@ export const MongoSaveExternalPortSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MongoSaveExternalPortSpread$outboundSchema: z.ZodType< - MongoSaveExternalPortSpread$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortSpread$ { - /** @deprecated use `MongoSaveExternalPortSpread$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortSpread$inboundSchema; - /** @deprecated use `MongoSaveExternalPortSpread$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortSpread$outboundSchema; - /** @deprecated use `MongoSaveExternalPortSpread$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortSpread$Outbound; -} - -export function mongoSaveExternalPortSpreadToJSON( - mongoSaveExternalPortSpread: MongoSaveExternalPortSpread, -): string { - return JSON.stringify( - MongoSaveExternalPortSpread$outboundSchema.parse( - mongoSaveExternalPortSpread, - ), - ); -} - export function mongoSaveExternalPortSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1920,47 +894,6 @@ export const MongoSaveExternalPortPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortPreference$Outbound = { - Spread: MongoSaveExternalPortSpread$Outbound; -}; - -/** @internal */ -export const MongoSaveExternalPortPreference$outboundSchema: z.ZodType< - MongoSaveExternalPortPreference$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortPreference -> = z.object({ - spread: z.lazy(() => MongoSaveExternalPortSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortPreference$ { - /** @deprecated use `MongoSaveExternalPortPreference$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortPreference$inboundSchema; - /** @deprecated use `MongoSaveExternalPortPreference$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortPreference$outboundSchema; - /** @deprecated use `MongoSaveExternalPortPreference$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortPreference$Outbound; -} - -export function mongoSaveExternalPortPreferenceToJSON( - mongoSaveExternalPortPreference: MongoSaveExternalPortPreference, -): string { - return JSON.stringify( - MongoSaveExternalPortPreference$outboundSchema.parse( - mongoSaveExternalPortPreference, - ), - ); -} - export function mongoSaveExternalPortPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1993,61 +926,6 @@ export const MongoSaveExternalPortPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MongoSaveExternalPortPlacementSwarm$outboundSchema: z.ZodType< - MongoSaveExternalPortPlacementSwarm$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MongoSaveExternalPortPlatform$outboundSchema)) - .optional(), - preferences: z.array( - z.lazy(() => MongoSaveExternalPortPreference$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortPlacementSwarm$ { - /** @deprecated use `MongoSaveExternalPortPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortPlacementSwarm$inboundSchema; - /** @deprecated use `MongoSaveExternalPortPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortPlacementSwarm$outboundSchema; - /** @deprecated use `MongoSaveExternalPortPlacementSwarm$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortPlacementSwarm$Outbound; -} - -export function mongoSaveExternalPortPlacementSwarmToJSON( - mongoSaveExternalPortPlacementSwarm: MongoSaveExternalPortPlacementSwarm, -): string { - return JSON.stringify( - MongoSaveExternalPortPlacementSwarm$outboundSchema.parse( - mongoSaveExternalPortPlacementSwarm, - ), - ); -} - export function mongoSaveExternalPortPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2069,67 +947,14 @@ export const MongoSaveExternalPortRestartPolicySwarm$inboundSchema: z.ZodType< Delay: z.number().optional(), MaxAttempts: z.number().optional(), Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MongoSaveExternalPortRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MongoSaveExternalPortRestartPolicySwarm$outboundSchema: z.ZodType< - MongoSaveExternalPortRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortRestartPolicySwarm$ { - /** @deprecated use `MongoSaveExternalPortRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoSaveExternalPortRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoSaveExternalPortRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortRestartPolicySwarm$Outbound; -} - -export function mongoSaveExternalPortRestartPolicySwarmToJSON( - mongoSaveExternalPortRestartPolicySwarm: - MongoSaveExternalPortRestartPolicySwarm, -): string { - return JSON.stringify( - MongoSaveExternalPortRestartPolicySwarm$outboundSchema.parse( - mongoSaveExternalPortRestartPolicySwarm, - ), - ); -} +}).transform((v) => { + return remap$(v, { + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", + }); +}); export function mongoSaveExternalPortRestartPolicySwarmFromJSON( jsonString: string, @@ -2170,65 +995,6 @@ export const MongoSaveExternalPortRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoSaveExternalPortRollbackConfigSwarm$outboundSchema: z.ZodType< - MongoSaveExternalPortRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortRollbackConfigSwarm$ { - /** @deprecated use `MongoSaveExternalPortRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoSaveExternalPortRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoSaveExternalPortRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortRollbackConfigSwarm$Outbound; -} - -export function mongoSaveExternalPortRollbackConfigSwarmToJSON( - mongoSaveExternalPortRollbackConfigSwarm: - MongoSaveExternalPortRollbackConfigSwarm, -): string { - return JSON.stringify( - MongoSaveExternalPortRollbackConfigSwarm$outboundSchema.parse( - mongoSaveExternalPortRollbackConfigSwarm, - ), - ); -} - export function mongoSaveExternalPortRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2251,24 +1017,6 @@ export const MongoSaveExternalPortMetricsConfigEnum$inboundSchema: MongoSaveExternalPortMetricsConfigEnum, ); -/** @internal */ -export const MongoSaveExternalPortMetricsConfigEnum$outboundSchema: - z.ZodNativeEnum = - MongoSaveExternalPortMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMetricsConfigEnum$ { - /** @deprecated use `MongoSaveExternalPortMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortMetricsConfigEnum$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MongoSaveExternalPortMetricsConfigUnion1$inboundSchema: z.ZodType< MongoSaveExternalPortMetricsConfigUnion1, @@ -2281,51 +1029,6 @@ export const MongoSaveExternalPortMetricsConfigUnion1$inboundSchema: z.ZodType< MongoSaveExternalPortMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MongoSaveExternalPortMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MongoSaveExternalPortMetricsConfigUnion1$outboundSchema: z.ZodType< - MongoSaveExternalPortMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MongoSaveExternalPortMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMetricsConfigUnion1$ { - /** @deprecated use `MongoSaveExternalPortMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MongoSaveExternalPortMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortMetricsConfigUnion1$Outbound; -} - -export function mongoSaveExternalPortMetricsConfigUnion1ToJSON( - mongoSaveExternalPortMetricsConfigUnion1: - MongoSaveExternalPortMetricsConfigUnion1, -): string { - return JSON.stringify( - MongoSaveExternalPortMetricsConfigUnion1$outboundSchema.parse( - mongoSaveExternalPortMetricsConfigUnion1, - ), - ); -} - export function mongoSaveExternalPortMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult< @@ -2358,57 +1061,6 @@ export const MongoSaveExternalPortMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MongoSaveExternalPortMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MongoSaveExternalPortMetricsConfigUnion2$outboundSchema: z.ZodType< - MongoSaveExternalPortMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortMetricsConfigUnion2$ { - /** @deprecated use `MongoSaveExternalPortMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MongoSaveExternalPortMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MongoSaveExternalPortMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortMetricsConfigUnion2$Outbound; -} - -export function mongoSaveExternalPortMetricsConfigUnion2ToJSON( - mongoSaveExternalPortMetricsConfigUnion2: - MongoSaveExternalPortMetricsConfigUnion2, -): string { - return JSON.stringify( - MongoSaveExternalPortMetricsConfigUnion2$outboundSchema.parse( - mongoSaveExternalPortMetricsConfigUnion2, - ), - ); -} - export function mongoSaveExternalPortMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult< @@ -2430,23 +1082,6 @@ export const MongoSaveExternalPortServerStatus$inboundSchema: z.ZodNativeEnum< typeof MongoSaveExternalPortServerStatus > = z.nativeEnum(MongoSaveExternalPortServerStatus); -/** @internal */ -export const MongoSaveExternalPortServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoSaveExternalPortServerStatus -> = MongoSaveExternalPortServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortServerStatus$ { - /** @deprecated use `MongoSaveExternalPortServerStatus$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortServerStatus$inboundSchema; - /** @deprecated use `MongoSaveExternalPortServerStatus$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortServerStatus$outboundSchema; -} - /** @internal */ export const MongoSaveExternalPortServer$inboundSchema: z.ZodType< MongoSaveExternalPortServer, @@ -2478,80 +1113,6 @@ export const MongoSaveExternalPortServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MongoSaveExternalPortServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MongoSaveExternalPortServer$outboundSchema: z.ZodType< - MongoSaveExternalPortServer$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MongoSaveExternalPortServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortServer$ { - /** @deprecated use `MongoSaveExternalPortServer$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortServer$inboundSchema; - /** @deprecated use `MongoSaveExternalPortServer$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortServer$outboundSchema; - /** @deprecated use `MongoSaveExternalPortServer$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortServer$Outbound; -} - -export function mongoSaveExternalPortServerToJSON( - mongoSaveExternalPortServer: MongoSaveExternalPortServer, -): string { - return JSON.stringify( - MongoSaveExternalPortServer$outboundSchema.parse( - mongoSaveExternalPortServer, - ), - ); -} - export function mongoSaveExternalPortServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2585,65 +1146,6 @@ export const MongoSaveExternalPortUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoSaveExternalPortUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoSaveExternalPortUpdateConfigSwarm$outboundSchema: z.ZodType< - MongoSaveExternalPortUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortUpdateConfigSwarm$ { - /** @deprecated use `MongoSaveExternalPortUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MongoSaveExternalPortUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoSaveExternalPortUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoSaveExternalPortUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortUpdateConfigSwarm$Outbound; -} - -export function mongoSaveExternalPortUpdateConfigSwarmToJSON( - mongoSaveExternalPortUpdateConfigSwarm: - MongoSaveExternalPortUpdateConfigSwarm, -): string { - return JSON.stringify( - MongoSaveExternalPortUpdateConfigSwarm$outboundSchema.parse( - mongoSaveExternalPortUpdateConfigSwarm, - ), - ); -} - export function mongoSaveExternalPortUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2709,120 +1211,6 @@ export const MongoSaveExternalPortResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MongoSaveExternalPortResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MongoSaveExternalPortEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MongoSaveExternalPortHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MongoSaveExternalPortModeSwarm$Outbound | null; - mongoId: string; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MongoSaveExternalPortPlacementSwarm$Outbound | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: MongoSaveExternalPortRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MongoSaveExternalPortRollbackConfigSwarm$Outbound | null; - server: MongoSaveExternalPortServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MongoSaveExternalPortUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MongoSaveExternalPortResponseBody$outboundSchema: z.ZodType< - MongoSaveExternalPortResponseBody$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MongoSaveExternalPortApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MongoSaveExternalPortBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MongoSaveExternalPortEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoSaveExternalPortHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => MongoSaveExternalPortModeSwarm$outboundSchema), - ), - mongoId: z.string(), - mounts: z.array(z.lazy(() => MongoSaveExternalPortMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoSaveExternalPortNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MongoSaveExternalPortPlacementSwarm$outboundSchema), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoSaveExternalPortRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoSaveExternalPortRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MongoSaveExternalPortServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoSaveExternalPortUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortResponseBody$ { - /** @deprecated use `MongoSaveExternalPortResponseBody$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortResponseBody$inboundSchema; - /** @deprecated use `MongoSaveExternalPortResponseBody$outboundSchema` instead. */ - export const outboundSchema = - MongoSaveExternalPortResponseBody$outboundSchema; - /** @deprecated use `MongoSaveExternalPortResponseBody$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortResponseBody$Outbound; -} - -export function mongoSaveExternalPortResponseBodyToJSON( - mongoSaveExternalPortResponseBody: MongoSaveExternalPortResponseBody, -): string { - return JSON.stringify( - MongoSaveExternalPortResponseBody$outboundSchema.parse( - mongoSaveExternalPortResponseBody, - ), - ); -} - export function mongoSaveExternalPortResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2843,44 +1231,6 @@ export const MongoSaveExternalPortResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MongoSaveExternalPortResponse$Outbound = - | MongoSaveExternalPortResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MongoSaveExternalPortResponse$outboundSchema: z.ZodType< - MongoSaveExternalPortResponse$Outbound, - z.ZodTypeDef, - MongoSaveExternalPortResponse -> = z.union([ - z.lazy(() => MongoSaveExternalPortResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoSaveExternalPortResponse$ { - /** @deprecated use `MongoSaveExternalPortResponse$inboundSchema` instead. */ - export const inboundSchema = MongoSaveExternalPortResponse$inboundSchema; - /** @deprecated use `MongoSaveExternalPortResponse$outboundSchema` instead. */ - export const outboundSchema = MongoSaveExternalPortResponse$outboundSchema; - /** @deprecated use `MongoSaveExternalPortResponse$Outbound` instead. */ - export type Outbound = MongoSaveExternalPortResponse$Outbound; -} - -export function mongoSaveExternalPortResponseToJSON( - mongoSaveExternalPortResponse: MongoSaveExternalPortResponse, -): string { - return JSON.stringify( - MongoSaveExternalPortResponse$outboundSchema.parse( - mongoSaveExternalPortResponse, - ), - ); -} - export function mongoSaveExternalPortResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongostart.ts b/src/models/operations/mongostart.ts index ab02a42..c8d7b83 100644 --- a/src/models/operations/mongostart.ts +++ b/src/models/operations/mongostart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -320,15 +320,6 @@ export type MongoStartResponseBody = { export type MongoStartResponse = MongoStartResponseBody | models.ErrorT; -/** @internal */ -export const MongoStartRequest$inboundSchema: z.ZodType< - MongoStartRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mongoId: z.string(), -}); - /** @internal */ export type MongoStartRequest$Outbound = { mongoId: string; @@ -343,19 +334,6 @@ export const MongoStartRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartRequest$ { - /** @deprecated use `MongoStartRequest$inboundSchema` instead. */ - export const inboundSchema = MongoStartRequest$inboundSchema; - /** @deprecated use `MongoStartRequest$outboundSchema` instead. */ - export const outboundSchema = MongoStartRequest$outboundSchema; - /** @deprecated use `MongoStartRequest$Outbound` instead. */ - export type Outbound = MongoStartRequest$Outbound; -} - export function mongoStartRequestToJSON( mongoStartRequest: MongoStartRequest, ): string { @@ -364,100 +342,26 @@ export function mongoStartRequestToJSON( ); } -export function mongoStartRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoStartRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoStartRequest' from JSON`, - ); -} - /** @internal */ export const MongoStartApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MongoStartApplicationStatus > = z.nativeEnum(MongoStartApplicationStatus); -/** @internal */ -export const MongoStartApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoStartApplicationStatus -> = MongoStartApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartApplicationStatus$ { - /** @deprecated use `MongoStartApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MongoStartApplicationStatus$inboundSchema; - /** @deprecated use `MongoStartApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MongoStartApplicationStatus$outboundSchema; -} - /** @internal */ export const MongoStartBackupType$inboundSchema: z.ZodNativeEnum< typeof MongoStartBackupType > = z.nativeEnum(MongoStartBackupType); -/** @internal */ -export const MongoStartBackupType$outboundSchema: z.ZodNativeEnum< - typeof MongoStartBackupType -> = MongoStartBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartBackupType$ { - /** @deprecated use `MongoStartBackupType$inboundSchema` instead. */ - export const inboundSchema = MongoStartBackupType$inboundSchema; - /** @deprecated use `MongoStartBackupType$outboundSchema` instead. */ - export const outboundSchema = MongoStartBackupType$outboundSchema; -} - /** @internal */ export const MongoStartDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MongoStartDatabaseType > = z.nativeEnum(MongoStartDatabaseType); -/** @internal */ -export const MongoStartDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MongoStartDatabaseType -> = MongoStartDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartDatabaseType$ { - /** @deprecated use `MongoStartDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MongoStartDatabaseType$inboundSchema; - /** @deprecated use `MongoStartDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MongoStartDatabaseType$outboundSchema; -} - /** @internal */ export const MongoStartMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MongoStartMetadataEnum > = z.nativeEnum(MongoStartMetadataEnum); -/** @internal */ -export const MongoStartMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoStartMetadataEnum -> = MongoStartMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMetadataEnum$ { - /** @deprecated use `MongoStartMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MongoStartMetadataEnum$inboundSchema; - /** @deprecated use `MongoStartMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MongoStartMetadataEnum$outboundSchema; -} - /** @internal */ export const MongoStartMariadb$inboundSchema: z.ZodType< MongoStartMariadb, @@ -468,43 +372,6 @@ export const MongoStartMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoStartMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoStartMariadb$outboundSchema: z.ZodType< - MongoStartMariadb$Outbound, - z.ZodTypeDef, - MongoStartMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMariadb$ { - /** @deprecated use `MongoStartMariadb$inboundSchema` instead. */ - export const inboundSchema = MongoStartMariadb$inboundSchema; - /** @deprecated use `MongoStartMariadb$outboundSchema` instead. */ - export const outboundSchema = MongoStartMariadb$outboundSchema; - /** @deprecated use `MongoStartMariadb$Outbound` instead. */ - export type Outbound = MongoStartMariadb$Outbound; -} - -export function mongoStartMariadbToJSON( - mongoStartMariadb: MongoStartMariadb, -): string { - return JSON.stringify( - MongoStartMariadb$outboundSchema.parse(mongoStartMariadb), - ); -} - export function mongoStartMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -525,41 +392,6 @@ export const MongoStartMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoStartMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoStartMongo$outboundSchema: z.ZodType< - MongoStartMongo$Outbound, - z.ZodTypeDef, - MongoStartMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMongo$ { - /** @deprecated use `MongoStartMongo$inboundSchema` instead. */ - export const inboundSchema = MongoStartMongo$inboundSchema; - /** @deprecated use `MongoStartMongo$outboundSchema` instead. */ - export const outboundSchema = MongoStartMongo$outboundSchema; - /** @deprecated use `MongoStartMongo$Outbound` instead. */ - export type Outbound = MongoStartMongo$Outbound; -} - -export function mongoStartMongoToJSON( - mongoStartMongo: MongoStartMongo, -): string { - return JSON.stringify(MongoStartMongo$outboundSchema.parse(mongoStartMongo)); -} - export function mongoStartMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -579,39 +411,6 @@ export const MongoStartMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MongoStartMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MongoStartMysql$outboundSchema: z.ZodType< - MongoStartMysql$Outbound, - z.ZodTypeDef, - MongoStartMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMysql$ { - /** @deprecated use `MongoStartMysql$inboundSchema` instead. */ - export const inboundSchema = MongoStartMysql$inboundSchema; - /** @deprecated use `MongoStartMysql$outboundSchema` instead. */ - export const outboundSchema = MongoStartMysql$outboundSchema; - /** @deprecated use `MongoStartMysql$Outbound` instead. */ - export type Outbound = MongoStartMysql$Outbound; -} - -export function mongoStartMysqlToJSON( - mongoStartMysql: MongoStartMysql, -): string { - return JSON.stringify(MongoStartMysql$outboundSchema.parse(mongoStartMysql)); -} - export function mongoStartMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -631,41 +430,6 @@ export const MongoStartPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoStartPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MongoStartPostgres$outboundSchema: z.ZodType< - MongoStartPostgres$Outbound, - z.ZodTypeDef, - MongoStartPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartPostgres$ { - /** @deprecated use `MongoStartPostgres$inboundSchema` instead. */ - export const inboundSchema = MongoStartPostgres$inboundSchema; - /** @deprecated use `MongoStartPostgres$outboundSchema` instead. */ - export const outboundSchema = MongoStartPostgres$outboundSchema; - /** @deprecated use `MongoStartPostgres$Outbound` instead. */ - export type Outbound = MongoStartPostgres$Outbound; -} - -export function mongoStartPostgresToJSON( - mongoStartPostgres: MongoStartPostgres, -): string { - return JSON.stringify( - MongoStartPostgres$outboundSchema.parse(mongoStartPostgres), - ); -} - export function mongoStartPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -688,47 +452,6 @@ export const MongoStartMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MongoStartPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MongoStartMetadata$Outbound = { - mariadb?: MongoStartMariadb$Outbound | undefined; - mongo?: MongoStartMongo$Outbound | undefined; - mysql?: MongoStartMysql$Outbound | undefined; - postgres?: MongoStartPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MongoStartMetadata$outboundSchema: z.ZodType< - MongoStartMetadata$Outbound, - z.ZodTypeDef, - MongoStartMetadata -> = z.object({ - mariadb: z.lazy(() => MongoStartMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MongoStartMongo$outboundSchema).optional(), - mysql: z.lazy(() => MongoStartMysql$outboundSchema).optional(), - postgres: z.lazy(() => MongoStartPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMetadata$ { - /** @deprecated use `MongoStartMetadata$inboundSchema` instead. */ - export const inboundSchema = MongoStartMetadata$inboundSchema; - /** @deprecated use `MongoStartMetadata$outboundSchema` instead. */ - export const outboundSchema = MongoStartMetadata$outboundSchema; - /** @deprecated use `MongoStartMetadata$Outbound` instead. */ - export type Outbound = MongoStartMetadata$Outbound; -} - -export function mongoStartMetadataToJSON( - mongoStartMetadata: MongoStartMetadata, -): string { - return JSON.stringify( - MongoStartMetadata$outboundSchema.parse(mongoStartMetadata), - ); -} - export function mongoStartMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -749,42 +472,6 @@ export const MongoStartMetadataUnion$inboundSchema: z.ZodType< MongoStartMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MongoStartMetadataUnion$Outbound = - | MongoStartMetadata$Outbound - | string; - -/** @internal */ -export const MongoStartMetadataUnion$outboundSchema: z.ZodType< - MongoStartMetadataUnion$Outbound, - z.ZodTypeDef, - MongoStartMetadataUnion -> = z.union([ - z.lazy(() => MongoStartMetadata$outboundSchema), - MongoStartMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMetadataUnion$ { - /** @deprecated use `MongoStartMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MongoStartMetadataUnion$inboundSchema; - /** @deprecated use `MongoStartMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MongoStartMetadataUnion$outboundSchema; - /** @deprecated use `MongoStartMetadataUnion$Outbound` instead. */ - export type Outbound = MongoStartMetadataUnion$Outbound; -} - -export function mongoStartMetadataUnionToJSON( - mongoStartMetadataUnion: MongoStartMetadataUnion, -): string { - return JSON.stringify( - MongoStartMetadataUnion$outboundSchema.parse(mongoStartMetadataUnion), - ); -} - export function mongoStartMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -826,80 +513,6 @@ export const MongoStartBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MongoStartBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MongoStartMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MongoStartBackup$outboundSchema: z.ZodType< - MongoStartBackup$Outbound, - z.ZodTypeDef, - MongoStartBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MongoStartBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MongoStartDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MongoStartMetadata$outboundSchema), - MongoStartMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartBackup$ { - /** @deprecated use `MongoStartBackup$inboundSchema` instead. */ - export const inboundSchema = MongoStartBackup$inboundSchema; - /** @deprecated use `MongoStartBackup$outboundSchema` instead. */ - export const outboundSchema = MongoStartBackup$outboundSchema; - /** @deprecated use `MongoStartBackup$Outbound` instead. */ - export type Outbound = MongoStartBackup$Outbound; -} - -export function mongoStartBackupToJSON( - mongoStartBackup: MongoStartBackup, -): string { - return JSON.stringify( - MongoStartBackup$outboundSchema.parse(mongoStartBackup), - ); -} - export function mongoStartBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -924,51 +537,6 @@ export const MongoStartProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoStartProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MongoStartProject$outboundSchema: z.ZodType< - MongoStartProject$Outbound, - z.ZodTypeDef, - MongoStartProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartProject$ { - /** @deprecated use `MongoStartProject$inboundSchema` instead. */ - export const inboundSchema = MongoStartProject$inboundSchema; - /** @deprecated use `MongoStartProject$outboundSchema` instead. */ - export const outboundSchema = MongoStartProject$outboundSchema; - /** @deprecated use `MongoStartProject$Outbound` instead. */ - export type Outbound = MongoStartProject$Outbound; -} - -export function mongoStartProjectToJSON( - mongoStartProject: MongoStartProject, -): string { - return JSON.stringify( - MongoStartProject$outboundSchema.parse(mongoStartProject), - ); -} - export function mongoStartProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -994,53 +562,6 @@ export const MongoStartEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoStartEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MongoStartProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MongoStartEnvironment$outboundSchema: z.ZodType< - MongoStartEnvironment$Outbound, - z.ZodTypeDef, - MongoStartEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MongoStartProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartEnvironment$ { - /** @deprecated use `MongoStartEnvironment$inboundSchema` instead. */ - export const inboundSchema = MongoStartEnvironment$inboundSchema; - /** @deprecated use `MongoStartEnvironment$outboundSchema` instead. */ - export const outboundSchema = MongoStartEnvironment$outboundSchema; - /** @deprecated use `MongoStartEnvironment$Outbound` instead. */ - export type Outbound = MongoStartEnvironment$Outbound; -} - -export function mongoStartEnvironmentToJSON( - mongoStartEnvironment: MongoStartEnvironment, -): string { - return JSON.stringify( - MongoStartEnvironment$outboundSchema.parse(mongoStartEnvironment), - ); -} - export function mongoStartEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1072,57 +593,6 @@ export const MongoStartHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MongoStartHealthCheckSwarm$outboundSchema: z.ZodType< - MongoStartHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MongoStartHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartHealthCheckSwarm$ { - /** @deprecated use `MongoStartHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStartHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoStartHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStartHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoStartHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoStartHealthCheckSwarm$Outbound; -} - -export function mongoStartHealthCheckSwarmToJSON( - mongoStartHealthCheckSwarm: MongoStartHealthCheckSwarm, -): string { - return JSON.stringify( - MongoStartHealthCheckSwarm$outboundSchema.parse(mongoStartHealthCheckSwarm), - ); -} - export function mongoStartHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1140,37 +610,6 @@ export const MongoStartGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoStartGlobal$Outbound = {}; - -/** @internal */ -export const MongoStartGlobal$outboundSchema: z.ZodType< - MongoStartGlobal$Outbound, - z.ZodTypeDef, - MongoStartGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartGlobal$ { - /** @deprecated use `MongoStartGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoStartGlobal$inboundSchema; - /** @deprecated use `MongoStartGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoStartGlobal$outboundSchema; - /** @deprecated use `MongoStartGlobal$Outbound` instead. */ - export type Outbound = MongoStartGlobal$Outbound; -} - -export function mongoStartGlobalToJSON( - mongoStartGlobal: MongoStartGlobal, -): string { - return JSON.stringify( - MongoStartGlobal$outboundSchema.parse(mongoStartGlobal), - ); -} - export function mongoStartGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1182,42 +621,11 @@ export function mongoStartGlobalFromJSON( } /** @internal */ -export const MongoStartGlobalJob$inboundSchema: z.ZodType< - MongoStartGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MongoStartGlobalJob$Outbound = {}; - -/** @internal */ -export const MongoStartGlobalJob$outboundSchema: z.ZodType< - MongoStartGlobalJob$Outbound, - z.ZodTypeDef, - MongoStartGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartGlobalJob$ { - /** @deprecated use `MongoStartGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoStartGlobalJob$inboundSchema; - /** @deprecated use `MongoStartGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoStartGlobalJob$outboundSchema; - /** @deprecated use `MongoStartGlobalJob$Outbound` instead. */ - export type Outbound = MongoStartGlobalJob$Outbound; -} - -export function mongoStartGlobalJobToJSON( - mongoStartGlobalJob: MongoStartGlobalJob, -): string { - return JSON.stringify( - MongoStartGlobalJob$outboundSchema.parse(mongoStartGlobalJob), - ); -} +export const MongoStartGlobalJob$inboundSchema: z.ZodType< + MongoStartGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mongoStartGlobalJobFromJSON( jsonString: string, @@ -1242,45 +650,6 @@ export const MongoStartReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MongoStartReplicated$outboundSchema: z.ZodType< - MongoStartReplicated$Outbound, - z.ZodTypeDef, - MongoStartReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartReplicated$ { - /** @deprecated use `MongoStartReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoStartReplicated$inboundSchema; - /** @deprecated use `MongoStartReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoStartReplicated$outboundSchema; - /** @deprecated use `MongoStartReplicated$Outbound` instead. */ - export type Outbound = MongoStartReplicated$Outbound; -} - -export function mongoStartReplicatedToJSON( - mongoStartReplicated: MongoStartReplicated, -): string { - return JSON.stringify( - MongoStartReplicated$outboundSchema.parse(mongoStartReplicated), - ); -} - export function mongoStartReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1306,48 +675,6 @@ export const MongoStartReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MongoStartReplicatedJob$outboundSchema: z.ZodType< - MongoStartReplicatedJob$Outbound, - z.ZodTypeDef, - MongoStartReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartReplicatedJob$ { - /** @deprecated use `MongoStartReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoStartReplicatedJob$inboundSchema; - /** @deprecated use `MongoStartReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MongoStartReplicatedJob$outboundSchema; - /** @deprecated use `MongoStartReplicatedJob$Outbound` instead. */ - export type Outbound = MongoStartReplicatedJob$Outbound; -} - -export function mongoStartReplicatedJobToJSON( - mongoStartReplicatedJob: MongoStartReplicatedJob, -): string { - return JSON.stringify( - MongoStartReplicatedJob$outboundSchema.parse(mongoStartReplicatedJob), - ); -} - export function mongoStartReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1377,55 +704,6 @@ export const MongoStartModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartModeSwarm$Outbound = { - Global?: MongoStartGlobal$Outbound | undefined; - GlobalJob?: MongoStartGlobalJob$Outbound | undefined; - Replicated?: MongoStartReplicated$Outbound | undefined; - ReplicatedJob?: MongoStartReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MongoStartModeSwarm$outboundSchema: z.ZodType< - MongoStartModeSwarm$Outbound, - z.ZodTypeDef, - MongoStartModeSwarm -> = z.object({ - global: z.lazy(() => MongoStartGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MongoStartGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MongoStartReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MongoStartReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartModeSwarm$ { - /** @deprecated use `MongoStartModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStartModeSwarm$inboundSchema; - /** @deprecated use `MongoStartModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStartModeSwarm$outboundSchema; - /** @deprecated use `MongoStartModeSwarm$Outbound` instead. */ - export type Outbound = MongoStartModeSwarm$Outbound; -} - -export function mongoStartModeSwarmToJSON( - mongoStartModeSwarm: MongoStartModeSwarm, -): string { - return JSON.stringify( - MongoStartModeSwarm$outboundSchema.parse(mongoStartModeSwarm), - ); -} - export function mongoStartModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1441,43 +719,11 @@ export const MongoStartServiceType$inboundSchema: z.ZodNativeEnum< typeof MongoStartServiceType > = z.nativeEnum(MongoStartServiceType); -/** @internal */ -export const MongoStartServiceType$outboundSchema: z.ZodNativeEnum< - typeof MongoStartServiceType -> = MongoStartServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartServiceType$ { - /** @deprecated use `MongoStartServiceType$inboundSchema` instead. */ - export const inboundSchema = MongoStartServiceType$inboundSchema; - /** @deprecated use `MongoStartServiceType$outboundSchema` instead. */ - export const outboundSchema = MongoStartServiceType$outboundSchema; -} - /** @internal */ export const MongoStartType$inboundSchema: z.ZodNativeEnum< typeof MongoStartType > = z.nativeEnum(MongoStartType); -/** @internal */ -export const MongoStartType$outboundSchema: z.ZodNativeEnum< - typeof MongoStartType -> = MongoStartType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartType$ { - /** @deprecated use `MongoStartType$inboundSchema` instead. */ - export const inboundSchema = MongoStartType$inboundSchema; - /** @deprecated use `MongoStartType$outboundSchema` instead. */ - export const outboundSchema = MongoStartType$outboundSchema; -} - /** @internal */ export const MongoStartMount$inboundSchema: z.ZodType< MongoStartMount, @@ -1501,67 +747,6 @@ export const MongoStartMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MongoStartMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MongoStartMount$outboundSchema: z.ZodType< - MongoStartMount$Outbound, - z.ZodTypeDef, - MongoStartMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MongoStartServiceType$outboundSchema, - type: MongoStartType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMount$ { - /** @deprecated use `MongoStartMount$inboundSchema` instead. */ - export const inboundSchema = MongoStartMount$inboundSchema; - /** @deprecated use `MongoStartMount$outboundSchema` instead. */ - export const outboundSchema = MongoStartMount$outboundSchema; - /** @deprecated use `MongoStartMount$Outbound` instead. */ - export type Outbound = MongoStartMount$Outbound; -} - -export function mongoStartMountToJSON( - mongoStartMount: MongoStartMount, -): string { - return JSON.stringify(MongoStartMount$outboundSchema.parse(mongoStartMount)); -} - export function mongoStartMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1579,37 +764,6 @@ export const MongoStartDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoStartDriverOpts$Outbound = {}; - -/** @internal */ -export const MongoStartDriverOpts$outboundSchema: z.ZodType< - MongoStartDriverOpts$Outbound, - z.ZodTypeDef, - MongoStartDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartDriverOpts$ { - /** @deprecated use `MongoStartDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoStartDriverOpts$inboundSchema; - /** @deprecated use `MongoStartDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoStartDriverOpts$outboundSchema; - /** @deprecated use `MongoStartDriverOpts$Outbound` instead. */ - export type Outbound = MongoStartDriverOpts$Outbound; -} - -export function mongoStartDriverOptsToJSON( - mongoStartDriverOpts: MongoStartDriverOpts, -): string { - return JSON.stringify( - MongoStartDriverOpts$outboundSchema.parse(mongoStartDriverOpts), - ); -} - export function mongoStartDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1637,51 +791,6 @@ export const MongoStartNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MongoStartDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MongoStartNetworkSwarm$outboundSchema: z.ZodType< - MongoStartNetworkSwarm$Outbound, - z.ZodTypeDef, - MongoStartNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MongoStartDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartNetworkSwarm$ { - /** @deprecated use `MongoStartNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStartNetworkSwarm$inboundSchema; - /** @deprecated use `MongoStartNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStartNetworkSwarm$outboundSchema; - /** @deprecated use `MongoStartNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoStartNetworkSwarm$Outbound; -} - -export function mongoStartNetworkSwarmToJSON( - mongoStartNetworkSwarm: MongoStartNetworkSwarm, -): string { - return JSON.stringify( - MongoStartNetworkSwarm$outboundSchema.parse(mongoStartNetworkSwarm), - ); -} - export function mongoStartNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1707,48 +816,6 @@ export const MongoStartPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MongoStartPlatform$outboundSchema: z.ZodType< - MongoStartPlatform$Outbound, - z.ZodTypeDef, - MongoStartPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartPlatform$ { - /** @deprecated use `MongoStartPlatform$inboundSchema` instead. */ - export const inboundSchema = MongoStartPlatform$inboundSchema; - /** @deprecated use `MongoStartPlatform$outboundSchema` instead. */ - export const outboundSchema = MongoStartPlatform$outboundSchema; - /** @deprecated use `MongoStartPlatform$Outbound` instead. */ - export type Outbound = MongoStartPlatform$Outbound; -} - -export function mongoStartPlatformToJSON( - mongoStartPlatform: MongoStartPlatform, -): string { - return JSON.stringify( - MongoStartPlatform$outboundSchema.parse(mongoStartPlatform), - ); -} - export function mongoStartPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1772,45 +839,6 @@ export const MongoStartSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MongoStartSpread$outboundSchema: z.ZodType< - MongoStartSpread$Outbound, - z.ZodTypeDef, - MongoStartSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartSpread$ { - /** @deprecated use `MongoStartSpread$inboundSchema` instead. */ - export const inboundSchema = MongoStartSpread$inboundSchema; - /** @deprecated use `MongoStartSpread$outboundSchema` instead. */ - export const outboundSchema = MongoStartSpread$outboundSchema; - /** @deprecated use `MongoStartSpread$Outbound` instead. */ - export type Outbound = MongoStartSpread$Outbound; -} - -export function mongoStartSpreadToJSON( - mongoStartSpread: MongoStartSpread, -): string { - return JSON.stringify( - MongoStartSpread$outboundSchema.parse(mongoStartSpread), - ); -} - export function mongoStartSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1834,45 +862,6 @@ export const MongoStartPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartPreference$Outbound = { - Spread: MongoStartSpread$Outbound; -}; - -/** @internal */ -export const MongoStartPreference$outboundSchema: z.ZodType< - MongoStartPreference$Outbound, - z.ZodTypeDef, - MongoStartPreference -> = z.object({ - spread: z.lazy(() => MongoStartSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartPreference$ { - /** @deprecated use `MongoStartPreference$inboundSchema` instead. */ - export const inboundSchema = MongoStartPreference$inboundSchema; - /** @deprecated use `MongoStartPreference$outboundSchema` instead. */ - export const outboundSchema = MongoStartPreference$outboundSchema; - /** @deprecated use `MongoStartPreference$Outbound` instead. */ - export type Outbound = MongoStartPreference$Outbound; -} - -export function mongoStartPreferenceToJSON( - mongoStartPreference: MongoStartPreference, -): string { - return JSON.stringify( - MongoStartPreference$outboundSchema.parse(mongoStartPreference), - ); -} - export function mongoStartPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1903,56 +892,6 @@ export const MongoStartPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MongoStartPlacementSwarm$outboundSchema: z.ZodType< - MongoStartPlacementSwarm$Outbound, - z.ZodTypeDef, - MongoStartPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MongoStartPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MongoStartPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartPlacementSwarm$ { - /** @deprecated use `MongoStartPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStartPlacementSwarm$inboundSchema; - /** @deprecated use `MongoStartPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStartPlacementSwarm$outboundSchema; - /** @deprecated use `MongoStartPlacementSwarm$Outbound` instead. */ - export type Outbound = MongoStartPlacementSwarm$Outbound; -} - -export function mongoStartPlacementSwarmToJSON( - mongoStartPlacementSwarm: MongoStartPlacementSwarm, -): string { - return JSON.stringify( - MongoStartPlacementSwarm$outboundSchema.parse(mongoStartPlacementSwarm), - ); -} - export function mongoStartPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1970,68 +909,18 @@ export const MongoStartRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MongoStartRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MongoStartRestartPolicySwarm$outboundSchema: z.ZodType< - MongoStartRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MongoStartRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartRestartPolicySwarm$ { - /** @deprecated use `MongoStartRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStartRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoStartRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStartRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoStartRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoStartRestartPolicySwarm$Outbound; -} - -export function mongoStartRestartPolicySwarmToJSON( - mongoStartRestartPolicySwarm: MongoStartRestartPolicySwarm, -): string { - return JSON.stringify( - MongoStartRestartPolicySwarm$outboundSchema.parse( - mongoStartRestartPolicySwarm, - ), - ); -} - export function mongoStartRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2065,62 +954,6 @@ export const MongoStartRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoStartRollbackConfigSwarm$outboundSchema: z.ZodType< - MongoStartRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MongoStartRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartRollbackConfigSwarm$ { - /** @deprecated use `MongoStartRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStartRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoStartRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStartRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoStartRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoStartRollbackConfigSwarm$Outbound; -} - -export function mongoStartRollbackConfigSwarmToJSON( - mongoStartRollbackConfigSwarm: MongoStartRollbackConfigSwarm, -): string { - return JSON.stringify( - MongoStartRollbackConfigSwarm$outboundSchema.parse( - mongoStartRollbackConfigSwarm, - ), - ); -} - export function mongoStartRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2136,22 +969,6 @@ export const MongoStartMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MongoStartMetricsConfigEnum > = z.nativeEnum(MongoStartMetricsConfigEnum); -/** @internal */ -export const MongoStartMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoStartMetricsConfigEnum -> = MongoStartMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMetricsConfigEnum$ { - /** @deprecated use `MongoStartMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MongoStartMetricsConfigEnum$inboundSchema; - /** @deprecated use `MongoStartMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MongoStartMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MongoStartMetricsConfigUnion1$inboundSchema: z.ZodType< MongoStartMetricsConfigUnion1, @@ -2164,48 +981,6 @@ export const MongoStartMetricsConfigUnion1$inboundSchema: z.ZodType< MongoStartMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MongoStartMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MongoStartMetricsConfigUnion1$outboundSchema: z.ZodType< - MongoStartMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MongoStartMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MongoStartMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMetricsConfigUnion1$ { - /** @deprecated use `MongoStartMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MongoStartMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MongoStartMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MongoStartMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MongoStartMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MongoStartMetricsConfigUnion1$Outbound; -} - -export function mongoStartMetricsConfigUnion1ToJSON( - mongoStartMetricsConfigUnion1: MongoStartMetricsConfigUnion1, -): string { - return JSON.stringify( - MongoStartMetricsConfigUnion1$outboundSchema.parse( - mongoStartMetricsConfigUnion1, - ), - ); -} - export function mongoStartMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2232,54 +1007,6 @@ export const MongoStartMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MongoStartMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MongoStartMetricsConfigUnion2$outboundSchema: z.ZodType< - MongoStartMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MongoStartMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartMetricsConfigUnion2$ { - /** @deprecated use `MongoStartMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MongoStartMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MongoStartMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MongoStartMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MongoStartMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MongoStartMetricsConfigUnion2$Outbound; -} - -export function mongoStartMetricsConfigUnion2ToJSON( - mongoStartMetricsConfigUnion2: MongoStartMetricsConfigUnion2, -): string { - return JSON.stringify( - MongoStartMetricsConfigUnion2$outboundSchema.parse( - mongoStartMetricsConfigUnion2, - ), - ); -} - export function mongoStartMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2295,22 +1022,6 @@ export const MongoStartServerStatus$inboundSchema: z.ZodNativeEnum< typeof MongoStartServerStatus > = z.nativeEnum(MongoStartServerStatus); -/** @internal */ -export const MongoStartServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoStartServerStatus -> = MongoStartServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartServerStatus$ { - /** @deprecated use `MongoStartServerStatus$inboundSchema` instead. */ - export const inboundSchema = MongoStartServerStatus$inboundSchema; - /** @deprecated use `MongoStartServerStatus$outboundSchema` instead. */ - export const outboundSchema = MongoStartServerStatus$outboundSchema; -} - /** @internal */ export const MongoStartServer$inboundSchema: z.ZodType< MongoStartServer, @@ -2342,78 +1053,6 @@ export const MongoStartServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MongoStartServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MongoStartServer$outboundSchema: z.ZodType< - MongoStartServer$Outbound, - z.ZodTypeDef, - MongoStartServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MongoStartServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartServer$ { - /** @deprecated use `MongoStartServer$inboundSchema` instead. */ - export const inboundSchema = MongoStartServer$inboundSchema; - /** @deprecated use `MongoStartServer$outboundSchema` instead. */ - export const outboundSchema = MongoStartServer$outboundSchema; - /** @deprecated use `MongoStartServer$Outbound` instead. */ - export type Outbound = MongoStartServer$Outbound; -} - -export function mongoStartServerToJSON( - mongoStartServer: MongoStartServer, -): string { - return JSON.stringify( - MongoStartServer$outboundSchema.parse(mongoStartServer), - ); -} - export function mongoStartServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2447,62 +1086,6 @@ export const MongoStartUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStartUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoStartUpdateConfigSwarm$outboundSchema: z.ZodType< - MongoStartUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MongoStartUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartUpdateConfigSwarm$ { - /** @deprecated use `MongoStartUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStartUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoStartUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStartUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoStartUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoStartUpdateConfigSwarm$Outbound; -} - -export function mongoStartUpdateConfigSwarmToJSON( - mongoStartUpdateConfigSwarm: MongoStartUpdateConfigSwarm, -): string { - return JSON.stringify( - MongoStartUpdateConfigSwarm$outboundSchema.parse( - mongoStartUpdateConfigSwarm, - ), - ); -} - export function mongoStartUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2565,115 +1148,6 @@ export const MongoStartResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MongoStartResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MongoStartEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MongoStartHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MongoStartModeSwarm$Outbound | null; - mongoId: string; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MongoStartPlacementSwarm$Outbound | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: MongoStartRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MongoStartRollbackConfigSwarm$Outbound | null; - server: MongoStartServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MongoStartUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MongoStartResponseBody$outboundSchema: z.ZodType< - MongoStartResponseBody$Outbound, - z.ZodTypeDef, - MongoStartResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MongoStartApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MongoStartBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MongoStartEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoStartHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MongoStartModeSwarm$outboundSchema)), - mongoId: z.string(), - mounts: z.array(z.lazy(() => MongoStartMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoStartNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MongoStartPlacementSwarm$outboundSchema), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoStartRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoStartRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MongoStartServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoStartUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartResponseBody$ { - /** @deprecated use `MongoStartResponseBody$inboundSchema` instead. */ - export const inboundSchema = MongoStartResponseBody$inboundSchema; - /** @deprecated use `MongoStartResponseBody$outboundSchema` instead. */ - export const outboundSchema = MongoStartResponseBody$outboundSchema; - /** @deprecated use `MongoStartResponseBody$Outbound` instead. */ - export type Outbound = MongoStartResponseBody$Outbound; -} - -export function mongoStartResponseBodyToJSON( - mongoStartResponseBody: MongoStartResponseBody, -): string { - return JSON.stringify( - MongoStartResponseBody$outboundSchema.parse(mongoStartResponseBody), - ); -} - export function mongoStartResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2694,42 +1168,6 @@ export const MongoStartResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MongoStartResponse$Outbound = - | MongoStartResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MongoStartResponse$outboundSchema: z.ZodType< - MongoStartResponse$Outbound, - z.ZodTypeDef, - MongoStartResponse -> = z.union([ - z.lazy(() => MongoStartResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStartResponse$ { - /** @deprecated use `MongoStartResponse$inboundSchema` instead. */ - export const inboundSchema = MongoStartResponse$inboundSchema; - /** @deprecated use `MongoStartResponse$outboundSchema` instead. */ - export const outboundSchema = MongoStartResponse$outboundSchema; - /** @deprecated use `MongoStartResponse$Outbound` instead. */ - export type Outbound = MongoStartResponse$Outbound; -} - -export function mongoStartResponseToJSON( - mongoStartResponse: MongoStartResponse, -): string { - return JSON.stringify( - MongoStartResponse$outboundSchema.parse(mongoStartResponse), - ); -} - export function mongoStartResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongostop.ts b/src/models/operations/mongostop.ts index 7c25a87..39da6e6 100644 --- a/src/models/operations/mongostop.ts +++ b/src/models/operations/mongostop.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -318,15 +318,6 @@ export type MongoStopResponseBody = { export type MongoStopResponse = MongoStopResponseBody | models.ErrorT; -/** @internal */ -export const MongoStopRequest$inboundSchema: z.ZodType< - MongoStopRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mongoId: z.string(), -}); - /** @internal */ export type MongoStopRequest$Outbound = { mongoId: string; @@ -341,19 +332,6 @@ export const MongoStopRequest$outboundSchema: z.ZodType< mongoId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopRequest$ { - /** @deprecated use `MongoStopRequest$inboundSchema` instead. */ - export const inboundSchema = MongoStopRequest$inboundSchema; - /** @deprecated use `MongoStopRequest$outboundSchema` instead. */ - export const outboundSchema = MongoStopRequest$outboundSchema; - /** @deprecated use `MongoStopRequest$Outbound` instead. */ - export type Outbound = MongoStopRequest$Outbound; -} - export function mongoStopRequestToJSON( mongoStopRequest: MongoStopRequest, ): string { @@ -362,100 +340,26 @@ export function mongoStopRequestToJSON( ); } -export function mongoStopRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoStopRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoStopRequest' from JSON`, - ); -} - /** @internal */ export const MongoStopApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MongoStopApplicationStatus > = z.nativeEnum(MongoStopApplicationStatus); -/** @internal */ -export const MongoStopApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoStopApplicationStatus -> = MongoStopApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopApplicationStatus$ { - /** @deprecated use `MongoStopApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MongoStopApplicationStatus$inboundSchema; - /** @deprecated use `MongoStopApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MongoStopApplicationStatus$outboundSchema; -} - /** @internal */ export const MongoStopBackupType$inboundSchema: z.ZodNativeEnum< typeof MongoStopBackupType > = z.nativeEnum(MongoStopBackupType); -/** @internal */ -export const MongoStopBackupType$outboundSchema: z.ZodNativeEnum< - typeof MongoStopBackupType -> = MongoStopBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopBackupType$ { - /** @deprecated use `MongoStopBackupType$inboundSchema` instead. */ - export const inboundSchema = MongoStopBackupType$inboundSchema; - /** @deprecated use `MongoStopBackupType$outboundSchema` instead. */ - export const outboundSchema = MongoStopBackupType$outboundSchema; -} - /** @internal */ export const MongoStopDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MongoStopDatabaseType > = z.nativeEnum(MongoStopDatabaseType); -/** @internal */ -export const MongoStopDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MongoStopDatabaseType -> = MongoStopDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopDatabaseType$ { - /** @deprecated use `MongoStopDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MongoStopDatabaseType$inboundSchema; - /** @deprecated use `MongoStopDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MongoStopDatabaseType$outboundSchema; -} - /** @internal */ export const MongoStopMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MongoStopMetadataEnum > = z.nativeEnum(MongoStopMetadataEnum); -/** @internal */ -export const MongoStopMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoStopMetadataEnum -> = MongoStopMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMetadataEnum$ { - /** @deprecated use `MongoStopMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MongoStopMetadataEnum$inboundSchema; - /** @deprecated use `MongoStopMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MongoStopMetadataEnum$outboundSchema; -} - /** @internal */ export const MongoStopMariadb$inboundSchema: z.ZodType< MongoStopMariadb, @@ -466,43 +370,6 @@ export const MongoStopMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoStopMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoStopMariadb$outboundSchema: z.ZodType< - MongoStopMariadb$Outbound, - z.ZodTypeDef, - MongoStopMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMariadb$ { - /** @deprecated use `MongoStopMariadb$inboundSchema` instead. */ - export const inboundSchema = MongoStopMariadb$inboundSchema; - /** @deprecated use `MongoStopMariadb$outboundSchema` instead. */ - export const outboundSchema = MongoStopMariadb$outboundSchema; - /** @deprecated use `MongoStopMariadb$Outbound` instead. */ - export type Outbound = MongoStopMariadb$Outbound; -} - -export function mongoStopMariadbToJSON( - mongoStopMariadb: MongoStopMariadb, -): string { - return JSON.stringify( - MongoStopMariadb$outboundSchema.parse(mongoStopMariadb), - ); -} - export function mongoStopMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -523,39 +390,6 @@ export const MongoStopMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoStopMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MongoStopMongo$outboundSchema: z.ZodType< - MongoStopMongo$Outbound, - z.ZodTypeDef, - MongoStopMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMongo$ { - /** @deprecated use `MongoStopMongo$inboundSchema` instead. */ - export const inboundSchema = MongoStopMongo$inboundSchema; - /** @deprecated use `MongoStopMongo$outboundSchema` instead. */ - export const outboundSchema = MongoStopMongo$outboundSchema; - /** @deprecated use `MongoStopMongo$Outbound` instead. */ - export type Outbound = MongoStopMongo$Outbound; -} - -export function mongoStopMongoToJSON(mongoStopMongo: MongoStopMongo): string { - return JSON.stringify(MongoStopMongo$outboundSchema.parse(mongoStopMongo)); -} - export function mongoStopMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -575,37 +409,6 @@ export const MongoStopMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MongoStopMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MongoStopMysql$outboundSchema: z.ZodType< - MongoStopMysql$Outbound, - z.ZodTypeDef, - MongoStopMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMysql$ { - /** @deprecated use `MongoStopMysql$inboundSchema` instead. */ - export const inboundSchema = MongoStopMysql$inboundSchema; - /** @deprecated use `MongoStopMysql$outboundSchema` instead. */ - export const outboundSchema = MongoStopMysql$outboundSchema; - /** @deprecated use `MongoStopMysql$Outbound` instead. */ - export type Outbound = MongoStopMysql$Outbound; -} - -export function mongoStopMysqlToJSON(mongoStopMysql: MongoStopMysql): string { - return JSON.stringify(MongoStopMysql$outboundSchema.parse(mongoStopMysql)); -} - export function mongoStopMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -625,41 +428,6 @@ export const MongoStopPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MongoStopPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MongoStopPostgres$outboundSchema: z.ZodType< - MongoStopPostgres$Outbound, - z.ZodTypeDef, - MongoStopPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopPostgres$ { - /** @deprecated use `MongoStopPostgres$inboundSchema` instead. */ - export const inboundSchema = MongoStopPostgres$inboundSchema; - /** @deprecated use `MongoStopPostgres$outboundSchema` instead. */ - export const outboundSchema = MongoStopPostgres$outboundSchema; - /** @deprecated use `MongoStopPostgres$Outbound` instead. */ - export type Outbound = MongoStopPostgres$Outbound; -} - -export function mongoStopPostgresToJSON( - mongoStopPostgres: MongoStopPostgres, -): string { - return JSON.stringify( - MongoStopPostgres$outboundSchema.parse(mongoStopPostgres), - ); -} - export function mongoStopPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -682,47 +450,6 @@ export const MongoStopMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MongoStopPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MongoStopMetadata$Outbound = { - mariadb?: MongoStopMariadb$Outbound | undefined; - mongo?: MongoStopMongo$Outbound | undefined; - mysql?: MongoStopMysql$Outbound | undefined; - postgres?: MongoStopPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MongoStopMetadata$outboundSchema: z.ZodType< - MongoStopMetadata$Outbound, - z.ZodTypeDef, - MongoStopMetadata -> = z.object({ - mariadb: z.lazy(() => MongoStopMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MongoStopMongo$outboundSchema).optional(), - mysql: z.lazy(() => MongoStopMysql$outboundSchema).optional(), - postgres: z.lazy(() => MongoStopPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMetadata$ { - /** @deprecated use `MongoStopMetadata$inboundSchema` instead. */ - export const inboundSchema = MongoStopMetadata$inboundSchema; - /** @deprecated use `MongoStopMetadata$outboundSchema` instead. */ - export const outboundSchema = MongoStopMetadata$outboundSchema; - /** @deprecated use `MongoStopMetadata$Outbound` instead. */ - export type Outbound = MongoStopMetadata$Outbound; -} - -export function mongoStopMetadataToJSON( - mongoStopMetadata: MongoStopMetadata, -): string { - return JSON.stringify( - MongoStopMetadata$outboundSchema.parse(mongoStopMetadata), - ); -} - export function mongoStopMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -743,42 +470,6 @@ export const MongoStopMetadataUnion$inboundSchema: z.ZodType< MongoStopMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MongoStopMetadataUnion$Outbound = - | MongoStopMetadata$Outbound - | string; - -/** @internal */ -export const MongoStopMetadataUnion$outboundSchema: z.ZodType< - MongoStopMetadataUnion$Outbound, - z.ZodTypeDef, - MongoStopMetadataUnion -> = z.union([ - z.lazy(() => MongoStopMetadata$outboundSchema), - MongoStopMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMetadataUnion$ { - /** @deprecated use `MongoStopMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MongoStopMetadataUnion$inboundSchema; - /** @deprecated use `MongoStopMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MongoStopMetadataUnion$outboundSchema; - /** @deprecated use `MongoStopMetadataUnion$Outbound` instead. */ - export type Outbound = MongoStopMetadataUnion$Outbound; -} - -export function mongoStopMetadataUnionToJSON( - mongoStopMetadataUnion: MongoStopMetadataUnion, -): string { - return JSON.stringify( - MongoStopMetadataUnion$outboundSchema.parse(mongoStopMetadataUnion), - ); -} - export function mongoStopMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -820,78 +511,6 @@ export const MongoStopBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MongoStopBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MongoStopMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MongoStopBackup$outboundSchema: z.ZodType< - MongoStopBackup$Outbound, - z.ZodTypeDef, - MongoStopBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MongoStopBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MongoStopDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MongoStopMetadata$outboundSchema), - MongoStopMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopBackup$ { - /** @deprecated use `MongoStopBackup$inboundSchema` instead. */ - export const inboundSchema = MongoStopBackup$inboundSchema; - /** @deprecated use `MongoStopBackup$outboundSchema` instead. */ - export const outboundSchema = MongoStopBackup$outboundSchema; - /** @deprecated use `MongoStopBackup$Outbound` instead. */ - export type Outbound = MongoStopBackup$Outbound; -} - -export function mongoStopBackupToJSON( - mongoStopBackup: MongoStopBackup, -): string { - return JSON.stringify(MongoStopBackup$outboundSchema.parse(mongoStopBackup)); -} - export function mongoStopBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -916,51 +535,6 @@ export const MongoStopProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoStopProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MongoStopProject$outboundSchema: z.ZodType< - MongoStopProject$Outbound, - z.ZodTypeDef, - MongoStopProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopProject$ { - /** @deprecated use `MongoStopProject$inboundSchema` instead. */ - export const inboundSchema = MongoStopProject$inboundSchema; - /** @deprecated use `MongoStopProject$outboundSchema` instead. */ - export const outboundSchema = MongoStopProject$outboundSchema; - /** @deprecated use `MongoStopProject$Outbound` instead. */ - export type Outbound = MongoStopProject$Outbound; -} - -export function mongoStopProjectToJSON( - mongoStopProject: MongoStopProject, -): string { - return JSON.stringify( - MongoStopProject$outboundSchema.parse(mongoStopProject), - ); -} - export function mongoStopProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -986,53 +560,6 @@ export const MongoStopEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MongoStopEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MongoStopProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MongoStopEnvironment$outboundSchema: z.ZodType< - MongoStopEnvironment$Outbound, - z.ZodTypeDef, - MongoStopEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MongoStopProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopEnvironment$ { - /** @deprecated use `MongoStopEnvironment$inboundSchema` instead. */ - export const inboundSchema = MongoStopEnvironment$inboundSchema; - /** @deprecated use `MongoStopEnvironment$outboundSchema` instead. */ - export const outboundSchema = MongoStopEnvironment$outboundSchema; - /** @deprecated use `MongoStopEnvironment$Outbound` instead. */ - export type Outbound = MongoStopEnvironment$Outbound; -} - -export function mongoStopEnvironmentToJSON( - mongoStopEnvironment: MongoStopEnvironment, -): string { - return JSON.stringify( - MongoStopEnvironment$outboundSchema.parse(mongoStopEnvironment), - ); -} - export function mongoStopEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1064,57 +591,6 @@ export const MongoStopHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MongoStopHealthCheckSwarm$outboundSchema: z.ZodType< - MongoStopHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MongoStopHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopHealthCheckSwarm$ { - /** @deprecated use `MongoStopHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStopHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoStopHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStopHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoStopHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoStopHealthCheckSwarm$Outbound; -} - -export function mongoStopHealthCheckSwarmToJSON( - mongoStopHealthCheckSwarm: MongoStopHealthCheckSwarm, -): string { - return JSON.stringify( - MongoStopHealthCheckSwarm$outboundSchema.parse(mongoStopHealthCheckSwarm), - ); -} - export function mongoStopHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1132,83 +608,23 @@ export const MongoStopGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoStopGlobal$Outbound = {}; - -/** @internal */ -export const MongoStopGlobal$outboundSchema: z.ZodType< - MongoStopGlobal$Outbound, - z.ZodTypeDef, - MongoStopGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopGlobal$ { - /** @deprecated use `MongoStopGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoStopGlobal$inboundSchema; - /** @deprecated use `MongoStopGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoStopGlobal$outboundSchema; - /** @deprecated use `MongoStopGlobal$Outbound` instead. */ - export type Outbound = MongoStopGlobal$Outbound; -} - -export function mongoStopGlobalToJSON( - mongoStopGlobal: MongoStopGlobal, -): string { - return JSON.stringify(MongoStopGlobal$outboundSchema.parse(mongoStopGlobal)); -} - export function mongoStopGlobalFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => MongoStopGlobal$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoStopGlobal' from JSON`, - ); -} - -/** @internal */ -export const MongoStopGlobalJob$inboundSchema: z.ZodType< - MongoStopGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MongoStopGlobalJob$Outbound = {}; - -/** @internal */ -export const MongoStopGlobalJob$outboundSchema: z.ZodType< - MongoStopGlobalJob$Outbound, - z.ZodTypeDef, - MongoStopGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopGlobalJob$ { - /** @deprecated use `MongoStopGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoStopGlobalJob$inboundSchema; - /** @deprecated use `MongoStopGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoStopGlobalJob$outboundSchema; - /** @deprecated use `MongoStopGlobalJob$Outbound` instead. */ - export type Outbound = MongoStopGlobalJob$Outbound; -} - -export function mongoStopGlobalJobToJSON( - mongoStopGlobalJob: MongoStopGlobalJob, -): string { - return JSON.stringify( - MongoStopGlobalJob$outboundSchema.parse(mongoStopGlobalJob), + `Failed to parse 'MongoStopGlobal' from JSON`, ); } +/** @internal */ +export const MongoStopGlobalJob$inboundSchema: z.ZodType< + MongoStopGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); + export function mongoStopGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1232,45 +648,6 @@ export const MongoStopReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MongoStopReplicated$outboundSchema: z.ZodType< - MongoStopReplicated$Outbound, - z.ZodTypeDef, - MongoStopReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopReplicated$ { - /** @deprecated use `MongoStopReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoStopReplicated$inboundSchema; - /** @deprecated use `MongoStopReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoStopReplicated$outboundSchema; - /** @deprecated use `MongoStopReplicated$Outbound` instead. */ - export type Outbound = MongoStopReplicated$Outbound; -} - -export function mongoStopReplicatedToJSON( - mongoStopReplicated: MongoStopReplicated, -): string { - return JSON.stringify( - MongoStopReplicated$outboundSchema.parse(mongoStopReplicated), - ); -} - export function mongoStopReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1296,48 +673,6 @@ export const MongoStopReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MongoStopReplicatedJob$outboundSchema: z.ZodType< - MongoStopReplicatedJob$Outbound, - z.ZodTypeDef, - MongoStopReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopReplicatedJob$ { - /** @deprecated use `MongoStopReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoStopReplicatedJob$inboundSchema; - /** @deprecated use `MongoStopReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MongoStopReplicatedJob$outboundSchema; - /** @deprecated use `MongoStopReplicatedJob$Outbound` instead. */ - export type Outbound = MongoStopReplicatedJob$Outbound; -} - -export function mongoStopReplicatedJobToJSON( - mongoStopReplicatedJob: MongoStopReplicatedJob, -): string { - return JSON.stringify( - MongoStopReplicatedJob$outboundSchema.parse(mongoStopReplicatedJob), - ); -} - export function mongoStopReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1367,54 +702,6 @@ export const MongoStopModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopModeSwarm$Outbound = { - Global?: MongoStopGlobal$Outbound | undefined; - GlobalJob?: MongoStopGlobalJob$Outbound | undefined; - Replicated?: MongoStopReplicated$Outbound | undefined; - ReplicatedJob?: MongoStopReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MongoStopModeSwarm$outboundSchema: z.ZodType< - MongoStopModeSwarm$Outbound, - z.ZodTypeDef, - MongoStopModeSwarm -> = z.object({ - global: z.lazy(() => MongoStopGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MongoStopGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MongoStopReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MongoStopReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopModeSwarm$ { - /** @deprecated use `MongoStopModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStopModeSwarm$inboundSchema; - /** @deprecated use `MongoStopModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStopModeSwarm$outboundSchema; - /** @deprecated use `MongoStopModeSwarm$Outbound` instead. */ - export type Outbound = MongoStopModeSwarm$Outbound; -} - -export function mongoStopModeSwarmToJSON( - mongoStopModeSwarm: MongoStopModeSwarm, -): string { - return JSON.stringify( - MongoStopModeSwarm$outboundSchema.parse(mongoStopModeSwarm), - ); -} - export function mongoStopModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1430,43 +717,11 @@ export const MongoStopServiceType$inboundSchema: z.ZodNativeEnum< typeof MongoStopServiceType > = z.nativeEnum(MongoStopServiceType); -/** @internal */ -export const MongoStopServiceType$outboundSchema: z.ZodNativeEnum< - typeof MongoStopServiceType -> = MongoStopServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopServiceType$ { - /** @deprecated use `MongoStopServiceType$inboundSchema` instead. */ - export const inboundSchema = MongoStopServiceType$inboundSchema; - /** @deprecated use `MongoStopServiceType$outboundSchema` instead. */ - export const outboundSchema = MongoStopServiceType$outboundSchema; -} - /** @internal */ export const MongoStopType$inboundSchema: z.ZodNativeEnum< typeof MongoStopType > = z.nativeEnum(MongoStopType); -/** @internal */ -export const MongoStopType$outboundSchema: z.ZodNativeEnum< - typeof MongoStopType -> = MongoStopType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopType$ { - /** @deprecated use `MongoStopType$inboundSchema` instead. */ - export const inboundSchema = MongoStopType$inboundSchema; - /** @deprecated use `MongoStopType$outboundSchema` instead. */ - export const outboundSchema = MongoStopType$outboundSchema; -} - /** @internal */ export const MongoStopMount$inboundSchema: z.ZodType< MongoStopMount, @@ -1490,65 +745,6 @@ export const MongoStopMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MongoStopMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MongoStopMount$outboundSchema: z.ZodType< - MongoStopMount$Outbound, - z.ZodTypeDef, - MongoStopMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MongoStopServiceType$outboundSchema, - type: MongoStopType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMount$ { - /** @deprecated use `MongoStopMount$inboundSchema` instead. */ - export const inboundSchema = MongoStopMount$inboundSchema; - /** @deprecated use `MongoStopMount$outboundSchema` instead. */ - export const outboundSchema = MongoStopMount$outboundSchema; - /** @deprecated use `MongoStopMount$Outbound` instead. */ - export type Outbound = MongoStopMount$Outbound; -} - -export function mongoStopMountToJSON(mongoStopMount: MongoStopMount): string { - return JSON.stringify(MongoStopMount$outboundSchema.parse(mongoStopMount)); -} - export function mongoStopMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1566,37 +762,6 @@ export const MongoStopDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MongoStopDriverOpts$Outbound = {}; - -/** @internal */ -export const MongoStopDriverOpts$outboundSchema: z.ZodType< - MongoStopDriverOpts$Outbound, - z.ZodTypeDef, - MongoStopDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopDriverOpts$ { - /** @deprecated use `MongoStopDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoStopDriverOpts$inboundSchema; - /** @deprecated use `MongoStopDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoStopDriverOpts$outboundSchema; - /** @deprecated use `MongoStopDriverOpts$Outbound` instead. */ - export type Outbound = MongoStopDriverOpts$Outbound; -} - -export function mongoStopDriverOptsToJSON( - mongoStopDriverOpts: MongoStopDriverOpts, -): string { - return JSON.stringify( - MongoStopDriverOpts$outboundSchema.parse(mongoStopDriverOpts), - ); -} - export function mongoStopDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1624,51 +789,6 @@ export const MongoStopNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MongoStopDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MongoStopNetworkSwarm$outboundSchema: z.ZodType< - MongoStopNetworkSwarm$Outbound, - z.ZodTypeDef, - MongoStopNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MongoStopDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopNetworkSwarm$ { - /** @deprecated use `MongoStopNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStopNetworkSwarm$inboundSchema; - /** @deprecated use `MongoStopNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStopNetworkSwarm$outboundSchema; - /** @deprecated use `MongoStopNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoStopNetworkSwarm$Outbound; -} - -export function mongoStopNetworkSwarmToJSON( - mongoStopNetworkSwarm: MongoStopNetworkSwarm, -): string { - return JSON.stringify( - MongoStopNetworkSwarm$outboundSchema.parse(mongoStopNetworkSwarm), - ); -} - export function mongoStopNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1694,48 +814,6 @@ export const MongoStopPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MongoStopPlatform$outboundSchema: z.ZodType< - MongoStopPlatform$Outbound, - z.ZodTypeDef, - MongoStopPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopPlatform$ { - /** @deprecated use `MongoStopPlatform$inboundSchema` instead. */ - export const inboundSchema = MongoStopPlatform$inboundSchema; - /** @deprecated use `MongoStopPlatform$outboundSchema` instead. */ - export const outboundSchema = MongoStopPlatform$outboundSchema; - /** @deprecated use `MongoStopPlatform$Outbound` instead. */ - export type Outbound = MongoStopPlatform$Outbound; -} - -export function mongoStopPlatformToJSON( - mongoStopPlatform: MongoStopPlatform, -): string { - return JSON.stringify( - MongoStopPlatform$outboundSchema.parse(mongoStopPlatform), - ); -} - export function mongoStopPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1759,43 +837,6 @@ export const MongoStopSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MongoStopSpread$outboundSchema: z.ZodType< - MongoStopSpread$Outbound, - z.ZodTypeDef, - MongoStopSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopSpread$ { - /** @deprecated use `MongoStopSpread$inboundSchema` instead. */ - export const inboundSchema = MongoStopSpread$inboundSchema; - /** @deprecated use `MongoStopSpread$outboundSchema` instead. */ - export const outboundSchema = MongoStopSpread$outboundSchema; - /** @deprecated use `MongoStopSpread$Outbound` instead. */ - export type Outbound = MongoStopSpread$Outbound; -} - -export function mongoStopSpreadToJSON( - mongoStopSpread: MongoStopSpread, -): string { - return JSON.stringify(MongoStopSpread$outboundSchema.parse(mongoStopSpread)); -} - export function mongoStopSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1819,45 +860,6 @@ export const MongoStopPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopPreference$Outbound = { - Spread: MongoStopSpread$Outbound; -}; - -/** @internal */ -export const MongoStopPreference$outboundSchema: z.ZodType< - MongoStopPreference$Outbound, - z.ZodTypeDef, - MongoStopPreference -> = z.object({ - spread: z.lazy(() => MongoStopSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopPreference$ { - /** @deprecated use `MongoStopPreference$inboundSchema` instead. */ - export const inboundSchema = MongoStopPreference$inboundSchema; - /** @deprecated use `MongoStopPreference$outboundSchema` instead. */ - export const outboundSchema = MongoStopPreference$outboundSchema; - /** @deprecated use `MongoStopPreference$Outbound` instead. */ - export type Outbound = MongoStopPreference$Outbound; -} - -export function mongoStopPreferenceToJSON( - mongoStopPreference: MongoStopPreference, -): string { - return JSON.stringify( - MongoStopPreference$outboundSchema.parse(mongoStopPreference), - ); -} - export function mongoStopPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1888,55 +890,6 @@ export const MongoStopPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MongoStopPlacementSwarm$outboundSchema: z.ZodType< - MongoStopPlacementSwarm$Outbound, - z.ZodTypeDef, - MongoStopPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MongoStopPlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => MongoStopPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopPlacementSwarm$ { - /** @deprecated use `MongoStopPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStopPlacementSwarm$inboundSchema; - /** @deprecated use `MongoStopPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStopPlacementSwarm$outboundSchema; - /** @deprecated use `MongoStopPlacementSwarm$Outbound` instead. */ - export type Outbound = MongoStopPlacementSwarm$Outbound; -} - -export function mongoStopPlacementSwarmToJSON( - mongoStopPlacementSwarm: MongoStopPlacementSwarm, -): string { - return JSON.stringify( - MongoStopPlacementSwarm$outboundSchema.parse(mongoStopPlacementSwarm), - ); -} - export function mongoStopPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1951,71 +904,21 @@ export function mongoStopPlacementSwarmFromJSON( export const MongoStopRestartPolicySwarm$inboundSchema: z.ZodType< MongoStopRestartPolicySwarm, z.ZodTypeDef, - unknown -> = z.object({ - Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MongoStopRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MongoStopRestartPolicySwarm$outboundSchema: z.ZodType< - MongoStopRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MongoStopRestartPolicySwarm + unknown > = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Condition: z.string().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopRestartPolicySwarm$ { - /** @deprecated use `MongoStopRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStopRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoStopRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStopRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoStopRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoStopRestartPolicySwarm$Outbound; -} - -export function mongoStopRestartPolicySwarmToJSON( - mongoStopRestartPolicySwarm: MongoStopRestartPolicySwarm, -): string { - return JSON.stringify( - MongoStopRestartPolicySwarm$outboundSchema.parse( - mongoStopRestartPolicySwarm, - ), - ); -} - export function mongoStopRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2049,62 +952,6 @@ export const MongoStopRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoStopRollbackConfigSwarm$outboundSchema: z.ZodType< - MongoStopRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MongoStopRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopRollbackConfigSwarm$ { - /** @deprecated use `MongoStopRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStopRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoStopRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStopRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoStopRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoStopRollbackConfigSwarm$Outbound; -} - -export function mongoStopRollbackConfigSwarmToJSON( - mongoStopRollbackConfigSwarm: MongoStopRollbackConfigSwarm, -): string { - return JSON.stringify( - MongoStopRollbackConfigSwarm$outboundSchema.parse( - mongoStopRollbackConfigSwarm, - ), - ); -} - export function mongoStopRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2120,22 +967,6 @@ export const MongoStopMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MongoStopMetricsConfigEnum > = z.nativeEnum(MongoStopMetricsConfigEnum); -/** @internal */ -export const MongoStopMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MongoStopMetricsConfigEnum -> = MongoStopMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMetricsConfigEnum$ { - /** @deprecated use `MongoStopMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MongoStopMetricsConfigEnum$inboundSchema; - /** @deprecated use `MongoStopMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MongoStopMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MongoStopMetricsConfigUnion1$inboundSchema: z.ZodType< MongoStopMetricsConfigUnion1, @@ -2148,48 +979,6 @@ export const MongoStopMetricsConfigUnion1$inboundSchema: z.ZodType< MongoStopMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MongoStopMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MongoStopMetricsConfigUnion1$outboundSchema: z.ZodType< - MongoStopMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MongoStopMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MongoStopMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMetricsConfigUnion1$ { - /** @deprecated use `MongoStopMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MongoStopMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MongoStopMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MongoStopMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MongoStopMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MongoStopMetricsConfigUnion1$Outbound; -} - -export function mongoStopMetricsConfigUnion1ToJSON( - mongoStopMetricsConfigUnion1: MongoStopMetricsConfigUnion1, -): string { - return JSON.stringify( - MongoStopMetricsConfigUnion1$outboundSchema.parse( - mongoStopMetricsConfigUnion1, - ), - ); -} - export function mongoStopMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2216,54 +1005,6 @@ export const MongoStopMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MongoStopMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MongoStopMetricsConfigUnion2$outboundSchema: z.ZodType< - MongoStopMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MongoStopMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopMetricsConfigUnion2$ { - /** @deprecated use `MongoStopMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MongoStopMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MongoStopMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MongoStopMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MongoStopMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MongoStopMetricsConfigUnion2$Outbound; -} - -export function mongoStopMetricsConfigUnion2ToJSON( - mongoStopMetricsConfigUnion2: MongoStopMetricsConfigUnion2, -): string { - return JSON.stringify( - MongoStopMetricsConfigUnion2$outboundSchema.parse( - mongoStopMetricsConfigUnion2, - ), - ); -} - export function mongoStopMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2279,22 +1020,6 @@ export const MongoStopServerStatus$inboundSchema: z.ZodNativeEnum< typeof MongoStopServerStatus > = z.nativeEnum(MongoStopServerStatus); -/** @internal */ -export const MongoStopServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MongoStopServerStatus -> = MongoStopServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopServerStatus$ { - /** @deprecated use `MongoStopServerStatus$inboundSchema` instead. */ - export const inboundSchema = MongoStopServerStatus$inboundSchema; - /** @deprecated use `MongoStopServerStatus$outboundSchema` instead. */ - export const outboundSchema = MongoStopServerStatus$outboundSchema; -} - /** @internal */ export const MongoStopServer$inboundSchema: z.ZodType< MongoStopServer, @@ -2326,76 +1051,6 @@ export const MongoStopServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MongoStopServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MongoStopServer$outboundSchema: z.ZodType< - MongoStopServer$Outbound, - z.ZodTypeDef, - MongoStopServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MongoStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MongoStopServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopServer$ { - /** @deprecated use `MongoStopServer$inboundSchema` instead. */ - export const inboundSchema = MongoStopServer$inboundSchema; - /** @deprecated use `MongoStopServer$outboundSchema` instead. */ - export const outboundSchema = MongoStopServer$outboundSchema; - /** @deprecated use `MongoStopServer$Outbound` instead. */ - export type Outbound = MongoStopServer$Outbound; -} - -export function mongoStopServerToJSON( - mongoStopServer: MongoStopServer, -): string { - return JSON.stringify(MongoStopServer$outboundSchema.parse(mongoStopServer)); -} - export function mongoStopServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2429,60 +1084,6 @@ export const MongoStopUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MongoStopUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MongoStopUpdateConfigSwarm$outboundSchema: z.ZodType< - MongoStopUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MongoStopUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopUpdateConfigSwarm$ { - /** @deprecated use `MongoStopUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoStopUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoStopUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoStopUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoStopUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoStopUpdateConfigSwarm$Outbound; -} - -export function mongoStopUpdateConfigSwarmToJSON( - mongoStopUpdateConfigSwarm: MongoStopUpdateConfigSwarm, -): string { - return JSON.stringify( - MongoStopUpdateConfigSwarm$outboundSchema.parse(mongoStopUpdateConfigSwarm), - ); -} - export function mongoStopUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2545,115 +1146,6 @@ export const MongoStopResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MongoStopResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MongoStopEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MongoStopHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MongoStopModeSwarm$Outbound | null; - mongoId: string; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: MongoStopPlacementSwarm$Outbound | null; - replicaSets: boolean | null; - replicas: number; - restartPolicySwarm: MongoStopRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MongoStopRollbackConfigSwarm$Outbound | null; - server: MongoStopServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MongoStopUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MongoStopResponseBody$outboundSchema: z.ZodType< - MongoStopResponseBody$Outbound, - z.ZodTypeDef, - MongoStopResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MongoStopApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MongoStopBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MongoStopEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoStopHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MongoStopModeSwarm$outboundSchema)), - mongoId: z.string(), - mounts: z.array(z.lazy(() => MongoStopMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoStopNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MongoStopPlacementSwarm$outboundSchema), - ), - replicaSets: z.nullable(z.boolean()), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoStopRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoStopRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MongoStopServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoStopUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopResponseBody$ { - /** @deprecated use `MongoStopResponseBody$inboundSchema` instead. */ - export const inboundSchema = MongoStopResponseBody$inboundSchema; - /** @deprecated use `MongoStopResponseBody$outboundSchema` instead. */ - export const outboundSchema = MongoStopResponseBody$outboundSchema; - /** @deprecated use `MongoStopResponseBody$Outbound` instead. */ - export type Outbound = MongoStopResponseBody$Outbound; -} - -export function mongoStopResponseBodyToJSON( - mongoStopResponseBody: MongoStopResponseBody, -): string { - return JSON.stringify( - MongoStopResponseBody$outboundSchema.parse(mongoStopResponseBody), - ); -} - export function mongoStopResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2674,42 +1166,6 @@ export const MongoStopResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MongoStopResponse$Outbound = - | MongoStopResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MongoStopResponse$outboundSchema: z.ZodType< - MongoStopResponse$Outbound, - z.ZodTypeDef, - MongoStopResponse -> = z.union([ - z.lazy(() => MongoStopResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoStopResponse$ { - /** @deprecated use `MongoStopResponse$inboundSchema` instead. */ - export const inboundSchema = MongoStopResponse$inboundSchema; - /** @deprecated use `MongoStopResponse$outboundSchema` instead. */ - export const outboundSchema = MongoStopResponse$outboundSchema; - /** @deprecated use `MongoStopResponse$Outbound` instead. */ - export type Outbound = MongoStopResponse$Outbound; -} - -export function mongoStopResponseToJSON( - mongoStopResponse: MongoStopResponse, -): string { - return JSON.stringify( - MongoStopResponse$outboundSchema.parse(mongoStopResponse), - ); -} - export function mongoStopResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mongoupdate.ts b/src/models/operations/mongoupdate.ts index 689abe0..75b5717 100644 --- a/src/models/operations/mongoupdate.ts +++ b/src/models/operations/mongoupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -133,47 +133,10 @@ export type MongoUpdateRequest = { export type MongoUpdateResponse = models.ErrorT | boolean; -/** @internal */ -export const MongoUpdateApplicationStatus$inboundSchema: z.ZodNativeEnum< - typeof MongoUpdateApplicationStatus -> = z.nativeEnum(MongoUpdateApplicationStatus); - /** @internal */ export const MongoUpdateApplicationStatus$outboundSchema: z.ZodNativeEnum< typeof MongoUpdateApplicationStatus -> = MongoUpdateApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateApplicationStatus$ { - /** @deprecated use `MongoUpdateApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateApplicationStatus$inboundSchema; - /** @deprecated use `MongoUpdateApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateApplicationStatus$outboundSchema; -} - -/** @internal */ -export const MongoUpdateHealthCheckSwarm$inboundSchema: z.ZodType< - MongoUpdateHealthCheckSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Interval: z.number().optional(), - Retries: z.number().optional(), - StartPeriod: z.number().optional(), - Test: z.array(z.string()).optional(), - Timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Interval": "interval", - "Retries": "retries", - "StartPeriod": "startPeriod", - "Test": "test", - "Timeout": "timeout", - }); -}); +> = z.nativeEnum(MongoUpdateApplicationStatus); /** @internal */ export type MongoUpdateHealthCheckSwarm$Outbound = { @@ -205,19 +168,6 @@ export const MongoUpdateHealthCheckSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateHealthCheckSwarm$ { - /** @deprecated use `MongoUpdateHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateHealthCheckSwarm$inboundSchema; - /** @deprecated use `MongoUpdateHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateHealthCheckSwarm$outboundSchema; - /** @deprecated use `MongoUpdateHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MongoUpdateHealthCheckSwarm$Outbound; -} - export function mongoUpdateHealthCheckSwarmToJSON( mongoUpdateHealthCheckSwarm: MongoUpdateHealthCheckSwarm, ): string { @@ -228,23 +178,6 @@ export function mongoUpdateHealthCheckSwarmToJSON( ); } -export function mongoUpdateHealthCheckSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateHealthCheckSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateHealthCheckSwarm' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateGlobal$inboundSchema: z.ZodType< - MongoUpdateGlobal, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MongoUpdateGlobal$Outbound = {}; @@ -255,19 +188,6 @@ export const MongoUpdateGlobal$outboundSchema: z.ZodType< MongoUpdateGlobal > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateGlobal$ { - /** @deprecated use `MongoUpdateGlobal$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateGlobal$inboundSchema; - /** @deprecated use `MongoUpdateGlobal$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateGlobal$outboundSchema; - /** @deprecated use `MongoUpdateGlobal$Outbound` instead. */ - export type Outbound = MongoUpdateGlobal$Outbound; -} - export function mongoUpdateGlobalToJSON( mongoUpdateGlobal: MongoUpdateGlobal, ): string { @@ -276,23 +196,6 @@ export function mongoUpdateGlobalToJSON( ); } -export function mongoUpdateGlobalFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateGlobal$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateGlobal' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateGlobalJob$inboundSchema: z.ZodType< - MongoUpdateGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MongoUpdateGlobalJob$Outbound = {}; @@ -303,19 +206,6 @@ export const MongoUpdateGlobalJob$outboundSchema: z.ZodType< MongoUpdateGlobalJob > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateGlobalJob$ { - /** @deprecated use `MongoUpdateGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateGlobalJob$inboundSchema; - /** @deprecated use `MongoUpdateGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateGlobalJob$outboundSchema; - /** @deprecated use `MongoUpdateGlobalJob$Outbound` instead. */ - export type Outbound = MongoUpdateGlobalJob$Outbound; -} - export function mongoUpdateGlobalJobToJSON( mongoUpdateGlobalJob: MongoUpdateGlobalJob, ): string { @@ -324,29 +214,6 @@ export function mongoUpdateGlobalJobToJSON( ); } -export function mongoUpdateGlobalJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateGlobalJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateGlobalJob' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateReplicated$inboundSchema: z.ZodType< - MongoUpdateReplicated, - z.ZodTypeDef, - unknown -> = z.object({ - Replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Replicas": "replicas", - }); -}); - /** @internal */ export type MongoUpdateReplicated$Outbound = { Replicas?: number | undefined; @@ -365,19 +232,6 @@ export const MongoUpdateReplicated$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateReplicated$ { - /** @deprecated use `MongoUpdateReplicated$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateReplicated$inboundSchema; - /** @deprecated use `MongoUpdateReplicated$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateReplicated$outboundSchema; - /** @deprecated use `MongoUpdateReplicated$Outbound` instead. */ - export type Outbound = MongoUpdateReplicated$Outbound; -} - export function mongoUpdateReplicatedToJSON( mongoUpdateReplicated: MongoUpdateReplicated, ): string { @@ -386,31 +240,6 @@ export function mongoUpdateReplicatedToJSON( ); } -export function mongoUpdateReplicatedFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateReplicated$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateReplicated' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateReplicatedJob$inboundSchema: z.ZodType< - MongoUpdateReplicatedJob, - z.ZodTypeDef, - unknown -> = z.object({ - MaxConcurrent: z.number().optional(), - TotalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "MaxConcurrent": "maxConcurrent", - "TotalCompletions": "totalCompletions", - }); -}); - /** @internal */ export type MongoUpdateReplicatedJob$Outbound = { MaxConcurrent?: number | undefined; @@ -432,19 +261,6 @@ export const MongoUpdateReplicatedJob$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateReplicatedJob$ { - /** @deprecated use `MongoUpdateReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateReplicatedJob$inboundSchema; - /** @deprecated use `MongoUpdateReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateReplicatedJob$outboundSchema; - /** @deprecated use `MongoUpdateReplicatedJob$Outbound` instead. */ - export type Outbound = MongoUpdateReplicatedJob$Outbound; -} - export function mongoUpdateReplicatedJobToJSON( mongoUpdateReplicatedJob: MongoUpdateReplicatedJob, ): string { @@ -453,36 +269,6 @@ export function mongoUpdateReplicatedJobToJSON( ); } -export function mongoUpdateReplicatedJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateReplicatedJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateReplicatedJob' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateModeSwarm$inboundSchema: z.ZodType< - MongoUpdateModeSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Global: z.lazy(() => MongoUpdateGlobal$inboundSchema).optional(), - GlobalJob: z.lazy(() => MongoUpdateGlobalJob$inboundSchema).optional(), - Replicated: z.lazy(() => MongoUpdateReplicated$inboundSchema).optional(), - ReplicatedJob: z.lazy(() => MongoUpdateReplicatedJob$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "Global": "global", - "GlobalJob": "globalJob", - "Replicated": "replicated", - "ReplicatedJob": "replicatedJob", - }); -}); - /** @internal */ export type MongoUpdateModeSwarm$Outbound = { Global?: MongoUpdateGlobal$Outbound | undefined; @@ -511,19 +297,6 @@ export const MongoUpdateModeSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateModeSwarm$ { - /** @deprecated use `MongoUpdateModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateModeSwarm$inboundSchema; - /** @deprecated use `MongoUpdateModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateModeSwarm$outboundSchema; - /** @deprecated use `MongoUpdateModeSwarm$Outbound` instead. */ - export type Outbound = MongoUpdateModeSwarm$Outbound; -} - export function mongoUpdateModeSwarmToJSON( mongoUpdateModeSwarm: MongoUpdateModeSwarm, ): string { @@ -532,23 +305,6 @@ export function mongoUpdateModeSwarmToJSON( ); } -export function mongoUpdateModeSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateModeSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateModeSwarm' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateDriverOpts$inboundSchema: z.ZodType< - MongoUpdateDriverOpts, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MongoUpdateDriverOpts$Outbound = {}; @@ -559,19 +315,6 @@ export const MongoUpdateDriverOpts$outboundSchema: z.ZodType< MongoUpdateDriverOpts > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateDriverOpts$ { - /** @deprecated use `MongoUpdateDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateDriverOpts$inboundSchema; - /** @deprecated use `MongoUpdateDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateDriverOpts$outboundSchema; - /** @deprecated use `MongoUpdateDriverOpts$Outbound` instead. */ - export type Outbound = MongoUpdateDriverOpts$Outbound; -} - export function mongoUpdateDriverOptsToJSON( mongoUpdateDriverOpts: MongoUpdateDriverOpts, ): string { @@ -580,33 +323,6 @@ export function mongoUpdateDriverOptsToJSON( ); } -export function mongoUpdateDriverOptsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateDriverOpts$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateDriverOpts' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateNetworkSwarm$inboundSchema: z.ZodType< - MongoUpdateNetworkSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Aliases: z.array(z.string()).optional(), - DriverOpts: z.lazy(() => MongoUpdateDriverOpts$inboundSchema).optional(), - Target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Aliases": "aliases", - "DriverOpts": "driverOpts", - "Target": "target", - }); -}); - /** @internal */ export type MongoUpdateNetworkSwarm$Outbound = { Aliases?: Array | undefined; @@ -631,19 +347,6 @@ export const MongoUpdateNetworkSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateNetworkSwarm$ { - /** @deprecated use `MongoUpdateNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateNetworkSwarm$inboundSchema; - /** @deprecated use `MongoUpdateNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateNetworkSwarm$outboundSchema; - /** @deprecated use `MongoUpdateNetworkSwarm$Outbound` instead. */ - export type Outbound = MongoUpdateNetworkSwarm$Outbound; -} - export function mongoUpdateNetworkSwarmToJSON( mongoUpdateNetworkSwarm: MongoUpdateNetworkSwarm, ): string { @@ -652,31 +355,6 @@ export function mongoUpdateNetworkSwarmToJSON( ); } -export function mongoUpdateNetworkSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateNetworkSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateNetworkSwarm' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdatePlatform$inboundSchema: z.ZodType< - MongoUpdatePlatform, - z.ZodTypeDef, - unknown -> = z.object({ - Architecture: z.string(), - OS: z.string(), -}).transform((v) => { - return remap$(v, { - "Architecture": "architecture", - "OS": "os", - }); -}); - /** @internal */ export type MongoUpdatePlatform$Outbound = { Architecture: string; @@ -698,19 +376,6 @@ export const MongoUpdatePlatform$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdatePlatform$ { - /** @deprecated use `MongoUpdatePlatform$inboundSchema` instead. */ - export const inboundSchema = MongoUpdatePlatform$inboundSchema; - /** @deprecated use `MongoUpdatePlatform$outboundSchema` instead. */ - export const outboundSchema = MongoUpdatePlatform$outboundSchema; - /** @deprecated use `MongoUpdatePlatform$Outbound` instead. */ - export type Outbound = MongoUpdatePlatform$Outbound; -} - export function mongoUpdatePlatformToJSON( mongoUpdatePlatform: MongoUpdatePlatform, ): string { @@ -719,29 +384,6 @@ export function mongoUpdatePlatformToJSON( ); } -export function mongoUpdatePlatformFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdatePlatform$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdatePlatform' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateSpread$inboundSchema: z.ZodType< - MongoUpdateSpread, - z.ZodTypeDef, - unknown -> = z.object({ - SpreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - "SpreadDescriptor": "spreadDescriptor", - }); -}); - /** @internal */ export type MongoUpdateSpread$Outbound = { SpreadDescriptor: string; @@ -760,19 +402,6 @@ export const MongoUpdateSpread$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateSpread$ { - /** @deprecated use `MongoUpdateSpread$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateSpread$inboundSchema; - /** @deprecated use `MongoUpdateSpread$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateSpread$outboundSchema; - /** @deprecated use `MongoUpdateSpread$Outbound` instead. */ - export type Outbound = MongoUpdateSpread$Outbound; -} - export function mongoUpdateSpreadToJSON( mongoUpdateSpread: MongoUpdateSpread, ): string { @@ -781,29 +410,6 @@ export function mongoUpdateSpreadToJSON( ); } -export function mongoUpdateSpreadFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateSpread$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateSpread' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdatePreference$inboundSchema: z.ZodType< - MongoUpdatePreference, - z.ZodTypeDef, - unknown -> = z.object({ - Spread: z.lazy(() => MongoUpdateSpread$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Spread": "spread", - }); -}); - /** @internal */ export type MongoUpdatePreference$Outbound = { Spread: MongoUpdateSpread$Outbound; @@ -822,19 +428,6 @@ export const MongoUpdatePreference$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdatePreference$ { - /** @deprecated use `MongoUpdatePreference$inboundSchema` instead. */ - export const inboundSchema = MongoUpdatePreference$inboundSchema; - /** @deprecated use `MongoUpdatePreference$outboundSchema` instead. */ - export const outboundSchema = MongoUpdatePreference$outboundSchema; - /** @deprecated use `MongoUpdatePreference$Outbound` instead. */ - export type Outbound = MongoUpdatePreference$Outbound; -} - export function mongoUpdatePreferenceToJSON( mongoUpdatePreference: MongoUpdatePreference, ): string { @@ -843,37 +436,6 @@ export function mongoUpdatePreferenceToJSON( ); } -export function mongoUpdatePreferenceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdatePreference$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdatePreference' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdatePlacementSwarm$inboundSchema: z.ZodType< - MongoUpdatePlacementSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Constraints: z.array(z.string()).optional(), - MaxReplicas: z.number().optional(), - Platforms: z.array(z.lazy(() => MongoUpdatePlatform$inboundSchema)) - .optional(), - Preferences: z.array(z.lazy(() => MongoUpdatePreference$inboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - "Constraints": "constraints", - "MaxReplicas": "maxReplicas", - "Platforms": "platforms", - "Preferences": "preferences", - }); -}); - /** @internal */ export type MongoUpdatePlacementSwarm$Outbound = { Constraints?: Array | undefined; @@ -903,19 +465,6 @@ export const MongoUpdatePlacementSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdatePlacementSwarm$ { - /** @deprecated use `MongoUpdatePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoUpdatePlacementSwarm$inboundSchema; - /** @deprecated use `MongoUpdatePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoUpdatePlacementSwarm$outboundSchema; - /** @deprecated use `MongoUpdatePlacementSwarm$Outbound` instead. */ - export type Outbound = MongoUpdatePlacementSwarm$Outbound; -} - export function mongoUpdatePlacementSwarmToJSON( mongoUpdatePlacementSwarm: MongoUpdatePlacementSwarm, ): string { @@ -924,35 +473,6 @@ export function mongoUpdatePlacementSwarmToJSON( ); } -export function mongoUpdatePlacementSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdatePlacementSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdatePlacementSwarm' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateRestartPolicySwarm$inboundSchema: z.ZodType< - MongoUpdateRestartPolicySwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - /** @internal */ export type MongoUpdateRestartPolicySwarm$Outbound = { Condition?: string | undefined; @@ -980,19 +500,6 @@ export const MongoUpdateRestartPolicySwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateRestartPolicySwarm$ { - /** @deprecated use `MongoUpdateRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateRestartPolicySwarm$inboundSchema; - /** @deprecated use `MongoUpdateRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateRestartPolicySwarm$outboundSchema; - /** @deprecated use `MongoUpdateRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MongoUpdateRestartPolicySwarm$Outbound; -} - export function mongoUpdateRestartPolicySwarmToJSON( mongoUpdateRestartPolicySwarm: MongoUpdateRestartPolicySwarm, ): string { @@ -1003,39 +510,6 @@ export function mongoUpdateRestartPolicySwarmToJSON( ); } -export function mongoUpdateRestartPolicySwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateRestartPolicySwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateRestartPolicySwarm' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateRollbackConfigSwarm$inboundSchema: z.ZodType< - MongoUpdateRollbackConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type MongoUpdateRollbackConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1069,19 +543,6 @@ export const MongoUpdateRollbackConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateRollbackConfigSwarm$ { - /** @deprecated use `MongoUpdateRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MongoUpdateRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MongoUpdateRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MongoUpdateRollbackConfigSwarm$Outbound; -} - export function mongoUpdateRollbackConfigSwarmToJSON( mongoUpdateRollbackConfigSwarm: MongoUpdateRollbackConfigSwarm, ): string { @@ -1092,39 +553,6 @@ export function mongoUpdateRollbackConfigSwarmToJSON( ); } -export function mongoUpdateRollbackConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateRollbackConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateRollbackConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateUpdateConfigSwarm$inboundSchema: z.ZodType< - MongoUpdateUpdateConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type MongoUpdateUpdateConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1158,19 +586,6 @@ export const MongoUpdateUpdateConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateUpdateConfigSwarm$ { - /** @deprecated use `MongoUpdateUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MongoUpdateUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MongoUpdateUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MongoUpdateUpdateConfigSwarm$Outbound; -} - export function mongoUpdateUpdateConfigSwarmToJSON( mongoUpdateUpdateConfigSwarm: MongoUpdateUpdateConfigSwarm, ): string { @@ -1181,64 +596,6 @@ export function mongoUpdateUpdateConfigSwarmToJSON( ); } -export function mongoUpdateUpdateConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateUpdateConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateUpdateConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const MongoUpdateRequest$inboundSchema: z.ZodType< - MongoUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationStatus: MongoUpdateApplicationStatus$inboundSchema.optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - databasePassword: z.string().optional(), - databaseUser: z.string().optional(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("mongo:15"), - env: z.nullable(z.string()).optional(), - environmentId: z.string().optional(), - externalPort: z.nullable(z.number()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => MongoUpdateHealthCheckSwarm$inboundSchema), - ).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => MongoUpdateModeSwarm$inboundSchema)) - .optional(), - mongoId: z.string(), - name: z.string().optional(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MongoUpdateNetworkSwarm$inboundSchema)), - ).optional(), - placementSwarm: z.nullable( - z.lazy(() => MongoUpdatePlacementSwarm$inboundSchema), - ).optional(), - replicaSets: z.nullable(z.boolean().default(false)), - replicas: z.number().optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => MongoUpdateRestartPolicySwarm$inboundSchema), - ).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MongoUpdateRollbackConfigSwarm$inboundSchema), - ).optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => MongoUpdateUpdateConfigSwarm$inboundSchema), - ).optional(), -}); - /** @internal */ export type MongoUpdateRequest$Outbound = { appName?: string | undefined; @@ -1324,19 +681,6 @@ export const MongoUpdateRequest$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateRequest$ { - /** @deprecated use `MongoUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateRequest$inboundSchema; - /** @deprecated use `MongoUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateRequest$outboundSchema; - /** @deprecated use `MongoUpdateRequest$Outbound` instead. */ - export type Outbound = MongoUpdateRequest$Outbound; -} - export function mongoUpdateRequestToJSON( mongoUpdateRequest: MongoUpdateRequest, ): string { @@ -1345,16 +689,6 @@ export function mongoUpdateRequestToJSON( ); } -export function mongoUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MongoUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MongoUpdateRequest' from JSON`, - ); -} - /** @internal */ export const MongoUpdateResponse$inboundSchema: z.ZodType< MongoUpdateResponse, @@ -1362,37 +696,6 @@ export const MongoUpdateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MongoUpdateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MongoUpdateResponse$outboundSchema: z.ZodType< - MongoUpdateResponse$Outbound, - z.ZodTypeDef, - MongoUpdateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MongoUpdateResponse$ { - /** @deprecated use `MongoUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = MongoUpdateResponse$inboundSchema; - /** @deprecated use `MongoUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = MongoUpdateResponse$outboundSchema; - /** @deprecated use `MongoUpdateResponse$Outbound` instead. */ - export type Outbound = MongoUpdateResponse$Outbound; -} - -export function mongoUpdateResponseToJSON( - mongoUpdateResponse: MongoUpdateResponse, -): string { - return JSON.stringify( - MongoUpdateResponse$outboundSchema.parse(mongoUpdateResponse), - ); -} - export function mongoUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mountsallnamedbyapplicationid.ts b/src/models/operations/mountsallnamedbyapplicationid.ts index 94f3902..ea1f1b8 100644 --- a/src/models/operations/mountsallnamedbyapplicationid.ts +++ b/src/models/operations/mountsallnamedbyapplicationid.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type MountsAllNamedByApplicationIdRequest = { applicationId: string; }; -/** @internal */ -export const MountsAllNamedByApplicationIdRequest$inboundSchema: z.ZodType< - MountsAllNamedByApplicationIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type MountsAllNamedByApplicationIdRequest$Outbound = { applicationId: string; @@ -34,21 +22,6 @@ export const MountsAllNamedByApplicationIdRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsAllNamedByApplicationIdRequest$ { - /** @deprecated use `MountsAllNamedByApplicationIdRequest$inboundSchema` instead. */ - export const inboundSchema = - MountsAllNamedByApplicationIdRequest$inboundSchema; - /** @deprecated use `MountsAllNamedByApplicationIdRequest$outboundSchema` instead. */ - export const outboundSchema = - MountsAllNamedByApplicationIdRequest$outboundSchema; - /** @deprecated use `MountsAllNamedByApplicationIdRequest$Outbound` instead. */ - export type Outbound = MountsAllNamedByApplicationIdRequest$Outbound; -} - export function mountsAllNamedByApplicationIdRequestToJSON( mountsAllNamedByApplicationIdRequest: MountsAllNamedByApplicationIdRequest, ): string { @@ -58,14 +31,3 @@ export function mountsAllNamedByApplicationIdRequestToJSON( ), ); } - -export function mountsAllNamedByApplicationIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - MountsAllNamedByApplicationIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MountsAllNamedByApplicationIdRequest' from JSON`, - ); -} diff --git a/src/models/operations/mountscreate.ts b/src/models/operations/mountscreate.ts index 7906ff4..ddb38bf 100644 --- a/src/models/operations/mountscreate.ts +++ b/src/models/operations/mountscreate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const MountsCreateServiceType = { Application: "application", @@ -39,63 +36,15 @@ export type MountsCreateRequest = { volumeName?: string | null | undefined; }; -/** @internal */ -export const MountsCreateServiceType$inboundSchema: z.ZodNativeEnum< - typeof MountsCreateServiceType -> = z.nativeEnum(MountsCreateServiceType); - /** @internal */ export const MountsCreateServiceType$outboundSchema: z.ZodNativeEnum< typeof MountsCreateServiceType -> = MountsCreateServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsCreateServiceType$ { - /** @deprecated use `MountsCreateServiceType$inboundSchema` instead. */ - export const inboundSchema = MountsCreateServiceType$inboundSchema; - /** @deprecated use `MountsCreateServiceType$outboundSchema` instead. */ - export const outboundSchema = MountsCreateServiceType$outboundSchema; -} - -/** @internal */ -export const MountsCreateType$inboundSchema: z.ZodNativeEnum< - typeof MountsCreateType -> = z.nativeEnum(MountsCreateType); +> = z.nativeEnum(MountsCreateServiceType); /** @internal */ export const MountsCreateType$outboundSchema: z.ZodNativeEnum< typeof MountsCreateType -> = MountsCreateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsCreateType$ { - /** @deprecated use `MountsCreateType$inboundSchema` instead. */ - export const inboundSchema = MountsCreateType$inboundSchema; - /** @deprecated use `MountsCreateType$outboundSchema` instead. */ - export const outboundSchema = MountsCreateType$outboundSchema; -} - -/** @internal */ -export const MountsCreateRequest$inboundSchema: z.ZodType< - MountsCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - content: z.nullable(z.string()).optional(), - filePath: z.nullable(z.string()).optional(), - hostPath: z.nullable(z.string()).optional(), - mountPath: z.string(), - serviceId: z.string(), - serviceType: MountsCreateServiceType$inboundSchema.default("application"), - type: MountsCreateType$inboundSchema, - volumeName: z.nullable(z.string()).optional(), -}); +> = z.nativeEnum(MountsCreateType); /** @internal */ export type MountsCreateRequest$Outbound = { @@ -125,19 +74,6 @@ export const MountsCreateRequest$outboundSchema: z.ZodType< volumeName: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsCreateRequest$ { - /** @deprecated use `MountsCreateRequest$inboundSchema` instead. */ - export const inboundSchema = MountsCreateRequest$inboundSchema; - /** @deprecated use `MountsCreateRequest$outboundSchema` instead. */ - export const outboundSchema = MountsCreateRequest$outboundSchema; - /** @deprecated use `MountsCreateRequest$Outbound` instead. */ - export type Outbound = MountsCreateRequest$Outbound; -} - export function mountsCreateRequestToJSON( mountsCreateRequest: MountsCreateRequest, ): string { @@ -145,13 +81,3 @@ export function mountsCreateRequestToJSON( MountsCreateRequest$outboundSchema.parse(mountsCreateRequest), ); } - -export function mountsCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MountsCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MountsCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/mountsone.ts b/src/models/operations/mountsone.ts index 1095185..2ca7d72 100644 --- a/src/models/operations/mountsone.ts +++ b/src/models/operations/mountsone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type MountsOneRequest = { mountId: string; }; -/** @internal */ -export const MountsOneRequest$inboundSchema: z.ZodType< - MountsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mountId: z.string(), -}); - /** @internal */ export type MountsOneRequest$Outbound = { mountId: string; @@ -34,19 +22,6 @@ export const MountsOneRequest$outboundSchema: z.ZodType< mountId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsOneRequest$ { - /** @deprecated use `MountsOneRequest$inboundSchema` instead. */ - export const inboundSchema = MountsOneRequest$inboundSchema; - /** @deprecated use `MountsOneRequest$outboundSchema` instead. */ - export const outboundSchema = MountsOneRequest$outboundSchema; - /** @deprecated use `MountsOneRequest$Outbound` instead. */ - export type Outbound = MountsOneRequest$Outbound; -} - export function mountsOneRequestToJSON( mountsOneRequest: MountsOneRequest, ): string { @@ -54,13 +29,3 @@ export function mountsOneRequestToJSON( MountsOneRequest$outboundSchema.parse(mountsOneRequest), ); } - -export function mountsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MountsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MountsOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/mountsremove.ts b/src/models/operations/mountsremove.ts index b0ef607..64365a5 100644 --- a/src/models/operations/mountsremove.ts +++ b/src/models/operations/mountsremove.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type MountsRemoveRequest = { mountId: string; }; -/** @internal */ -export const MountsRemoveRequest$inboundSchema: z.ZodType< - MountsRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mountId: z.string(), -}); - /** @internal */ export type MountsRemoveRequest$Outbound = { mountId: string; @@ -34,19 +22,6 @@ export const MountsRemoveRequest$outboundSchema: z.ZodType< mountId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsRemoveRequest$ { - /** @deprecated use `MountsRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = MountsRemoveRequest$inboundSchema; - /** @deprecated use `MountsRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = MountsRemoveRequest$outboundSchema; - /** @deprecated use `MountsRemoveRequest$Outbound` instead. */ - export type Outbound = MountsRemoveRequest$Outbound; -} - export function mountsRemoveRequestToJSON( mountsRemoveRequest: MountsRemoveRequest, ): string { @@ -54,13 +29,3 @@ export function mountsRemoveRequestToJSON( MountsRemoveRequest$outboundSchema.parse(mountsRemoveRequest), ); } - -export function mountsRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MountsRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MountsRemoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/mountsupdate.ts b/src/models/operations/mountsupdate.ts index e953879..32720c9 100644 --- a/src/models/operations/mountsupdate.ts +++ b/src/models/operations/mountsupdate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const MountsUpdateServiceType = { Application: "application", @@ -46,70 +43,15 @@ export type MountsUpdateRequest = { volumeName?: string | null | undefined; }; -/** @internal */ -export const MountsUpdateServiceType$inboundSchema: z.ZodNativeEnum< - typeof MountsUpdateServiceType -> = z.nativeEnum(MountsUpdateServiceType); - /** @internal */ export const MountsUpdateServiceType$outboundSchema: z.ZodNativeEnum< typeof MountsUpdateServiceType -> = MountsUpdateServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsUpdateServiceType$ { - /** @deprecated use `MountsUpdateServiceType$inboundSchema` instead. */ - export const inboundSchema = MountsUpdateServiceType$inboundSchema; - /** @deprecated use `MountsUpdateServiceType$outboundSchema` instead. */ - export const outboundSchema = MountsUpdateServiceType$outboundSchema; -} - -/** @internal */ -export const MountsUpdateType$inboundSchema: z.ZodNativeEnum< - typeof MountsUpdateType -> = z.nativeEnum(MountsUpdateType); +> = z.nativeEnum(MountsUpdateServiceType); /** @internal */ export const MountsUpdateType$outboundSchema: z.ZodNativeEnum< typeof MountsUpdateType -> = MountsUpdateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsUpdateType$ { - /** @deprecated use `MountsUpdateType$inboundSchema` instead. */ - export const inboundSchema = MountsUpdateType$inboundSchema; - /** @deprecated use `MountsUpdateType$outboundSchema` instead. */ - export const outboundSchema = MountsUpdateType$outboundSchema; -} - -/** @internal */ -export const MountsUpdateRequest$inboundSchema: z.ZodType< - MountsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.nullable(z.string()).optional(), - composeId: z.nullable(z.string()).optional(), - content: z.nullable(z.string()).optional(), - filePath: z.nullable(z.string()).optional(), - hostPath: z.nullable(z.string()).optional(), - mariadbId: z.nullable(z.string()).optional(), - mongoId: z.nullable(z.string()).optional(), - mountId: z.string(), - mountPath: z.string().optional(), - mysqlId: z.nullable(z.string()).optional(), - postgresId: z.nullable(z.string()).optional(), - redisId: z.nullable(z.string()).optional(), - serviceType: MountsUpdateServiceType$inboundSchema.default("application"), - type: MountsUpdateType$inboundSchema.optional(), - volumeName: z.nullable(z.string()).optional(), -}); +> = z.nativeEnum(MountsUpdateType); /** @internal */ export type MountsUpdateRequest$Outbound = { @@ -153,19 +95,6 @@ export const MountsUpdateRequest$outboundSchema: z.ZodType< volumeName: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MountsUpdateRequest$ { - /** @deprecated use `MountsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = MountsUpdateRequest$inboundSchema; - /** @deprecated use `MountsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = MountsUpdateRequest$outboundSchema; - /** @deprecated use `MountsUpdateRequest$Outbound` instead. */ - export type Outbound = MountsUpdateRequest$Outbound; -} - export function mountsUpdateRequestToJSON( mountsUpdateRequest: MountsUpdateRequest, ): string { @@ -173,13 +102,3 @@ export function mountsUpdateRequestToJSON( MountsUpdateRequest$outboundSchema.parse(mountsUpdateRequest), ); } - -export function mountsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MountsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MountsUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/mysqlchangestatus.ts b/src/models/operations/mysqlchangestatus.ts index 13cc766..b0f7385 100644 --- a/src/models/operations/mysqlchangestatus.ts +++ b/src/models/operations/mysqlchangestatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -349,38 +349,10 @@ export type MysqlChangeStatusResponse = | models.ErrorT; /** @internal */ -export const MysqlChangeStatusApplicationStatusRequest$inboundSchema: +export const MysqlChangeStatusApplicationStatusRequest$outboundSchema: z.ZodNativeEnum = z .nativeEnum(MysqlChangeStatusApplicationStatusRequest); -/** @internal */ -export const MysqlChangeStatusApplicationStatusRequest$outboundSchema: - z.ZodNativeEnum = - MysqlChangeStatusApplicationStatusRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusApplicationStatusRequest$ { - /** @deprecated use `MysqlChangeStatusApplicationStatusRequest$inboundSchema` instead. */ - export const inboundSchema = - MysqlChangeStatusApplicationStatusRequest$inboundSchema; - /** @deprecated use `MysqlChangeStatusApplicationStatusRequest$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusApplicationStatusRequest$outboundSchema; -} - -/** @internal */ -export const MysqlChangeStatusRequest$inboundSchema: z.ZodType< - MysqlChangeStatusRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationStatus: MysqlChangeStatusApplicationStatusRequest$inboundSchema, - mysqlId: z.string(), -}); - /** @internal */ export type MysqlChangeStatusRequest$Outbound = { applicationStatus: string; @@ -397,19 +369,6 @@ export const MysqlChangeStatusRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusRequest$ { - /** @deprecated use `MysqlChangeStatusRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusRequest$inboundSchema; - /** @deprecated use `MysqlChangeStatusRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusRequest$outboundSchema; - /** @deprecated use `MysqlChangeStatusRequest$Outbound` instead. */ - export type Outbound = MysqlChangeStatusRequest$Outbound; -} - export function mysqlChangeStatusRequestToJSON( mysqlChangeStatusRequest: MysqlChangeStatusRequest, ): string { @@ -418,102 +377,26 @@ export function mysqlChangeStatusRequestToJSON( ); } -export function mysqlChangeStatusRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlChangeStatusRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlChangeStatusRequest' from JSON`, - ); -} - /** @internal */ export const MysqlChangeStatusApplicationStatusResponse$inboundSchema: z.ZodNativeEnum = z .nativeEnum(MysqlChangeStatusApplicationStatusResponse); -/** @internal */ -export const MysqlChangeStatusApplicationStatusResponse$outboundSchema: - z.ZodNativeEnum = - MysqlChangeStatusApplicationStatusResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusApplicationStatusResponse$ { - /** @deprecated use `MysqlChangeStatusApplicationStatusResponse$inboundSchema` instead. */ - export const inboundSchema = - MysqlChangeStatusApplicationStatusResponse$inboundSchema; - /** @deprecated use `MysqlChangeStatusApplicationStatusResponse$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusApplicationStatusResponse$outboundSchema; -} - /** @internal */ export const MysqlChangeStatusBackupType$inboundSchema: z.ZodNativeEnum< typeof MysqlChangeStatusBackupType > = z.nativeEnum(MysqlChangeStatusBackupType); -/** @internal */ -export const MysqlChangeStatusBackupType$outboundSchema: z.ZodNativeEnum< - typeof MysqlChangeStatusBackupType -> = MysqlChangeStatusBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusBackupType$ { - /** @deprecated use `MysqlChangeStatusBackupType$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusBackupType$inboundSchema; - /** @deprecated use `MysqlChangeStatusBackupType$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusBackupType$outboundSchema; -} - /** @internal */ export const MysqlChangeStatusDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MysqlChangeStatusDatabaseType > = z.nativeEnum(MysqlChangeStatusDatabaseType); -/** @internal */ -export const MysqlChangeStatusDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MysqlChangeStatusDatabaseType -> = MysqlChangeStatusDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusDatabaseType$ { - /** @deprecated use `MysqlChangeStatusDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusDatabaseType$inboundSchema; - /** @deprecated use `MysqlChangeStatusDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusDatabaseType$outboundSchema; -} - /** @internal */ export const MysqlChangeStatusMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlChangeStatusMetadataEnum > = z.nativeEnum(MysqlChangeStatusMetadataEnum); -/** @internal */ -export const MysqlChangeStatusMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlChangeStatusMetadataEnum -> = MysqlChangeStatusMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMetadataEnum$ { - /** @deprecated use `MysqlChangeStatusMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusMetadataEnum$inboundSchema; - /** @deprecated use `MysqlChangeStatusMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusMetadataEnum$outboundSchema; -} - /** @internal */ export const MysqlChangeStatusMariadb$inboundSchema: z.ZodType< MysqlChangeStatusMariadb, @@ -524,43 +407,6 @@ export const MysqlChangeStatusMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlChangeStatusMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlChangeStatusMariadb$outboundSchema: z.ZodType< - MysqlChangeStatusMariadb$Outbound, - z.ZodTypeDef, - MysqlChangeStatusMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMariadb$ { - /** @deprecated use `MysqlChangeStatusMariadb$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusMariadb$inboundSchema; - /** @deprecated use `MysqlChangeStatusMariadb$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusMariadb$outboundSchema; - /** @deprecated use `MysqlChangeStatusMariadb$Outbound` instead. */ - export type Outbound = MysqlChangeStatusMariadb$Outbound; -} - -export function mysqlChangeStatusMariadbToJSON( - mysqlChangeStatusMariadb: MysqlChangeStatusMariadb, -): string { - return JSON.stringify( - MysqlChangeStatusMariadb$outboundSchema.parse(mysqlChangeStatusMariadb), - ); -} - export function mysqlChangeStatusMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -581,43 +427,6 @@ export const MysqlChangeStatusMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlChangeStatusMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlChangeStatusMongo$outboundSchema: z.ZodType< - MysqlChangeStatusMongo$Outbound, - z.ZodTypeDef, - MysqlChangeStatusMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMongo$ { - /** @deprecated use `MysqlChangeStatusMongo$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusMongo$inboundSchema; - /** @deprecated use `MysqlChangeStatusMongo$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusMongo$outboundSchema; - /** @deprecated use `MysqlChangeStatusMongo$Outbound` instead. */ - export type Outbound = MysqlChangeStatusMongo$Outbound; -} - -export function mysqlChangeStatusMongoToJSON( - mysqlChangeStatusMongo: MysqlChangeStatusMongo, -): string { - return JSON.stringify( - MysqlChangeStatusMongo$outboundSchema.parse(mysqlChangeStatusMongo), - ); -} - export function mysqlChangeStatusMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -637,41 +446,6 @@ export const MysqlChangeStatusMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MysqlChangeStatusMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MysqlChangeStatusMysql$outboundSchema: z.ZodType< - MysqlChangeStatusMysql$Outbound, - z.ZodTypeDef, - MysqlChangeStatusMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMysql$ { - /** @deprecated use `MysqlChangeStatusMysql$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusMysql$inboundSchema; - /** @deprecated use `MysqlChangeStatusMysql$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusMysql$outboundSchema; - /** @deprecated use `MysqlChangeStatusMysql$Outbound` instead. */ - export type Outbound = MysqlChangeStatusMysql$Outbound; -} - -export function mysqlChangeStatusMysqlToJSON( - mysqlChangeStatusMysql: MysqlChangeStatusMysql, -): string { - return JSON.stringify( - MysqlChangeStatusMysql$outboundSchema.parse(mysqlChangeStatusMysql), - ); -} - export function mysqlChangeStatusMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -691,41 +465,6 @@ export const MysqlChangeStatusPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlChangeStatusPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MysqlChangeStatusPostgres$outboundSchema: z.ZodType< - MysqlChangeStatusPostgres$Outbound, - z.ZodTypeDef, - MysqlChangeStatusPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusPostgres$ { - /** @deprecated use `MysqlChangeStatusPostgres$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusPostgres$inboundSchema; - /** @deprecated use `MysqlChangeStatusPostgres$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusPostgres$outboundSchema; - /** @deprecated use `MysqlChangeStatusPostgres$Outbound` instead. */ - export type Outbound = MysqlChangeStatusPostgres$Outbound; -} - -export function mysqlChangeStatusPostgresToJSON( - mysqlChangeStatusPostgres: MysqlChangeStatusPostgres, -): string { - return JSON.stringify( - MysqlChangeStatusPostgres$outboundSchema.parse(mysqlChangeStatusPostgres), - ); -} - export function mysqlChangeStatusPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -748,47 +487,6 @@ export const MysqlChangeStatusMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MysqlChangeStatusPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MysqlChangeStatusMetadata$Outbound = { - mariadb?: MysqlChangeStatusMariadb$Outbound | undefined; - mongo?: MysqlChangeStatusMongo$Outbound | undefined; - mysql?: MysqlChangeStatusMysql$Outbound | undefined; - postgres?: MysqlChangeStatusPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MysqlChangeStatusMetadata$outboundSchema: z.ZodType< - MysqlChangeStatusMetadata$Outbound, - z.ZodTypeDef, - MysqlChangeStatusMetadata -> = z.object({ - mariadb: z.lazy(() => MysqlChangeStatusMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MysqlChangeStatusMongo$outboundSchema).optional(), - mysql: z.lazy(() => MysqlChangeStatusMysql$outboundSchema).optional(), - postgres: z.lazy(() => MysqlChangeStatusPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMetadata$ { - /** @deprecated use `MysqlChangeStatusMetadata$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusMetadata$inboundSchema; - /** @deprecated use `MysqlChangeStatusMetadata$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusMetadata$outboundSchema; - /** @deprecated use `MysqlChangeStatusMetadata$Outbound` instead. */ - export type Outbound = MysqlChangeStatusMetadata$Outbound; -} - -export function mysqlChangeStatusMetadataToJSON( - mysqlChangeStatusMetadata: MysqlChangeStatusMetadata, -): string { - return JSON.stringify( - MysqlChangeStatusMetadata$outboundSchema.parse(mysqlChangeStatusMetadata), - ); -} - export function mysqlChangeStatusMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -809,44 +507,6 @@ export const MysqlChangeStatusMetadataUnion$inboundSchema: z.ZodType< MysqlChangeStatusMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MysqlChangeStatusMetadataUnion$Outbound = - | MysqlChangeStatusMetadata$Outbound - | string; - -/** @internal */ -export const MysqlChangeStatusMetadataUnion$outboundSchema: z.ZodType< - MysqlChangeStatusMetadataUnion$Outbound, - z.ZodTypeDef, - MysqlChangeStatusMetadataUnion -> = z.union([ - z.lazy(() => MysqlChangeStatusMetadata$outboundSchema), - MysqlChangeStatusMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMetadataUnion$ { - /** @deprecated use `MysqlChangeStatusMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusMetadataUnion$inboundSchema; - /** @deprecated use `MysqlChangeStatusMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusMetadataUnion$outboundSchema; - /** @deprecated use `MysqlChangeStatusMetadataUnion$Outbound` instead. */ - export type Outbound = MysqlChangeStatusMetadataUnion$Outbound; -} - -export function mysqlChangeStatusMetadataUnionToJSON( - mysqlChangeStatusMetadataUnion: MysqlChangeStatusMetadataUnion, -): string { - return JSON.stringify( - MysqlChangeStatusMetadataUnion$outboundSchema.parse( - mysqlChangeStatusMetadataUnion, - ), - ); -} - export function mysqlChangeStatusMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -888,80 +548,6 @@ export const MysqlChangeStatusBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MysqlChangeStatusBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MysqlChangeStatusMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MysqlChangeStatusBackup$outboundSchema: z.ZodType< - MysqlChangeStatusBackup$Outbound, - z.ZodTypeDef, - MysqlChangeStatusBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MysqlChangeStatusBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MysqlChangeStatusDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MysqlChangeStatusMetadata$outboundSchema), - MysqlChangeStatusMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusBackup$ { - /** @deprecated use `MysqlChangeStatusBackup$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusBackup$inboundSchema; - /** @deprecated use `MysqlChangeStatusBackup$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusBackup$outboundSchema; - /** @deprecated use `MysqlChangeStatusBackup$Outbound` instead. */ - export type Outbound = MysqlChangeStatusBackup$Outbound; -} - -export function mysqlChangeStatusBackupToJSON( - mysqlChangeStatusBackup: MysqlChangeStatusBackup, -): string { - return JSON.stringify( - MysqlChangeStatusBackup$outboundSchema.parse(mysqlChangeStatusBackup), - ); -} - export function mysqlChangeStatusBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -986,51 +572,6 @@ export const MysqlChangeStatusProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlChangeStatusProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MysqlChangeStatusProject$outboundSchema: z.ZodType< - MysqlChangeStatusProject$Outbound, - z.ZodTypeDef, - MysqlChangeStatusProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusProject$ { - /** @deprecated use `MysqlChangeStatusProject$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusProject$inboundSchema; - /** @deprecated use `MysqlChangeStatusProject$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusProject$outboundSchema; - /** @deprecated use `MysqlChangeStatusProject$Outbound` instead. */ - export type Outbound = MysqlChangeStatusProject$Outbound; -} - -export function mysqlChangeStatusProjectToJSON( - mysqlChangeStatusProject: MysqlChangeStatusProject, -): string { - return JSON.stringify( - MysqlChangeStatusProject$outboundSchema.parse(mysqlChangeStatusProject), - ); -} - export function mysqlChangeStatusProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1056,55 +597,6 @@ export const MysqlChangeStatusEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlChangeStatusEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MysqlChangeStatusProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MysqlChangeStatusEnvironment$outboundSchema: z.ZodType< - MysqlChangeStatusEnvironment$Outbound, - z.ZodTypeDef, - MysqlChangeStatusEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MysqlChangeStatusProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusEnvironment$ { - /** @deprecated use `MysqlChangeStatusEnvironment$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusEnvironment$inboundSchema; - /** @deprecated use `MysqlChangeStatusEnvironment$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusEnvironment$outboundSchema; - /** @deprecated use `MysqlChangeStatusEnvironment$Outbound` instead. */ - export type Outbound = MysqlChangeStatusEnvironment$Outbound; -} - -export function mysqlChangeStatusEnvironmentToJSON( - mysqlChangeStatusEnvironment: MysqlChangeStatusEnvironment, -): string { - return JSON.stringify( - MysqlChangeStatusEnvironment$outboundSchema.parse( - mysqlChangeStatusEnvironment, - ), - ); -} - export function mysqlChangeStatusEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1136,60 +628,6 @@ export const MysqlChangeStatusHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MysqlChangeStatusHealthCheckSwarm$outboundSchema: z.ZodType< - MysqlChangeStatusHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MysqlChangeStatusHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusHealthCheckSwarm$ { - /** @deprecated use `MysqlChangeStatusHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlChangeStatusHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlChangeStatusHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlChangeStatusHealthCheckSwarm$Outbound; -} - -export function mysqlChangeStatusHealthCheckSwarmToJSON( - mysqlChangeStatusHealthCheckSwarm: MysqlChangeStatusHealthCheckSwarm, -): string { - return JSON.stringify( - MysqlChangeStatusHealthCheckSwarm$outboundSchema.parse( - mysqlChangeStatusHealthCheckSwarm, - ), - ); -} - export function mysqlChangeStatusHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1207,37 +645,6 @@ export const MysqlChangeStatusGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlChangeStatusGlobal$Outbound = {}; - -/** @internal */ -export const MysqlChangeStatusGlobal$outboundSchema: z.ZodType< - MysqlChangeStatusGlobal$Outbound, - z.ZodTypeDef, - MysqlChangeStatusGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusGlobal$ { - /** @deprecated use `MysqlChangeStatusGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusGlobal$inboundSchema; - /** @deprecated use `MysqlChangeStatusGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusGlobal$outboundSchema; - /** @deprecated use `MysqlChangeStatusGlobal$Outbound` instead. */ - export type Outbound = MysqlChangeStatusGlobal$Outbound; -} - -export function mysqlChangeStatusGlobalToJSON( - mysqlChangeStatusGlobal: MysqlChangeStatusGlobal, -): string { - return JSON.stringify( - MysqlChangeStatusGlobal$outboundSchema.parse(mysqlChangeStatusGlobal), - ); -} - export function mysqlChangeStatusGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1249,42 +656,11 @@ export function mysqlChangeStatusGlobalFromJSON( } /** @internal */ -export const MysqlChangeStatusGlobalJob$inboundSchema: z.ZodType< - MysqlChangeStatusGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MysqlChangeStatusGlobalJob$Outbound = {}; - -/** @internal */ -export const MysqlChangeStatusGlobalJob$outboundSchema: z.ZodType< - MysqlChangeStatusGlobalJob$Outbound, - z.ZodTypeDef, - MysqlChangeStatusGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusGlobalJob$ { - /** @deprecated use `MysqlChangeStatusGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusGlobalJob$inboundSchema; - /** @deprecated use `MysqlChangeStatusGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusGlobalJob$outboundSchema; - /** @deprecated use `MysqlChangeStatusGlobalJob$Outbound` instead. */ - export type Outbound = MysqlChangeStatusGlobalJob$Outbound; -} - -export function mysqlChangeStatusGlobalJobToJSON( - mysqlChangeStatusGlobalJob: MysqlChangeStatusGlobalJob, -): string { - return JSON.stringify( - MysqlChangeStatusGlobalJob$outboundSchema.parse(mysqlChangeStatusGlobalJob), - ); -} +export const MysqlChangeStatusGlobalJob$inboundSchema: z.ZodType< + MysqlChangeStatusGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mysqlChangeStatusGlobalJobFromJSON( jsonString: string, @@ -1309,47 +685,6 @@ export const MysqlChangeStatusReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MysqlChangeStatusReplicated$outboundSchema: z.ZodType< - MysqlChangeStatusReplicated$Outbound, - z.ZodTypeDef, - MysqlChangeStatusReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusReplicated$ { - /** @deprecated use `MysqlChangeStatusReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusReplicated$inboundSchema; - /** @deprecated use `MysqlChangeStatusReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusReplicated$outboundSchema; - /** @deprecated use `MysqlChangeStatusReplicated$Outbound` instead. */ - export type Outbound = MysqlChangeStatusReplicated$Outbound; -} - -export function mysqlChangeStatusReplicatedToJSON( - mysqlChangeStatusReplicated: MysqlChangeStatusReplicated, -): string { - return JSON.stringify( - MysqlChangeStatusReplicated$outboundSchema.parse( - mysqlChangeStatusReplicated, - ), - ); -} - export function mysqlChangeStatusReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1375,50 +710,6 @@ export const MysqlChangeStatusReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MysqlChangeStatusReplicatedJob$outboundSchema: z.ZodType< - MysqlChangeStatusReplicatedJob$Outbound, - z.ZodTypeDef, - MysqlChangeStatusReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusReplicatedJob$ { - /** @deprecated use `MysqlChangeStatusReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusReplicatedJob$inboundSchema; - /** @deprecated use `MysqlChangeStatusReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusReplicatedJob$outboundSchema; - /** @deprecated use `MysqlChangeStatusReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlChangeStatusReplicatedJob$Outbound; -} - -export function mysqlChangeStatusReplicatedJobToJSON( - mysqlChangeStatusReplicatedJob: MysqlChangeStatusReplicatedJob, -): string { - return JSON.stringify( - MysqlChangeStatusReplicatedJob$outboundSchema.parse( - mysqlChangeStatusReplicatedJob, - ), - ); -} - export function mysqlChangeStatusReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1450,56 +741,6 @@ export const MysqlChangeStatusModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusModeSwarm$Outbound = { - Global?: MysqlChangeStatusGlobal$Outbound | undefined; - GlobalJob?: MysqlChangeStatusGlobalJob$Outbound | undefined; - Replicated?: MysqlChangeStatusReplicated$Outbound | undefined; - ReplicatedJob?: MysqlChangeStatusReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MysqlChangeStatusModeSwarm$outboundSchema: z.ZodType< - MysqlChangeStatusModeSwarm$Outbound, - z.ZodTypeDef, - MysqlChangeStatusModeSwarm -> = z.object({ - global: z.lazy(() => MysqlChangeStatusGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MysqlChangeStatusGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MysqlChangeStatusReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => MysqlChangeStatusReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusModeSwarm$ { - /** @deprecated use `MysqlChangeStatusModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusModeSwarm$inboundSchema; - /** @deprecated use `MysqlChangeStatusModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusModeSwarm$outboundSchema; - /** @deprecated use `MysqlChangeStatusModeSwarm$Outbound` instead. */ - export type Outbound = MysqlChangeStatusModeSwarm$Outbound; -} - -export function mysqlChangeStatusModeSwarmToJSON( - mysqlChangeStatusModeSwarm: MysqlChangeStatusModeSwarm, -): string { - return JSON.stringify( - MysqlChangeStatusModeSwarm$outboundSchema.parse(mysqlChangeStatusModeSwarm), - ); -} - export function mysqlChangeStatusModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1515,43 +756,11 @@ export const MysqlChangeStatusServiceType$inboundSchema: z.ZodNativeEnum< typeof MysqlChangeStatusServiceType > = z.nativeEnum(MysqlChangeStatusServiceType); -/** @internal */ -export const MysqlChangeStatusServiceType$outboundSchema: z.ZodNativeEnum< - typeof MysqlChangeStatusServiceType -> = MysqlChangeStatusServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusServiceType$ { - /** @deprecated use `MysqlChangeStatusServiceType$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusServiceType$inboundSchema; - /** @deprecated use `MysqlChangeStatusServiceType$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusServiceType$outboundSchema; -} - /** @internal */ export const MysqlChangeStatusType$inboundSchema: z.ZodNativeEnum< typeof MysqlChangeStatusType > = z.nativeEnum(MysqlChangeStatusType); -/** @internal */ -export const MysqlChangeStatusType$outboundSchema: z.ZodNativeEnum< - typeof MysqlChangeStatusType -> = MysqlChangeStatusType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusType$ { - /** @deprecated use `MysqlChangeStatusType$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusType$inboundSchema; - /** @deprecated use `MysqlChangeStatusType$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusType$outboundSchema; -} - /** @internal */ export const MysqlChangeStatusMount$inboundSchema: z.ZodType< MysqlChangeStatusMount, @@ -1575,69 +784,6 @@ export const MysqlChangeStatusMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MysqlChangeStatusMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MysqlChangeStatusMount$outboundSchema: z.ZodType< - MysqlChangeStatusMount$Outbound, - z.ZodTypeDef, - MysqlChangeStatusMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MysqlChangeStatusServiceType$outboundSchema, - type: MysqlChangeStatusType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMount$ { - /** @deprecated use `MysqlChangeStatusMount$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusMount$inboundSchema; - /** @deprecated use `MysqlChangeStatusMount$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusMount$outboundSchema; - /** @deprecated use `MysqlChangeStatusMount$Outbound` instead. */ - export type Outbound = MysqlChangeStatusMount$Outbound; -} - -export function mysqlChangeStatusMountToJSON( - mysqlChangeStatusMount: MysqlChangeStatusMount, -): string { - return JSON.stringify( - MysqlChangeStatusMount$outboundSchema.parse(mysqlChangeStatusMount), - ); -} - export function mysqlChangeStatusMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1655,39 +801,6 @@ export const MysqlChangeStatusDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlChangeStatusDriverOpts$Outbound = {}; - -/** @internal */ -export const MysqlChangeStatusDriverOpts$outboundSchema: z.ZodType< - MysqlChangeStatusDriverOpts$Outbound, - z.ZodTypeDef, - MysqlChangeStatusDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusDriverOpts$ { - /** @deprecated use `MysqlChangeStatusDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusDriverOpts$inboundSchema; - /** @deprecated use `MysqlChangeStatusDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusDriverOpts$outboundSchema; - /** @deprecated use `MysqlChangeStatusDriverOpts$Outbound` instead. */ - export type Outbound = MysqlChangeStatusDriverOpts$Outbound; -} - -export function mysqlChangeStatusDriverOptsToJSON( - mysqlChangeStatusDriverOpts: MysqlChangeStatusDriverOpts, -): string { - return JSON.stringify( - MysqlChangeStatusDriverOpts$outboundSchema.parse( - mysqlChangeStatusDriverOpts, - ), - ); -} - export function mysqlChangeStatusDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1716,54 +829,6 @@ export const MysqlChangeStatusNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MysqlChangeStatusDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MysqlChangeStatusNetworkSwarm$outboundSchema: z.ZodType< - MysqlChangeStatusNetworkSwarm$Outbound, - z.ZodTypeDef, - MysqlChangeStatusNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MysqlChangeStatusDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusNetworkSwarm$ { - /** @deprecated use `MysqlChangeStatusNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlChangeStatusNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlChangeStatusNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlChangeStatusNetworkSwarm$Outbound; -} - -export function mysqlChangeStatusNetworkSwarmToJSON( - mysqlChangeStatusNetworkSwarm: MysqlChangeStatusNetworkSwarm, -): string { - return JSON.stringify( - MysqlChangeStatusNetworkSwarm$outboundSchema.parse( - mysqlChangeStatusNetworkSwarm, - ), - ); -} - export function mysqlChangeStatusNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1789,48 +854,6 @@ export const MysqlChangeStatusPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MysqlChangeStatusPlatform$outboundSchema: z.ZodType< - MysqlChangeStatusPlatform$Outbound, - z.ZodTypeDef, - MysqlChangeStatusPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusPlatform$ { - /** @deprecated use `MysqlChangeStatusPlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusPlatform$inboundSchema; - /** @deprecated use `MysqlChangeStatusPlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusPlatform$outboundSchema; - /** @deprecated use `MysqlChangeStatusPlatform$Outbound` instead. */ - export type Outbound = MysqlChangeStatusPlatform$Outbound; -} - -export function mysqlChangeStatusPlatformToJSON( - mysqlChangeStatusPlatform: MysqlChangeStatusPlatform, -): string { - return JSON.stringify( - MysqlChangeStatusPlatform$outboundSchema.parse(mysqlChangeStatusPlatform), - ); -} - export function mysqlChangeStatusPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1854,45 +877,6 @@ export const MysqlChangeStatusSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MysqlChangeStatusSpread$outboundSchema: z.ZodType< - MysqlChangeStatusSpread$Outbound, - z.ZodTypeDef, - MysqlChangeStatusSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusSpread$ { - /** @deprecated use `MysqlChangeStatusSpread$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusSpread$inboundSchema; - /** @deprecated use `MysqlChangeStatusSpread$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusSpread$outboundSchema; - /** @deprecated use `MysqlChangeStatusSpread$Outbound` instead. */ - export type Outbound = MysqlChangeStatusSpread$Outbound; -} - -export function mysqlChangeStatusSpreadToJSON( - mysqlChangeStatusSpread: MysqlChangeStatusSpread, -): string { - return JSON.stringify( - MysqlChangeStatusSpread$outboundSchema.parse(mysqlChangeStatusSpread), - ); -} - export function mysqlChangeStatusSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1916,47 +900,6 @@ export const MysqlChangeStatusPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusPreference$Outbound = { - Spread: MysqlChangeStatusSpread$Outbound; -}; - -/** @internal */ -export const MysqlChangeStatusPreference$outboundSchema: z.ZodType< - MysqlChangeStatusPreference$Outbound, - z.ZodTypeDef, - MysqlChangeStatusPreference -> = z.object({ - spread: z.lazy(() => MysqlChangeStatusSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusPreference$ { - /** @deprecated use `MysqlChangeStatusPreference$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusPreference$inboundSchema; - /** @deprecated use `MysqlChangeStatusPreference$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusPreference$outboundSchema; - /** @deprecated use `MysqlChangeStatusPreference$Outbound` instead. */ - export type Outbound = MysqlChangeStatusPreference$Outbound; -} - -export function mysqlChangeStatusPreferenceToJSON( - mysqlChangeStatusPreference: MysqlChangeStatusPreference, -): string { - return JSON.stringify( - MysqlChangeStatusPreference$outboundSchema.parse( - mysqlChangeStatusPreference, - ), - ); -} - export function mysqlChangeStatusPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1988,58 +931,6 @@ export const MysqlChangeStatusPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MysqlChangeStatusPlacementSwarm$outboundSchema: z.ZodType< - MysqlChangeStatusPlacementSwarm$Outbound, - z.ZodTypeDef, - MysqlChangeStatusPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MysqlChangeStatusPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MysqlChangeStatusPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusPlacementSwarm$ { - /** @deprecated use `MysqlChangeStatusPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusPlacementSwarm$inboundSchema; - /** @deprecated use `MysqlChangeStatusPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusPlacementSwarm$outboundSchema; - /** @deprecated use `MysqlChangeStatusPlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlChangeStatusPlacementSwarm$Outbound; -} - -export function mysqlChangeStatusPlacementSwarmToJSON( - mysqlChangeStatusPlacementSwarm: MysqlChangeStatusPlacementSwarm, -): string { - return JSON.stringify( - MysqlChangeStatusPlacementSwarm$outboundSchema.parse( - mysqlChangeStatusPlacementSwarm, - ), - ); -} - export function mysqlChangeStatusPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2063,64 +954,12 @@ export const MysqlChangeStatusRestartPolicySwarm$inboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MysqlChangeStatusRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MysqlChangeStatusRestartPolicySwarm$outboundSchema: z.ZodType< - MysqlChangeStatusRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MysqlChangeStatusRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusRestartPolicySwarm$ { - /** @deprecated use `MysqlChangeStatusRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - MysqlChangeStatusRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlChangeStatusRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlChangeStatusRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlChangeStatusRestartPolicySwarm$Outbound; -} - -export function mysqlChangeStatusRestartPolicySwarmToJSON( - mysqlChangeStatusRestartPolicySwarm: MysqlChangeStatusRestartPolicySwarm, -): string { - return JSON.stringify( - MysqlChangeStatusRestartPolicySwarm$outboundSchema.parse( - mysqlChangeStatusRestartPolicySwarm, - ), - ); -} - export function mysqlChangeStatusRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2155,64 +994,6 @@ export const MysqlChangeStatusRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlChangeStatusRollbackConfigSwarm$outboundSchema: z.ZodType< - MysqlChangeStatusRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlChangeStatusRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusRollbackConfigSwarm$ { - /** @deprecated use `MysqlChangeStatusRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MysqlChangeStatusRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlChangeStatusRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlChangeStatusRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlChangeStatusRollbackConfigSwarm$Outbound; -} - -export function mysqlChangeStatusRollbackConfigSwarmToJSON( - mysqlChangeStatusRollbackConfigSwarm: MysqlChangeStatusRollbackConfigSwarm, -): string { - return JSON.stringify( - MysqlChangeStatusRollbackConfigSwarm$outboundSchema.parse( - mysqlChangeStatusRollbackConfigSwarm, - ), - ); -} - export function mysqlChangeStatusRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2229,23 +1010,6 @@ export const MysqlChangeStatusMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlChangeStatusMetricsConfigEnum > = z.nativeEnum(MysqlChangeStatusMetricsConfigEnum); -/** @internal */ -export const MysqlChangeStatusMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlChangeStatusMetricsConfigEnum -> = MysqlChangeStatusMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMetricsConfigEnum$ { - /** @deprecated use `MysqlChangeStatusMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusMetricsConfigEnum$inboundSchema; - /** @deprecated use `MysqlChangeStatusMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MysqlChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlChangeStatusMetricsConfigUnion1, @@ -2258,50 +1022,6 @@ export const MysqlChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlChangeStatusMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MysqlChangeStatusMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MysqlChangeStatusMetricsConfigUnion1$outboundSchema: z.ZodType< - MysqlChangeStatusMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MysqlChangeStatusMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlChangeStatusMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMetricsConfigUnion1$ { - /** @deprecated use `MysqlChangeStatusMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - MysqlChangeStatusMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MysqlChangeStatusMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MysqlChangeStatusMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MysqlChangeStatusMetricsConfigUnion1$Outbound; -} - -export function mysqlChangeStatusMetricsConfigUnion1ToJSON( - mysqlChangeStatusMetricsConfigUnion1: MysqlChangeStatusMetricsConfigUnion1, -): string { - return JSON.stringify( - MysqlChangeStatusMetricsConfigUnion1$outboundSchema.parse( - mysqlChangeStatusMetricsConfigUnion1, - ), - ); -} - export function mysqlChangeStatusMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2329,56 +1049,6 @@ export const MysqlChangeStatusMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MysqlChangeStatusMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MysqlChangeStatusMetricsConfigUnion2$outboundSchema: z.ZodType< - MysqlChangeStatusMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MysqlChangeStatusMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusMetricsConfigUnion2$ { - /** @deprecated use `MysqlChangeStatusMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - MysqlChangeStatusMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MysqlChangeStatusMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MysqlChangeStatusMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MysqlChangeStatusMetricsConfigUnion2$Outbound; -} - -export function mysqlChangeStatusMetricsConfigUnion2ToJSON( - mysqlChangeStatusMetricsConfigUnion2: MysqlChangeStatusMetricsConfigUnion2, -): string { - return JSON.stringify( - MysqlChangeStatusMetricsConfigUnion2$outboundSchema.parse( - mysqlChangeStatusMetricsConfigUnion2, - ), - ); -} - export function mysqlChangeStatusMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2395,22 +1065,6 @@ export const MysqlChangeStatusServerStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlChangeStatusServerStatus > = z.nativeEnum(MysqlChangeStatusServerStatus); -/** @internal */ -export const MysqlChangeStatusServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlChangeStatusServerStatus -> = MysqlChangeStatusServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusServerStatus$ { - /** @deprecated use `MysqlChangeStatusServerStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusServerStatus$inboundSchema; - /** @deprecated use `MysqlChangeStatusServerStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusServerStatus$outboundSchema; -} - /** @internal */ export const MysqlChangeStatusServer$inboundSchema: z.ZodType< MysqlChangeStatusServer, @@ -2442,78 +1096,6 @@ export const MysqlChangeStatusServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MysqlChangeStatusServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MysqlChangeStatusServer$outboundSchema: z.ZodType< - MysqlChangeStatusServer$Outbound, - z.ZodTypeDef, - MysqlChangeStatusServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MysqlChangeStatusServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusServer$ { - /** @deprecated use `MysqlChangeStatusServer$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusServer$inboundSchema; - /** @deprecated use `MysqlChangeStatusServer$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusServer$outboundSchema; - /** @deprecated use `MysqlChangeStatusServer$Outbound` instead. */ - export type Outbound = MysqlChangeStatusServer$Outbound; -} - -export function mysqlChangeStatusServerToJSON( - mysqlChangeStatusServer: MysqlChangeStatusServer, -): string { - return JSON.stringify( - MysqlChangeStatusServer$outboundSchema.parse(mysqlChangeStatusServer), - ); -} - export function mysqlChangeStatusServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2547,63 +1129,6 @@ export const MysqlChangeStatusUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlChangeStatusUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlChangeStatusUpdateConfigSwarm$outboundSchema: z.ZodType< - MysqlChangeStatusUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlChangeStatusUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusUpdateConfigSwarm$ { - /** @deprecated use `MysqlChangeStatusUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlChangeStatusUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlChangeStatusUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlChangeStatusUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlChangeStatusUpdateConfigSwarm$Outbound; -} - -export function mysqlChangeStatusUpdateConfigSwarmToJSON( - mysqlChangeStatusUpdateConfigSwarm: MysqlChangeStatusUpdateConfigSwarm, -): string { - return JSON.stringify( - MysqlChangeStatusUpdateConfigSwarm$outboundSchema.parse( - mysqlChangeStatusUpdateConfigSwarm, - ), - ); -} - export function mysqlChangeStatusUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2668,121 +1193,6 @@ export const MysqlChangeStatusResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MysqlChangeStatusResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MysqlChangeStatusEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MysqlChangeStatusHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MysqlChangeStatusModeSwarm$Outbound | null; - mounts: Array; - mysqlId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MysqlChangeStatusPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MysqlChangeStatusRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MysqlChangeStatusRollbackConfigSwarm$Outbound | null; - server: MysqlChangeStatusServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MysqlChangeStatusUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MysqlChangeStatusResponseBody$outboundSchema: z.ZodType< - MysqlChangeStatusResponseBody$Outbound, - z.ZodTypeDef, - MysqlChangeStatusResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MysqlChangeStatusApplicationStatusResponse$outboundSchema, - backups: z.array(z.lazy(() => MysqlChangeStatusBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MysqlChangeStatusEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlChangeStatusHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => MysqlChangeStatusModeSwarm$outboundSchema), - ), - mounts: z.array(z.lazy(() => MysqlChangeStatusMount$outboundSchema)), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlChangeStatusNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MysqlChangeStatusPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlChangeStatusRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlChangeStatusRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MysqlChangeStatusServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlChangeStatusUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusResponseBody$ { - /** @deprecated use `MysqlChangeStatusResponseBody$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusResponseBody$inboundSchema; - /** @deprecated use `MysqlChangeStatusResponseBody$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusResponseBody$outboundSchema; - /** @deprecated use `MysqlChangeStatusResponseBody$Outbound` instead. */ - export type Outbound = MysqlChangeStatusResponseBody$Outbound; -} - -export function mysqlChangeStatusResponseBodyToJSON( - mysqlChangeStatusResponseBody: MysqlChangeStatusResponseBody, -): string { - return JSON.stringify( - MysqlChangeStatusResponseBody$outboundSchema.parse( - mysqlChangeStatusResponseBody, - ), - ); -} - export function mysqlChangeStatusResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2803,42 +1213,6 @@ export const MysqlChangeStatusResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MysqlChangeStatusResponse$Outbound = - | MysqlChangeStatusResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MysqlChangeStatusResponse$outboundSchema: z.ZodType< - MysqlChangeStatusResponse$Outbound, - z.ZodTypeDef, - MysqlChangeStatusResponse -> = z.union([ - z.lazy(() => MysqlChangeStatusResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlChangeStatusResponse$ { - /** @deprecated use `MysqlChangeStatusResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlChangeStatusResponse$inboundSchema; - /** @deprecated use `MysqlChangeStatusResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlChangeStatusResponse$outboundSchema; - /** @deprecated use `MysqlChangeStatusResponse$Outbound` instead. */ - export type Outbound = MysqlChangeStatusResponse$Outbound; -} - -export function mysqlChangeStatusResponseToJSON( - mysqlChangeStatusResponse: MysqlChangeStatusResponse, -): string { - return JSON.stringify( - MysqlChangeStatusResponse$outboundSchema.parse(mysqlChangeStatusResponse), - ); -} - export function mysqlChangeStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlcreate.ts b/src/models/operations/mysqlcreate.ts index d253ec1..43c2b31 100644 --- a/src/models/operations/mysqlcreate.ts +++ b/src/models/operations/mysqlcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -23,24 +23,6 @@ export type MysqlCreateRequest = { export type MysqlCreateResponse = models.ErrorT | boolean; -/** @internal */ -export const MysqlCreateRequest$inboundSchema: z.ZodType< - MysqlCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("mysql:8"), - environmentId: z.string(), - name: z.string(), - serverId: z.nullable(z.string()).optional(), -}); - /** @internal */ export type MysqlCreateRequest$Outbound = { appName: string; @@ -73,19 +55,6 @@ export const MysqlCreateRequest$outboundSchema: z.ZodType< serverId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlCreateRequest$ { - /** @deprecated use `MysqlCreateRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlCreateRequest$inboundSchema; - /** @deprecated use `MysqlCreateRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlCreateRequest$outboundSchema; - /** @deprecated use `MysqlCreateRequest$Outbound` instead. */ - export type Outbound = MysqlCreateRequest$Outbound; -} - export function mysqlCreateRequestToJSON( mysqlCreateRequest: MysqlCreateRequest, ): string { @@ -94,16 +63,6 @@ export function mysqlCreateRequestToJSON( ); } -export function mysqlCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlCreateRequest' from JSON`, - ); -} - /** @internal */ export const MysqlCreateResponse$inboundSchema: z.ZodType< MysqlCreateResponse, @@ -111,37 +70,6 @@ export const MysqlCreateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MysqlCreateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MysqlCreateResponse$outboundSchema: z.ZodType< - MysqlCreateResponse$Outbound, - z.ZodTypeDef, - MysqlCreateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlCreateResponse$ { - /** @deprecated use `MysqlCreateResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlCreateResponse$inboundSchema; - /** @deprecated use `MysqlCreateResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlCreateResponse$outboundSchema; - /** @deprecated use `MysqlCreateResponse$Outbound` instead. */ - export type Outbound = MysqlCreateResponse$Outbound; -} - -export function mysqlCreateResponseToJSON( - mysqlCreateResponse: MysqlCreateResponse, -): string { - return JSON.stringify( - MysqlCreateResponse$outboundSchema.parse(mysqlCreateResponse), - ); -} - export function mysqlCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqldeploy.ts b/src/models/operations/mysqldeploy.ts index 26765b7..6c75612 100644 --- a/src/models/operations/mysqldeploy.ts +++ b/src/models/operations/mysqldeploy.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -327,15 +327,6 @@ export type MysqlDeployResponseBody = { export type MysqlDeployResponse = MysqlDeployResponseBody | models.ErrorT; -/** @internal */ -export const MysqlDeployRequest$inboundSchema: z.ZodType< - MysqlDeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mysqlId: z.string(), -}); - /** @internal */ export type MysqlDeployRequest$Outbound = { mysqlId: string; @@ -350,19 +341,6 @@ export const MysqlDeployRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployRequest$ { - /** @deprecated use `MysqlDeployRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployRequest$inboundSchema; - /** @deprecated use `MysqlDeployRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployRequest$outboundSchema; - /** @deprecated use `MysqlDeployRequest$Outbound` instead. */ - export type Outbound = MysqlDeployRequest$Outbound; -} - export function mysqlDeployRequestToJSON( mysqlDeployRequest: MysqlDeployRequest, ): string { @@ -371,100 +349,26 @@ export function mysqlDeployRequestToJSON( ); } -export function mysqlDeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlDeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlDeployRequest' from JSON`, - ); -} - /** @internal */ export const MysqlDeployApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlDeployApplicationStatus > = z.nativeEnum(MysqlDeployApplicationStatus); -/** @internal */ -export const MysqlDeployApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlDeployApplicationStatus -> = MysqlDeployApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployApplicationStatus$ { - /** @deprecated use `MysqlDeployApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployApplicationStatus$inboundSchema; - /** @deprecated use `MysqlDeployApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployApplicationStatus$outboundSchema; -} - /** @internal */ export const MysqlDeployBackupType$inboundSchema: z.ZodNativeEnum< typeof MysqlDeployBackupType > = z.nativeEnum(MysqlDeployBackupType); -/** @internal */ -export const MysqlDeployBackupType$outboundSchema: z.ZodNativeEnum< - typeof MysqlDeployBackupType -> = MysqlDeployBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployBackupType$ { - /** @deprecated use `MysqlDeployBackupType$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployBackupType$inboundSchema; - /** @deprecated use `MysqlDeployBackupType$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployBackupType$outboundSchema; -} - /** @internal */ export const MysqlDeployDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MysqlDeployDatabaseType > = z.nativeEnum(MysqlDeployDatabaseType); -/** @internal */ -export const MysqlDeployDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MysqlDeployDatabaseType -> = MysqlDeployDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployDatabaseType$ { - /** @deprecated use `MysqlDeployDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployDatabaseType$inboundSchema; - /** @deprecated use `MysqlDeployDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployDatabaseType$outboundSchema; -} - /** @internal */ export const MysqlDeployMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlDeployMetadataEnum > = z.nativeEnum(MysqlDeployMetadataEnum); -/** @internal */ -export const MysqlDeployMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlDeployMetadataEnum -> = MysqlDeployMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMetadataEnum$ { - /** @deprecated use `MysqlDeployMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMetadataEnum$inboundSchema; - /** @deprecated use `MysqlDeployMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMetadataEnum$outboundSchema; -} - /** @internal */ export const MysqlDeployMariadb$inboundSchema: z.ZodType< MysqlDeployMariadb, @@ -475,43 +379,6 @@ export const MysqlDeployMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlDeployMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlDeployMariadb$outboundSchema: z.ZodType< - MysqlDeployMariadb$Outbound, - z.ZodTypeDef, - MysqlDeployMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMariadb$ { - /** @deprecated use `MysqlDeployMariadb$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMariadb$inboundSchema; - /** @deprecated use `MysqlDeployMariadb$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMariadb$outboundSchema; - /** @deprecated use `MysqlDeployMariadb$Outbound` instead. */ - export type Outbound = MysqlDeployMariadb$Outbound; -} - -export function mysqlDeployMariadbToJSON( - mysqlDeployMariadb: MysqlDeployMariadb, -): string { - return JSON.stringify( - MysqlDeployMariadb$outboundSchema.parse(mysqlDeployMariadb), - ); -} - export function mysqlDeployMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -532,43 +399,6 @@ export const MysqlDeployMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlDeployMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlDeployMongo$outboundSchema: z.ZodType< - MysqlDeployMongo$Outbound, - z.ZodTypeDef, - MysqlDeployMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMongo$ { - /** @deprecated use `MysqlDeployMongo$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMongo$inboundSchema; - /** @deprecated use `MysqlDeployMongo$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMongo$outboundSchema; - /** @deprecated use `MysqlDeployMongo$Outbound` instead. */ - export type Outbound = MysqlDeployMongo$Outbound; -} - -export function mysqlDeployMongoToJSON( - mysqlDeployMongo: MysqlDeployMongo, -): string { - return JSON.stringify( - MysqlDeployMongo$outboundSchema.parse(mysqlDeployMongo), - ); -} - export function mysqlDeployMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -588,41 +418,6 @@ export const MysqlDeployMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MysqlDeployMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MysqlDeployMysql$outboundSchema: z.ZodType< - MysqlDeployMysql$Outbound, - z.ZodTypeDef, - MysqlDeployMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMysql$ { - /** @deprecated use `MysqlDeployMysql$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMysql$inboundSchema; - /** @deprecated use `MysqlDeployMysql$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMysql$outboundSchema; - /** @deprecated use `MysqlDeployMysql$Outbound` instead. */ - export type Outbound = MysqlDeployMysql$Outbound; -} - -export function mysqlDeployMysqlToJSON( - mysqlDeployMysql: MysqlDeployMysql, -): string { - return JSON.stringify( - MysqlDeployMysql$outboundSchema.parse(mysqlDeployMysql), - ); -} - export function mysqlDeployMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -642,41 +437,6 @@ export const MysqlDeployPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlDeployPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MysqlDeployPostgres$outboundSchema: z.ZodType< - MysqlDeployPostgres$Outbound, - z.ZodTypeDef, - MysqlDeployPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployPostgres$ { - /** @deprecated use `MysqlDeployPostgres$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployPostgres$inboundSchema; - /** @deprecated use `MysqlDeployPostgres$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployPostgres$outboundSchema; - /** @deprecated use `MysqlDeployPostgres$Outbound` instead. */ - export type Outbound = MysqlDeployPostgres$Outbound; -} - -export function mysqlDeployPostgresToJSON( - mysqlDeployPostgres: MysqlDeployPostgres, -): string { - return JSON.stringify( - MysqlDeployPostgres$outboundSchema.parse(mysqlDeployPostgres), - ); -} - export function mysqlDeployPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -699,47 +459,6 @@ export const MysqlDeployMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MysqlDeployPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MysqlDeployMetadata$Outbound = { - mariadb?: MysqlDeployMariadb$Outbound | undefined; - mongo?: MysqlDeployMongo$Outbound | undefined; - mysql?: MysqlDeployMysql$Outbound | undefined; - postgres?: MysqlDeployPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MysqlDeployMetadata$outboundSchema: z.ZodType< - MysqlDeployMetadata$Outbound, - z.ZodTypeDef, - MysqlDeployMetadata -> = z.object({ - mariadb: z.lazy(() => MysqlDeployMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MysqlDeployMongo$outboundSchema).optional(), - mysql: z.lazy(() => MysqlDeployMysql$outboundSchema).optional(), - postgres: z.lazy(() => MysqlDeployPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMetadata$ { - /** @deprecated use `MysqlDeployMetadata$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMetadata$inboundSchema; - /** @deprecated use `MysqlDeployMetadata$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMetadata$outboundSchema; - /** @deprecated use `MysqlDeployMetadata$Outbound` instead. */ - export type Outbound = MysqlDeployMetadata$Outbound; -} - -export function mysqlDeployMetadataToJSON( - mysqlDeployMetadata: MysqlDeployMetadata, -): string { - return JSON.stringify( - MysqlDeployMetadata$outboundSchema.parse(mysqlDeployMetadata), - ); -} - export function mysqlDeployMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -760,42 +479,6 @@ export const MysqlDeployMetadataUnion$inboundSchema: z.ZodType< MysqlDeployMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MysqlDeployMetadataUnion$Outbound = - | MysqlDeployMetadata$Outbound - | string; - -/** @internal */ -export const MysqlDeployMetadataUnion$outboundSchema: z.ZodType< - MysqlDeployMetadataUnion$Outbound, - z.ZodTypeDef, - MysqlDeployMetadataUnion -> = z.union([ - z.lazy(() => MysqlDeployMetadata$outboundSchema), - MysqlDeployMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMetadataUnion$ { - /** @deprecated use `MysqlDeployMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMetadataUnion$inboundSchema; - /** @deprecated use `MysqlDeployMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMetadataUnion$outboundSchema; - /** @deprecated use `MysqlDeployMetadataUnion$Outbound` instead. */ - export type Outbound = MysqlDeployMetadataUnion$Outbound; -} - -export function mysqlDeployMetadataUnionToJSON( - mysqlDeployMetadataUnion: MysqlDeployMetadataUnion, -): string { - return JSON.stringify( - MysqlDeployMetadataUnion$outboundSchema.parse(mysqlDeployMetadataUnion), - ); -} - export function mysqlDeployMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -837,80 +520,6 @@ export const MysqlDeployBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MysqlDeployBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MysqlDeployMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MysqlDeployBackup$outboundSchema: z.ZodType< - MysqlDeployBackup$Outbound, - z.ZodTypeDef, - MysqlDeployBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MysqlDeployBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MysqlDeployDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MysqlDeployMetadata$outboundSchema), - MysqlDeployMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployBackup$ { - /** @deprecated use `MysqlDeployBackup$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployBackup$inboundSchema; - /** @deprecated use `MysqlDeployBackup$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployBackup$outboundSchema; - /** @deprecated use `MysqlDeployBackup$Outbound` instead. */ - export type Outbound = MysqlDeployBackup$Outbound; -} - -export function mysqlDeployBackupToJSON( - mysqlDeployBackup: MysqlDeployBackup, -): string { - return JSON.stringify( - MysqlDeployBackup$outboundSchema.parse(mysqlDeployBackup), - ); -} - export function mysqlDeployBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -935,51 +544,6 @@ export const MysqlDeployProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlDeployProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MysqlDeployProject$outboundSchema: z.ZodType< - MysqlDeployProject$Outbound, - z.ZodTypeDef, - MysqlDeployProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployProject$ { - /** @deprecated use `MysqlDeployProject$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployProject$inboundSchema; - /** @deprecated use `MysqlDeployProject$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployProject$outboundSchema; - /** @deprecated use `MysqlDeployProject$Outbound` instead. */ - export type Outbound = MysqlDeployProject$Outbound; -} - -export function mysqlDeployProjectToJSON( - mysqlDeployProject: MysqlDeployProject, -): string { - return JSON.stringify( - MysqlDeployProject$outboundSchema.parse(mysqlDeployProject), - ); -} - export function mysqlDeployProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1005,53 +569,6 @@ export const MysqlDeployEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlDeployEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MysqlDeployProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MysqlDeployEnvironment$outboundSchema: z.ZodType< - MysqlDeployEnvironment$Outbound, - z.ZodTypeDef, - MysqlDeployEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MysqlDeployProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployEnvironment$ { - /** @deprecated use `MysqlDeployEnvironment$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployEnvironment$inboundSchema; - /** @deprecated use `MysqlDeployEnvironment$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployEnvironment$outboundSchema; - /** @deprecated use `MysqlDeployEnvironment$Outbound` instead. */ - export type Outbound = MysqlDeployEnvironment$Outbound; -} - -export function mysqlDeployEnvironmentToJSON( - mysqlDeployEnvironment: MysqlDeployEnvironment, -): string { - return JSON.stringify( - MysqlDeployEnvironment$outboundSchema.parse(mysqlDeployEnvironment), - ); -} - export function mysqlDeployEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1083,59 +600,6 @@ export const MysqlDeployHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MysqlDeployHealthCheckSwarm$outboundSchema: z.ZodType< - MysqlDeployHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MysqlDeployHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployHealthCheckSwarm$ { - /** @deprecated use `MysqlDeployHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlDeployHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlDeployHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlDeployHealthCheckSwarm$Outbound; -} - -export function mysqlDeployHealthCheckSwarmToJSON( - mysqlDeployHealthCheckSwarm: MysqlDeployHealthCheckSwarm, -): string { - return JSON.stringify( - MysqlDeployHealthCheckSwarm$outboundSchema.parse( - mysqlDeployHealthCheckSwarm, - ), - ); -} - export function mysqlDeployHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1153,37 +617,6 @@ export const MysqlDeployGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlDeployGlobal$Outbound = {}; - -/** @internal */ -export const MysqlDeployGlobal$outboundSchema: z.ZodType< - MysqlDeployGlobal$Outbound, - z.ZodTypeDef, - MysqlDeployGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployGlobal$ { - /** @deprecated use `MysqlDeployGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployGlobal$inboundSchema; - /** @deprecated use `MysqlDeployGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployGlobal$outboundSchema; - /** @deprecated use `MysqlDeployGlobal$Outbound` instead. */ - export type Outbound = MysqlDeployGlobal$Outbound; -} - -export function mysqlDeployGlobalToJSON( - mysqlDeployGlobal: MysqlDeployGlobal, -): string { - return JSON.stringify( - MysqlDeployGlobal$outboundSchema.parse(mysqlDeployGlobal), - ); -} - export function mysqlDeployGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1195,42 +628,11 @@ export function mysqlDeployGlobalFromJSON( } /** @internal */ -export const MysqlDeployGlobalJob$inboundSchema: z.ZodType< - MysqlDeployGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MysqlDeployGlobalJob$Outbound = {}; - -/** @internal */ -export const MysqlDeployGlobalJob$outboundSchema: z.ZodType< - MysqlDeployGlobalJob$Outbound, - z.ZodTypeDef, - MysqlDeployGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployGlobalJob$ { - /** @deprecated use `MysqlDeployGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployGlobalJob$inboundSchema; - /** @deprecated use `MysqlDeployGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployGlobalJob$outboundSchema; - /** @deprecated use `MysqlDeployGlobalJob$Outbound` instead. */ - export type Outbound = MysqlDeployGlobalJob$Outbound; -} - -export function mysqlDeployGlobalJobToJSON( - mysqlDeployGlobalJob: MysqlDeployGlobalJob, -): string { - return JSON.stringify( - MysqlDeployGlobalJob$outboundSchema.parse(mysqlDeployGlobalJob), - ); -} +export const MysqlDeployGlobalJob$inboundSchema: z.ZodType< + MysqlDeployGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mysqlDeployGlobalJobFromJSON( jsonString: string, @@ -1255,45 +657,6 @@ export const MysqlDeployReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MysqlDeployReplicated$outboundSchema: z.ZodType< - MysqlDeployReplicated$Outbound, - z.ZodTypeDef, - MysqlDeployReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployReplicated$ { - /** @deprecated use `MysqlDeployReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployReplicated$inboundSchema; - /** @deprecated use `MysqlDeployReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployReplicated$outboundSchema; - /** @deprecated use `MysqlDeployReplicated$Outbound` instead. */ - export type Outbound = MysqlDeployReplicated$Outbound; -} - -export function mysqlDeployReplicatedToJSON( - mysqlDeployReplicated: MysqlDeployReplicated, -): string { - return JSON.stringify( - MysqlDeployReplicated$outboundSchema.parse(mysqlDeployReplicated), - ); -} - export function mysqlDeployReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1319,48 +682,6 @@ export const MysqlDeployReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MysqlDeployReplicatedJob$outboundSchema: z.ZodType< - MysqlDeployReplicatedJob$Outbound, - z.ZodTypeDef, - MysqlDeployReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployReplicatedJob$ { - /** @deprecated use `MysqlDeployReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployReplicatedJob$inboundSchema; - /** @deprecated use `MysqlDeployReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployReplicatedJob$outboundSchema; - /** @deprecated use `MysqlDeployReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlDeployReplicatedJob$Outbound; -} - -export function mysqlDeployReplicatedJobToJSON( - mysqlDeployReplicatedJob: MysqlDeployReplicatedJob, -): string { - return JSON.stringify( - MysqlDeployReplicatedJob$outboundSchema.parse(mysqlDeployReplicatedJob), - ); -} - export function mysqlDeployReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1391,55 +712,6 @@ export const MysqlDeployModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployModeSwarm$Outbound = { - Global?: MysqlDeployGlobal$Outbound | undefined; - GlobalJob?: MysqlDeployGlobalJob$Outbound | undefined; - Replicated?: MysqlDeployReplicated$Outbound | undefined; - ReplicatedJob?: MysqlDeployReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MysqlDeployModeSwarm$outboundSchema: z.ZodType< - MysqlDeployModeSwarm$Outbound, - z.ZodTypeDef, - MysqlDeployModeSwarm -> = z.object({ - global: z.lazy(() => MysqlDeployGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MysqlDeployGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MysqlDeployReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MysqlDeployReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployModeSwarm$ { - /** @deprecated use `MysqlDeployModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployModeSwarm$inboundSchema; - /** @deprecated use `MysqlDeployModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployModeSwarm$outboundSchema; - /** @deprecated use `MysqlDeployModeSwarm$Outbound` instead. */ - export type Outbound = MysqlDeployModeSwarm$Outbound; -} - -export function mysqlDeployModeSwarmToJSON( - mysqlDeployModeSwarm: MysqlDeployModeSwarm, -): string { - return JSON.stringify( - MysqlDeployModeSwarm$outboundSchema.parse(mysqlDeployModeSwarm), - ); -} - export function mysqlDeployModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1455,43 +727,11 @@ export const MysqlDeployServiceType$inboundSchema: z.ZodNativeEnum< typeof MysqlDeployServiceType > = z.nativeEnum(MysqlDeployServiceType); -/** @internal */ -export const MysqlDeployServiceType$outboundSchema: z.ZodNativeEnum< - typeof MysqlDeployServiceType -> = MysqlDeployServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployServiceType$ { - /** @deprecated use `MysqlDeployServiceType$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployServiceType$inboundSchema; - /** @deprecated use `MysqlDeployServiceType$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployServiceType$outboundSchema; -} - /** @internal */ export const MysqlDeployType$inboundSchema: z.ZodNativeEnum< typeof MysqlDeployType > = z.nativeEnum(MysqlDeployType); -/** @internal */ -export const MysqlDeployType$outboundSchema: z.ZodNativeEnum< - typeof MysqlDeployType -> = MysqlDeployType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployType$ { - /** @deprecated use `MysqlDeployType$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployType$inboundSchema; - /** @deprecated use `MysqlDeployType$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployType$outboundSchema; -} - /** @internal */ export const MysqlDeployMount$inboundSchema: z.ZodType< MysqlDeployMount, @@ -1515,69 +755,6 @@ export const MysqlDeployMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MysqlDeployMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MysqlDeployMount$outboundSchema: z.ZodType< - MysqlDeployMount$Outbound, - z.ZodTypeDef, - MysqlDeployMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MysqlDeployServiceType$outboundSchema, - type: MysqlDeployType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMount$ { - /** @deprecated use `MysqlDeployMount$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMount$inboundSchema; - /** @deprecated use `MysqlDeployMount$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMount$outboundSchema; - /** @deprecated use `MysqlDeployMount$Outbound` instead. */ - export type Outbound = MysqlDeployMount$Outbound; -} - -export function mysqlDeployMountToJSON( - mysqlDeployMount: MysqlDeployMount, -): string { - return JSON.stringify( - MysqlDeployMount$outboundSchema.parse(mysqlDeployMount), - ); -} - export function mysqlDeployMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1595,37 +772,6 @@ export const MysqlDeployDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlDeployDriverOpts$Outbound = {}; - -/** @internal */ -export const MysqlDeployDriverOpts$outboundSchema: z.ZodType< - MysqlDeployDriverOpts$Outbound, - z.ZodTypeDef, - MysqlDeployDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployDriverOpts$ { - /** @deprecated use `MysqlDeployDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployDriverOpts$inboundSchema; - /** @deprecated use `MysqlDeployDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployDriverOpts$outboundSchema; - /** @deprecated use `MysqlDeployDriverOpts$Outbound` instead. */ - export type Outbound = MysqlDeployDriverOpts$Outbound; -} - -export function mysqlDeployDriverOptsToJSON( - mysqlDeployDriverOpts: MysqlDeployDriverOpts, -): string { - return JSON.stringify( - MysqlDeployDriverOpts$outboundSchema.parse(mysqlDeployDriverOpts), - ); -} - export function mysqlDeployDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1653,51 +799,6 @@ export const MysqlDeployNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MysqlDeployDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MysqlDeployNetworkSwarm$outboundSchema: z.ZodType< - MysqlDeployNetworkSwarm$Outbound, - z.ZodTypeDef, - MysqlDeployNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MysqlDeployDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployNetworkSwarm$ { - /** @deprecated use `MysqlDeployNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlDeployNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlDeployNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlDeployNetworkSwarm$Outbound; -} - -export function mysqlDeployNetworkSwarmToJSON( - mysqlDeployNetworkSwarm: MysqlDeployNetworkSwarm, -): string { - return JSON.stringify( - MysqlDeployNetworkSwarm$outboundSchema.parse(mysqlDeployNetworkSwarm), - ); -} - export function mysqlDeployNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1723,48 +824,6 @@ export const MysqlDeployPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MysqlDeployPlatform$outboundSchema: z.ZodType< - MysqlDeployPlatform$Outbound, - z.ZodTypeDef, - MysqlDeployPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployPlatform$ { - /** @deprecated use `MysqlDeployPlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployPlatform$inboundSchema; - /** @deprecated use `MysqlDeployPlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployPlatform$outboundSchema; - /** @deprecated use `MysqlDeployPlatform$Outbound` instead. */ - export type Outbound = MysqlDeployPlatform$Outbound; -} - -export function mysqlDeployPlatformToJSON( - mysqlDeployPlatform: MysqlDeployPlatform, -): string { - return JSON.stringify( - MysqlDeployPlatform$outboundSchema.parse(mysqlDeployPlatform), - ); -} - export function mysqlDeployPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1788,45 +847,6 @@ export const MysqlDeploySpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeploySpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MysqlDeploySpread$outboundSchema: z.ZodType< - MysqlDeploySpread$Outbound, - z.ZodTypeDef, - MysqlDeploySpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeploySpread$ { - /** @deprecated use `MysqlDeploySpread$inboundSchema` instead. */ - export const inboundSchema = MysqlDeploySpread$inboundSchema; - /** @deprecated use `MysqlDeploySpread$outboundSchema` instead. */ - export const outboundSchema = MysqlDeploySpread$outboundSchema; - /** @deprecated use `MysqlDeploySpread$Outbound` instead. */ - export type Outbound = MysqlDeploySpread$Outbound; -} - -export function mysqlDeploySpreadToJSON( - mysqlDeploySpread: MysqlDeploySpread, -): string { - return JSON.stringify( - MysqlDeploySpread$outboundSchema.parse(mysqlDeploySpread), - ); -} - export function mysqlDeploySpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1850,45 +870,6 @@ export const MysqlDeployPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployPreference$Outbound = { - Spread: MysqlDeploySpread$Outbound; -}; - -/** @internal */ -export const MysqlDeployPreference$outboundSchema: z.ZodType< - MysqlDeployPreference$Outbound, - z.ZodTypeDef, - MysqlDeployPreference -> = z.object({ - spread: z.lazy(() => MysqlDeploySpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployPreference$ { - /** @deprecated use `MysqlDeployPreference$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployPreference$inboundSchema; - /** @deprecated use `MysqlDeployPreference$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployPreference$outboundSchema; - /** @deprecated use `MysqlDeployPreference$Outbound` instead. */ - export type Outbound = MysqlDeployPreference$Outbound; -} - -export function mysqlDeployPreferenceToJSON( - mysqlDeployPreference: MysqlDeployPreference, -): string { - return JSON.stringify( - MysqlDeployPreference$outboundSchema.parse(mysqlDeployPreference), - ); -} - export function mysqlDeployPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1920,56 +901,6 @@ export const MysqlDeployPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MysqlDeployPlacementSwarm$outboundSchema: z.ZodType< - MysqlDeployPlacementSwarm$Outbound, - z.ZodTypeDef, - MysqlDeployPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MysqlDeployPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MysqlDeployPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployPlacementSwarm$ { - /** @deprecated use `MysqlDeployPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployPlacementSwarm$inboundSchema; - /** @deprecated use `MysqlDeployPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployPlacementSwarm$outboundSchema; - /** @deprecated use `MysqlDeployPlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlDeployPlacementSwarm$Outbound; -} - -export function mysqlDeployPlacementSwarmToJSON( - mysqlDeployPlacementSwarm: MysqlDeployPlacementSwarm, -): string { - return JSON.stringify( - MysqlDeployPlacementSwarm$outboundSchema.parse(mysqlDeployPlacementSwarm), - ); -} - export function mysqlDeployPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1989,66 +920,16 @@ export const MysqlDeployRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MysqlDeployRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MysqlDeployRestartPolicySwarm$outboundSchema: z.ZodType< - MysqlDeployRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MysqlDeployRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployRestartPolicySwarm$ { - /** @deprecated use `MysqlDeployRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlDeployRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlDeployRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlDeployRestartPolicySwarm$Outbound; -} - -export function mysqlDeployRestartPolicySwarmToJSON( - mysqlDeployRestartPolicySwarm: MysqlDeployRestartPolicySwarm, -): string { - return JSON.stringify( - MysqlDeployRestartPolicySwarm$outboundSchema.parse( - mysqlDeployRestartPolicySwarm, - ), - ); -} - export function mysqlDeployRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2082,62 +963,6 @@ export const MysqlDeployRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlDeployRollbackConfigSwarm$outboundSchema: z.ZodType< - MysqlDeployRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlDeployRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployRollbackConfigSwarm$ { - /** @deprecated use `MysqlDeployRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlDeployRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlDeployRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlDeployRollbackConfigSwarm$Outbound; -} - -export function mysqlDeployRollbackConfigSwarmToJSON( - mysqlDeployRollbackConfigSwarm: MysqlDeployRollbackConfigSwarm, -): string { - return JSON.stringify( - MysqlDeployRollbackConfigSwarm$outboundSchema.parse( - mysqlDeployRollbackConfigSwarm, - ), - ); -} - export function mysqlDeployRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2153,22 +978,6 @@ export const MysqlDeployMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlDeployMetricsConfigEnum > = z.nativeEnum(MysqlDeployMetricsConfigEnum); -/** @internal */ -export const MysqlDeployMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlDeployMetricsConfigEnum -> = MysqlDeployMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMetricsConfigEnum$ { - /** @deprecated use `MysqlDeployMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMetricsConfigEnum$inboundSchema; - /** @deprecated use `MysqlDeployMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MysqlDeployMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlDeployMetricsConfigUnion1, @@ -2181,48 +990,6 @@ export const MysqlDeployMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlDeployMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MysqlDeployMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MysqlDeployMetricsConfigUnion1$outboundSchema: z.ZodType< - MysqlDeployMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MysqlDeployMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlDeployMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMetricsConfigUnion1$ { - /** @deprecated use `MysqlDeployMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MysqlDeployMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MysqlDeployMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MysqlDeployMetricsConfigUnion1$Outbound; -} - -export function mysqlDeployMetricsConfigUnion1ToJSON( - mysqlDeployMetricsConfigUnion1: MysqlDeployMetricsConfigUnion1, -): string { - return JSON.stringify( - MysqlDeployMetricsConfigUnion1$outboundSchema.parse( - mysqlDeployMetricsConfigUnion1, - ), - ); -} - export function mysqlDeployMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2249,54 +1016,6 @@ export const MysqlDeployMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MysqlDeployMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MysqlDeployMetricsConfigUnion2$outboundSchema: z.ZodType< - MysqlDeployMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MysqlDeployMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployMetricsConfigUnion2$ { - /** @deprecated use `MysqlDeployMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MysqlDeployMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MysqlDeployMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MysqlDeployMetricsConfigUnion2$Outbound; -} - -export function mysqlDeployMetricsConfigUnion2ToJSON( - mysqlDeployMetricsConfigUnion2: MysqlDeployMetricsConfigUnion2, -): string { - return JSON.stringify( - MysqlDeployMetricsConfigUnion2$outboundSchema.parse( - mysqlDeployMetricsConfigUnion2, - ), - ); -} - export function mysqlDeployMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2312,22 +1031,6 @@ export const MysqlDeployServerStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlDeployServerStatus > = z.nativeEnum(MysqlDeployServerStatus); -/** @internal */ -export const MysqlDeployServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlDeployServerStatus -> = MysqlDeployServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployServerStatus$ { - /** @deprecated use `MysqlDeployServerStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployServerStatus$inboundSchema; - /** @deprecated use `MysqlDeployServerStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployServerStatus$outboundSchema; -} - /** @internal */ export const MysqlDeployServer$inboundSchema: z.ZodType< MysqlDeployServer, @@ -2359,78 +1062,6 @@ export const MysqlDeployServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MysqlDeployServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MysqlDeployServer$outboundSchema: z.ZodType< - MysqlDeployServer$Outbound, - z.ZodTypeDef, - MysqlDeployServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MysqlDeployServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployServer$ { - /** @deprecated use `MysqlDeployServer$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployServer$inboundSchema; - /** @deprecated use `MysqlDeployServer$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployServer$outboundSchema; - /** @deprecated use `MysqlDeployServer$Outbound` instead. */ - export type Outbound = MysqlDeployServer$Outbound; -} - -export function mysqlDeployServerToJSON( - mysqlDeployServer: MysqlDeployServer, -): string { - return JSON.stringify( - MysqlDeployServer$outboundSchema.parse(mysqlDeployServer), - ); -} - export function mysqlDeployServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2464,62 +1095,6 @@ export const MysqlDeployUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlDeployUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlDeployUpdateConfigSwarm$outboundSchema: z.ZodType< - MysqlDeployUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlDeployUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployUpdateConfigSwarm$ { - /** @deprecated use `MysqlDeployUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlDeployUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlDeployUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlDeployUpdateConfigSwarm$Outbound; -} - -export function mysqlDeployUpdateConfigSwarmToJSON( - mysqlDeployUpdateConfigSwarm: MysqlDeployUpdateConfigSwarm, -): string { - return JSON.stringify( - MysqlDeployUpdateConfigSwarm$outboundSchema.parse( - mysqlDeployUpdateConfigSwarm, - ), - ); -} - export function mysqlDeployUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2583,117 +1158,6 @@ export const MysqlDeployResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MysqlDeployResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MysqlDeployEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MysqlDeployHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MysqlDeployModeSwarm$Outbound | null; - mounts: Array; - mysqlId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MysqlDeployPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MysqlDeployRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MysqlDeployRollbackConfigSwarm$Outbound | null; - server: MysqlDeployServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MysqlDeployUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MysqlDeployResponseBody$outboundSchema: z.ZodType< - MysqlDeployResponseBody$Outbound, - z.ZodTypeDef, - MysqlDeployResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MysqlDeployApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MysqlDeployBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MysqlDeployEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlDeployHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MysqlDeployModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MysqlDeployMount$outboundSchema)), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlDeployNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MysqlDeployPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlDeployRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlDeployRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MysqlDeployServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlDeployUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployResponseBody$ { - /** @deprecated use `MysqlDeployResponseBody$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployResponseBody$inboundSchema; - /** @deprecated use `MysqlDeployResponseBody$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployResponseBody$outboundSchema; - /** @deprecated use `MysqlDeployResponseBody$Outbound` instead. */ - export type Outbound = MysqlDeployResponseBody$Outbound; -} - -export function mysqlDeployResponseBodyToJSON( - mysqlDeployResponseBody: MysqlDeployResponseBody, -): string { - return JSON.stringify( - MysqlDeployResponseBody$outboundSchema.parse(mysqlDeployResponseBody), - ); -} - export function mysqlDeployResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2714,42 +1178,6 @@ export const MysqlDeployResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MysqlDeployResponse$Outbound = - | MysqlDeployResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MysqlDeployResponse$outboundSchema: z.ZodType< - MysqlDeployResponse$Outbound, - z.ZodTypeDef, - MysqlDeployResponse -> = z.union([ - z.lazy(() => MysqlDeployResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlDeployResponse$ { - /** @deprecated use `MysqlDeployResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlDeployResponse$inboundSchema; - /** @deprecated use `MysqlDeployResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlDeployResponse$outboundSchema; - /** @deprecated use `MysqlDeployResponse$Outbound` instead. */ - export type Outbound = MysqlDeployResponse$Outbound; -} - -export function mysqlDeployResponseToJSON( - mysqlDeployResponse: MysqlDeployResponse, -): string { - return JSON.stringify( - MysqlDeployResponse$outboundSchema.parse(mysqlDeployResponse), - ); -} - export function mysqlDeployResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlmove.ts b/src/models/operations/mysqlmove.ts index beb1f85..7a49e1d 100644 --- a/src/models/operations/mysqlmove.ts +++ b/src/models/operations/mysqlmove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -143,16 +143,6 @@ export type MysqlMoveResponseBody = { export type MysqlMoveResponse = MysqlMoveResponseBody | models.ErrorT; -/** @internal */ -export const MysqlMoveRequest$inboundSchema: z.ZodType< - MysqlMoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mysqlId: z.string(), - targetEnvironmentId: z.string(), -}); - /** @internal */ export type MysqlMoveRequest$Outbound = { mysqlId: string; @@ -169,19 +159,6 @@ export const MysqlMoveRequest$outboundSchema: z.ZodType< targetEnvironmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveRequest$ { - /** @deprecated use `MysqlMoveRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveRequest$inboundSchema; - /** @deprecated use `MysqlMoveRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveRequest$outboundSchema; - /** @deprecated use `MysqlMoveRequest$Outbound` instead. */ - export type Outbound = MysqlMoveRequest$Outbound; -} - export function mysqlMoveRequestToJSON( mysqlMoveRequest: MysqlMoveRequest, ): string { @@ -190,37 +167,11 @@ export function mysqlMoveRequestToJSON( ); } -export function mysqlMoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlMoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlMoveRequest' from JSON`, - ); -} - /** @internal */ export const MysqlMoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlMoveApplicationStatus > = z.nativeEnum(MysqlMoveApplicationStatus); -/** @internal */ -export const MysqlMoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlMoveApplicationStatus -> = MysqlMoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveApplicationStatus$ { - /** @deprecated use `MysqlMoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveApplicationStatus$inboundSchema; - /** @deprecated use `MysqlMoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveApplicationStatus$outboundSchema; -} - /** @internal */ export const MysqlMoveHealthCheckSwarm$inboundSchema: z.ZodType< MysqlMoveHealthCheckSwarm, @@ -242,57 +193,6 @@ export const MysqlMoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MysqlMoveHealthCheckSwarm$outboundSchema: z.ZodType< - MysqlMoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MysqlMoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveHealthCheckSwarm$ { - /** @deprecated use `MysqlMoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlMoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlMoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlMoveHealthCheckSwarm$Outbound; -} - -export function mysqlMoveHealthCheckSwarmToJSON( - mysqlMoveHealthCheckSwarm: MysqlMoveHealthCheckSwarm, -): string { - return JSON.stringify( - MysqlMoveHealthCheckSwarm$outboundSchema.parse(mysqlMoveHealthCheckSwarm), - ); -} - export function mysqlMoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -310,35 +210,6 @@ export const MysqlMoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlMoveGlobal$Outbound = {}; - -/** @internal */ -export const MysqlMoveGlobal$outboundSchema: z.ZodType< - MysqlMoveGlobal$Outbound, - z.ZodTypeDef, - MysqlMoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveGlobal$ { - /** @deprecated use `MysqlMoveGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveGlobal$inboundSchema; - /** @deprecated use `MysqlMoveGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveGlobal$outboundSchema; - /** @deprecated use `MysqlMoveGlobal$Outbound` instead. */ - export type Outbound = MysqlMoveGlobal$Outbound; -} - -export function mysqlMoveGlobalToJSON( - mysqlMoveGlobal: MysqlMoveGlobal, -): string { - return JSON.stringify(MysqlMoveGlobal$outboundSchema.parse(mysqlMoveGlobal)); -} - export function mysqlMoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -356,37 +227,6 @@ export const MysqlMoveGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlMoveGlobalJob$Outbound = {}; - -/** @internal */ -export const MysqlMoveGlobalJob$outboundSchema: z.ZodType< - MysqlMoveGlobalJob$Outbound, - z.ZodTypeDef, - MysqlMoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveGlobalJob$ { - /** @deprecated use `MysqlMoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveGlobalJob$inboundSchema; - /** @deprecated use `MysqlMoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveGlobalJob$outboundSchema; - /** @deprecated use `MysqlMoveGlobalJob$Outbound` instead. */ - export type Outbound = MysqlMoveGlobalJob$Outbound; -} - -export function mysqlMoveGlobalJobToJSON( - mysqlMoveGlobalJob: MysqlMoveGlobalJob, -): string { - return JSON.stringify( - MysqlMoveGlobalJob$outboundSchema.parse(mysqlMoveGlobalJob), - ); -} - export function mysqlMoveGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -410,45 +250,6 @@ export const MysqlMoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MysqlMoveReplicated$outboundSchema: z.ZodType< - MysqlMoveReplicated$Outbound, - z.ZodTypeDef, - MysqlMoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveReplicated$ { - /** @deprecated use `MysqlMoveReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveReplicated$inboundSchema; - /** @deprecated use `MysqlMoveReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveReplicated$outboundSchema; - /** @deprecated use `MysqlMoveReplicated$Outbound` instead. */ - export type Outbound = MysqlMoveReplicated$Outbound; -} - -export function mysqlMoveReplicatedToJSON( - mysqlMoveReplicated: MysqlMoveReplicated, -): string { - return JSON.stringify( - MysqlMoveReplicated$outboundSchema.parse(mysqlMoveReplicated), - ); -} - export function mysqlMoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -474,48 +275,6 @@ export const MysqlMoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MysqlMoveReplicatedJob$outboundSchema: z.ZodType< - MysqlMoveReplicatedJob$Outbound, - z.ZodTypeDef, - MysqlMoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveReplicatedJob$ { - /** @deprecated use `MysqlMoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveReplicatedJob$inboundSchema; - /** @deprecated use `MysqlMoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveReplicatedJob$outboundSchema; - /** @deprecated use `MysqlMoveReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlMoveReplicatedJob$Outbound; -} - -export function mysqlMoveReplicatedJobToJSON( - mysqlMoveReplicatedJob: MysqlMoveReplicatedJob, -): string { - return JSON.stringify( - MysqlMoveReplicatedJob$outboundSchema.parse(mysqlMoveReplicatedJob), - ); -} - export function mysqlMoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -545,54 +304,6 @@ export const MysqlMoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveModeSwarm$Outbound = { - Global?: MysqlMoveGlobal$Outbound | undefined; - GlobalJob?: MysqlMoveGlobalJob$Outbound | undefined; - Replicated?: MysqlMoveReplicated$Outbound | undefined; - ReplicatedJob?: MysqlMoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MysqlMoveModeSwarm$outboundSchema: z.ZodType< - MysqlMoveModeSwarm$Outbound, - z.ZodTypeDef, - MysqlMoveModeSwarm -> = z.object({ - global: z.lazy(() => MysqlMoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MysqlMoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MysqlMoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MysqlMoveReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveModeSwarm$ { - /** @deprecated use `MysqlMoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveModeSwarm$inboundSchema; - /** @deprecated use `MysqlMoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveModeSwarm$outboundSchema; - /** @deprecated use `MysqlMoveModeSwarm$Outbound` instead. */ - export type Outbound = MysqlMoveModeSwarm$Outbound; -} - -export function mysqlMoveModeSwarmToJSON( - mysqlMoveModeSwarm: MysqlMoveModeSwarm, -): string { - return JSON.stringify( - MysqlMoveModeSwarm$outboundSchema.parse(mysqlMoveModeSwarm), - ); -} - export function mysqlMoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -610,37 +321,6 @@ export const MysqlMoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlMoveDriverOpts$Outbound = {}; - -/** @internal */ -export const MysqlMoveDriverOpts$outboundSchema: z.ZodType< - MysqlMoveDriverOpts$Outbound, - z.ZodTypeDef, - MysqlMoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveDriverOpts$ { - /** @deprecated use `MysqlMoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveDriverOpts$inboundSchema; - /** @deprecated use `MysqlMoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveDriverOpts$outboundSchema; - /** @deprecated use `MysqlMoveDriverOpts$Outbound` instead. */ - export type Outbound = MysqlMoveDriverOpts$Outbound; -} - -export function mysqlMoveDriverOptsToJSON( - mysqlMoveDriverOpts: MysqlMoveDriverOpts, -): string { - return JSON.stringify( - MysqlMoveDriverOpts$outboundSchema.parse(mysqlMoveDriverOpts), - ); -} - export function mysqlMoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -668,51 +348,6 @@ export const MysqlMoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MysqlMoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MysqlMoveNetworkSwarm$outboundSchema: z.ZodType< - MysqlMoveNetworkSwarm$Outbound, - z.ZodTypeDef, - MysqlMoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MysqlMoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveNetworkSwarm$ { - /** @deprecated use `MysqlMoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlMoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlMoveNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlMoveNetworkSwarm$Outbound; -} - -export function mysqlMoveNetworkSwarmToJSON( - mysqlMoveNetworkSwarm: MysqlMoveNetworkSwarm, -): string { - return JSON.stringify( - MysqlMoveNetworkSwarm$outboundSchema.parse(mysqlMoveNetworkSwarm), - ); -} - export function mysqlMoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -738,48 +373,6 @@ export const MysqlMovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MysqlMovePlatform$outboundSchema: z.ZodType< - MysqlMovePlatform$Outbound, - z.ZodTypeDef, - MysqlMovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMovePlatform$ { - /** @deprecated use `MysqlMovePlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlMovePlatform$inboundSchema; - /** @deprecated use `MysqlMovePlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlMovePlatform$outboundSchema; - /** @deprecated use `MysqlMovePlatform$Outbound` instead. */ - export type Outbound = MysqlMovePlatform$Outbound; -} - -export function mysqlMovePlatformToJSON( - mysqlMovePlatform: MysqlMovePlatform, -): string { - return JSON.stringify( - MysqlMovePlatform$outboundSchema.parse(mysqlMovePlatform), - ); -} - export function mysqlMovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -803,43 +396,6 @@ export const MysqlMoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MysqlMoveSpread$outboundSchema: z.ZodType< - MysqlMoveSpread$Outbound, - z.ZodTypeDef, - MysqlMoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveSpread$ { - /** @deprecated use `MysqlMoveSpread$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveSpread$inboundSchema; - /** @deprecated use `MysqlMoveSpread$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveSpread$outboundSchema; - /** @deprecated use `MysqlMoveSpread$Outbound` instead. */ - export type Outbound = MysqlMoveSpread$Outbound; -} - -export function mysqlMoveSpreadToJSON( - mysqlMoveSpread: MysqlMoveSpread, -): string { - return JSON.stringify(MysqlMoveSpread$outboundSchema.parse(mysqlMoveSpread)); -} - export function mysqlMoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -863,45 +419,6 @@ export const MysqlMovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMovePreference$Outbound = { - Spread: MysqlMoveSpread$Outbound; -}; - -/** @internal */ -export const MysqlMovePreference$outboundSchema: z.ZodType< - MysqlMovePreference$Outbound, - z.ZodTypeDef, - MysqlMovePreference -> = z.object({ - spread: z.lazy(() => MysqlMoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMovePreference$ { - /** @deprecated use `MysqlMovePreference$inboundSchema` instead. */ - export const inboundSchema = MysqlMovePreference$inboundSchema; - /** @deprecated use `MysqlMovePreference$outboundSchema` instead. */ - export const outboundSchema = MysqlMovePreference$outboundSchema; - /** @deprecated use `MysqlMovePreference$Outbound` instead. */ - export type Outbound = MysqlMovePreference$Outbound; -} - -export function mysqlMovePreferenceToJSON( - mysqlMovePreference: MysqlMovePreference, -): string { - return JSON.stringify( - MysqlMovePreference$outboundSchema.parse(mysqlMovePreference), - ); -} - export function mysqlMovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -932,55 +449,6 @@ export const MysqlMovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MysqlMovePlacementSwarm$outboundSchema: z.ZodType< - MysqlMovePlacementSwarm$Outbound, - z.ZodTypeDef, - MysqlMovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MysqlMovePlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => MysqlMovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMovePlacementSwarm$ { - /** @deprecated use `MysqlMovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlMovePlacementSwarm$inboundSchema; - /** @deprecated use `MysqlMovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlMovePlacementSwarm$outboundSchema; - /** @deprecated use `MysqlMovePlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlMovePlacementSwarm$Outbound; -} - -export function mysqlMovePlacementSwarmToJSON( - mysqlMovePlacementSwarm: MysqlMovePlacementSwarm, -): string { - return JSON.stringify( - MysqlMovePlacementSwarm$outboundSchema.parse(mysqlMovePlacementSwarm), - ); -} - export function mysqlMovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1010,56 +478,6 @@ export const MysqlMoveRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MysqlMoveRestartPolicySwarm$outboundSchema: z.ZodType< - MysqlMoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MysqlMoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveRestartPolicySwarm$ { - /** @deprecated use `MysqlMoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlMoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlMoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlMoveRestartPolicySwarm$Outbound; -} - -export function mysqlMoveRestartPolicySwarmToJSON( - mysqlMoveRestartPolicySwarm: MysqlMoveRestartPolicySwarm, -): string { - return JSON.stringify( - MysqlMoveRestartPolicySwarm$outboundSchema.parse( - mysqlMoveRestartPolicySwarm, - ), - ); -} - export function mysqlMoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1093,62 +511,6 @@ export const MysqlMoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlMoveRollbackConfigSwarm$outboundSchema: z.ZodType< - MysqlMoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlMoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveRollbackConfigSwarm$ { - /** @deprecated use `MysqlMoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlMoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlMoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlMoveRollbackConfigSwarm$Outbound; -} - -export function mysqlMoveRollbackConfigSwarmToJSON( - mysqlMoveRollbackConfigSwarm: MysqlMoveRollbackConfigSwarm, -): string { - return JSON.stringify( - MysqlMoveRollbackConfigSwarm$outboundSchema.parse( - mysqlMoveRollbackConfigSwarm, - ), - ); -} - export function mysqlMoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1182,60 +544,6 @@ export const MysqlMoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlMoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlMoveUpdateConfigSwarm$outboundSchema: z.ZodType< - MysqlMoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlMoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveUpdateConfigSwarm$ { - /** @deprecated use `MysqlMoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlMoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlMoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlMoveUpdateConfigSwarm$Outbound; -} - -export function mysqlMoveUpdateConfigSwarmToJSON( - mysqlMoveUpdateConfigSwarm: MysqlMoveUpdateConfigSwarm, -): string { - return JSON.stringify( - MysqlMoveUpdateConfigSwarm$outboundSchema.parse(mysqlMoveUpdateConfigSwarm), - ); -} - export function mysqlMoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1295,109 +603,6 @@ export const MysqlMoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MysqlMoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MysqlMoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MysqlMoveModeSwarm$Outbound | null; - mysqlId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MysqlMovePlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MysqlMoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MysqlMoveRollbackConfigSwarm$Outbound | null; - serverId: string | null; - updateConfigSwarm: MysqlMoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MysqlMoveResponseBody$outboundSchema: z.ZodType< - MysqlMoveResponseBody$Outbound, - z.ZodTypeDef, - MysqlMoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MysqlMoveApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlMoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MysqlMoveModeSwarm$outboundSchema)), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlMoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MysqlMovePlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlMoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlMoveRollbackConfigSwarm$outboundSchema), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlMoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveResponseBody$ { - /** @deprecated use `MysqlMoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveResponseBody$inboundSchema; - /** @deprecated use `MysqlMoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveResponseBody$outboundSchema; - /** @deprecated use `MysqlMoveResponseBody$Outbound` instead. */ - export type Outbound = MysqlMoveResponseBody$Outbound; -} - -export function mysqlMoveResponseBodyToJSON( - mysqlMoveResponseBody: MysqlMoveResponseBody, -): string { - return JSON.stringify( - MysqlMoveResponseBody$outboundSchema.parse(mysqlMoveResponseBody), - ); -} - export function mysqlMoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1418,42 +623,6 @@ export const MysqlMoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MysqlMoveResponse$Outbound = - | MysqlMoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MysqlMoveResponse$outboundSchema: z.ZodType< - MysqlMoveResponse$Outbound, - z.ZodTypeDef, - MysqlMoveResponse -> = z.union([ - z.lazy(() => MysqlMoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlMoveResponse$ { - /** @deprecated use `MysqlMoveResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlMoveResponse$inboundSchema; - /** @deprecated use `MysqlMoveResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlMoveResponse$outboundSchema; - /** @deprecated use `MysqlMoveResponse$Outbound` instead. */ - export type Outbound = MysqlMoveResponse$Outbound; -} - -export function mysqlMoveResponseToJSON( - mysqlMoveResponse: MysqlMoveResponse, -): string { - return JSON.stringify( - MysqlMoveResponse$outboundSchema.parse(mysqlMoveResponse), - ); -} - export function mysqlMoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlone.ts b/src/models/operations/mysqlone.ts index 811f5ae..163fb64 100644 --- a/src/models/operations/mysqlone.ts +++ b/src/models/operations/mysqlone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -319,15 +319,6 @@ export type MysqlOneResponseBody = { export type MysqlOneResponse = MysqlOneResponseBody | models.ErrorT; -/** @internal */ -export const MysqlOneRequest$inboundSchema: z.ZodType< - MysqlOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mysqlId: z.string(), -}); - /** @internal */ export type MysqlOneRequest$Outbound = { mysqlId: string; @@ -342,119 +333,32 @@ export const MysqlOneRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneRequest$ { - /** @deprecated use `MysqlOneRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlOneRequest$inboundSchema; - /** @deprecated use `MysqlOneRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlOneRequest$outboundSchema; - /** @deprecated use `MysqlOneRequest$Outbound` instead. */ - export type Outbound = MysqlOneRequest$Outbound; -} - export function mysqlOneRequestToJSON( mysqlOneRequest: MysqlOneRequest, ): string { return JSON.stringify(MysqlOneRequest$outboundSchema.parse(mysqlOneRequest)); } -export function mysqlOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlOneRequest' from JSON`, - ); -} - /** @internal */ export const MysqlOneApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlOneApplicationStatus > = z.nativeEnum(MysqlOneApplicationStatus); -/** @internal */ -export const MysqlOneApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlOneApplicationStatus -> = MysqlOneApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneApplicationStatus$ { - /** @deprecated use `MysqlOneApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlOneApplicationStatus$inboundSchema; - /** @deprecated use `MysqlOneApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlOneApplicationStatus$outboundSchema; -} - /** @internal */ export const MysqlOneBackupType$inboundSchema: z.ZodNativeEnum< typeof MysqlOneBackupType > = z.nativeEnum(MysqlOneBackupType); -/** @internal */ -export const MysqlOneBackupType$outboundSchema: z.ZodNativeEnum< - typeof MysqlOneBackupType -> = MysqlOneBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneBackupType$ { - /** @deprecated use `MysqlOneBackupType$inboundSchema` instead. */ - export const inboundSchema = MysqlOneBackupType$inboundSchema; - /** @deprecated use `MysqlOneBackupType$outboundSchema` instead. */ - export const outboundSchema = MysqlOneBackupType$outboundSchema; -} - /** @internal */ export const MysqlOneDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MysqlOneDatabaseType > = z.nativeEnum(MysqlOneDatabaseType); -/** @internal */ -export const MysqlOneDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MysqlOneDatabaseType -> = MysqlOneDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneDatabaseType$ { - /** @deprecated use `MysqlOneDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MysqlOneDatabaseType$inboundSchema; - /** @deprecated use `MysqlOneDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MysqlOneDatabaseType$outboundSchema; -} - /** @internal */ export const MysqlOneMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlOneMetadataEnum > = z.nativeEnum(MysqlOneMetadataEnum); -/** @internal */ -export const MysqlOneMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlOneMetadataEnum -> = MysqlOneMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMetadataEnum$ { - /** @deprecated use `MysqlOneMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMetadataEnum$inboundSchema; - /** @deprecated use `MysqlOneMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMetadataEnum$outboundSchema; -} - /** @internal */ export const MysqlOneMariadb$inboundSchema: z.ZodType< MysqlOneMariadb, @@ -465,41 +369,6 @@ export const MysqlOneMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlOneMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlOneMariadb$outboundSchema: z.ZodType< - MysqlOneMariadb$Outbound, - z.ZodTypeDef, - MysqlOneMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMariadb$ { - /** @deprecated use `MysqlOneMariadb$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMariadb$inboundSchema; - /** @deprecated use `MysqlOneMariadb$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMariadb$outboundSchema; - /** @deprecated use `MysqlOneMariadb$Outbound` instead. */ - export type Outbound = MysqlOneMariadb$Outbound; -} - -export function mysqlOneMariadbToJSON( - mysqlOneMariadb: MysqlOneMariadb, -): string { - return JSON.stringify(MysqlOneMariadb$outboundSchema.parse(mysqlOneMariadb)); -} - export function mysqlOneMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -520,39 +389,6 @@ export const MysqlOneMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlOneMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlOneMongo$outboundSchema: z.ZodType< - MysqlOneMongo$Outbound, - z.ZodTypeDef, - MysqlOneMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMongo$ { - /** @deprecated use `MysqlOneMongo$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMongo$inboundSchema; - /** @deprecated use `MysqlOneMongo$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMongo$outboundSchema; - /** @deprecated use `MysqlOneMongo$Outbound` instead. */ - export type Outbound = MysqlOneMongo$Outbound; -} - -export function mysqlOneMongoToJSON(mysqlOneMongo: MysqlOneMongo): string { - return JSON.stringify(MysqlOneMongo$outboundSchema.parse(mysqlOneMongo)); -} - export function mysqlOneMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -572,37 +408,6 @@ export const MysqlOneMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MysqlOneMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MysqlOneMysql$outboundSchema: z.ZodType< - MysqlOneMysql$Outbound, - z.ZodTypeDef, - MysqlOneMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMysql$ { - /** @deprecated use `MysqlOneMysql$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMysql$inboundSchema; - /** @deprecated use `MysqlOneMysql$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMysql$outboundSchema; - /** @deprecated use `MysqlOneMysql$Outbound` instead. */ - export type Outbound = MysqlOneMysql$Outbound; -} - -export function mysqlOneMysqlToJSON(mysqlOneMysql: MysqlOneMysql): string { - return JSON.stringify(MysqlOneMysql$outboundSchema.parse(mysqlOneMysql)); -} - export function mysqlOneMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -622,41 +427,6 @@ export const MysqlOnePostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlOnePostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MysqlOnePostgres$outboundSchema: z.ZodType< - MysqlOnePostgres$Outbound, - z.ZodTypeDef, - MysqlOnePostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOnePostgres$ { - /** @deprecated use `MysqlOnePostgres$inboundSchema` instead. */ - export const inboundSchema = MysqlOnePostgres$inboundSchema; - /** @deprecated use `MysqlOnePostgres$outboundSchema` instead. */ - export const outboundSchema = MysqlOnePostgres$outboundSchema; - /** @deprecated use `MysqlOnePostgres$Outbound` instead. */ - export type Outbound = MysqlOnePostgres$Outbound; -} - -export function mysqlOnePostgresToJSON( - mysqlOnePostgres: MysqlOnePostgres, -): string { - return JSON.stringify( - MysqlOnePostgres$outboundSchema.parse(mysqlOnePostgres), - ); -} - export function mysqlOnePostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -679,47 +449,6 @@ export const MysqlOneMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MysqlOnePostgres$inboundSchema).optional(), }); -/** @internal */ -export type MysqlOneMetadata$Outbound = { - mariadb?: MysqlOneMariadb$Outbound | undefined; - mongo?: MysqlOneMongo$Outbound | undefined; - mysql?: MysqlOneMysql$Outbound | undefined; - postgres?: MysqlOnePostgres$Outbound | undefined; -}; - -/** @internal */ -export const MysqlOneMetadata$outboundSchema: z.ZodType< - MysqlOneMetadata$Outbound, - z.ZodTypeDef, - MysqlOneMetadata -> = z.object({ - mariadb: z.lazy(() => MysqlOneMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MysqlOneMongo$outboundSchema).optional(), - mysql: z.lazy(() => MysqlOneMysql$outboundSchema).optional(), - postgres: z.lazy(() => MysqlOnePostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMetadata$ { - /** @deprecated use `MysqlOneMetadata$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMetadata$inboundSchema; - /** @deprecated use `MysqlOneMetadata$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMetadata$outboundSchema; - /** @deprecated use `MysqlOneMetadata$Outbound` instead. */ - export type Outbound = MysqlOneMetadata$Outbound; -} - -export function mysqlOneMetadataToJSON( - mysqlOneMetadata: MysqlOneMetadata, -): string { - return JSON.stringify( - MysqlOneMetadata$outboundSchema.parse(mysqlOneMetadata), - ); -} - export function mysqlOneMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -740,40 +469,6 @@ export const MysqlOneMetadataUnion$inboundSchema: z.ZodType< MysqlOneMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MysqlOneMetadataUnion$Outbound = MysqlOneMetadata$Outbound | string; - -/** @internal */ -export const MysqlOneMetadataUnion$outboundSchema: z.ZodType< - MysqlOneMetadataUnion$Outbound, - z.ZodTypeDef, - MysqlOneMetadataUnion -> = z.union([ - z.lazy(() => MysqlOneMetadata$outboundSchema), - MysqlOneMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMetadataUnion$ { - /** @deprecated use `MysqlOneMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMetadataUnion$inboundSchema; - /** @deprecated use `MysqlOneMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMetadataUnion$outboundSchema; - /** @deprecated use `MysqlOneMetadataUnion$Outbound` instead. */ - export type Outbound = MysqlOneMetadataUnion$Outbound; -} - -export function mysqlOneMetadataUnionToJSON( - mysqlOneMetadataUnion: MysqlOneMetadataUnion, -): string { - return JSON.stringify( - MysqlOneMetadataUnion$outboundSchema.parse(mysqlOneMetadataUnion), - ); -} - export function mysqlOneMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -815,76 +510,6 @@ export const MysqlOneBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MysqlOneBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MysqlOneMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MysqlOneBackup$outboundSchema: z.ZodType< - MysqlOneBackup$Outbound, - z.ZodTypeDef, - MysqlOneBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MysqlOneBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MysqlOneDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MysqlOneMetadata$outboundSchema), - MysqlOneMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneBackup$ { - /** @deprecated use `MysqlOneBackup$inboundSchema` instead. */ - export const inboundSchema = MysqlOneBackup$inboundSchema; - /** @deprecated use `MysqlOneBackup$outboundSchema` instead. */ - export const outboundSchema = MysqlOneBackup$outboundSchema; - /** @deprecated use `MysqlOneBackup$Outbound` instead. */ - export type Outbound = MysqlOneBackup$Outbound; -} - -export function mysqlOneBackupToJSON(mysqlOneBackup: MysqlOneBackup): string { - return JSON.stringify(MysqlOneBackup$outboundSchema.parse(mysqlOneBackup)); -} - export function mysqlOneBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -909,49 +534,6 @@ export const MysqlOneProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlOneProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MysqlOneProject$outboundSchema: z.ZodType< - MysqlOneProject$Outbound, - z.ZodTypeDef, - MysqlOneProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneProject$ { - /** @deprecated use `MysqlOneProject$inboundSchema` instead. */ - export const inboundSchema = MysqlOneProject$inboundSchema; - /** @deprecated use `MysqlOneProject$outboundSchema` instead. */ - export const outboundSchema = MysqlOneProject$outboundSchema; - /** @deprecated use `MysqlOneProject$Outbound` instead. */ - export type Outbound = MysqlOneProject$Outbound; -} - -export function mysqlOneProjectToJSON( - mysqlOneProject: MysqlOneProject, -): string { - return JSON.stringify(MysqlOneProject$outboundSchema.parse(mysqlOneProject)); -} - export function mysqlOneProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -977,53 +559,6 @@ export const MysqlOneEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlOneEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MysqlOneProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MysqlOneEnvironment$outboundSchema: z.ZodType< - MysqlOneEnvironment$Outbound, - z.ZodTypeDef, - MysqlOneEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MysqlOneProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneEnvironment$ { - /** @deprecated use `MysqlOneEnvironment$inboundSchema` instead. */ - export const inboundSchema = MysqlOneEnvironment$inboundSchema; - /** @deprecated use `MysqlOneEnvironment$outboundSchema` instead. */ - export const outboundSchema = MysqlOneEnvironment$outboundSchema; - /** @deprecated use `MysqlOneEnvironment$Outbound` instead. */ - export type Outbound = MysqlOneEnvironment$Outbound; -} - -export function mysqlOneEnvironmentToJSON( - mysqlOneEnvironment: MysqlOneEnvironment, -): string { - return JSON.stringify( - MysqlOneEnvironment$outboundSchema.parse(mysqlOneEnvironment), - ); -} - export function mysqlOneEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1055,57 +590,6 @@ export const MysqlOneHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MysqlOneHealthCheckSwarm$outboundSchema: z.ZodType< - MysqlOneHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MysqlOneHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneHealthCheckSwarm$ { - /** @deprecated use `MysqlOneHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlOneHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlOneHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlOneHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlOneHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlOneHealthCheckSwarm$Outbound; -} - -export function mysqlOneHealthCheckSwarmToJSON( - mysqlOneHealthCheckSwarm: MysqlOneHealthCheckSwarm, -): string { - return JSON.stringify( - MysqlOneHealthCheckSwarm$outboundSchema.parse(mysqlOneHealthCheckSwarm), - ); -} - export function mysqlOneHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1123,33 +607,6 @@ export const MysqlOneGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlOneGlobal$Outbound = {}; - -/** @internal */ -export const MysqlOneGlobal$outboundSchema: z.ZodType< - MysqlOneGlobal$Outbound, - z.ZodTypeDef, - MysqlOneGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneGlobal$ { - /** @deprecated use `MysqlOneGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlOneGlobal$inboundSchema; - /** @deprecated use `MysqlOneGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlOneGlobal$outboundSchema; - /** @deprecated use `MysqlOneGlobal$Outbound` instead. */ - export type Outbound = MysqlOneGlobal$Outbound; -} - -export function mysqlOneGlobalToJSON(mysqlOneGlobal: MysqlOneGlobal): string { - return JSON.stringify(MysqlOneGlobal$outboundSchema.parse(mysqlOneGlobal)); -} - export function mysqlOneGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1167,37 +624,6 @@ export const MysqlOneGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlOneGlobalJob$Outbound = {}; - -/** @internal */ -export const MysqlOneGlobalJob$outboundSchema: z.ZodType< - MysqlOneGlobalJob$Outbound, - z.ZodTypeDef, - MysqlOneGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneGlobalJob$ { - /** @deprecated use `MysqlOneGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlOneGlobalJob$inboundSchema; - /** @deprecated use `MysqlOneGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlOneGlobalJob$outboundSchema; - /** @deprecated use `MysqlOneGlobalJob$Outbound` instead. */ - export type Outbound = MysqlOneGlobalJob$Outbound; -} - -export function mysqlOneGlobalJobToJSON( - mysqlOneGlobalJob: MysqlOneGlobalJob, -): string { - return JSON.stringify( - MysqlOneGlobalJob$outboundSchema.parse(mysqlOneGlobalJob), - ); -} - export function mysqlOneGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1221,45 +647,6 @@ export const MysqlOneReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MysqlOneReplicated$outboundSchema: z.ZodType< - MysqlOneReplicated$Outbound, - z.ZodTypeDef, - MysqlOneReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneReplicated$ { - /** @deprecated use `MysqlOneReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlOneReplicated$inboundSchema; - /** @deprecated use `MysqlOneReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlOneReplicated$outboundSchema; - /** @deprecated use `MysqlOneReplicated$Outbound` instead. */ - export type Outbound = MysqlOneReplicated$Outbound; -} - -export function mysqlOneReplicatedToJSON( - mysqlOneReplicated: MysqlOneReplicated, -): string { - return JSON.stringify( - MysqlOneReplicated$outboundSchema.parse(mysqlOneReplicated), - ); -} - export function mysqlOneReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1285,48 +672,6 @@ export const MysqlOneReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MysqlOneReplicatedJob$outboundSchema: z.ZodType< - MysqlOneReplicatedJob$Outbound, - z.ZodTypeDef, - MysqlOneReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneReplicatedJob$ { - /** @deprecated use `MysqlOneReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlOneReplicatedJob$inboundSchema; - /** @deprecated use `MysqlOneReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MysqlOneReplicatedJob$outboundSchema; - /** @deprecated use `MysqlOneReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlOneReplicatedJob$Outbound; -} - -export function mysqlOneReplicatedJobToJSON( - mysqlOneReplicatedJob: MysqlOneReplicatedJob, -): string { - return JSON.stringify( - MysqlOneReplicatedJob$outboundSchema.parse(mysqlOneReplicatedJob), - ); -} - export function mysqlOneReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1356,54 +701,6 @@ export const MysqlOneModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneModeSwarm$Outbound = { - Global?: MysqlOneGlobal$Outbound | undefined; - GlobalJob?: MysqlOneGlobalJob$Outbound | undefined; - Replicated?: MysqlOneReplicated$Outbound | undefined; - ReplicatedJob?: MysqlOneReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MysqlOneModeSwarm$outboundSchema: z.ZodType< - MysqlOneModeSwarm$Outbound, - z.ZodTypeDef, - MysqlOneModeSwarm -> = z.object({ - global: z.lazy(() => MysqlOneGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MysqlOneGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MysqlOneReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MysqlOneReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneModeSwarm$ { - /** @deprecated use `MysqlOneModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlOneModeSwarm$inboundSchema; - /** @deprecated use `MysqlOneModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlOneModeSwarm$outboundSchema; - /** @deprecated use `MysqlOneModeSwarm$Outbound` instead. */ - export type Outbound = MysqlOneModeSwarm$Outbound; -} - -export function mysqlOneModeSwarmToJSON( - mysqlOneModeSwarm: MysqlOneModeSwarm, -): string { - return JSON.stringify( - MysqlOneModeSwarm$outboundSchema.parse(mysqlOneModeSwarm), - ); -} - export function mysqlOneModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1419,41 +716,10 @@ export const MysqlOneServiceType$inboundSchema: z.ZodNativeEnum< typeof MysqlOneServiceType > = z.nativeEnum(MysqlOneServiceType); -/** @internal */ -export const MysqlOneServiceType$outboundSchema: z.ZodNativeEnum< - typeof MysqlOneServiceType -> = MysqlOneServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneServiceType$ { - /** @deprecated use `MysqlOneServiceType$inboundSchema` instead. */ - export const inboundSchema = MysqlOneServiceType$inboundSchema; - /** @deprecated use `MysqlOneServiceType$outboundSchema` instead. */ - export const outboundSchema = MysqlOneServiceType$outboundSchema; -} - /** @internal */ export const MysqlOneType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(MysqlOneType); -/** @internal */ -export const MysqlOneType$outboundSchema: z.ZodNativeEnum = - MysqlOneType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneType$ { - /** @deprecated use `MysqlOneType$inboundSchema` instead. */ - export const inboundSchema = MysqlOneType$inboundSchema; - /** @deprecated use `MysqlOneType$outboundSchema` instead. */ - export const outboundSchema = MysqlOneType$outboundSchema; -} - /** @internal */ export const MysqlOneMount$inboundSchema: z.ZodType< MysqlOneMount, @@ -1477,65 +743,6 @@ export const MysqlOneMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MysqlOneMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MysqlOneMount$outboundSchema: z.ZodType< - MysqlOneMount$Outbound, - z.ZodTypeDef, - MysqlOneMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MysqlOneServiceType$outboundSchema, - type: MysqlOneType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMount$ { - /** @deprecated use `MysqlOneMount$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMount$inboundSchema; - /** @deprecated use `MysqlOneMount$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMount$outboundSchema; - /** @deprecated use `MysqlOneMount$Outbound` instead. */ - export type Outbound = MysqlOneMount$Outbound; -} - -export function mysqlOneMountToJSON(mysqlOneMount: MysqlOneMount): string { - return JSON.stringify(MysqlOneMount$outboundSchema.parse(mysqlOneMount)); -} - export function mysqlOneMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1553,37 +760,6 @@ export const MysqlOneDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlOneDriverOpts$Outbound = {}; - -/** @internal */ -export const MysqlOneDriverOpts$outboundSchema: z.ZodType< - MysqlOneDriverOpts$Outbound, - z.ZodTypeDef, - MysqlOneDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneDriverOpts$ { - /** @deprecated use `MysqlOneDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlOneDriverOpts$inboundSchema; - /** @deprecated use `MysqlOneDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlOneDriverOpts$outboundSchema; - /** @deprecated use `MysqlOneDriverOpts$Outbound` instead. */ - export type Outbound = MysqlOneDriverOpts$Outbound; -} - -export function mysqlOneDriverOptsToJSON( - mysqlOneDriverOpts: MysqlOneDriverOpts, -): string { - return JSON.stringify( - MysqlOneDriverOpts$outboundSchema.parse(mysqlOneDriverOpts), - ); -} - export function mysqlOneDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1611,51 +787,6 @@ export const MysqlOneNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MysqlOneDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MysqlOneNetworkSwarm$outboundSchema: z.ZodType< - MysqlOneNetworkSwarm$Outbound, - z.ZodTypeDef, - MysqlOneNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MysqlOneDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneNetworkSwarm$ { - /** @deprecated use `MysqlOneNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlOneNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlOneNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlOneNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlOneNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlOneNetworkSwarm$Outbound; -} - -export function mysqlOneNetworkSwarmToJSON( - mysqlOneNetworkSwarm: MysqlOneNetworkSwarm, -): string { - return JSON.stringify( - MysqlOneNetworkSwarm$outboundSchema.parse(mysqlOneNetworkSwarm), - ); -} - export function mysqlOneNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1681,48 +812,6 @@ export const MysqlOnePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOnePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MysqlOnePlatform$outboundSchema: z.ZodType< - MysqlOnePlatform$Outbound, - z.ZodTypeDef, - MysqlOnePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOnePlatform$ { - /** @deprecated use `MysqlOnePlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlOnePlatform$inboundSchema; - /** @deprecated use `MysqlOnePlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlOnePlatform$outboundSchema; - /** @deprecated use `MysqlOnePlatform$Outbound` instead. */ - export type Outbound = MysqlOnePlatform$Outbound; -} - -export function mysqlOnePlatformToJSON( - mysqlOnePlatform: MysqlOnePlatform, -): string { - return JSON.stringify( - MysqlOnePlatform$outboundSchema.parse(mysqlOnePlatform), - ); -} - export function mysqlOnePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1746,41 +835,6 @@ export const MysqlOneSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MysqlOneSpread$outboundSchema: z.ZodType< - MysqlOneSpread$Outbound, - z.ZodTypeDef, - MysqlOneSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneSpread$ { - /** @deprecated use `MysqlOneSpread$inboundSchema` instead. */ - export const inboundSchema = MysqlOneSpread$inboundSchema; - /** @deprecated use `MysqlOneSpread$outboundSchema` instead. */ - export const outboundSchema = MysqlOneSpread$outboundSchema; - /** @deprecated use `MysqlOneSpread$Outbound` instead. */ - export type Outbound = MysqlOneSpread$Outbound; -} - -export function mysqlOneSpreadToJSON(mysqlOneSpread: MysqlOneSpread): string { - return JSON.stringify(MysqlOneSpread$outboundSchema.parse(mysqlOneSpread)); -} - export function mysqlOneSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1804,45 +858,6 @@ export const MysqlOnePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOnePreference$Outbound = { - Spread: MysqlOneSpread$Outbound; -}; - -/** @internal */ -export const MysqlOnePreference$outboundSchema: z.ZodType< - MysqlOnePreference$Outbound, - z.ZodTypeDef, - MysqlOnePreference -> = z.object({ - spread: z.lazy(() => MysqlOneSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOnePreference$ { - /** @deprecated use `MysqlOnePreference$inboundSchema` instead. */ - export const inboundSchema = MysqlOnePreference$inboundSchema; - /** @deprecated use `MysqlOnePreference$outboundSchema` instead. */ - export const outboundSchema = MysqlOnePreference$outboundSchema; - /** @deprecated use `MysqlOnePreference$Outbound` instead. */ - export type Outbound = MysqlOnePreference$Outbound; -} - -export function mysqlOnePreferenceToJSON( - mysqlOnePreference: MysqlOnePreference, -): string { - return JSON.stringify( - MysqlOnePreference$outboundSchema.parse(mysqlOnePreference), - ); -} - export function mysqlOnePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1868,59 +883,10 @@ export const MysqlOnePlacementSwarm$inboundSchema: z.ZodType< return remap$(v, { "Constraints": "constraints", "MaxReplicas": "maxReplicas", - "Platforms": "platforms", - "Preferences": "preferences", - }); -}); - -/** @internal */ -export type MysqlOnePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MysqlOnePlacementSwarm$outboundSchema: z.ZodType< - MysqlOnePlacementSwarm$Outbound, - z.ZodTypeDef, - MysqlOnePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MysqlOnePlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => MysqlOnePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOnePlacementSwarm$ { - /** @deprecated use `MysqlOnePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlOnePlacementSwarm$inboundSchema; - /** @deprecated use `MysqlOnePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlOnePlacementSwarm$outboundSchema; - /** @deprecated use `MysqlOnePlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlOnePlacementSwarm$Outbound; -} - -export function mysqlOnePlacementSwarmToJSON( - mysqlOnePlacementSwarm: MysqlOnePlacementSwarm, -): string { - return JSON.stringify( - MysqlOnePlacementSwarm$outboundSchema.parse(mysqlOnePlacementSwarm), - ); -} + "Platforms": "platforms", + "Preferences": "preferences", + }); +}); export function mysqlOnePlacementSwarmFromJSON( jsonString: string, @@ -1951,54 +917,6 @@ export const MysqlOneRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MysqlOneRestartPolicySwarm$outboundSchema: z.ZodType< - MysqlOneRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MysqlOneRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneRestartPolicySwarm$ { - /** @deprecated use `MysqlOneRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlOneRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlOneRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlOneRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlOneRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlOneRestartPolicySwarm$Outbound; -} - -export function mysqlOneRestartPolicySwarmToJSON( - mysqlOneRestartPolicySwarm: MysqlOneRestartPolicySwarm, -): string { - return JSON.stringify( - MysqlOneRestartPolicySwarm$outboundSchema.parse(mysqlOneRestartPolicySwarm), - ); -} - export function mysqlOneRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2032,62 +950,6 @@ export const MysqlOneRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlOneRollbackConfigSwarm$outboundSchema: z.ZodType< - MysqlOneRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlOneRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneRollbackConfigSwarm$ { - /** @deprecated use `MysqlOneRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlOneRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlOneRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlOneRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlOneRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlOneRollbackConfigSwarm$Outbound; -} - -export function mysqlOneRollbackConfigSwarmToJSON( - mysqlOneRollbackConfigSwarm: MysqlOneRollbackConfigSwarm, -): string { - return JSON.stringify( - MysqlOneRollbackConfigSwarm$outboundSchema.parse( - mysqlOneRollbackConfigSwarm, - ), - ); -} - export function mysqlOneRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2103,22 +965,6 @@ export const MysqlOneMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlOneMetricsConfigEnum > = z.nativeEnum(MysqlOneMetricsConfigEnum); -/** @internal */ -export const MysqlOneMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlOneMetricsConfigEnum -> = MysqlOneMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMetricsConfigEnum$ { - /** @deprecated use `MysqlOneMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMetricsConfigEnum$inboundSchema; - /** @deprecated use `MysqlOneMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MysqlOneMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlOneMetricsConfigUnion1, @@ -2131,48 +977,6 @@ export const MysqlOneMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlOneMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MysqlOneMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MysqlOneMetricsConfigUnion1$outboundSchema: z.ZodType< - MysqlOneMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MysqlOneMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlOneMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMetricsConfigUnion1$ { - /** @deprecated use `MysqlOneMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MysqlOneMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MysqlOneMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MysqlOneMetricsConfigUnion1$Outbound; -} - -export function mysqlOneMetricsConfigUnion1ToJSON( - mysqlOneMetricsConfigUnion1: MysqlOneMetricsConfigUnion1, -): string { - return JSON.stringify( - MysqlOneMetricsConfigUnion1$outboundSchema.parse( - mysqlOneMetricsConfigUnion1, - ), - ); -} - export function mysqlOneMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2199,54 +1003,6 @@ export const MysqlOneMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MysqlOneMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MysqlOneMetricsConfigUnion2$outboundSchema: z.ZodType< - MysqlOneMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MysqlOneMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneMetricsConfigUnion2$ { - /** @deprecated use `MysqlOneMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MysqlOneMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MysqlOneMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MysqlOneMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MysqlOneMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MysqlOneMetricsConfigUnion2$Outbound; -} - -export function mysqlOneMetricsConfigUnion2ToJSON( - mysqlOneMetricsConfigUnion2: MysqlOneMetricsConfigUnion2, -): string { - return JSON.stringify( - MysqlOneMetricsConfigUnion2$outboundSchema.parse( - mysqlOneMetricsConfigUnion2, - ), - ); -} - export function mysqlOneMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2262,22 +1018,6 @@ export const MysqlOneServerStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlOneServerStatus > = z.nativeEnum(MysqlOneServerStatus); -/** @internal */ -export const MysqlOneServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlOneServerStatus -> = MysqlOneServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneServerStatus$ { - /** @deprecated use `MysqlOneServerStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlOneServerStatus$inboundSchema; - /** @deprecated use `MysqlOneServerStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlOneServerStatus$outboundSchema; -} - /** @internal */ export const MysqlOneServer$inboundSchema: z.ZodType< MysqlOneServer, @@ -2309,74 +1049,6 @@ export const MysqlOneServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MysqlOneServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MysqlOneServer$outboundSchema: z.ZodType< - MysqlOneServer$Outbound, - z.ZodTypeDef, - MysqlOneServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MysqlOneServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneServer$ { - /** @deprecated use `MysqlOneServer$inboundSchema` instead. */ - export const inboundSchema = MysqlOneServer$inboundSchema; - /** @deprecated use `MysqlOneServer$outboundSchema` instead. */ - export const outboundSchema = MysqlOneServer$outboundSchema; - /** @deprecated use `MysqlOneServer$Outbound` instead. */ - export type Outbound = MysqlOneServer$Outbound; -} - -export function mysqlOneServerToJSON(mysqlOneServer: MysqlOneServer): string { - return JSON.stringify(MysqlOneServer$outboundSchema.parse(mysqlOneServer)); -} - export function mysqlOneServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2410,60 +1082,6 @@ export const MysqlOneUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlOneUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlOneUpdateConfigSwarm$outboundSchema: z.ZodType< - MysqlOneUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlOneUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneUpdateConfigSwarm$ { - /** @deprecated use `MysqlOneUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlOneUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlOneUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlOneUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlOneUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlOneUpdateConfigSwarm$Outbound; -} - -export function mysqlOneUpdateConfigSwarmToJSON( - mysqlOneUpdateConfigSwarm: MysqlOneUpdateConfigSwarm, -): string { - return JSON.stringify( - MysqlOneUpdateConfigSwarm$outboundSchema.parse(mysqlOneUpdateConfigSwarm), - ); -} - export function mysqlOneUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2527,117 +1145,6 @@ export const MysqlOneResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MysqlOneResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MysqlOneEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MysqlOneHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MysqlOneModeSwarm$Outbound | null; - mounts: Array; - mysqlId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MysqlOnePlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MysqlOneRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MysqlOneRollbackConfigSwarm$Outbound | null; - server: MysqlOneServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MysqlOneUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MysqlOneResponseBody$outboundSchema: z.ZodType< - MysqlOneResponseBody$Outbound, - z.ZodTypeDef, - MysqlOneResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MysqlOneApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MysqlOneBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MysqlOneEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlOneHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MysqlOneModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MysqlOneMount$outboundSchema)), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlOneNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MysqlOnePlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlOneRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlOneRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MysqlOneServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlOneUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneResponseBody$ { - /** @deprecated use `MysqlOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = MysqlOneResponseBody$inboundSchema; - /** @deprecated use `MysqlOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = MysqlOneResponseBody$outboundSchema; - /** @deprecated use `MysqlOneResponseBody$Outbound` instead. */ - export type Outbound = MysqlOneResponseBody$Outbound; -} - -export function mysqlOneResponseBodyToJSON( - mysqlOneResponseBody: MysqlOneResponseBody, -): string { - return JSON.stringify( - MysqlOneResponseBody$outboundSchema.parse(mysqlOneResponseBody), - ); -} - export function mysqlOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2658,42 +1165,6 @@ export const MysqlOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MysqlOneResponse$Outbound = - | MysqlOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MysqlOneResponse$outboundSchema: z.ZodType< - MysqlOneResponse$Outbound, - z.ZodTypeDef, - MysqlOneResponse -> = z.union([ - z.lazy(() => MysqlOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlOneResponse$ { - /** @deprecated use `MysqlOneResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlOneResponse$inboundSchema; - /** @deprecated use `MysqlOneResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlOneResponse$outboundSchema; - /** @deprecated use `MysqlOneResponse$Outbound` instead. */ - export type Outbound = MysqlOneResponse$Outbound; -} - -export function mysqlOneResponseToJSON( - mysqlOneResponse: MysqlOneResponse, -): string { - return JSON.stringify( - MysqlOneResponse$outboundSchema.parse(mysqlOneResponse), - ); -} - export function mysqlOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlrebuild.ts b/src/models/operations/mysqlrebuild.ts index 5e0a09b..6a914cb 100644 --- a/src/models/operations/mysqlrebuild.ts +++ b/src/models/operations/mysqlrebuild.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type MysqlRebuildRequest = { export type MysqlRebuildResponse = models.ErrorT | boolean; -/** @internal */ -export const MysqlRebuildRequest$inboundSchema: z.ZodType< - MysqlRebuildRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mysqlId: z.string(), -}); - /** @internal */ export type MysqlRebuildRequest$Outbound = { mysqlId: string; @@ -37,19 +28,6 @@ export const MysqlRebuildRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRebuildRequest$ { - /** @deprecated use `MysqlRebuildRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlRebuildRequest$inboundSchema; - /** @deprecated use `MysqlRebuildRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlRebuildRequest$outboundSchema; - /** @deprecated use `MysqlRebuildRequest$Outbound` instead. */ - export type Outbound = MysqlRebuildRequest$Outbound; -} - export function mysqlRebuildRequestToJSON( mysqlRebuildRequest: MysqlRebuildRequest, ): string { @@ -58,16 +36,6 @@ export function mysqlRebuildRequestToJSON( ); } -export function mysqlRebuildRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlRebuildRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlRebuildRequest' from JSON`, - ); -} - /** @internal */ export const MysqlRebuildResponse$inboundSchema: z.ZodType< MysqlRebuildResponse, @@ -75,37 +43,6 @@ export const MysqlRebuildResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MysqlRebuildResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MysqlRebuildResponse$outboundSchema: z.ZodType< - MysqlRebuildResponse$Outbound, - z.ZodTypeDef, - MysqlRebuildResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRebuildResponse$ { - /** @deprecated use `MysqlRebuildResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlRebuildResponse$inboundSchema; - /** @deprecated use `MysqlRebuildResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlRebuildResponse$outboundSchema; - /** @deprecated use `MysqlRebuildResponse$Outbound` instead. */ - export type Outbound = MysqlRebuildResponse$Outbound; -} - -export function mysqlRebuildResponseToJSON( - mysqlRebuildResponse: MysqlRebuildResponse, -): string { - return JSON.stringify( - MysqlRebuildResponse$outboundSchema.parse(mysqlRebuildResponse), - ); -} - export function mysqlRebuildResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlreload.ts b/src/models/operations/mysqlreload.ts index 2318795..127954a 100644 --- a/src/models/operations/mysqlreload.ts +++ b/src/models/operations/mysqlreload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type MysqlReloadRequest = { export type MysqlReloadResponse = models.ErrorT | boolean; -/** @internal */ -export const MysqlReloadRequest$inboundSchema: z.ZodType< - MysqlReloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - mysqlId: z.string(), -}); - /** @internal */ export type MysqlReloadRequest$Outbound = { appName: string; @@ -41,19 +31,6 @@ export const MysqlReloadRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlReloadRequest$ { - /** @deprecated use `MysqlReloadRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlReloadRequest$inboundSchema; - /** @deprecated use `MysqlReloadRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlReloadRequest$outboundSchema; - /** @deprecated use `MysqlReloadRequest$Outbound` instead. */ - export type Outbound = MysqlReloadRequest$Outbound; -} - export function mysqlReloadRequestToJSON( mysqlReloadRequest: MysqlReloadRequest, ): string { @@ -62,16 +39,6 @@ export function mysqlReloadRequestToJSON( ); } -export function mysqlReloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlReloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlReloadRequest' from JSON`, - ); -} - /** @internal */ export const MysqlReloadResponse$inboundSchema: z.ZodType< MysqlReloadResponse, @@ -79,37 +46,6 @@ export const MysqlReloadResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MysqlReloadResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MysqlReloadResponse$outboundSchema: z.ZodType< - MysqlReloadResponse$Outbound, - z.ZodTypeDef, - MysqlReloadResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlReloadResponse$ { - /** @deprecated use `MysqlReloadResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlReloadResponse$inboundSchema; - /** @deprecated use `MysqlReloadResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlReloadResponse$outboundSchema; - /** @deprecated use `MysqlReloadResponse$Outbound` instead. */ - export type Outbound = MysqlReloadResponse$Outbound; -} - -export function mysqlReloadResponseToJSON( - mysqlReloadResponse: MysqlReloadResponse, -): string { - return JSON.stringify( - MysqlReloadResponse$outboundSchema.parse(mysqlReloadResponse), - ); -} - export function mysqlReloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlremove.ts b/src/models/operations/mysqlremove.ts index 0886375..31da262 100644 --- a/src/models/operations/mysqlremove.ts +++ b/src/models/operations/mysqlremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -327,15 +327,6 @@ export type MysqlRemoveResponseBody = { export type MysqlRemoveResponse = MysqlRemoveResponseBody | models.ErrorT; -/** @internal */ -export const MysqlRemoveRequest$inboundSchema: z.ZodType< - MysqlRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mysqlId: z.string(), -}); - /** @internal */ export type MysqlRemoveRequest$Outbound = { mysqlId: string; @@ -350,19 +341,6 @@ export const MysqlRemoveRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveRequest$ { - /** @deprecated use `MysqlRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveRequest$inboundSchema; - /** @deprecated use `MysqlRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveRequest$outboundSchema; - /** @deprecated use `MysqlRemoveRequest$Outbound` instead. */ - export type Outbound = MysqlRemoveRequest$Outbound; -} - export function mysqlRemoveRequestToJSON( mysqlRemoveRequest: MysqlRemoveRequest, ): string { @@ -371,100 +349,26 @@ export function mysqlRemoveRequestToJSON( ); } -export function mysqlRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlRemoveRequest' from JSON`, - ); -} - /** @internal */ export const MysqlRemoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlRemoveApplicationStatus > = z.nativeEnum(MysqlRemoveApplicationStatus); -/** @internal */ -export const MysqlRemoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlRemoveApplicationStatus -> = MysqlRemoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveApplicationStatus$ { - /** @deprecated use `MysqlRemoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveApplicationStatus$inboundSchema; - /** @deprecated use `MysqlRemoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveApplicationStatus$outboundSchema; -} - /** @internal */ export const MysqlRemoveBackupType$inboundSchema: z.ZodNativeEnum< typeof MysqlRemoveBackupType > = z.nativeEnum(MysqlRemoveBackupType); -/** @internal */ -export const MysqlRemoveBackupType$outboundSchema: z.ZodNativeEnum< - typeof MysqlRemoveBackupType -> = MysqlRemoveBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveBackupType$ { - /** @deprecated use `MysqlRemoveBackupType$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveBackupType$inboundSchema; - /** @deprecated use `MysqlRemoveBackupType$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveBackupType$outboundSchema; -} - /** @internal */ export const MysqlRemoveDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MysqlRemoveDatabaseType > = z.nativeEnum(MysqlRemoveDatabaseType); -/** @internal */ -export const MysqlRemoveDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MysqlRemoveDatabaseType -> = MysqlRemoveDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveDatabaseType$ { - /** @deprecated use `MysqlRemoveDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveDatabaseType$inboundSchema; - /** @deprecated use `MysqlRemoveDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveDatabaseType$outboundSchema; -} - /** @internal */ export const MysqlRemoveMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlRemoveMetadataEnum > = z.nativeEnum(MysqlRemoveMetadataEnum); -/** @internal */ -export const MysqlRemoveMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlRemoveMetadataEnum -> = MysqlRemoveMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMetadataEnum$ { - /** @deprecated use `MysqlRemoveMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMetadataEnum$inboundSchema; - /** @deprecated use `MysqlRemoveMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMetadataEnum$outboundSchema; -} - /** @internal */ export const MysqlRemoveMariadb$inboundSchema: z.ZodType< MysqlRemoveMariadb, @@ -475,43 +379,6 @@ export const MysqlRemoveMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlRemoveMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlRemoveMariadb$outboundSchema: z.ZodType< - MysqlRemoveMariadb$Outbound, - z.ZodTypeDef, - MysqlRemoveMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMariadb$ { - /** @deprecated use `MysqlRemoveMariadb$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMariadb$inboundSchema; - /** @deprecated use `MysqlRemoveMariadb$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMariadb$outboundSchema; - /** @deprecated use `MysqlRemoveMariadb$Outbound` instead. */ - export type Outbound = MysqlRemoveMariadb$Outbound; -} - -export function mysqlRemoveMariadbToJSON( - mysqlRemoveMariadb: MysqlRemoveMariadb, -): string { - return JSON.stringify( - MysqlRemoveMariadb$outboundSchema.parse(mysqlRemoveMariadb), - ); -} - export function mysqlRemoveMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -532,43 +399,6 @@ export const MysqlRemoveMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlRemoveMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlRemoveMongo$outboundSchema: z.ZodType< - MysqlRemoveMongo$Outbound, - z.ZodTypeDef, - MysqlRemoveMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMongo$ { - /** @deprecated use `MysqlRemoveMongo$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMongo$inboundSchema; - /** @deprecated use `MysqlRemoveMongo$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMongo$outboundSchema; - /** @deprecated use `MysqlRemoveMongo$Outbound` instead. */ - export type Outbound = MysqlRemoveMongo$Outbound; -} - -export function mysqlRemoveMongoToJSON( - mysqlRemoveMongo: MysqlRemoveMongo, -): string { - return JSON.stringify( - MysqlRemoveMongo$outboundSchema.parse(mysqlRemoveMongo), - ); -} - export function mysqlRemoveMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -588,41 +418,6 @@ export const MysqlRemoveMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MysqlRemoveMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MysqlRemoveMysql$outboundSchema: z.ZodType< - MysqlRemoveMysql$Outbound, - z.ZodTypeDef, - MysqlRemoveMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMysql$ { - /** @deprecated use `MysqlRemoveMysql$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMysql$inboundSchema; - /** @deprecated use `MysqlRemoveMysql$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMysql$outboundSchema; - /** @deprecated use `MysqlRemoveMysql$Outbound` instead. */ - export type Outbound = MysqlRemoveMysql$Outbound; -} - -export function mysqlRemoveMysqlToJSON( - mysqlRemoveMysql: MysqlRemoveMysql, -): string { - return JSON.stringify( - MysqlRemoveMysql$outboundSchema.parse(mysqlRemoveMysql), - ); -} - export function mysqlRemoveMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -642,41 +437,6 @@ export const MysqlRemovePostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlRemovePostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MysqlRemovePostgres$outboundSchema: z.ZodType< - MysqlRemovePostgres$Outbound, - z.ZodTypeDef, - MysqlRemovePostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemovePostgres$ { - /** @deprecated use `MysqlRemovePostgres$inboundSchema` instead. */ - export const inboundSchema = MysqlRemovePostgres$inboundSchema; - /** @deprecated use `MysqlRemovePostgres$outboundSchema` instead. */ - export const outboundSchema = MysqlRemovePostgres$outboundSchema; - /** @deprecated use `MysqlRemovePostgres$Outbound` instead. */ - export type Outbound = MysqlRemovePostgres$Outbound; -} - -export function mysqlRemovePostgresToJSON( - mysqlRemovePostgres: MysqlRemovePostgres, -): string { - return JSON.stringify( - MysqlRemovePostgres$outboundSchema.parse(mysqlRemovePostgres), - ); -} - export function mysqlRemovePostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -699,47 +459,6 @@ export const MysqlRemoveMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MysqlRemovePostgres$inboundSchema).optional(), }); -/** @internal */ -export type MysqlRemoveMetadata$Outbound = { - mariadb?: MysqlRemoveMariadb$Outbound | undefined; - mongo?: MysqlRemoveMongo$Outbound | undefined; - mysql?: MysqlRemoveMysql$Outbound | undefined; - postgres?: MysqlRemovePostgres$Outbound | undefined; -}; - -/** @internal */ -export const MysqlRemoveMetadata$outboundSchema: z.ZodType< - MysqlRemoveMetadata$Outbound, - z.ZodTypeDef, - MysqlRemoveMetadata -> = z.object({ - mariadb: z.lazy(() => MysqlRemoveMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MysqlRemoveMongo$outboundSchema).optional(), - mysql: z.lazy(() => MysqlRemoveMysql$outboundSchema).optional(), - postgres: z.lazy(() => MysqlRemovePostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMetadata$ { - /** @deprecated use `MysqlRemoveMetadata$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMetadata$inboundSchema; - /** @deprecated use `MysqlRemoveMetadata$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMetadata$outboundSchema; - /** @deprecated use `MysqlRemoveMetadata$Outbound` instead. */ - export type Outbound = MysqlRemoveMetadata$Outbound; -} - -export function mysqlRemoveMetadataToJSON( - mysqlRemoveMetadata: MysqlRemoveMetadata, -): string { - return JSON.stringify( - MysqlRemoveMetadata$outboundSchema.parse(mysqlRemoveMetadata), - ); -} - export function mysqlRemoveMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -760,42 +479,6 @@ export const MysqlRemoveMetadataUnion$inboundSchema: z.ZodType< MysqlRemoveMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MysqlRemoveMetadataUnion$Outbound = - | MysqlRemoveMetadata$Outbound - | string; - -/** @internal */ -export const MysqlRemoveMetadataUnion$outboundSchema: z.ZodType< - MysqlRemoveMetadataUnion$Outbound, - z.ZodTypeDef, - MysqlRemoveMetadataUnion -> = z.union([ - z.lazy(() => MysqlRemoveMetadata$outboundSchema), - MysqlRemoveMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMetadataUnion$ { - /** @deprecated use `MysqlRemoveMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMetadataUnion$inboundSchema; - /** @deprecated use `MysqlRemoveMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMetadataUnion$outboundSchema; - /** @deprecated use `MysqlRemoveMetadataUnion$Outbound` instead. */ - export type Outbound = MysqlRemoveMetadataUnion$Outbound; -} - -export function mysqlRemoveMetadataUnionToJSON( - mysqlRemoveMetadataUnion: MysqlRemoveMetadataUnion, -): string { - return JSON.stringify( - MysqlRemoveMetadataUnion$outboundSchema.parse(mysqlRemoveMetadataUnion), - ); -} - export function mysqlRemoveMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -837,80 +520,6 @@ export const MysqlRemoveBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MysqlRemoveBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MysqlRemoveMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MysqlRemoveBackup$outboundSchema: z.ZodType< - MysqlRemoveBackup$Outbound, - z.ZodTypeDef, - MysqlRemoveBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MysqlRemoveBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MysqlRemoveDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MysqlRemoveMetadata$outboundSchema), - MysqlRemoveMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveBackup$ { - /** @deprecated use `MysqlRemoveBackup$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveBackup$inboundSchema; - /** @deprecated use `MysqlRemoveBackup$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveBackup$outboundSchema; - /** @deprecated use `MysqlRemoveBackup$Outbound` instead. */ - export type Outbound = MysqlRemoveBackup$Outbound; -} - -export function mysqlRemoveBackupToJSON( - mysqlRemoveBackup: MysqlRemoveBackup, -): string { - return JSON.stringify( - MysqlRemoveBackup$outboundSchema.parse(mysqlRemoveBackup), - ); -} - export function mysqlRemoveBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -935,51 +544,6 @@ export const MysqlRemoveProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlRemoveProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MysqlRemoveProject$outboundSchema: z.ZodType< - MysqlRemoveProject$Outbound, - z.ZodTypeDef, - MysqlRemoveProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveProject$ { - /** @deprecated use `MysqlRemoveProject$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveProject$inboundSchema; - /** @deprecated use `MysqlRemoveProject$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveProject$outboundSchema; - /** @deprecated use `MysqlRemoveProject$Outbound` instead. */ - export type Outbound = MysqlRemoveProject$Outbound; -} - -export function mysqlRemoveProjectToJSON( - mysqlRemoveProject: MysqlRemoveProject, -): string { - return JSON.stringify( - MysqlRemoveProject$outboundSchema.parse(mysqlRemoveProject), - ); -} - export function mysqlRemoveProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1005,53 +569,6 @@ export const MysqlRemoveEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlRemoveEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MysqlRemoveProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MysqlRemoveEnvironment$outboundSchema: z.ZodType< - MysqlRemoveEnvironment$Outbound, - z.ZodTypeDef, - MysqlRemoveEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MysqlRemoveProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveEnvironment$ { - /** @deprecated use `MysqlRemoveEnvironment$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveEnvironment$inboundSchema; - /** @deprecated use `MysqlRemoveEnvironment$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveEnvironment$outboundSchema; - /** @deprecated use `MysqlRemoveEnvironment$Outbound` instead. */ - export type Outbound = MysqlRemoveEnvironment$Outbound; -} - -export function mysqlRemoveEnvironmentToJSON( - mysqlRemoveEnvironment: MysqlRemoveEnvironment, -): string { - return JSON.stringify( - MysqlRemoveEnvironment$outboundSchema.parse(mysqlRemoveEnvironment), - ); -} - export function mysqlRemoveEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1083,59 +600,6 @@ export const MysqlRemoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MysqlRemoveHealthCheckSwarm$outboundSchema: z.ZodType< - MysqlRemoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MysqlRemoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveHealthCheckSwarm$ { - /** @deprecated use `MysqlRemoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlRemoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlRemoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlRemoveHealthCheckSwarm$Outbound; -} - -export function mysqlRemoveHealthCheckSwarmToJSON( - mysqlRemoveHealthCheckSwarm: MysqlRemoveHealthCheckSwarm, -): string { - return JSON.stringify( - MysqlRemoveHealthCheckSwarm$outboundSchema.parse( - mysqlRemoveHealthCheckSwarm, - ), - ); -} - export function mysqlRemoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1153,37 +617,6 @@ export const MysqlRemoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlRemoveGlobal$Outbound = {}; - -/** @internal */ -export const MysqlRemoveGlobal$outboundSchema: z.ZodType< - MysqlRemoveGlobal$Outbound, - z.ZodTypeDef, - MysqlRemoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveGlobal$ { - /** @deprecated use `MysqlRemoveGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveGlobal$inboundSchema; - /** @deprecated use `MysqlRemoveGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveGlobal$outboundSchema; - /** @deprecated use `MysqlRemoveGlobal$Outbound` instead. */ - export type Outbound = MysqlRemoveGlobal$Outbound; -} - -export function mysqlRemoveGlobalToJSON( - mysqlRemoveGlobal: MysqlRemoveGlobal, -): string { - return JSON.stringify( - MysqlRemoveGlobal$outboundSchema.parse(mysqlRemoveGlobal), - ); -} - export function mysqlRemoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1195,42 +628,11 @@ export function mysqlRemoveGlobalFromJSON( } /** @internal */ -export const MysqlRemoveGlobalJob$inboundSchema: z.ZodType< - MysqlRemoveGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MysqlRemoveGlobalJob$Outbound = {}; - -/** @internal */ -export const MysqlRemoveGlobalJob$outboundSchema: z.ZodType< - MysqlRemoveGlobalJob$Outbound, - z.ZodTypeDef, - MysqlRemoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveGlobalJob$ { - /** @deprecated use `MysqlRemoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveGlobalJob$inboundSchema; - /** @deprecated use `MysqlRemoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveGlobalJob$outboundSchema; - /** @deprecated use `MysqlRemoveGlobalJob$Outbound` instead. */ - export type Outbound = MysqlRemoveGlobalJob$Outbound; -} - -export function mysqlRemoveGlobalJobToJSON( - mysqlRemoveGlobalJob: MysqlRemoveGlobalJob, -): string { - return JSON.stringify( - MysqlRemoveGlobalJob$outboundSchema.parse(mysqlRemoveGlobalJob), - ); -} +export const MysqlRemoveGlobalJob$inboundSchema: z.ZodType< + MysqlRemoveGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); export function mysqlRemoveGlobalJobFromJSON( jsonString: string, @@ -1255,45 +657,6 @@ export const MysqlRemoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MysqlRemoveReplicated$outboundSchema: z.ZodType< - MysqlRemoveReplicated$Outbound, - z.ZodTypeDef, - MysqlRemoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveReplicated$ { - /** @deprecated use `MysqlRemoveReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveReplicated$inboundSchema; - /** @deprecated use `MysqlRemoveReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveReplicated$outboundSchema; - /** @deprecated use `MysqlRemoveReplicated$Outbound` instead. */ - export type Outbound = MysqlRemoveReplicated$Outbound; -} - -export function mysqlRemoveReplicatedToJSON( - mysqlRemoveReplicated: MysqlRemoveReplicated, -): string { - return JSON.stringify( - MysqlRemoveReplicated$outboundSchema.parse(mysqlRemoveReplicated), - ); -} - export function mysqlRemoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1319,48 +682,6 @@ export const MysqlRemoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MysqlRemoveReplicatedJob$outboundSchema: z.ZodType< - MysqlRemoveReplicatedJob$Outbound, - z.ZodTypeDef, - MysqlRemoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveReplicatedJob$ { - /** @deprecated use `MysqlRemoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveReplicatedJob$inboundSchema; - /** @deprecated use `MysqlRemoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveReplicatedJob$outboundSchema; - /** @deprecated use `MysqlRemoveReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlRemoveReplicatedJob$Outbound; -} - -export function mysqlRemoveReplicatedJobToJSON( - mysqlRemoveReplicatedJob: MysqlRemoveReplicatedJob, -): string { - return JSON.stringify( - MysqlRemoveReplicatedJob$outboundSchema.parse(mysqlRemoveReplicatedJob), - ); -} - export function mysqlRemoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1391,55 +712,6 @@ export const MysqlRemoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemoveModeSwarm$Outbound = { - Global?: MysqlRemoveGlobal$Outbound | undefined; - GlobalJob?: MysqlRemoveGlobalJob$Outbound | undefined; - Replicated?: MysqlRemoveReplicated$Outbound | undefined; - ReplicatedJob?: MysqlRemoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MysqlRemoveModeSwarm$outboundSchema: z.ZodType< - MysqlRemoveModeSwarm$Outbound, - z.ZodTypeDef, - MysqlRemoveModeSwarm -> = z.object({ - global: z.lazy(() => MysqlRemoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MysqlRemoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MysqlRemoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MysqlRemoveReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveModeSwarm$ { - /** @deprecated use `MysqlRemoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveModeSwarm$inboundSchema; - /** @deprecated use `MysqlRemoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveModeSwarm$outboundSchema; - /** @deprecated use `MysqlRemoveModeSwarm$Outbound` instead. */ - export type Outbound = MysqlRemoveModeSwarm$Outbound; -} - -export function mysqlRemoveModeSwarmToJSON( - mysqlRemoveModeSwarm: MysqlRemoveModeSwarm, -): string { - return JSON.stringify( - MysqlRemoveModeSwarm$outboundSchema.parse(mysqlRemoveModeSwarm), - ); -} - export function mysqlRemoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1455,43 +727,11 @@ export const MysqlRemoveServiceType$inboundSchema: z.ZodNativeEnum< typeof MysqlRemoveServiceType > = z.nativeEnum(MysqlRemoveServiceType); -/** @internal */ -export const MysqlRemoveServiceType$outboundSchema: z.ZodNativeEnum< - typeof MysqlRemoveServiceType -> = MysqlRemoveServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveServiceType$ { - /** @deprecated use `MysqlRemoveServiceType$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveServiceType$inboundSchema; - /** @deprecated use `MysqlRemoveServiceType$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveServiceType$outboundSchema; -} - /** @internal */ export const MysqlRemoveType$inboundSchema: z.ZodNativeEnum< typeof MysqlRemoveType > = z.nativeEnum(MysqlRemoveType); -/** @internal */ -export const MysqlRemoveType$outboundSchema: z.ZodNativeEnum< - typeof MysqlRemoveType -> = MysqlRemoveType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveType$ { - /** @deprecated use `MysqlRemoveType$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveType$inboundSchema; - /** @deprecated use `MysqlRemoveType$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveType$outboundSchema; -} - /** @internal */ export const MysqlRemoveMount$inboundSchema: z.ZodType< MysqlRemoveMount, @@ -1515,69 +755,6 @@ export const MysqlRemoveMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MysqlRemoveMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MysqlRemoveMount$outboundSchema: z.ZodType< - MysqlRemoveMount$Outbound, - z.ZodTypeDef, - MysqlRemoveMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MysqlRemoveServiceType$outboundSchema, - type: MysqlRemoveType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMount$ { - /** @deprecated use `MysqlRemoveMount$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMount$inboundSchema; - /** @deprecated use `MysqlRemoveMount$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMount$outboundSchema; - /** @deprecated use `MysqlRemoveMount$Outbound` instead. */ - export type Outbound = MysqlRemoveMount$Outbound; -} - -export function mysqlRemoveMountToJSON( - mysqlRemoveMount: MysqlRemoveMount, -): string { - return JSON.stringify( - MysqlRemoveMount$outboundSchema.parse(mysqlRemoveMount), - ); -} - export function mysqlRemoveMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1595,37 +772,6 @@ export const MysqlRemoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlRemoveDriverOpts$Outbound = {}; - -/** @internal */ -export const MysqlRemoveDriverOpts$outboundSchema: z.ZodType< - MysqlRemoveDriverOpts$Outbound, - z.ZodTypeDef, - MysqlRemoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveDriverOpts$ { - /** @deprecated use `MysqlRemoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveDriverOpts$inboundSchema; - /** @deprecated use `MysqlRemoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveDriverOpts$outboundSchema; - /** @deprecated use `MysqlRemoveDriverOpts$Outbound` instead. */ - export type Outbound = MysqlRemoveDriverOpts$Outbound; -} - -export function mysqlRemoveDriverOptsToJSON( - mysqlRemoveDriverOpts: MysqlRemoveDriverOpts, -): string { - return JSON.stringify( - MysqlRemoveDriverOpts$outboundSchema.parse(mysqlRemoveDriverOpts), - ); -} - export function mysqlRemoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1653,51 +799,6 @@ export const MysqlRemoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MysqlRemoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MysqlRemoveNetworkSwarm$outboundSchema: z.ZodType< - MysqlRemoveNetworkSwarm$Outbound, - z.ZodTypeDef, - MysqlRemoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MysqlRemoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveNetworkSwarm$ { - /** @deprecated use `MysqlRemoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlRemoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlRemoveNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlRemoveNetworkSwarm$Outbound; -} - -export function mysqlRemoveNetworkSwarmToJSON( - mysqlRemoveNetworkSwarm: MysqlRemoveNetworkSwarm, -): string { - return JSON.stringify( - MysqlRemoveNetworkSwarm$outboundSchema.parse(mysqlRemoveNetworkSwarm), - ); -} - export function mysqlRemoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1723,48 +824,6 @@ export const MysqlRemovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MysqlRemovePlatform$outboundSchema: z.ZodType< - MysqlRemovePlatform$Outbound, - z.ZodTypeDef, - MysqlRemovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemovePlatform$ { - /** @deprecated use `MysqlRemovePlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlRemovePlatform$inboundSchema; - /** @deprecated use `MysqlRemovePlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlRemovePlatform$outboundSchema; - /** @deprecated use `MysqlRemovePlatform$Outbound` instead. */ - export type Outbound = MysqlRemovePlatform$Outbound; -} - -export function mysqlRemovePlatformToJSON( - mysqlRemovePlatform: MysqlRemovePlatform, -): string { - return JSON.stringify( - MysqlRemovePlatform$outboundSchema.parse(mysqlRemovePlatform), - ); -} - export function mysqlRemovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1788,45 +847,6 @@ export const MysqlRemoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MysqlRemoveSpread$outboundSchema: z.ZodType< - MysqlRemoveSpread$Outbound, - z.ZodTypeDef, - MysqlRemoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveSpread$ { - /** @deprecated use `MysqlRemoveSpread$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveSpread$inboundSchema; - /** @deprecated use `MysqlRemoveSpread$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveSpread$outboundSchema; - /** @deprecated use `MysqlRemoveSpread$Outbound` instead. */ - export type Outbound = MysqlRemoveSpread$Outbound; -} - -export function mysqlRemoveSpreadToJSON( - mysqlRemoveSpread: MysqlRemoveSpread, -): string { - return JSON.stringify( - MysqlRemoveSpread$outboundSchema.parse(mysqlRemoveSpread), - ); -} - export function mysqlRemoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1850,45 +870,6 @@ export const MysqlRemovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemovePreference$Outbound = { - Spread: MysqlRemoveSpread$Outbound; -}; - -/** @internal */ -export const MysqlRemovePreference$outboundSchema: z.ZodType< - MysqlRemovePreference$Outbound, - z.ZodTypeDef, - MysqlRemovePreference -> = z.object({ - spread: z.lazy(() => MysqlRemoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemovePreference$ { - /** @deprecated use `MysqlRemovePreference$inboundSchema` instead. */ - export const inboundSchema = MysqlRemovePreference$inboundSchema; - /** @deprecated use `MysqlRemovePreference$outboundSchema` instead. */ - export const outboundSchema = MysqlRemovePreference$outboundSchema; - /** @deprecated use `MysqlRemovePreference$Outbound` instead. */ - export type Outbound = MysqlRemovePreference$Outbound; -} - -export function mysqlRemovePreferenceToJSON( - mysqlRemovePreference: MysqlRemovePreference, -): string { - return JSON.stringify( - MysqlRemovePreference$outboundSchema.parse(mysqlRemovePreference), - ); -} - export function mysqlRemovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1920,56 +901,6 @@ export const MysqlRemovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MysqlRemovePlacementSwarm$outboundSchema: z.ZodType< - MysqlRemovePlacementSwarm$Outbound, - z.ZodTypeDef, - MysqlRemovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MysqlRemovePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MysqlRemovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemovePlacementSwarm$ { - /** @deprecated use `MysqlRemovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlRemovePlacementSwarm$inboundSchema; - /** @deprecated use `MysqlRemovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlRemovePlacementSwarm$outboundSchema; - /** @deprecated use `MysqlRemovePlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlRemovePlacementSwarm$Outbound; -} - -export function mysqlRemovePlacementSwarmToJSON( - mysqlRemovePlacementSwarm: MysqlRemovePlacementSwarm, -): string { - return JSON.stringify( - MysqlRemovePlacementSwarm$outboundSchema.parse(mysqlRemovePlacementSwarm), - ); -} - export function mysqlRemovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1989,66 +920,16 @@ export const MysqlRemoveRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MysqlRemoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MysqlRemoveRestartPolicySwarm$outboundSchema: z.ZodType< - MysqlRemoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MysqlRemoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveRestartPolicySwarm$ { - /** @deprecated use `MysqlRemoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlRemoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlRemoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlRemoveRestartPolicySwarm$Outbound; -} - -export function mysqlRemoveRestartPolicySwarmToJSON( - mysqlRemoveRestartPolicySwarm: MysqlRemoveRestartPolicySwarm, -): string { - return JSON.stringify( - MysqlRemoveRestartPolicySwarm$outboundSchema.parse( - mysqlRemoveRestartPolicySwarm, - ), - ); -} - export function mysqlRemoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2082,62 +963,6 @@ export const MysqlRemoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlRemoveRollbackConfigSwarm$outboundSchema: z.ZodType< - MysqlRemoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlRemoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveRollbackConfigSwarm$ { - /** @deprecated use `MysqlRemoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlRemoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlRemoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlRemoveRollbackConfigSwarm$Outbound; -} - -export function mysqlRemoveRollbackConfigSwarmToJSON( - mysqlRemoveRollbackConfigSwarm: MysqlRemoveRollbackConfigSwarm, -): string { - return JSON.stringify( - MysqlRemoveRollbackConfigSwarm$outboundSchema.parse( - mysqlRemoveRollbackConfigSwarm, - ), - ); -} - export function mysqlRemoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2153,22 +978,6 @@ export const MysqlRemoveMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlRemoveMetricsConfigEnum > = z.nativeEnum(MysqlRemoveMetricsConfigEnum); -/** @internal */ -export const MysqlRemoveMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlRemoveMetricsConfigEnum -> = MysqlRemoveMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMetricsConfigEnum$ { - /** @deprecated use `MysqlRemoveMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMetricsConfigEnum$inboundSchema; - /** @deprecated use `MysqlRemoveMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MysqlRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlRemoveMetricsConfigUnion1, @@ -2181,48 +990,6 @@ export const MysqlRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlRemoveMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MysqlRemoveMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MysqlRemoveMetricsConfigUnion1$outboundSchema: z.ZodType< - MysqlRemoveMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MysqlRemoveMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlRemoveMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMetricsConfigUnion1$ { - /** @deprecated use `MysqlRemoveMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MysqlRemoveMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MysqlRemoveMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MysqlRemoveMetricsConfigUnion1$Outbound; -} - -export function mysqlRemoveMetricsConfigUnion1ToJSON( - mysqlRemoveMetricsConfigUnion1: MysqlRemoveMetricsConfigUnion1, -): string { - return JSON.stringify( - MysqlRemoveMetricsConfigUnion1$outboundSchema.parse( - mysqlRemoveMetricsConfigUnion1, - ), - ); -} - export function mysqlRemoveMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2249,54 +1016,6 @@ export const MysqlRemoveMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MysqlRemoveMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MysqlRemoveMetricsConfigUnion2$outboundSchema: z.ZodType< - MysqlRemoveMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MysqlRemoveMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveMetricsConfigUnion2$ { - /** @deprecated use `MysqlRemoveMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MysqlRemoveMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MysqlRemoveMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MysqlRemoveMetricsConfigUnion2$Outbound; -} - -export function mysqlRemoveMetricsConfigUnion2ToJSON( - mysqlRemoveMetricsConfigUnion2: MysqlRemoveMetricsConfigUnion2, -): string { - return JSON.stringify( - MysqlRemoveMetricsConfigUnion2$outboundSchema.parse( - mysqlRemoveMetricsConfigUnion2, - ), - ); -} - export function mysqlRemoveMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2312,22 +1031,6 @@ export const MysqlRemoveServerStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlRemoveServerStatus > = z.nativeEnum(MysqlRemoveServerStatus); -/** @internal */ -export const MysqlRemoveServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlRemoveServerStatus -> = MysqlRemoveServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveServerStatus$ { - /** @deprecated use `MysqlRemoveServerStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveServerStatus$inboundSchema; - /** @deprecated use `MysqlRemoveServerStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveServerStatus$outboundSchema; -} - /** @internal */ export const MysqlRemoveServer$inboundSchema: z.ZodType< MysqlRemoveServer, @@ -2359,78 +1062,6 @@ export const MysqlRemoveServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MysqlRemoveServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MysqlRemoveServer$outboundSchema: z.ZodType< - MysqlRemoveServer$Outbound, - z.ZodTypeDef, - MysqlRemoveServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MysqlRemoveServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveServer$ { - /** @deprecated use `MysqlRemoveServer$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveServer$inboundSchema; - /** @deprecated use `MysqlRemoveServer$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveServer$outboundSchema; - /** @deprecated use `MysqlRemoveServer$Outbound` instead. */ - export type Outbound = MysqlRemoveServer$Outbound; -} - -export function mysqlRemoveServerToJSON( - mysqlRemoveServer: MysqlRemoveServer, -): string { - return JSON.stringify( - MysqlRemoveServer$outboundSchema.parse(mysqlRemoveServer), - ); -} - export function mysqlRemoveServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2464,62 +1095,6 @@ export const MysqlRemoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlRemoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlRemoveUpdateConfigSwarm$outboundSchema: z.ZodType< - MysqlRemoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlRemoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveUpdateConfigSwarm$ { - /** @deprecated use `MysqlRemoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlRemoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlRemoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlRemoveUpdateConfigSwarm$Outbound; -} - -export function mysqlRemoveUpdateConfigSwarmToJSON( - mysqlRemoveUpdateConfigSwarm: MysqlRemoveUpdateConfigSwarm, -): string { - return JSON.stringify( - MysqlRemoveUpdateConfigSwarm$outboundSchema.parse( - mysqlRemoveUpdateConfigSwarm, - ), - ); -} - export function mysqlRemoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2583,117 +1158,6 @@ export const MysqlRemoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MysqlRemoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MysqlRemoveEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MysqlRemoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MysqlRemoveModeSwarm$Outbound | null; - mounts: Array; - mysqlId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MysqlRemovePlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MysqlRemoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MysqlRemoveRollbackConfigSwarm$Outbound | null; - server: MysqlRemoveServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MysqlRemoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MysqlRemoveResponseBody$outboundSchema: z.ZodType< - MysqlRemoveResponseBody$Outbound, - z.ZodTypeDef, - MysqlRemoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MysqlRemoveApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MysqlRemoveBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MysqlRemoveEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlRemoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MysqlRemoveModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MysqlRemoveMount$outboundSchema)), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlRemoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MysqlRemovePlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlRemoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlRemoveRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MysqlRemoveServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlRemoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveResponseBody$ { - /** @deprecated use `MysqlRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveResponseBody$inboundSchema; - /** @deprecated use `MysqlRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveResponseBody$outboundSchema; - /** @deprecated use `MysqlRemoveResponseBody$Outbound` instead. */ - export type Outbound = MysqlRemoveResponseBody$Outbound; -} - -export function mysqlRemoveResponseBodyToJSON( - mysqlRemoveResponseBody: MysqlRemoveResponseBody, -): string { - return JSON.stringify( - MysqlRemoveResponseBody$outboundSchema.parse(mysqlRemoveResponseBody), - ); -} - export function mysqlRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2714,42 +1178,6 @@ export const MysqlRemoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MysqlRemoveResponse$Outbound = - | MysqlRemoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MysqlRemoveResponse$outboundSchema: z.ZodType< - MysqlRemoveResponse$Outbound, - z.ZodTypeDef, - MysqlRemoveResponse -> = z.union([ - z.lazy(() => MysqlRemoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlRemoveResponse$ { - /** @deprecated use `MysqlRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlRemoveResponse$inboundSchema; - /** @deprecated use `MysqlRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlRemoveResponse$outboundSchema; - /** @deprecated use `MysqlRemoveResponse$Outbound` instead. */ - export type Outbound = MysqlRemoveResponse$Outbound; -} - -export function mysqlRemoveResponseToJSON( - mysqlRemoveResponse: MysqlRemoveResponse, -): string { - return JSON.stringify( - MysqlRemoveResponse$outboundSchema.parse(mysqlRemoveResponse), - ); -} - export function mysqlRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlsaveenvironment.ts b/src/models/operations/mysqlsaveenvironment.ts index 8c7deca..0d82653 100644 --- a/src/models/operations/mysqlsaveenvironment.ts +++ b/src/models/operations/mysqlsaveenvironment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type MysqlSaveEnvironmentRequest = { export type MysqlSaveEnvironmentResponse = models.ErrorT | boolean; -/** @internal */ -export const MysqlSaveEnvironmentRequest$inboundSchema: z.ZodType< - MysqlSaveEnvironmentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - env: z.nullable(z.string()).optional(), - mysqlId: z.string(), -}); - /** @internal */ export type MysqlSaveEnvironmentRequest$Outbound = { env?: string | null | undefined; @@ -41,19 +31,6 @@ export const MysqlSaveEnvironmentRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveEnvironmentRequest$ { - /** @deprecated use `MysqlSaveEnvironmentRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveEnvironmentRequest$inboundSchema; - /** @deprecated use `MysqlSaveEnvironmentRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveEnvironmentRequest$outboundSchema; - /** @deprecated use `MysqlSaveEnvironmentRequest$Outbound` instead. */ - export type Outbound = MysqlSaveEnvironmentRequest$Outbound; -} - export function mysqlSaveEnvironmentRequestToJSON( mysqlSaveEnvironmentRequest: MysqlSaveEnvironmentRequest, ): string { @@ -64,16 +41,6 @@ export function mysqlSaveEnvironmentRequestToJSON( ); } -export function mysqlSaveEnvironmentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlSaveEnvironmentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlSaveEnvironmentRequest' from JSON`, - ); -} - /** @internal */ export const MysqlSaveEnvironmentResponse$inboundSchema: z.ZodType< MysqlSaveEnvironmentResponse, @@ -81,41 +48,6 @@ export const MysqlSaveEnvironmentResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MysqlSaveEnvironmentResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const MysqlSaveEnvironmentResponse$outboundSchema: z.ZodType< - MysqlSaveEnvironmentResponse$Outbound, - z.ZodTypeDef, - MysqlSaveEnvironmentResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveEnvironmentResponse$ { - /** @deprecated use `MysqlSaveEnvironmentResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveEnvironmentResponse$inboundSchema; - /** @deprecated use `MysqlSaveEnvironmentResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveEnvironmentResponse$outboundSchema; - /** @deprecated use `MysqlSaveEnvironmentResponse$Outbound` instead. */ - export type Outbound = MysqlSaveEnvironmentResponse$Outbound; -} - -export function mysqlSaveEnvironmentResponseToJSON( - mysqlSaveEnvironmentResponse: MysqlSaveEnvironmentResponse, -): string { - return JSON.stringify( - MysqlSaveEnvironmentResponse$outboundSchema.parse( - mysqlSaveEnvironmentResponse, - ), - ); -} - export function mysqlSaveEnvironmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlsaveexternalport.ts b/src/models/operations/mysqlsaveexternalport.ts index b70d009..03b22fa 100644 --- a/src/models/operations/mysqlsaveexternalport.ts +++ b/src/models/operations/mysqlsaveexternalport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -340,16 +340,6 @@ export type MysqlSaveExternalPortResponse = | MysqlSaveExternalPortResponseBody | models.ErrorT; -/** @internal */ -export const MysqlSaveExternalPortRequest$inboundSchema: z.ZodType< - MysqlSaveExternalPortRequest, - z.ZodTypeDef, - unknown -> = z.object({ - externalPort: z.nullable(z.number()), - mysqlId: z.string(), -}); - /** @internal */ export type MysqlSaveExternalPortRequest$Outbound = { externalPort: number | null; @@ -366,19 +356,6 @@ export const MysqlSaveExternalPortRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortRequest$ { - /** @deprecated use `MysqlSaveExternalPortRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortRequest$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortRequest$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortRequest$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortRequest$Outbound; -} - export function mysqlSaveExternalPortRequestToJSON( mysqlSaveExternalPortRequest: MysqlSaveExternalPortRequest, ): string { @@ -389,105 +366,27 @@ export function mysqlSaveExternalPortRequestToJSON( ); } -export function mysqlSaveExternalPortRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlSaveExternalPortRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlSaveExternalPortRequest' from JSON`, - ); -} - /** @internal */ export const MysqlSaveExternalPortApplicationStatus$inboundSchema: z.ZodNativeEnum = z.nativeEnum( MysqlSaveExternalPortApplicationStatus, ); -/** @internal */ -export const MysqlSaveExternalPortApplicationStatus$outboundSchema: - z.ZodNativeEnum = - MysqlSaveExternalPortApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortApplicationStatus$ { - /** @deprecated use `MysqlSaveExternalPortApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortApplicationStatus$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortApplicationStatus$outboundSchema; -} - /** @internal */ export const MysqlSaveExternalPortBackupType$inboundSchema: z.ZodNativeEnum< typeof MysqlSaveExternalPortBackupType > = z.nativeEnum(MysqlSaveExternalPortBackupType); -/** @internal */ -export const MysqlSaveExternalPortBackupType$outboundSchema: z.ZodNativeEnum< - typeof MysqlSaveExternalPortBackupType -> = MysqlSaveExternalPortBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortBackupType$ { - /** @deprecated use `MysqlSaveExternalPortBackupType$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortBackupType$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortBackupType$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortBackupType$outboundSchema; -} - /** @internal */ export const MysqlSaveExternalPortDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MysqlSaveExternalPortDatabaseType > = z.nativeEnum(MysqlSaveExternalPortDatabaseType); -/** @internal */ -export const MysqlSaveExternalPortDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MysqlSaveExternalPortDatabaseType -> = MysqlSaveExternalPortDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortDatabaseType$ { - /** @deprecated use `MysqlSaveExternalPortDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortDatabaseType$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortDatabaseType$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortDatabaseType$outboundSchema; -} - /** @internal */ export const MysqlSaveExternalPortMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlSaveExternalPortMetadataEnum > = z.nativeEnum(MysqlSaveExternalPortMetadataEnum); -/** @internal */ -export const MysqlSaveExternalPortMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlSaveExternalPortMetadataEnum -> = MysqlSaveExternalPortMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMetadataEnum$ { - /** @deprecated use `MysqlSaveExternalPortMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortMetadataEnum$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortMetadataEnum$outboundSchema; -} - /** @internal */ export const MysqlSaveExternalPortMariadb$inboundSchema: z.ZodType< MysqlSaveExternalPortMariadb, @@ -498,45 +397,6 @@ export const MysqlSaveExternalPortMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlSaveExternalPortMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortMariadb$outboundSchema: z.ZodType< - MysqlSaveExternalPortMariadb$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMariadb$ { - /** @deprecated use `MysqlSaveExternalPortMariadb$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortMariadb$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMariadb$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortMariadb$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortMariadb$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortMariadb$Outbound; -} - -export function mysqlSaveExternalPortMariadbToJSON( - mysqlSaveExternalPortMariadb: MysqlSaveExternalPortMariadb, -): string { - return JSON.stringify( - MysqlSaveExternalPortMariadb$outboundSchema.parse( - mysqlSaveExternalPortMariadb, - ), - ); -} - export function mysqlSaveExternalPortMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -557,43 +417,6 @@ export const MysqlSaveExternalPortMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlSaveExternalPortMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortMongo$outboundSchema: z.ZodType< - MysqlSaveExternalPortMongo$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMongo$ { - /** @deprecated use `MysqlSaveExternalPortMongo$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortMongo$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMongo$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortMongo$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortMongo$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortMongo$Outbound; -} - -export function mysqlSaveExternalPortMongoToJSON( - mysqlSaveExternalPortMongo: MysqlSaveExternalPortMongo, -): string { - return JSON.stringify( - MysqlSaveExternalPortMongo$outboundSchema.parse(mysqlSaveExternalPortMongo), - ); -} - export function mysqlSaveExternalPortMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -613,41 +436,6 @@ export const MysqlSaveExternalPortMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MysqlSaveExternalPortMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortMysql$outboundSchema: z.ZodType< - MysqlSaveExternalPortMysql$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMysql$ { - /** @deprecated use `MysqlSaveExternalPortMysql$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortMysql$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMysql$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortMysql$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortMysql$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortMysql$Outbound; -} - -export function mysqlSaveExternalPortMysqlToJSON( - mysqlSaveExternalPortMysql: MysqlSaveExternalPortMysql, -): string { - return JSON.stringify( - MysqlSaveExternalPortMysql$outboundSchema.parse(mysqlSaveExternalPortMysql), - ); -} - export function mysqlSaveExternalPortMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -667,43 +455,6 @@ export const MysqlSaveExternalPortPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlSaveExternalPortPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortPostgres$outboundSchema: z.ZodType< - MysqlSaveExternalPortPostgres$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortPostgres$ { - /** @deprecated use `MysqlSaveExternalPortPostgres$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortPostgres$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortPostgres$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortPostgres$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortPostgres$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortPostgres$Outbound; -} - -export function mysqlSaveExternalPortPostgresToJSON( - mysqlSaveExternalPortPostgres: MysqlSaveExternalPortPostgres, -): string { - return JSON.stringify( - MysqlSaveExternalPortPostgres$outboundSchema.parse( - mysqlSaveExternalPortPostgres, - ), - ); -} - export function mysqlSaveExternalPortPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -727,50 +478,6 @@ export const MysqlSaveExternalPortMetadata$inboundSchema: z.ZodType< .optional(), }); -/** @internal */ -export type MysqlSaveExternalPortMetadata$Outbound = { - mariadb?: MysqlSaveExternalPortMariadb$Outbound | undefined; - mongo?: MysqlSaveExternalPortMongo$Outbound | undefined; - mysql?: MysqlSaveExternalPortMysql$Outbound | undefined; - postgres?: MysqlSaveExternalPortPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MysqlSaveExternalPortMetadata$outboundSchema: z.ZodType< - MysqlSaveExternalPortMetadata$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortMetadata -> = z.object({ - mariadb: z.lazy(() => MysqlSaveExternalPortMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MysqlSaveExternalPortMongo$outboundSchema).optional(), - mysql: z.lazy(() => MysqlSaveExternalPortMysql$outboundSchema).optional(), - postgres: z.lazy(() => MysqlSaveExternalPortPostgres$outboundSchema) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMetadata$ { - /** @deprecated use `MysqlSaveExternalPortMetadata$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortMetadata$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetadata$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortMetadata$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetadata$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortMetadata$Outbound; -} - -export function mysqlSaveExternalPortMetadataToJSON( - mysqlSaveExternalPortMetadata: MysqlSaveExternalPortMetadata, -): string { - return JSON.stringify( - MysqlSaveExternalPortMetadata$outboundSchema.parse( - mysqlSaveExternalPortMetadata, - ), - ); -} - export function mysqlSaveExternalPortMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -791,45 +498,6 @@ export const MysqlSaveExternalPortMetadataUnion$inboundSchema: z.ZodType< MysqlSaveExternalPortMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MysqlSaveExternalPortMetadataUnion$Outbound = - | MysqlSaveExternalPortMetadata$Outbound - | string; - -/** @internal */ -export const MysqlSaveExternalPortMetadataUnion$outboundSchema: z.ZodType< - MysqlSaveExternalPortMetadataUnion$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortMetadataUnion -> = z.union([ - z.lazy(() => MysqlSaveExternalPortMetadata$outboundSchema), - MysqlSaveExternalPortMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMetadataUnion$ { - /** @deprecated use `MysqlSaveExternalPortMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortMetadataUnion$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortMetadataUnion$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetadataUnion$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortMetadataUnion$Outbound; -} - -export function mysqlSaveExternalPortMetadataUnionToJSON( - mysqlSaveExternalPortMetadataUnion: MysqlSaveExternalPortMetadataUnion, -): string { - return JSON.stringify( - MysqlSaveExternalPortMetadataUnion$outboundSchema.parse( - mysqlSaveExternalPortMetadataUnion, - ), - ); -} - export function mysqlSaveExternalPortMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -872,82 +540,6 @@ export const MysqlSaveExternalPortBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MysqlSaveExternalPortBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MysqlSaveExternalPortMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MysqlSaveExternalPortBackup$outboundSchema: z.ZodType< - MysqlSaveExternalPortBackup$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MysqlSaveExternalPortBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MysqlSaveExternalPortDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MysqlSaveExternalPortMetadata$outboundSchema), - MysqlSaveExternalPortMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortBackup$ { - /** @deprecated use `MysqlSaveExternalPortBackup$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortBackup$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortBackup$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortBackup$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortBackup$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortBackup$Outbound; -} - -export function mysqlSaveExternalPortBackupToJSON( - mysqlSaveExternalPortBackup: MysqlSaveExternalPortBackup, -): string { - return JSON.stringify( - MysqlSaveExternalPortBackup$outboundSchema.parse( - mysqlSaveExternalPortBackup, - ), - ); -} - export function mysqlSaveExternalPortBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -972,53 +564,6 @@ export const MysqlSaveExternalPortProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlSaveExternalPortProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortProject$outboundSchema: z.ZodType< - MysqlSaveExternalPortProject$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortProject$ { - /** @deprecated use `MysqlSaveExternalPortProject$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortProject$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortProject$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortProject$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortProject$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortProject$Outbound; -} - -export function mysqlSaveExternalPortProjectToJSON( - mysqlSaveExternalPortProject: MysqlSaveExternalPortProject, -): string { - return JSON.stringify( - MysqlSaveExternalPortProject$outboundSchema.parse( - mysqlSaveExternalPortProject, - ), - ); -} - export function mysqlSaveExternalPortProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1044,55 +589,6 @@ export const MysqlSaveExternalPortEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlSaveExternalPortEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MysqlSaveExternalPortProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortEnvironment$outboundSchema: z.ZodType< - MysqlSaveExternalPortEnvironment$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MysqlSaveExternalPortProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortEnvironment$ { - /** @deprecated use `MysqlSaveExternalPortEnvironment$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortEnvironment$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortEnvironment$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortEnvironment$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortEnvironment$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortEnvironment$Outbound; -} - -export function mysqlSaveExternalPortEnvironmentToJSON( - mysqlSaveExternalPortEnvironment: MysqlSaveExternalPortEnvironment, -): string { - return JSON.stringify( - MysqlSaveExternalPortEnvironment$outboundSchema.parse( - mysqlSaveExternalPortEnvironment, - ), - ); -} - export function mysqlSaveExternalPortEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1124,61 +620,6 @@ export const MysqlSaveExternalPortHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MysqlSaveExternalPortHealthCheckSwarm$outboundSchema: z.ZodType< - MysqlSaveExternalPortHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortHealthCheckSwarm$ { - /** @deprecated use `MysqlSaveExternalPortHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortHealthCheckSwarm$Outbound; -} - -export function mysqlSaveExternalPortHealthCheckSwarmToJSON( - mysqlSaveExternalPortHealthCheckSwarm: MysqlSaveExternalPortHealthCheckSwarm, -): string { - return JSON.stringify( - MysqlSaveExternalPortHealthCheckSwarm$outboundSchema.parse( - mysqlSaveExternalPortHealthCheckSwarm, - ), - ); -} - export function mysqlSaveExternalPortHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1197,39 +638,6 @@ export const MysqlSaveExternalPortGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlSaveExternalPortGlobal$Outbound = {}; - -/** @internal */ -export const MysqlSaveExternalPortGlobal$outboundSchema: z.ZodType< - MysqlSaveExternalPortGlobal$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortGlobal$ { - /** @deprecated use `MysqlSaveExternalPortGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortGlobal$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortGlobal$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortGlobal$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortGlobal$Outbound; -} - -export function mysqlSaveExternalPortGlobalToJSON( - mysqlSaveExternalPortGlobal: MysqlSaveExternalPortGlobal, -): string { - return JSON.stringify( - MysqlSaveExternalPortGlobal$outboundSchema.parse( - mysqlSaveExternalPortGlobal, - ), - ); -} - export function mysqlSaveExternalPortGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1247,39 +655,6 @@ export const MysqlSaveExternalPortGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlSaveExternalPortGlobalJob$Outbound = {}; - -/** @internal */ -export const MysqlSaveExternalPortGlobalJob$outboundSchema: z.ZodType< - MysqlSaveExternalPortGlobalJob$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortGlobalJob$ { - /** @deprecated use `MysqlSaveExternalPortGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortGlobalJob$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortGlobalJob$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortGlobalJob$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortGlobalJob$Outbound; -} - -export function mysqlSaveExternalPortGlobalJobToJSON( - mysqlSaveExternalPortGlobalJob: MysqlSaveExternalPortGlobalJob, -): string { - return JSON.stringify( - MysqlSaveExternalPortGlobalJob$outboundSchema.parse( - mysqlSaveExternalPortGlobalJob, - ), - ); -} - export function mysqlSaveExternalPortGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1299,50 +674,9 @@ export const MysqlSaveExternalPortReplicated$inboundSchema: z.ZodType< Replicas: z.number().optional(), }).transform((v) => { return remap$(v, { - "Replicas": "replicas", - }); -}); - -/** @internal */ -export type MysqlSaveExternalPortReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MysqlSaveExternalPortReplicated$outboundSchema: z.ZodType< - MysqlSaveExternalPortReplicated$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortReplicated$ { - /** @deprecated use `MysqlSaveExternalPortReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortReplicated$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortReplicated$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortReplicated$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortReplicated$Outbound; -} - -export function mysqlSaveExternalPortReplicatedToJSON( - mysqlSaveExternalPortReplicated: MysqlSaveExternalPortReplicated, -): string { - return JSON.stringify( - MysqlSaveExternalPortReplicated$outboundSchema.parse( - mysqlSaveExternalPortReplicated, - ), - ); -} + "Replicas": "replicas", + }); +}); export function mysqlSaveExternalPortReplicatedFromJSON( jsonString: string, @@ -1369,51 +703,6 @@ export const MysqlSaveExternalPortReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MysqlSaveExternalPortReplicatedJob$outboundSchema: z.ZodType< - MysqlSaveExternalPortReplicatedJob$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortReplicatedJob$ { - /** @deprecated use `MysqlSaveExternalPortReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortReplicatedJob$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortReplicatedJob$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortReplicatedJob$Outbound; -} - -export function mysqlSaveExternalPortReplicatedJobToJSON( - mysqlSaveExternalPortReplicatedJob: MysqlSaveExternalPortReplicatedJob, -): string { - return JSON.stringify( - MysqlSaveExternalPortReplicatedJob$outboundSchema.parse( - mysqlSaveExternalPortReplicatedJob, - ), - ); -} - export function mysqlSaveExternalPortReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1447,59 +736,6 @@ export const MysqlSaveExternalPortModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortModeSwarm$Outbound = { - Global?: MysqlSaveExternalPortGlobal$Outbound | undefined; - GlobalJob?: MysqlSaveExternalPortGlobalJob$Outbound | undefined; - Replicated?: MysqlSaveExternalPortReplicated$Outbound | undefined; - ReplicatedJob?: MysqlSaveExternalPortReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MysqlSaveExternalPortModeSwarm$outboundSchema: z.ZodType< - MysqlSaveExternalPortModeSwarm$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortModeSwarm -> = z.object({ - global: z.lazy(() => MysqlSaveExternalPortGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MysqlSaveExternalPortGlobalJob$outboundSchema) - .optional(), - replicated: z.lazy(() => MysqlSaveExternalPortReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => MysqlSaveExternalPortReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortModeSwarm$ { - /** @deprecated use `MysqlSaveExternalPortModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortModeSwarm$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortModeSwarm$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortModeSwarm$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortModeSwarm$Outbound; -} - -export function mysqlSaveExternalPortModeSwarmToJSON( - mysqlSaveExternalPortModeSwarm: MysqlSaveExternalPortModeSwarm, -): string { - return JSON.stringify( - MysqlSaveExternalPortModeSwarm$outboundSchema.parse( - mysqlSaveExternalPortModeSwarm, - ), - ); -} - export function mysqlSaveExternalPortModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1515,43 +751,11 @@ export const MysqlSaveExternalPortServiceType$inboundSchema: z.ZodNativeEnum< typeof MysqlSaveExternalPortServiceType > = z.nativeEnum(MysqlSaveExternalPortServiceType); -/** @internal */ -export const MysqlSaveExternalPortServiceType$outboundSchema: z.ZodNativeEnum< - typeof MysqlSaveExternalPortServiceType -> = MysqlSaveExternalPortServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortServiceType$ { - /** @deprecated use `MysqlSaveExternalPortServiceType$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortServiceType$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortServiceType$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortServiceType$outboundSchema; -} - /** @internal */ export const MysqlSaveExternalPortType$inboundSchema: z.ZodNativeEnum< typeof MysqlSaveExternalPortType > = z.nativeEnum(MysqlSaveExternalPortType); -/** @internal */ -export const MysqlSaveExternalPortType$outboundSchema: z.ZodNativeEnum< - typeof MysqlSaveExternalPortType -> = MysqlSaveExternalPortType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortType$ { - /** @deprecated use `MysqlSaveExternalPortType$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortType$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortType$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortType$outboundSchema; -} - /** @internal */ export const MysqlSaveExternalPortMount$inboundSchema: z.ZodType< MysqlSaveExternalPortMount, @@ -1575,69 +779,6 @@ export const MysqlSaveExternalPortMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MysqlSaveExternalPortMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MysqlSaveExternalPortMount$outboundSchema: z.ZodType< - MysqlSaveExternalPortMount$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MysqlSaveExternalPortServiceType$outboundSchema, - type: MysqlSaveExternalPortType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMount$ { - /** @deprecated use `MysqlSaveExternalPortMount$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortMount$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMount$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortMount$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortMount$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortMount$Outbound; -} - -export function mysqlSaveExternalPortMountToJSON( - mysqlSaveExternalPortMount: MysqlSaveExternalPortMount, -): string { - return JSON.stringify( - MysqlSaveExternalPortMount$outboundSchema.parse(mysqlSaveExternalPortMount), - ); -} - export function mysqlSaveExternalPortMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1655,39 +796,6 @@ export const MysqlSaveExternalPortDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlSaveExternalPortDriverOpts$Outbound = {}; - -/** @internal */ -export const MysqlSaveExternalPortDriverOpts$outboundSchema: z.ZodType< - MysqlSaveExternalPortDriverOpts$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortDriverOpts$ { - /** @deprecated use `MysqlSaveExternalPortDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortDriverOpts$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortDriverOpts$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortDriverOpts$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortDriverOpts$Outbound; -} - -export function mysqlSaveExternalPortDriverOptsToJSON( - mysqlSaveExternalPortDriverOpts: MysqlSaveExternalPortDriverOpts, -): string { - return JSON.stringify( - MysqlSaveExternalPortDriverOpts$outboundSchema.parse( - mysqlSaveExternalPortDriverOpts, - ), - ); -} - export function mysqlSaveExternalPortDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1716,55 +824,6 @@ export const MysqlSaveExternalPortNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MysqlSaveExternalPortDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MysqlSaveExternalPortNetworkSwarm$outboundSchema: z.ZodType< - MysqlSaveExternalPortNetworkSwarm$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MysqlSaveExternalPortDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortNetworkSwarm$ { - /** @deprecated use `MysqlSaveExternalPortNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortNetworkSwarm$Outbound; -} - -export function mysqlSaveExternalPortNetworkSwarmToJSON( - mysqlSaveExternalPortNetworkSwarm: MysqlSaveExternalPortNetworkSwarm, -): string { - return JSON.stringify( - MysqlSaveExternalPortNetworkSwarm$outboundSchema.parse( - mysqlSaveExternalPortNetworkSwarm, - ), - ); -} - export function mysqlSaveExternalPortNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1790,50 +849,6 @@ export const MysqlSaveExternalPortPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortPlatform$outboundSchema: z.ZodType< - MysqlSaveExternalPortPlatform$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortPlatform$ { - /** @deprecated use `MysqlSaveExternalPortPlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortPlatform$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortPlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortPlatform$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortPlatform$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortPlatform$Outbound; -} - -export function mysqlSaveExternalPortPlatformToJSON( - mysqlSaveExternalPortPlatform: MysqlSaveExternalPortPlatform, -): string { - return JSON.stringify( - MysqlSaveExternalPortPlatform$outboundSchema.parse( - mysqlSaveExternalPortPlatform, - ), - ); -} - export function mysqlSaveExternalPortPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1857,47 +872,6 @@ export const MysqlSaveExternalPortSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortSpread$outboundSchema: z.ZodType< - MysqlSaveExternalPortSpread$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortSpread$ { - /** @deprecated use `MysqlSaveExternalPortSpread$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortSpread$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortSpread$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortSpread$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortSpread$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortSpread$Outbound; -} - -export function mysqlSaveExternalPortSpreadToJSON( - mysqlSaveExternalPortSpread: MysqlSaveExternalPortSpread, -): string { - return JSON.stringify( - MysqlSaveExternalPortSpread$outboundSchema.parse( - mysqlSaveExternalPortSpread, - ), - ); -} - export function mysqlSaveExternalPortSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1921,47 +895,6 @@ export const MysqlSaveExternalPortPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortPreference$Outbound = { - Spread: MysqlSaveExternalPortSpread$Outbound; -}; - -/** @internal */ -export const MysqlSaveExternalPortPreference$outboundSchema: z.ZodType< - MysqlSaveExternalPortPreference$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortPreference -> = z.object({ - spread: z.lazy(() => MysqlSaveExternalPortSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortPreference$ { - /** @deprecated use `MysqlSaveExternalPortPreference$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortPreference$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortPreference$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortPreference$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortPreference$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortPreference$Outbound; -} - -export function mysqlSaveExternalPortPreferenceToJSON( - mysqlSaveExternalPortPreference: MysqlSaveExternalPortPreference, -): string { - return JSON.stringify( - MysqlSaveExternalPortPreference$outboundSchema.parse( - mysqlSaveExternalPortPreference, - ), - ); -} - export function mysqlSaveExternalPortPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1994,61 +927,6 @@ export const MysqlSaveExternalPortPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MysqlSaveExternalPortPlacementSwarm$outboundSchema: z.ZodType< - MysqlSaveExternalPortPlacementSwarm$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MysqlSaveExternalPortPlatform$outboundSchema)) - .optional(), - preferences: z.array( - z.lazy(() => MysqlSaveExternalPortPreference$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortPlacementSwarm$ { - /** @deprecated use `MysqlSaveExternalPortPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortPlacementSwarm$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortPlacementSwarm$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortPlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortPlacementSwarm$Outbound; -} - -export function mysqlSaveExternalPortPlacementSwarmToJSON( - mysqlSaveExternalPortPlacementSwarm: MysqlSaveExternalPortPlacementSwarm, -): string { - return JSON.stringify( - MysqlSaveExternalPortPlacementSwarm$outboundSchema.parse( - mysqlSaveExternalPortPlacementSwarm, - ), - ); -} - export function mysqlSaveExternalPortPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2072,65 +950,12 @@ export const MysqlSaveExternalPortRestartPolicySwarm$inboundSchema: z.ZodType< Window: z.number().optional(), }).transform((v) => { return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MysqlSaveExternalPortRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MysqlSaveExternalPortRestartPolicySwarm$outboundSchema: z.ZodType< - MysqlSaveExternalPortRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortRestartPolicySwarm$ { - /** @deprecated use `MysqlSaveExternalPortRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortRestartPolicySwarm$Outbound; -} - -export function mysqlSaveExternalPortRestartPolicySwarmToJSON( - mysqlSaveExternalPortRestartPolicySwarm: - MysqlSaveExternalPortRestartPolicySwarm, -): string { - return JSON.stringify( - MysqlSaveExternalPortRestartPolicySwarm$outboundSchema.parse( - mysqlSaveExternalPortRestartPolicySwarm, - ), - ); -} + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", + }); +}); export function mysqlSaveExternalPortRestartPolicySwarmFromJSON( jsonString: string, @@ -2171,65 +996,6 @@ export const MysqlSaveExternalPortRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlSaveExternalPortRollbackConfigSwarm$outboundSchema: z.ZodType< - MysqlSaveExternalPortRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortRollbackConfigSwarm$ { - /** @deprecated use `MysqlSaveExternalPortRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortRollbackConfigSwarm$Outbound; -} - -export function mysqlSaveExternalPortRollbackConfigSwarmToJSON( - mysqlSaveExternalPortRollbackConfigSwarm: - MysqlSaveExternalPortRollbackConfigSwarm, -): string { - return JSON.stringify( - MysqlSaveExternalPortRollbackConfigSwarm$outboundSchema.parse( - mysqlSaveExternalPortRollbackConfigSwarm, - ), - ); -} - export function mysqlSaveExternalPortRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2252,24 +1018,6 @@ export const MysqlSaveExternalPortMetricsConfigEnum$inboundSchema: MysqlSaveExternalPortMetricsConfigEnum, ); -/** @internal */ -export const MysqlSaveExternalPortMetricsConfigEnum$outboundSchema: - z.ZodNativeEnum = - MysqlSaveExternalPortMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMetricsConfigEnum$ { - /** @deprecated use `MysqlSaveExternalPortMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortMetricsConfigEnum$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MysqlSaveExternalPortMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlSaveExternalPortMetricsConfigUnion1, @@ -2282,51 +1030,6 @@ export const MysqlSaveExternalPortMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlSaveExternalPortMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MysqlSaveExternalPortMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MysqlSaveExternalPortMetricsConfigUnion1$outboundSchema: z.ZodType< - MysqlSaveExternalPortMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlSaveExternalPortMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMetricsConfigUnion1$ { - /** @deprecated use `MysqlSaveExternalPortMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortMetricsConfigUnion1$Outbound; -} - -export function mysqlSaveExternalPortMetricsConfigUnion1ToJSON( - mysqlSaveExternalPortMetricsConfigUnion1: - MysqlSaveExternalPortMetricsConfigUnion1, -): string { - return JSON.stringify( - MysqlSaveExternalPortMetricsConfigUnion1$outboundSchema.parse( - mysqlSaveExternalPortMetricsConfigUnion1, - ), - ); -} - export function mysqlSaveExternalPortMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult< @@ -2359,57 +1062,6 @@ export const MysqlSaveExternalPortMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MysqlSaveExternalPortMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MysqlSaveExternalPortMetricsConfigUnion2$outboundSchema: z.ZodType< - MysqlSaveExternalPortMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortMetricsConfigUnion2$ { - /** @deprecated use `MysqlSaveExternalPortMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortMetricsConfigUnion2$Outbound; -} - -export function mysqlSaveExternalPortMetricsConfigUnion2ToJSON( - mysqlSaveExternalPortMetricsConfigUnion2: - MysqlSaveExternalPortMetricsConfigUnion2, -): string { - return JSON.stringify( - MysqlSaveExternalPortMetricsConfigUnion2$outboundSchema.parse( - mysqlSaveExternalPortMetricsConfigUnion2, - ), - ); -} - export function mysqlSaveExternalPortMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult< @@ -2431,23 +1083,6 @@ export const MysqlSaveExternalPortServerStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlSaveExternalPortServerStatus > = z.nativeEnum(MysqlSaveExternalPortServerStatus); -/** @internal */ -export const MysqlSaveExternalPortServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlSaveExternalPortServerStatus -> = MysqlSaveExternalPortServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortServerStatus$ { - /** @deprecated use `MysqlSaveExternalPortServerStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortServerStatus$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortServerStatus$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortServerStatus$outboundSchema; -} - /** @internal */ export const MysqlSaveExternalPortServer$inboundSchema: z.ZodType< MysqlSaveExternalPortServer, @@ -2479,80 +1114,6 @@ export const MysqlSaveExternalPortServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MysqlSaveExternalPortServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MysqlSaveExternalPortServer$outboundSchema: z.ZodType< - MysqlSaveExternalPortServer$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MysqlSaveExternalPortServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortServer$ { - /** @deprecated use `MysqlSaveExternalPortServer$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortServer$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortServer$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortServer$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortServer$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortServer$Outbound; -} - -export function mysqlSaveExternalPortServerToJSON( - mysqlSaveExternalPortServer: MysqlSaveExternalPortServer, -): string { - return JSON.stringify( - MysqlSaveExternalPortServer$outboundSchema.parse( - mysqlSaveExternalPortServer, - ), - ); -} - export function mysqlSaveExternalPortServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2586,65 +1147,6 @@ export const MysqlSaveExternalPortUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlSaveExternalPortUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlSaveExternalPortUpdateConfigSwarm$outboundSchema: z.ZodType< - MysqlSaveExternalPortUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortUpdateConfigSwarm$ { - /** @deprecated use `MysqlSaveExternalPortUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - MysqlSaveExternalPortUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortUpdateConfigSwarm$Outbound; -} - -export function mysqlSaveExternalPortUpdateConfigSwarmToJSON( - mysqlSaveExternalPortUpdateConfigSwarm: - MysqlSaveExternalPortUpdateConfigSwarm, -): string { - return JSON.stringify( - MysqlSaveExternalPortUpdateConfigSwarm$outboundSchema.parse( - mysqlSaveExternalPortUpdateConfigSwarm, - ), - ); -} - export function mysqlSaveExternalPortUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2711,122 +1213,6 @@ export const MysqlSaveExternalPortResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MysqlSaveExternalPortResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MysqlSaveExternalPortEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MysqlSaveExternalPortHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MysqlSaveExternalPortModeSwarm$Outbound | null; - mounts: Array; - mysqlId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MysqlSaveExternalPortPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MysqlSaveExternalPortRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MysqlSaveExternalPortRollbackConfigSwarm$Outbound | null; - server: MysqlSaveExternalPortServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MysqlSaveExternalPortUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MysqlSaveExternalPortResponseBody$outboundSchema: z.ZodType< - MysqlSaveExternalPortResponseBody$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MysqlSaveExternalPortApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MysqlSaveExternalPortBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MysqlSaveExternalPortEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlSaveExternalPortHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => MysqlSaveExternalPortModeSwarm$outboundSchema), - ), - mounts: z.array(z.lazy(() => MysqlSaveExternalPortMount$outboundSchema)), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlSaveExternalPortNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MysqlSaveExternalPortPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlSaveExternalPortRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlSaveExternalPortRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MysqlSaveExternalPortServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlSaveExternalPortUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortResponseBody$ { - /** @deprecated use `MysqlSaveExternalPortResponseBody$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortResponseBody$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortResponseBody$outboundSchema` instead. */ - export const outboundSchema = - MysqlSaveExternalPortResponseBody$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortResponseBody$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortResponseBody$Outbound; -} - -export function mysqlSaveExternalPortResponseBodyToJSON( - mysqlSaveExternalPortResponseBody: MysqlSaveExternalPortResponseBody, -): string { - return JSON.stringify( - MysqlSaveExternalPortResponseBody$outboundSchema.parse( - mysqlSaveExternalPortResponseBody, - ), - ); -} - export function mysqlSaveExternalPortResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2847,44 +1233,6 @@ export const MysqlSaveExternalPortResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MysqlSaveExternalPortResponse$Outbound = - | MysqlSaveExternalPortResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MysqlSaveExternalPortResponse$outboundSchema: z.ZodType< - MysqlSaveExternalPortResponse$Outbound, - z.ZodTypeDef, - MysqlSaveExternalPortResponse -> = z.union([ - z.lazy(() => MysqlSaveExternalPortResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlSaveExternalPortResponse$ { - /** @deprecated use `MysqlSaveExternalPortResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlSaveExternalPortResponse$inboundSchema; - /** @deprecated use `MysqlSaveExternalPortResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlSaveExternalPortResponse$outboundSchema; - /** @deprecated use `MysqlSaveExternalPortResponse$Outbound` instead. */ - export type Outbound = MysqlSaveExternalPortResponse$Outbound; -} - -export function mysqlSaveExternalPortResponseToJSON( - mysqlSaveExternalPortResponse: MysqlSaveExternalPortResponse, -): string { - return JSON.stringify( - MysqlSaveExternalPortResponse$outboundSchema.parse( - mysqlSaveExternalPortResponse, - ), - ); -} - export function mysqlSaveExternalPortResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlstart.ts b/src/models/operations/mysqlstart.ts index 551a609..9840c67 100644 --- a/src/models/operations/mysqlstart.ts +++ b/src/models/operations/mysqlstart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -321,15 +321,6 @@ export type MysqlStartResponseBody = { export type MysqlStartResponse = MysqlStartResponseBody | models.ErrorT; -/** @internal */ -export const MysqlStartRequest$inboundSchema: z.ZodType< - MysqlStartRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mysqlId: z.string(), -}); - /** @internal */ export type MysqlStartRequest$Outbound = { mysqlId: string; @@ -344,19 +335,6 @@ export const MysqlStartRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartRequest$ { - /** @deprecated use `MysqlStartRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlStartRequest$inboundSchema; - /** @deprecated use `MysqlStartRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlStartRequest$outboundSchema; - /** @deprecated use `MysqlStartRequest$Outbound` instead. */ - export type Outbound = MysqlStartRequest$Outbound; -} - export function mysqlStartRequestToJSON( mysqlStartRequest: MysqlStartRequest, ): string { @@ -365,100 +343,26 @@ export function mysqlStartRequestToJSON( ); } -export function mysqlStartRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlStartRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlStartRequest' from JSON`, - ); -} - /** @internal */ export const MysqlStartApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlStartApplicationStatus > = z.nativeEnum(MysqlStartApplicationStatus); -/** @internal */ -export const MysqlStartApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlStartApplicationStatus -> = MysqlStartApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartApplicationStatus$ { - /** @deprecated use `MysqlStartApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlStartApplicationStatus$inboundSchema; - /** @deprecated use `MysqlStartApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlStartApplicationStatus$outboundSchema; -} - /** @internal */ export const MysqlStartBackupType$inboundSchema: z.ZodNativeEnum< typeof MysqlStartBackupType > = z.nativeEnum(MysqlStartBackupType); -/** @internal */ -export const MysqlStartBackupType$outboundSchema: z.ZodNativeEnum< - typeof MysqlStartBackupType -> = MysqlStartBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartBackupType$ { - /** @deprecated use `MysqlStartBackupType$inboundSchema` instead. */ - export const inboundSchema = MysqlStartBackupType$inboundSchema; - /** @deprecated use `MysqlStartBackupType$outboundSchema` instead. */ - export const outboundSchema = MysqlStartBackupType$outboundSchema; -} - /** @internal */ export const MysqlStartDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MysqlStartDatabaseType > = z.nativeEnum(MysqlStartDatabaseType); -/** @internal */ -export const MysqlStartDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MysqlStartDatabaseType -> = MysqlStartDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartDatabaseType$ { - /** @deprecated use `MysqlStartDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MysqlStartDatabaseType$inboundSchema; - /** @deprecated use `MysqlStartDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MysqlStartDatabaseType$outboundSchema; -} - /** @internal */ export const MysqlStartMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlStartMetadataEnum > = z.nativeEnum(MysqlStartMetadataEnum); -/** @internal */ -export const MysqlStartMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlStartMetadataEnum -> = MysqlStartMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMetadataEnum$ { - /** @deprecated use `MysqlStartMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMetadataEnum$inboundSchema; - /** @deprecated use `MysqlStartMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMetadataEnum$outboundSchema; -} - /** @internal */ export const MysqlStartMariadb$inboundSchema: z.ZodType< MysqlStartMariadb, @@ -469,43 +373,6 @@ export const MysqlStartMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlStartMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlStartMariadb$outboundSchema: z.ZodType< - MysqlStartMariadb$Outbound, - z.ZodTypeDef, - MysqlStartMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMariadb$ { - /** @deprecated use `MysqlStartMariadb$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMariadb$inboundSchema; - /** @deprecated use `MysqlStartMariadb$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMariadb$outboundSchema; - /** @deprecated use `MysqlStartMariadb$Outbound` instead. */ - export type Outbound = MysqlStartMariadb$Outbound; -} - -export function mysqlStartMariadbToJSON( - mysqlStartMariadb: MysqlStartMariadb, -): string { - return JSON.stringify( - MysqlStartMariadb$outboundSchema.parse(mysqlStartMariadb), - ); -} - export function mysqlStartMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -526,41 +393,6 @@ export const MysqlStartMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlStartMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlStartMongo$outboundSchema: z.ZodType< - MysqlStartMongo$Outbound, - z.ZodTypeDef, - MysqlStartMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMongo$ { - /** @deprecated use `MysqlStartMongo$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMongo$inboundSchema; - /** @deprecated use `MysqlStartMongo$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMongo$outboundSchema; - /** @deprecated use `MysqlStartMongo$Outbound` instead. */ - export type Outbound = MysqlStartMongo$Outbound; -} - -export function mysqlStartMongoToJSON( - mysqlStartMongo: MysqlStartMongo, -): string { - return JSON.stringify(MysqlStartMongo$outboundSchema.parse(mysqlStartMongo)); -} - export function mysqlStartMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -580,39 +412,6 @@ export const MysqlStartMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MysqlStartMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MysqlStartMysql$outboundSchema: z.ZodType< - MysqlStartMysql$Outbound, - z.ZodTypeDef, - MysqlStartMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMysql$ { - /** @deprecated use `MysqlStartMysql$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMysql$inboundSchema; - /** @deprecated use `MysqlStartMysql$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMysql$outboundSchema; - /** @deprecated use `MysqlStartMysql$Outbound` instead. */ - export type Outbound = MysqlStartMysql$Outbound; -} - -export function mysqlStartMysqlToJSON( - mysqlStartMysql: MysqlStartMysql, -): string { - return JSON.stringify(MysqlStartMysql$outboundSchema.parse(mysqlStartMysql)); -} - export function mysqlStartMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -632,41 +431,6 @@ export const MysqlStartPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlStartPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MysqlStartPostgres$outboundSchema: z.ZodType< - MysqlStartPostgres$Outbound, - z.ZodTypeDef, - MysqlStartPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartPostgres$ { - /** @deprecated use `MysqlStartPostgres$inboundSchema` instead. */ - export const inboundSchema = MysqlStartPostgres$inboundSchema; - /** @deprecated use `MysqlStartPostgres$outboundSchema` instead. */ - export const outboundSchema = MysqlStartPostgres$outboundSchema; - /** @deprecated use `MysqlStartPostgres$Outbound` instead. */ - export type Outbound = MysqlStartPostgres$Outbound; -} - -export function mysqlStartPostgresToJSON( - mysqlStartPostgres: MysqlStartPostgres, -): string { - return JSON.stringify( - MysqlStartPostgres$outboundSchema.parse(mysqlStartPostgres), - ); -} - export function mysqlStartPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -689,47 +453,6 @@ export const MysqlStartMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MysqlStartPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MysqlStartMetadata$Outbound = { - mariadb?: MysqlStartMariadb$Outbound | undefined; - mongo?: MysqlStartMongo$Outbound | undefined; - mysql?: MysqlStartMysql$Outbound | undefined; - postgres?: MysqlStartPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MysqlStartMetadata$outboundSchema: z.ZodType< - MysqlStartMetadata$Outbound, - z.ZodTypeDef, - MysqlStartMetadata -> = z.object({ - mariadb: z.lazy(() => MysqlStartMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MysqlStartMongo$outboundSchema).optional(), - mysql: z.lazy(() => MysqlStartMysql$outboundSchema).optional(), - postgres: z.lazy(() => MysqlStartPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMetadata$ { - /** @deprecated use `MysqlStartMetadata$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMetadata$inboundSchema; - /** @deprecated use `MysqlStartMetadata$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMetadata$outboundSchema; - /** @deprecated use `MysqlStartMetadata$Outbound` instead. */ - export type Outbound = MysqlStartMetadata$Outbound; -} - -export function mysqlStartMetadataToJSON( - mysqlStartMetadata: MysqlStartMetadata, -): string { - return JSON.stringify( - MysqlStartMetadata$outboundSchema.parse(mysqlStartMetadata), - ); -} - export function mysqlStartMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -750,42 +473,6 @@ export const MysqlStartMetadataUnion$inboundSchema: z.ZodType< MysqlStartMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MysqlStartMetadataUnion$Outbound = - | MysqlStartMetadata$Outbound - | string; - -/** @internal */ -export const MysqlStartMetadataUnion$outboundSchema: z.ZodType< - MysqlStartMetadataUnion$Outbound, - z.ZodTypeDef, - MysqlStartMetadataUnion -> = z.union([ - z.lazy(() => MysqlStartMetadata$outboundSchema), - MysqlStartMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMetadataUnion$ { - /** @deprecated use `MysqlStartMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMetadataUnion$inboundSchema; - /** @deprecated use `MysqlStartMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMetadataUnion$outboundSchema; - /** @deprecated use `MysqlStartMetadataUnion$Outbound` instead. */ - export type Outbound = MysqlStartMetadataUnion$Outbound; -} - -export function mysqlStartMetadataUnionToJSON( - mysqlStartMetadataUnion: MysqlStartMetadataUnion, -): string { - return JSON.stringify( - MysqlStartMetadataUnion$outboundSchema.parse(mysqlStartMetadataUnion), - ); -} - export function mysqlStartMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -827,80 +514,6 @@ export const MysqlStartBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MysqlStartBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MysqlStartMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MysqlStartBackup$outboundSchema: z.ZodType< - MysqlStartBackup$Outbound, - z.ZodTypeDef, - MysqlStartBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MysqlStartBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MysqlStartDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MysqlStartMetadata$outboundSchema), - MysqlStartMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartBackup$ { - /** @deprecated use `MysqlStartBackup$inboundSchema` instead. */ - export const inboundSchema = MysqlStartBackup$inboundSchema; - /** @deprecated use `MysqlStartBackup$outboundSchema` instead. */ - export const outboundSchema = MysqlStartBackup$outboundSchema; - /** @deprecated use `MysqlStartBackup$Outbound` instead. */ - export type Outbound = MysqlStartBackup$Outbound; -} - -export function mysqlStartBackupToJSON( - mysqlStartBackup: MysqlStartBackup, -): string { - return JSON.stringify( - MysqlStartBackup$outboundSchema.parse(mysqlStartBackup), - ); -} - export function mysqlStartBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -925,51 +538,6 @@ export const MysqlStartProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlStartProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MysqlStartProject$outboundSchema: z.ZodType< - MysqlStartProject$Outbound, - z.ZodTypeDef, - MysqlStartProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartProject$ { - /** @deprecated use `MysqlStartProject$inboundSchema` instead. */ - export const inboundSchema = MysqlStartProject$inboundSchema; - /** @deprecated use `MysqlStartProject$outboundSchema` instead. */ - export const outboundSchema = MysqlStartProject$outboundSchema; - /** @deprecated use `MysqlStartProject$Outbound` instead. */ - export type Outbound = MysqlStartProject$Outbound; -} - -export function mysqlStartProjectToJSON( - mysqlStartProject: MysqlStartProject, -): string { - return JSON.stringify( - MysqlStartProject$outboundSchema.parse(mysqlStartProject), - ); -} - export function mysqlStartProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -995,53 +563,6 @@ export const MysqlStartEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlStartEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MysqlStartProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MysqlStartEnvironment$outboundSchema: z.ZodType< - MysqlStartEnvironment$Outbound, - z.ZodTypeDef, - MysqlStartEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MysqlStartProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartEnvironment$ { - /** @deprecated use `MysqlStartEnvironment$inboundSchema` instead. */ - export const inboundSchema = MysqlStartEnvironment$inboundSchema; - /** @deprecated use `MysqlStartEnvironment$outboundSchema` instead. */ - export const outboundSchema = MysqlStartEnvironment$outboundSchema; - /** @deprecated use `MysqlStartEnvironment$Outbound` instead. */ - export type Outbound = MysqlStartEnvironment$Outbound; -} - -export function mysqlStartEnvironmentToJSON( - mysqlStartEnvironment: MysqlStartEnvironment, -): string { - return JSON.stringify( - MysqlStartEnvironment$outboundSchema.parse(mysqlStartEnvironment), - ); -} - export function mysqlStartEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1073,57 +594,6 @@ export const MysqlStartHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MysqlStartHealthCheckSwarm$outboundSchema: z.ZodType< - MysqlStartHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MysqlStartHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartHealthCheckSwarm$ { - /** @deprecated use `MysqlStartHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStartHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlStartHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStartHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlStartHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlStartHealthCheckSwarm$Outbound; -} - -export function mysqlStartHealthCheckSwarmToJSON( - mysqlStartHealthCheckSwarm: MysqlStartHealthCheckSwarm, -): string { - return JSON.stringify( - MysqlStartHealthCheckSwarm$outboundSchema.parse(mysqlStartHealthCheckSwarm), - ); -} - export function mysqlStartHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1141,37 +611,6 @@ export const MysqlStartGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlStartGlobal$Outbound = {}; - -/** @internal */ -export const MysqlStartGlobal$outboundSchema: z.ZodType< - MysqlStartGlobal$Outbound, - z.ZodTypeDef, - MysqlStartGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartGlobal$ { - /** @deprecated use `MysqlStartGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlStartGlobal$inboundSchema; - /** @deprecated use `MysqlStartGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlStartGlobal$outboundSchema; - /** @deprecated use `MysqlStartGlobal$Outbound` instead. */ - export type Outbound = MysqlStartGlobal$Outbound; -} - -export function mysqlStartGlobalToJSON( - mysqlStartGlobal: MysqlStartGlobal, -): string { - return JSON.stringify( - MysqlStartGlobal$outboundSchema.parse(mysqlStartGlobal), - ); -} - export function mysqlStartGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1182,44 +621,13 @@ export function mysqlStartGlobalFromJSON( ); } -/** @internal */ -export const MysqlStartGlobalJob$inboundSchema: z.ZodType< - MysqlStartGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MysqlStartGlobalJob$Outbound = {}; - -/** @internal */ -export const MysqlStartGlobalJob$outboundSchema: z.ZodType< - MysqlStartGlobalJob$Outbound, - z.ZodTypeDef, - MysqlStartGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartGlobalJob$ { - /** @deprecated use `MysqlStartGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlStartGlobalJob$inboundSchema; - /** @deprecated use `MysqlStartGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlStartGlobalJob$outboundSchema; - /** @deprecated use `MysqlStartGlobalJob$Outbound` instead. */ - export type Outbound = MysqlStartGlobalJob$Outbound; -} - -export function mysqlStartGlobalJobToJSON( - mysqlStartGlobalJob: MysqlStartGlobalJob, -): string { - return JSON.stringify( - MysqlStartGlobalJob$outboundSchema.parse(mysqlStartGlobalJob), - ); -} - +/** @internal */ +export const MysqlStartGlobalJob$inboundSchema: z.ZodType< + MysqlStartGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); + export function mysqlStartGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1243,45 +651,6 @@ export const MysqlStartReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MysqlStartReplicated$outboundSchema: z.ZodType< - MysqlStartReplicated$Outbound, - z.ZodTypeDef, - MysqlStartReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartReplicated$ { - /** @deprecated use `MysqlStartReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlStartReplicated$inboundSchema; - /** @deprecated use `MysqlStartReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlStartReplicated$outboundSchema; - /** @deprecated use `MysqlStartReplicated$Outbound` instead. */ - export type Outbound = MysqlStartReplicated$Outbound; -} - -export function mysqlStartReplicatedToJSON( - mysqlStartReplicated: MysqlStartReplicated, -): string { - return JSON.stringify( - MysqlStartReplicated$outboundSchema.parse(mysqlStartReplicated), - ); -} - export function mysqlStartReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1307,48 +676,6 @@ export const MysqlStartReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MysqlStartReplicatedJob$outboundSchema: z.ZodType< - MysqlStartReplicatedJob$Outbound, - z.ZodTypeDef, - MysqlStartReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartReplicatedJob$ { - /** @deprecated use `MysqlStartReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlStartReplicatedJob$inboundSchema; - /** @deprecated use `MysqlStartReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MysqlStartReplicatedJob$outboundSchema; - /** @deprecated use `MysqlStartReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlStartReplicatedJob$Outbound; -} - -export function mysqlStartReplicatedJobToJSON( - mysqlStartReplicatedJob: MysqlStartReplicatedJob, -): string { - return JSON.stringify( - MysqlStartReplicatedJob$outboundSchema.parse(mysqlStartReplicatedJob), - ); -} - export function mysqlStartReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1378,55 +705,6 @@ export const MysqlStartModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartModeSwarm$Outbound = { - Global?: MysqlStartGlobal$Outbound | undefined; - GlobalJob?: MysqlStartGlobalJob$Outbound | undefined; - Replicated?: MysqlStartReplicated$Outbound | undefined; - ReplicatedJob?: MysqlStartReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MysqlStartModeSwarm$outboundSchema: z.ZodType< - MysqlStartModeSwarm$Outbound, - z.ZodTypeDef, - MysqlStartModeSwarm -> = z.object({ - global: z.lazy(() => MysqlStartGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MysqlStartGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MysqlStartReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MysqlStartReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartModeSwarm$ { - /** @deprecated use `MysqlStartModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStartModeSwarm$inboundSchema; - /** @deprecated use `MysqlStartModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStartModeSwarm$outboundSchema; - /** @deprecated use `MysqlStartModeSwarm$Outbound` instead. */ - export type Outbound = MysqlStartModeSwarm$Outbound; -} - -export function mysqlStartModeSwarmToJSON( - mysqlStartModeSwarm: MysqlStartModeSwarm, -): string { - return JSON.stringify( - MysqlStartModeSwarm$outboundSchema.parse(mysqlStartModeSwarm), - ); -} - export function mysqlStartModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1442,43 +720,11 @@ export const MysqlStartServiceType$inboundSchema: z.ZodNativeEnum< typeof MysqlStartServiceType > = z.nativeEnum(MysqlStartServiceType); -/** @internal */ -export const MysqlStartServiceType$outboundSchema: z.ZodNativeEnum< - typeof MysqlStartServiceType -> = MysqlStartServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartServiceType$ { - /** @deprecated use `MysqlStartServiceType$inboundSchema` instead. */ - export const inboundSchema = MysqlStartServiceType$inboundSchema; - /** @deprecated use `MysqlStartServiceType$outboundSchema` instead. */ - export const outboundSchema = MysqlStartServiceType$outboundSchema; -} - /** @internal */ export const MysqlStartType$inboundSchema: z.ZodNativeEnum< typeof MysqlStartType > = z.nativeEnum(MysqlStartType); -/** @internal */ -export const MysqlStartType$outboundSchema: z.ZodNativeEnum< - typeof MysqlStartType -> = MysqlStartType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartType$ { - /** @deprecated use `MysqlStartType$inboundSchema` instead. */ - export const inboundSchema = MysqlStartType$inboundSchema; - /** @deprecated use `MysqlStartType$outboundSchema` instead. */ - export const outboundSchema = MysqlStartType$outboundSchema; -} - /** @internal */ export const MysqlStartMount$inboundSchema: z.ZodType< MysqlStartMount, @@ -1502,67 +748,6 @@ export const MysqlStartMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MysqlStartMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MysqlStartMount$outboundSchema: z.ZodType< - MysqlStartMount$Outbound, - z.ZodTypeDef, - MysqlStartMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MysqlStartServiceType$outboundSchema, - type: MysqlStartType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMount$ { - /** @deprecated use `MysqlStartMount$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMount$inboundSchema; - /** @deprecated use `MysqlStartMount$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMount$outboundSchema; - /** @deprecated use `MysqlStartMount$Outbound` instead. */ - export type Outbound = MysqlStartMount$Outbound; -} - -export function mysqlStartMountToJSON( - mysqlStartMount: MysqlStartMount, -): string { - return JSON.stringify(MysqlStartMount$outboundSchema.parse(mysqlStartMount)); -} - export function mysqlStartMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1580,37 +765,6 @@ export const MysqlStartDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlStartDriverOpts$Outbound = {}; - -/** @internal */ -export const MysqlStartDriverOpts$outboundSchema: z.ZodType< - MysqlStartDriverOpts$Outbound, - z.ZodTypeDef, - MysqlStartDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartDriverOpts$ { - /** @deprecated use `MysqlStartDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlStartDriverOpts$inboundSchema; - /** @deprecated use `MysqlStartDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlStartDriverOpts$outboundSchema; - /** @deprecated use `MysqlStartDriverOpts$Outbound` instead. */ - export type Outbound = MysqlStartDriverOpts$Outbound; -} - -export function mysqlStartDriverOptsToJSON( - mysqlStartDriverOpts: MysqlStartDriverOpts, -): string { - return JSON.stringify( - MysqlStartDriverOpts$outboundSchema.parse(mysqlStartDriverOpts), - ); -} - export function mysqlStartDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1638,51 +792,6 @@ export const MysqlStartNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MysqlStartDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MysqlStartNetworkSwarm$outboundSchema: z.ZodType< - MysqlStartNetworkSwarm$Outbound, - z.ZodTypeDef, - MysqlStartNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MysqlStartDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartNetworkSwarm$ { - /** @deprecated use `MysqlStartNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStartNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlStartNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStartNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlStartNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlStartNetworkSwarm$Outbound; -} - -export function mysqlStartNetworkSwarmToJSON( - mysqlStartNetworkSwarm: MysqlStartNetworkSwarm, -): string { - return JSON.stringify( - MysqlStartNetworkSwarm$outboundSchema.parse(mysqlStartNetworkSwarm), - ); -} - export function mysqlStartNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1708,48 +817,6 @@ export const MysqlStartPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MysqlStartPlatform$outboundSchema: z.ZodType< - MysqlStartPlatform$Outbound, - z.ZodTypeDef, - MysqlStartPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartPlatform$ { - /** @deprecated use `MysqlStartPlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlStartPlatform$inboundSchema; - /** @deprecated use `MysqlStartPlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlStartPlatform$outboundSchema; - /** @deprecated use `MysqlStartPlatform$Outbound` instead. */ - export type Outbound = MysqlStartPlatform$Outbound; -} - -export function mysqlStartPlatformToJSON( - mysqlStartPlatform: MysqlStartPlatform, -): string { - return JSON.stringify( - MysqlStartPlatform$outboundSchema.parse(mysqlStartPlatform), - ); -} - export function mysqlStartPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1773,45 +840,6 @@ export const MysqlStartSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MysqlStartSpread$outboundSchema: z.ZodType< - MysqlStartSpread$Outbound, - z.ZodTypeDef, - MysqlStartSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartSpread$ { - /** @deprecated use `MysqlStartSpread$inboundSchema` instead. */ - export const inboundSchema = MysqlStartSpread$inboundSchema; - /** @deprecated use `MysqlStartSpread$outboundSchema` instead. */ - export const outboundSchema = MysqlStartSpread$outboundSchema; - /** @deprecated use `MysqlStartSpread$Outbound` instead. */ - export type Outbound = MysqlStartSpread$Outbound; -} - -export function mysqlStartSpreadToJSON( - mysqlStartSpread: MysqlStartSpread, -): string { - return JSON.stringify( - MysqlStartSpread$outboundSchema.parse(mysqlStartSpread), - ); -} - export function mysqlStartSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1835,45 +863,6 @@ export const MysqlStartPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartPreference$Outbound = { - Spread: MysqlStartSpread$Outbound; -}; - -/** @internal */ -export const MysqlStartPreference$outboundSchema: z.ZodType< - MysqlStartPreference$Outbound, - z.ZodTypeDef, - MysqlStartPreference -> = z.object({ - spread: z.lazy(() => MysqlStartSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartPreference$ { - /** @deprecated use `MysqlStartPreference$inboundSchema` instead. */ - export const inboundSchema = MysqlStartPreference$inboundSchema; - /** @deprecated use `MysqlStartPreference$outboundSchema` instead. */ - export const outboundSchema = MysqlStartPreference$outboundSchema; - /** @deprecated use `MysqlStartPreference$Outbound` instead. */ - export type Outbound = MysqlStartPreference$Outbound; -} - -export function mysqlStartPreferenceToJSON( - mysqlStartPreference: MysqlStartPreference, -): string { - return JSON.stringify( - MysqlStartPreference$outboundSchema.parse(mysqlStartPreference), - ); -} - export function mysqlStartPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1904,56 +893,6 @@ export const MysqlStartPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MysqlStartPlacementSwarm$outboundSchema: z.ZodType< - MysqlStartPlacementSwarm$Outbound, - z.ZodTypeDef, - MysqlStartPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MysqlStartPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => MysqlStartPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartPlacementSwarm$ { - /** @deprecated use `MysqlStartPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStartPlacementSwarm$inboundSchema; - /** @deprecated use `MysqlStartPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStartPlacementSwarm$outboundSchema; - /** @deprecated use `MysqlStartPlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlStartPlacementSwarm$Outbound; -} - -export function mysqlStartPlacementSwarmToJSON( - mysqlStartPlacementSwarm: MysqlStartPlacementSwarm, -): string { - return JSON.stringify( - MysqlStartPlacementSwarm$outboundSchema.parse(mysqlStartPlacementSwarm), - ); -} - export function mysqlStartPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1973,66 +912,16 @@ export const MysqlStartRestartPolicySwarm$inboundSchema: z.ZodType< Condition: z.string().optional(), Delay: z.number().optional(), MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MysqlStartRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MysqlStartRestartPolicySwarm$outboundSchema: z.ZodType< - MysqlStartRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MysqlStartRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartRestartPolicySwarm$ { - /** @deprecated use `MysqlStartRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStartRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlStartRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStartRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlStartRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlStartRestartPolicySwarm$Outbound; -} - -export function mysqlStartRestartPolicySwarmToJSON( - mysqlStartRestartPolicySwarm: MysqlStartRestartPolicySwarm, -): string { - return JSON.stringify( - MysqlStartRestartPolicySwarm$outboundSchema.parse( - mysqlStartRestartPolicySwarm, - ), - ); -} - export function mysqlStartRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2066,62 +955,6 @@ export const MysqlStartRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlStartRollbackConfigSwarm$outboundSchema: z.ZodType< - MysqlStartRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlStartRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartRollbackConfigSwarm$ { - /** @deprecated use `MysqlStartRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStartRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlStartRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStartRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlStartRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlStartRollbackConfigSwarm$Outbound; -} - -export function mysqlStartRollbackConfigSwarmToJSON( - mysqlStartRollbackConfigSwarm: MysqlStartRollbackConfigSwarm, -): string { - return JSON.stringify( - MysqlStartRollbackConfigSwarm$outboundSchema.parse( - mysqlStartRollbackConfigSwarm, - ), - ); -} - export function mysqlStartRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2137,22 +970,6 @@ export const MysqlStartMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlStartMetricsConfigEnum > = z.nativeEnum(MysqlStartMetricsConfigEnum); -/** @internal */ -export const MysqlStartMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlStartMetricsConfigEnum -> = MysqlStartMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMetricsConfigEnum$ { - /** @deprecated use `MysqlStartMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMetricsConfigEnum$inboundSchema; - /** @deprecated use `MysqlStartMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MysqlStartMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlStartMetricsConfigUnion1, @@ -2165,48 +982,6 @@ export const MysqlStartMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlStartMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MysqlStartMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MysqlStartMetricsConfigUnion1$outboundSchema: z.ZodType< - MysqlStartMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MysqlStartMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlStartMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMetricsConfigUnion1$ { - /** @deprecated use `MysqlStartMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MysqlStartMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MysqlStartMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MysqlStartMetricsConfigUnion1$Outbound; -} - -export function mysqlStartMetricsConfigUnion1ToJSON( - mysqlStartMetricsConfigUnion1: MysqlStartMetricsConfigUnion1, -): string { - return JSON.stringify( - MysqlStartMetricsConfigUnion1$outboundSchema.parse( - mysqlStartMetricsConfigUnion1, - ), - ); -} - export function mysqlStartMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2233,54 +1008,6 @@ export const MysqlStartMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MysqlStartMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MysqlStartMetricsConfigUnion2$outboundSchema: z.ZodType< - MysqlStartMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MysqlStartMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartMetricsConfigUnion2$ { - /** @deprecated use `MysqlStartMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MysqlStartMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MysqlStartMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MysqlStartMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MysqlStartMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MysqlStartMetricsConfigUnion2$Outbound; -} - -export function mysqlStartMetricsConfigUnion2ToJSON( - mysqlStartMetricsConfigUnion2: MysqlStartMetricsConfigUnion2, -): string { - return JSON.stringify( - MysqlStartMetricsConfigUnion2$outboundSchema.parse( - mysqlStartMetricsConfigUnion2, - ), - ); -} - export function mysqlStartMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2296,22 +1023,6 @@ export const MysqlStartServerStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlStartServerStatus > = z.nativeEnum(MysqlStartServerStatus); -/** @internal */ -export const MysqlStartServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlStartServerStatus -> = MysqlStartServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartServerStatus$ { - /** @deprecated use `MysqlStartServerStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlStartServerStatus$inboundSchema; - /** @deprecated use `MysqlStartServerStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlStartServerStatus$outboundSchema; -} - /** @internal */ export const MysqlStartServer$inboundSchema: z.ZodType< MysqlStartServer, @@ -2343,78 +1054,6 @@ export const MysqlStartServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MysqlStartServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MysqlStartServer$outboundSchema: z.ZodType< - MysqlStartServer$Outbound, - z.ZodTypeDef, - MysqlStartServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MysqlStartServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartServer$ { - /** @deprecated use `MysqlStartServer$inboundSchema` instead. */ - export const inboundSchema = MysqlStartServer$inboundSchema; - /** @deprecated use `MysqlStartServer$outboundSchema` instead. */ - export const outboundSchema = MysqlStartServer$outboundSchema; - /** @deprecated use `MysqlStartServer$Outbound` instead. */ - export type Outbound = MysqlStartServer$Outbound; -} - -export function mysqlStartServerToJSON( - mysqlStartServer: MysqlStartServer, -): string { - return JSON.stringify( - MysqlStartServer$outboundSchema.parse(mysqlStartServer), - ); -} - export function mysqlStartServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2448,62 +1087,6 @@ export const MysqlStartUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStartUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlStartUpdateConfigSwarm$outboundSchema: z.ZodType< - MysqlStartUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlStartUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartUpdateConfigSwarm$ { - /** @deprecated use `MysqlStartUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStartUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlStartUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStartUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlStartUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlStartUpdateConfigSwarm$Outbound; -} - -export function mysqlStartUpdateConfigSwarmToJSON( - mysqlStartUpdateConfigSwarm: MysqlStartUpdateConfigSwarm, -): string { - return JSON.stringify( - MysqlStartUpdateConfigSwarm$outboundSchema.parse( - mysqlStartUpdateConfigSwarm, - ), - ); -} - export function mysqlStartUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2567,117 +1150,6 @@ export const MysqlStartResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MysqlStartResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MysqlStartEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MysqlStartHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MysqlStartModeSwarm$Outbound | null; - mounts: Array; - mysqlId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MysqlStartPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MysqlStartRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MysqlStartRollbackConfigSwarm$Outbound | null; - server: MysqlStartServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MysqlStartUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MysqlStartResponseBody$outboundSchema: z.ZodType< - MysqlStartResponseBody$Outbound, - z.ZodTypeDef, - MysqlStartResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MysqlStartApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MysqlStartBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MysqlStartEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlStartHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MysqlStartModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MysqlStartMount$outboundSchema)), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlStartNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MysqlStartPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlStartRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlStartRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MysqlStartServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlStartUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartResponseBody$ { - /** @deprecated use `MysqlStartResponseBody$inboundSchema` instead. */ - export const inboundSchema = MysqlStartResponseBody$inboundSchema; - /** @deprecated use `MysqlStartResponseBody$outboundSchema` instead. */ - export const outboundSchema = MysqlStartResponseBody$outboundSchema; - /** @deprecated use `MysqlStartResponseBody$Outbound` instead. */ - export type Outbound = MysqlStartResponseBody$Outbound; -} - -export function mysqlStartResponseBodyToJSON( - mysqlStartResponseBody: MysqlStartResponseBody, -): string { - return JSON.stringify( - MysqlStartResponseBody$outboundSchema.parse(mysqlStartResponseBody), - ); -} - export function mysqlStartResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2698,42 +1170,6 @@ export const MysqlStartResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MysqlStartResponse$Outbound = - | MysqlStartResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MysqlStartResponse$outboundSchema: z.ZodType< - MysqlStartResponse$Outbound, - z.ZodTypeDef, - MysqlStartResponse -> = z.union([ - z.lazy(() => MysqlStartResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStartResponse$ { - /** @deprecated use `MysqlStartResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlStartResponse$inboundSchema; - /** @deprecated use `MysqlStartResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlStartResponse$outboundSchema; - /** @deprecated use `MysqlStartResponse$Outbound` instead. */ - export type Outbound = MysqlStartResponse$Outbound; -} - -export function mysqlStartResponseToJSON( - mysqlStartResponse: MysqlStartResponse, -): string { - return JSON.stringify( - MysqlStartResponse$outboundSchema.parse(mysqlStartResponse), - ); -} - export function mysqlStartResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlstop.ts b/src/models/operations/mysqlstop.ts index 491a4ee..ffa34dc 100644 --- a/src/models/operations/mysqlstop.ts +++ b/src/models/operations/mysqlstop.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -319,15 +319,6 @@ export type MysqlStopResponseBody = { export type MysqlStopResponse = MysqlStopResponseBody | models.ErrorT; -/** @internal */ -export const MysqlStopRequest$inboundSchema: z.ZodType< - MysqlStopRequest, - z.ZodTypeDef, - unknown -> = z.object({ - mysqlId: z.string(), -}); - /** @internal */ export type MysqlStopRequest$Outbound = { mysqlId: string; @@ -342,19 +333,6 @@ export const MysqlStopRequest$outboundSchema: z.ZodType< mysqlId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopRequest$ { - /** @deprecated use `MysqlStopRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlStopRequest$inboundSchema; - /** @deprecated use `MysqlStopRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlStopRequest$outboundSchema; - /** @deprecated use `MysqlStopRequest$Outbound` instead. */ - export type Outbound = MysqlStopRequest$Outbound; -} - export function mysqlStopRequestToJSON( mysqlStopRequest: MysqlStopRequest, ): string { @@ -363,100 +341,26 @@ export function mysqlStopRequestToJSON( ); } -export function mysqlStopRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlStopRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlStopRequest' from JSON`, - ); -} - /** @internal */ export const MysqlStopApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlStopApplicationStatus > = z.nativeEnum(MysqlStopApplicationStatus); -/** @internal */ -export const MysqlStopApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlStopApplicationStatus -> = MysqlStopApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopApplicationStatus$ { - /** @deprecated use `MysqlStopApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlStopApplicationStatus$inboundSchema; - /** @deprecated use `MysqlStopApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlStopApplicationStatus$outboundSchema; -} - /** @internal */ export const MysqlStopBackupType$inboundSchema: z.ZodNativeEnum< typeof MysqlStopBackupType > = z.nativeEnum(MysqlStopBackupType); -/** @internal */ -export const MysqlStopBackupType$outboundSchema: z.ZodNativeEnum< - typeof MysqlStopBackupType -> = MysqlStopBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopBackupType$ { - /** @deprecated use `MysqlStopBackupType$inboundSchema` instead. */ - export const inboundSchema = MysqlStopBackupType$inboundSchema; - /** @deprecated use `MysqlStopBackupType$outboundSchema` instead. */ - export const outboundSchema = MysqlStopBackupType$outboundSchema; -} - /** @internal */ export const MysqlStopDatabaseType$inboundSchema: z.ZodNativeEnum< typeof MysqlStopDatabaseType > = z.nativeEnum(MysqlStopDatabaseType); -/** @internal */ -export const MysqlStopDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof MysqlStopDatabaseType -> = MysqlStopDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopDatabaseType$ { - /** @deprecated use `MysqlStopDatabaseType$inboundSchema` instead. */ - export const inboundSchema = MysqlStopDatabaseType$inboundSchema; - /** @deprecated use `MysqlStopDatabaseType$outboundSchema` instead. */ - export const outboundSchema = MysqlStopDatabaseType$outboundSchema; -} - /** @internal */ export const MysqlStopMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlStopMetadataEnum > = z.nativeEnum(MysqlStopMetadataEnum); -/** @internal */ -export const MysqlStopMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlStopMetadataEnum -> = MysqlStopMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMetadataEnum$ { - /** @deprecated use `MysqlStopMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMetadataEnum$inboundSchema; - /** @deprecated use `MysqlStopMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMetadataEnum$outboundSchema; -} - /** @internal */ export const MysqlStopMariadb$inboundSchema: z.ZodType< MysqlStopMariadb, @@ -467,43 +371,6 @@ export const MysqlStopMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlStopMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlStopMariadb$outboundSchema: z.ZodType< - MysqlStopMariadb$Outbound, - z.ZodTypeDef, - MysqlStopMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMariadb$ { - /** @deprecated use `MysqlStopMariadb$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMariadb$inboundSchema; - /** @deprecated use `MysqlStopMariadb$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMariadb$outboundSchema; - /** @deprecated use `MysqlStopMariadb$Outbound` instead. */ - export type Outbound = MysqlStopMariadb$Outbound; -} - -export function mysqlStopMariadbToJSON( - mysqlStopMariadb: MysqlStopMariadb, -): string { - return JSON.stringify( - MysqlStopMariadb$outboundSchema.parse(mysqlStopMariadb), - ); -} - export function mysqlStopMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -524,39 +391,6 @@ export const MysqlStopMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlStopMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const MysqlStopMongo$outboundSchema: z.ZodType< - MysqlStopMongo$Outbound, - z.ZodTypeDef, - MysqlStopMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMongo$ { - /** @deprecated use `MysqlStopMongo$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMongo$inboundSchema; - /** @deprecated use `MysqlStopMongo$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMongo$outboundSchema; - /** @deprecated use `MysqlStopMongo$Outbound` instead. */ - export type Outbound = MysqlStopMongo$Outbound; -} - -export function mysqlStopMongoToJSON(mysqlStopMongo: MysqlStopMongo): string { - return JSON.stringify(MysqlStopMongo$outboundSchema.parse(mysqlStopMongo)); -} - export function mysqlStopMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -576,37 +410,6 @@ export const MysqlStopMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type MysqlStopMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const MysqlStopMysql$outboundSchema: z.ZodType< - MysqlStopMysql$Outbound, - z.ZodTypeDef, - MysqlStopMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMysql$ { - /** @deprecated use `MysqlStopMysql$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMysql$inboundSchema; - /** @deprecated use `MysqlStopMysql$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMysql$outboundSchema; - /** @deprecated use `MysqlStopMysql$Outbound` instead. */ - export type Outbound = MysqlStopMysql$Outbound; -} - -export function mysqlStopMysqlToJSON(mysqlStopMysql: MysqlStopMysql): string { - return JSON.stringify(MysqlStopMysql$outboundSchema.parse(mysqlStopMysql)); -} - export function mysqlStopMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -626,41 +429,6 @@ export const MysqlStopPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type MysqlStopPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const MysqlStopPostgres$outboundSchema: z.ZodType< - MysqlStopPostgres$Outbound, - z.ZodTypeDef, - MysqlStopPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopPostgres$ { - /** @deprecated use `MysqlStopPostgres$inboundSchema` instead. */ - export const inboundSchema = MysqlStopPostgres$inboundSchema; - /** @deprecated use `MysqlStopPostgres$outboundSchema` instead. */ - export const outboundSchema = MysqlStopPostgres$outboundSchema; - /** @deprecated use `MysqlStopPostgres$Outbound` instead. */ - export type Outbound = MysqlStopPostgres$Outbound; -} - -export function mysqlStopPostgresToJSON( - mysqlStopPostgres: MysqlStopPostgres, -): string { - return JSON.stringify( - MysqlStopPostgres$outboundSchema.parse(mysqlStopPostgres), - ); -} - export function mysqlStopPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -683,47 +451,6 @@ export const MysqlStopMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => MysqlStopPostgres$inboundSchema).optional(), }); -/** @internal */ -export type MysqlStopMetadata$Outbound = { - mariadb?: MysqlStopMariadb$Outbound | undefined; - mongo?: MysqlStopMongo$Outbound | undefined; - mysql?: MysqlStopMysql$Outbound | undefined; - postgres?: MysqlStopPostgres$Outbound | undefined; -}; - -/** @internal */ -export const MysqlStopMetadata$outboundSchema: z.ZodType< - MysqlStopMetadata$Outbound, - z.ZodTypeDef, - MysqlStopMetadata -> = z.object({ - mariadb: z.lazy(() => MysqlStopMariadb$outboundSchema).optional(), - mongo: z.lazy(() => MysqlStopMongo$outboundSchema).optional(), - mysql: z.lazy(() => MysqlStopMysql$outboundSchema).optional(), - postgres: z.lazy(() => MysqlStopPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMetadata$ { - /** @deprecated use `MysqlStopMetadata$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMetadata$inboundSchema; - /** @deprecated use `MysqlStopMetadata$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMetadata$outboundSchema; - /** @deprecated use `MysqlStopMetadata$Outbound` instead. */ - export type Outbound = MysqlStopMetadata$Outbound; -} - -export function mysqlStopMetadataToJSON( - mysqlStopMetadata: MysqlStopMetadata, -): string { - return JSON.stringify( - MysqlStopMetadata$outboundSchema.parse(mysqlStopMetadata), - ); -} - export function mysqlStopMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -744,42 +471,6 @@ export const MysqlStopMetadataUnion$inboundSchema: z.ZodType< MysqlStopMetadataEnum$inboundSchema, ]); -/** @internal */ -export type MysqlStopMetadataUnion$Outbound = - | MysqlStopMetadata$Outbound - | string; - -/** @internal */ -export const MysqlStopMetadataUnion$outboundSchema: z.ZodType< - MysqlStopMetadataUnion$Outbound, - z.ZodTypeDef, - MysqlStopMetadataUnion -> = z.union([ - z.lazy(() => MysqlStopMetadata$outboundSchema), - MysqlStopMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMetadataUnion$ { - /** @deprecated use `MysqlStopMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMetadataUnion$inboundSchema; - /** @deprecated use `MysqlStopMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMetadataUnion$outboundSchema; - /** @deprecated use `MysqlStopMetadataUnion$Outbound` instead. */ - export type Outbound = MysqlStopMetadataUnion$Outbound; -} - -export function mysqlStopMetadataUnionToJSON( - mysqlStopMetadataUnion: MysqlStopMetadataUnion, -): string { - return JSON.stringify( - MysqlStopMetadataUnion$outboundSchema.parse(mysqlStopMetadataUnion), - ); -} - export function mysqlStopMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -821,78 +512,6 @@ export const MysqlStopBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type MysqlStopBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: MysqlStopMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const MysqlStopBackup$outboundSchema: z.ZodType< - MysqlStopBackup$Outbound, - z.ZodTypeDef, - MysqlStopBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: MysqlStopBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: MysqlStopDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => MysqlStopMetadata$outboundSchema), - MysqlStopMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopBackup$ { - /** @deprecated use `MysqlStopBackup$inboundSchema` instead. */ - export const inboundSchema = MysqlStopBackup$inboundSchema; - /** @deprecated use `MysqlStopBackup$outboundSchema` instead. */ - export const outboundSchema = MysqlStopBackup$outboundSchema; - /** @deprecated use `MysqlStopBackup$Outbound` instead. */ - export type Outbound = MysqlStopBackup$Outbound; -} - -export function mysqlStopBackupToJSON( - mysqlStopBackup: MysqlStopBackup, -): string { - return JSON.stringify(MysqlStopBackup$outboundSchema.parse(mysqlStopBackup)); -} - export function mysqlStopBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -917,51 +536,6 @@ export const MysqlStopProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlStopProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const MysqlStopProject$outboundSchema: z.ZodType< - MysqlStopProject$Outbound, - z.ZodTypeDef, - MysqlStopProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopProject$ { - /** @deprecated use `MysqlStopProject$inboundSchema` instead. */ - export const inboundSchema = MysqlStopProject$inboundSchema; - /** @deprecated use `MysqlStopProject$outboundSchema` instead. */ - export const outboundSchema = MysqlStopProject$outboundSchema; - /** @deprecated use `MysqlStopProject$Outbound` instead. */ - export type Outbound = MysqlStopProject$Outbound; -} - -export function mysqlStopProjectToJSON( - mysqlStopProject: MysqlStopProject, -): string { - return JSON.stringify( - MysqlStopProject$outboundSchema.parse(mysqlStopProject), - ); -} - export function mysqlStopProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -987,53 +561,6 @@ export const MysqlStopEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type MysqlStopEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: MysqlStopProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const MysqlStopEnvironment$outboundSchema: z.ZodType< - MysqlStopEnvironment$Outbound, - z.ZodTypeDef, - MysqlStopEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => MysqlStopProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopEnvironment$ { - /** @deprecated use `MysqlStopEnvironment$inboundSchema` instead. */ - export const inboundSchema = MysqlStopEnvironment$inboundSchema; - /** @deprecated use `MysqlStopEnvironment$outboundSchema` instead. */ - export const outboundSchema = MysqlStopEnvironment$outboundSchema; - /** @deprecated use `MysqlStopEnvironment$Outbound` instead. */ - export type Outbound = MysqlStopEnvironment$Outbound; -} - -export function mysqlStopEnvironmentToJSON( - mysqlStopEnvironment: MysqlStopEnvironment, -): string { - return JSON.stringify( - MysqlStopEnvironment$outboundSchema.parse(mysqlStopEnvironment), - ); -} - export function mysqlStopEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1065,57 +592,6 @@ export const MysqlStopHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const MysqlStopHealthCheckSwarm$outboundSchema: z.ZodType< - MysqlStopHealthCheckSwarm$Outbound, - z.ZodTypeDef, - MysqlStopHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopHealthCheckSwarm$ { - /** @deprecated use `MysqlStopHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStopHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlStopHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStopHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlStopHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlStopHealthCheckSwarm$Outbound; -} - -export function mysqlStopHealthCheckSwarmToJSON( - mysqlStopHealthCheckSwarm: MysqlStopHealthCheckSwarm, -): string { - return JSON.stringify( - MysqlStopHealthCheckSwarm$outboundSchema.parse(mysqlStopHealthCheckSwarm), - ); -} - export function mysqlStopHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1133,83 +609,23 @@ export const MysqlStopGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlStopGlobal$Outbound = {}; - -/** @internal */ -export const MysqlStopGlobal$outboundSchema: z.ZodType< - MysqlStopGlobal$Outbound, - z.ZodTypeDef, - MysqlStopGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopGlobal$ { - /** @deprecated use `MysqlStopGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlStopGlobal$inboundSchema; - /** @deprecated use `MysqlStopGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlStopGlobal$outboundSchema; - /** @deprecated use `MysqlStopGlobal$Outbound` instead. */ - export type Outbound = MysqlStopGlobal$Outbound; -} - -export function mysqlStopGlobalToJSON( - mysqlStopGlobal: MysqlStopGlobal, -): string { - return JSON.stringify(MysqlStopGlobal$outboundSchema.parse(mysqlStopGlobal)); -} - export function mysqlStopGlobalFromJSON( jsonString: string, ): SafeParseResult { return safeParse( - jsonString, - (x) => MysqlStopGlobal$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlStopGlobal' from JSON`, - ); -} - -/** @internal */ -export const MysqlStopGlobalJob$inboundSchema: z.ZodType< - MysqlStopGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type MysqlStopGlobalJob$Outbound = {}; - -/** @internal */ -export const MysqlStopGlobalJob$outboundSchema: z.ZodType< - MysqlStopGlobalJob$Outbound, - z.ZodTypeDef, - MysqlStopGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopGlobalJob$ { - /** @deprecated use `MysqlStopGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlStopGlobalJob$inboundSchema; - /** @deprecated use `MysqlStopGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlStopGlobalJob$outboundSchema; - /** @deprecated use `MysqlStopGlobalJob$Outbound` instead. */ - export type Outbound = MysqlStopGlobalJob$Outbound; -} - -export function mysqlStopGlobalJobToJSON( - mysqlStopGlobalJob: MysqlStopGlobalJob, -): string { - return JSON.stringify( - MysqlStopGlobalJob$outboundSchema.parse(mysqlStopGlobalJob), + jsonString, + (x) => MysqlStopGlobal$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'MysqlStopGlobal' from JSON`, ); } +/** @internal */ +export const MysqlStopGlobalJob$inboundSchema: z.ZodType< + MysqlStopGlobalJob, + z.ZodTypeDef, + unknown +> = z.object({}); + export function mysqlStopGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1233,45 +649,6 @@ export const MysqlStopReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const MysqlStopReplicated$outboundSchema: z.ZodType< - MysqlStopReplicated$Outbound, - z.ZodTypeDef, - MysqlStopReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopReplicated$ { - /** @deprecated use `MysqlStopReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlStopReplicated$inboundSchema; - /** @deprecated use `MysqlStopReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlStopReplicated$outboundSchema; - /** @deprecated use `MysqlStopReplicated$Outbound` instead. */ - export type Outbound = MysqlStopReplicated$Outbound; -} - -export function mysqlStopReplicatedToJSON( - mysqlStopReplicated: MysqlStopReplicated, -): string { - return JSON.stringify( - MysqlStopReplicated$outboundSchema.parse(mysqlStopReplicated), - ); -} - export function mysqlStopReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1297,48 +674,6 @@ export const MysqlStopReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const MysqlStopReplicatedJob$outboundSchema: z.ZodType< - MysqlStopReplicatedJob$Outbound, - z.ZodTypeDef, - MysqlStopReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopReplicatedJob$ { - /** @deprecated use `MysqlStopReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlStopReplicatedJob$inboundSchema; - /** @deprecated use `MysqlStopReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MysqlStopReplicatedJob$outboundSchema; - /** @deprecated use `MysqlStopReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlStopReplicatedJob$Outbound; -} - -export function mysqlStopReplicatedJobToJSON( - mysqlStopReplicatedJob: MysqlStopReplicatedJob, -): string { - return JSON.stringify( - MysqlStopReplicatedJob$outboundSchema.parse(mysqlStopReplicatedJob), - ); -} - export function mysqlStopReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1368,54 +703,6 @@ export const MysqlStopModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopModeSwarm$Outbound = { - Global?: MysqlStopGlobal$Outbound | undefined; - GlobalJob?: MysqlStopGlobalJob$Outbound | undefined; - Replicated?: MysqlStopReplicated$Outbound | undefined; - ReplicatedJob?: MysqlStopReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const MysqlStopModeSwarm$outboundSchema: z.ZodType< - MysqlStopModeSwarm$Outbound, - z.ZodTypeDef, - MysqlStopModeSwarm -> = z.object({ - global: z.lazy(() => MysqlStopGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => MysqlStopGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => MysqlStopReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => MysqlStopReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopModeSwarm$ { - /** @deprecated use `MysqlStopModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStopModeSwarm$inboundSchema; - /** @deprecated use `MysqlStopModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStopModeSwarm$outboundSchema; - /** @deprecated use `MysqlStopModeSwarm$Outbound` instead. */ - export type Outbound = MysqlStopModeSwarm$Outbound; -} - -export function mysqlStopModeSwarmToJSON( - mysqlStopModeSwarm: MysqlStopModeSwarm, -): string { - return JSON.stringify( - MysqlStopModeSwarm$outboundSchema.parse(mysqlStopModeSwarm), - ); -} - export function mysqlStopModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1431,43 +718,11 @@ export const MysqlStopServiceType$inboundSchema: z.ZodNativeEnum< typeof MysqlStopServiceType > = z.nativeEnum(MysqlStopServiceType); -/** @internal */ -export const MysqlStopServiceType$outboundSchema: z.ZodNativeEnum< - typeof MysqlStopServiceType -> = MysqlStopServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopServiceType$ { - /** @deprecated use `MysqlStopServiceType$inboundSchema` instead. */ - export const inboundSchema = MysqlStopServiceType$inboundSchema; - /** @deprecated use `MysqlStopServiceType$outboundSchema` instead. */ - export const outboundSchema = MysqlStopServiceType$outboundSchema; -} - /** @internal */ export const MysqlStopType$inboundSchema: z.ZodNativeEnum< typeof MysqlStopType > = z.nativeEnum(MysqlStopType); -/** @internal */ -export const MysqlStopType$outboundSchema: z.ZodNativeEnum< - typeof MysqlStopType -> = MysqlStopType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopType$ { - /** @deprecated use `MysqlStopType$inboundSchema` instead. */ - export const inboundSchema = MysqlStopType$inboundSchema; - /** @deprecated use `MysqlStopType$outboundSchema` instead. */ - export const outboundSchema = MysqlStopType$outboundSchema; -} - /** @internal */ export const MysqlStopMount$inboundSchema: z.ZodType< MysqlStopMount, @@ -1491,65 +746,6 @@ export const MysqlStopMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type MysqlStopMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const MysqlStopMount$outboundSchema: z.ZodType< - MysqlStopMount$Outbound, - z.ZodTypeDef, - MysqlStopMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: MysqlStopServiceType$outboundSchema, - type: MysqlStopType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMount$ { - /** @deprecated use `MysqlStopMount$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMount$inboundSchema; - /** @deprecated use `MysqlStopMount$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMount$outboundSchema; - /** @deprecated use `MysqlStopMount$Outbound` instead. */ - export type Outbound = MysqlStopMount$Outbound; -} - -export function mysqlStopMountToJSON(mysqlStopMount: MysqlStopMount): string { - return JSON.stringify(MysqlStopMount$outboundSchema.parse(mysqlStopMount)); -} - export function mysqlStopMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1567,37 +763,6 @@ export const MysqlStopDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type MysqlStopDriverOpts$Outbound = {}; - -/** @internal */ -export const MysqlStopDriverOpts$outboundSchema: z.ZodType< - MysqlStopDriverOpts$Outbound, - z.ZodTypeDef, - MysqlStopDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopDriverOpts$ { - /** @deprecated use `MysqlStopDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlStopDriverOpts$inboundSchema; - /** @deprecated use `MysqlStopDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlStopDriverOpts$outboundSchema; - /** @deprecated use `MysqlStopDriverOpts$Outbound` instead. */ - export type Outbound = MysqlStopDriverOpts$Outbound; -} - -export function mysqlStopDriverOptsToJSON( - mysqlStopDriverOpts: MysqlStopDriverOpts, -): string { - return JSON.stringify( - MysqlStopDriverOpts$outboundSchema.parse(mysqlStopDriverOpts), - ); -} - export function mysqlStopDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1625,51 +790,6 @@ export const MysqlStopNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: MysqlStopDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const MysqlStopNetworkSwarm$outboundSchema: z.ZodType< - MysqlStopNetworkSwarm$Outbound, - z.ZodTypeDef, - MysqlStopNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => MysqlStopDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopNetworkSwarm$ { - /** @deprecated use `MysqlStopNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStopNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlStopNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStopNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlStopNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlStopNetworkSwarm$Outbound; -} - -export function mysqlStopNetworkSwarmToJSON( - mysqlStopNetworkSwarm: MysqlStopNetworkSwarm, -): string { - return JSON.stringify( - MysqlStopNetworkSwarm$outboundSchema.parse(mysqlStopNetworkSwarm), - ); -} - export function mysqlStopNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1695,48 +815,6 @@ export const MysqlStopPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const MysqlStopPlatform$outboundSchema: z.ZodType< - MysqlStopPlatform$Outbound, - z.ZodTypeDef, - MysqlStopPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopPlatform$ { - /** @deprecated use `MysqlStopPlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlStopPlatform$inboundSchema; - /** @deprecated use `MysqlStopPlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlStopPlatform$outboundSchema; - /** @deprecated use `MysqlStopPlatform$Outbound` instead. */ - export type Outbound = MysqlStopPlatform$Outbound; -} - -export function mysqlStopPlatformToJSON( - mysqlStopPlatform: MysqlStopPlatform, -): string { - return JSON.stringify( - MysqlStopPlatform$outboundSchema.parse(mysqlStopPlatform), - ); -} - export function mysqlStopPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1760,43 +838,6 @@ export const MysqlStopSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const MysqlStopSpread$outboundSchema: z.ZodType< - MysqlStopSpread$Outbound, - z.ZodTypeDef, - MysqlStopSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopSpread$ { - /** @deprecated use `MysqlStopSpread$inboundSchema` instead. */ - export const inboundSchema = MysqlStopSpread$inboundSchema; - /** @deprecated use `MysqlStopSpread$outboundSchema` instead. */ - export const outboundSchema = MysqlStopSpread$outboundSchema; - /** @deprecated use `MysqlStopSpread$Outbound` instead. */ - export type Outbound = MysqlStopSpread$Outbound; -} - -export function mysqlStopSpreadToJSON( - mysqlStopSpread: MysqlStopSpread, -): string { - return JSON.stringify(MysqlStopSpread$outboundSchema.parse(mysqlStopSpread)); -} - export function mysqlStopSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1820,45 +861,6 @@ export const MysqlStopPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopPreference$Outbound = { - Spread: MysqlStopSpread$Outbound; -}; - -/** @internal */ -export const MysqlStopPreference$outboundSchema: z.ZodType< - MysqlStopPreference$Outbound, - z.ZodTypeDef, - MysqlStopPreference -> = z.object({ - spread: z.lazy(() => MysqlStopSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopPreference$ { - /** @deprecated use `MysqlStopPreference$inboundSchema` instead. */ - export const inboundSchema = MysqlStopPreference$inboundSchema; - /** @deprecated use `MysqlStopPreference$outboundSchema` instead. */ - export const outboundSchema = MysqlStopPreference$outboundSchema; - /** @deprecated use `MysqlStopPreference$Outbound` instead. */ - export type Outbound = MysqlStopPreference$Outbound; -} - -export function mysqlStopPreferenceToJSON( - mysqlStopPreference: MysqlStopPreference, -): string { - return JSON.stringify( - MysqlStopPreference$outboundSchema.parse(mysqlStopPreference), - ); -} - export function mysqlStopPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1889,55 +891,6 @@ export const MysqlStopPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const MysqlStopPlacementSwarm$outboundSchema: z.ZodType< - MysqlStopPlacementSwarm$Outbound, - z.ZodTypeDef, - MysqlStopPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => MysqlStopPlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => MysqlStopPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopPlacementSwarm$ { - /** @deprecated use `MysqlStopPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStopPlacementSwarm$inboundSchema; - /** @deprecated use `MysqlStopPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStopPlacementSwarm$outboundSchema; - /** @deprecated use `MysqlStopPlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlStopPlacementSwarm$Outbound; -} - -export function mysqlStopPlacementSwarmToJSON( - mysqlStopPlacementSwarm: MysqlStopPlacementSwarm, -): string { - return JSON.stringify( - MysqlStopPlacementSwarm$outboundSchema.parse(mysqlStopPlacementSwarm), - ); -} - export function mysqlStopPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1955,68 +908,18 @@ export const MysqlStopRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type MysqlStopRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const MysqlStopRestartPolicySwarm$outboundSchema: z.ZodType< - MysqlStopRestartPolicySwarm$Outbound, - z.ZodTypeDef, - MysqlStopRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopRestartPolicySwarm$ { - /** @deprecated use `MysqlStopRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStopRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlStopRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStopRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlStopRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlStopRestartPolicySwarm$Outbound; -} - -export function mysqlStopRestartPolicySwarmToJSON( - mysqlStopRestartPolicySwarm: MysqlStopRestartPolicySwarm, -): string { - return JSON.stringify( - MysqlStopRestartPolicySwarm$outboundSchema.parse( - mysqlStopRestartPolicySwarm, - ), - ); -} - export function mysqlStopRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2050,62 +953,6 @@ export const MysqlStopRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlStopRollbackConfigSwarm$outboundSchema: z.ZodType< - MysqlStopRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlStopRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopRollbackConfigSwarm$ { - /** @deprecated use `MysqlStopRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStopRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlStopRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStopRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlStopRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlStopRollbackConfigSwarm$Outbound; -} - -export function mysqlStopRollbackConfigSwarmToJSON( - mysqlStopRollbackConfigSwarm: MysqlStopRollbackConfigSwarm, -): string { - return JSON.stringify( - MysqlStopRollbackConfigSwarm$outboundSchema.parse( - mysqlStopRollbackConfigSwarm, - ), - ); -} - export function mysqlStopRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2121,22 +968,6 @@ export const MysqlStopMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof MysqlStopMetricsConfigEnum > = z.nativeEnum(MysqlStopMetricsConfigEnum); -/** @internal */ -export const MysqlStopMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof MysqlStopMetricsConfigEnum -> = MysqlStopMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMetricsConfigEnum$ { - /** @deprecated use `MysqlStopMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMetricsConfigEnum$inboundSchema; - /** @deprecated use `MysqlStopMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const MysqlStopMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlStopMetricsConfigUnion1, @@ -2149,48 +980,6 @@ export const MysqlStopMetricsConfigUnion1$inboundSchema: z.ZodType< MysqlStopMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type MysqlStopMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const MysqlStopMetricsConfigUnion1$outboundSchema: z.ZodType< - MysqlStopMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - MysqlStopMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlStopMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMetricsConfigUnion1$ { - /** @deprecated use `MysqlStopMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMetricsConfigUnion1$inboundSchema; - /** @deprecated use `MysqlStopMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMetricsConfigUnion1$outboundSchema; - /** @deprecated use `MysqlStopMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = MysqlStopMetricsConfigUnion1$Outbound; -} - -export function mysqlStopMetricsConfigUnion1ToJSON( - mysqlStopMetricsConfigUnion1: MysqlStopMetricsConfigUnion1, -): string { - return JSON.stringify( - MysqlStopMetricsConfigUnion1$outboundSchema.parse( - mysqlStopMetricsConfigUnion1, - ), - ); -} - export function mysqlStopMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2217,54 +1006,6 @@ export const MysqlStopMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type MysqlStopMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const MysqlStopMetricsConfigUnion2$outboundSchema: z.ZodType< - MysqlStopMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - MysqlStopMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopMetricsConfigUnion2$ { - /** @deprecated use `MysqlStopMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = MysqlStopMetricsConfigUnion2$inboundSchema; - /** @deprecated use `MysqlStopMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = MysqlStopMetricsConfigUnion2$outboundSchema; - /** @deprecated use `MysqlStopMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = MysqlStopMetricsConfigUnion2$Outbound; -} - -export function mysqlStopMetricsConfigUnion2ToJSON( - mysqlStopMetricsConfigUnion2: MysqlStopMetricsConfigUnion2, -): string { - return JSON.stringify( - MysqlStopMetricsConfigUnion2$outboundSchema.parse( - mysqlStopMetricsConfigUnion2, - ), - ); -} - export function mysqlStopMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2280,22 +1021,6 @@ export const MysqlStopServerStatus$inboundSchema: z.ZodNativeEnum< typeof MysqlStopServerStatus > = z.nativeEnum(MysqlStopServerStatus); -/** @internal */ -export const MysqlStopServerStatus$outboundSchema: z.ZodNativeEnum< - typeof MysqlStopServerStatus -> = MysqlStopServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopServerStatus$ { - /** @deprecated use `MysqlStopServerStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlStopServerStatus$inboundSchema; - /** @deprecated use `MysqlStopServerStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlStopServerStatus$outboundSchema; -} - /** @internal */ export const MysqlStopServer$inboundSchema: z.ZodType< MysqlStopServer, @@ -2327,76 +1052,6 @@ export const MysqlStopServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type MysqlStopServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const MysqlStopServer$outboundSchema: z.ZodType< - MysqlStopServer$Outbound, - z.ZodTypeDef, - MysqlStopServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - MysqlStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: MysqlStopServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopServer$ { - /** @deprecated use `MysqlStopServer$inboundSchema` instead. */ - export const inboundSchema = MysqlStopServer$inboundSchema; - /** @deprecated use `MysqlStopServer$outboundSchema` instead. */ - export const outboundSchema = MysqlStopServer$outboundSchema; - /** @deprecated use `MysqlStopServer$Outbound` instead. */ - export type Outbound = MysqlStopServer$Outbound; -} - -export function mysqlStopServerToJSON( - mysqlStopServer: MysqlStopServer, -): string { - return JSON.stringify(MysqlStopServer$outboundSchema.parse(mysqlStopServer)); -} - export function mysqlStopServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2430,60 +1085,6 @@ export const MysqlStopUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type MysqlStopUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const MysqlStopUpdateConfigSwarm$outboundSchema: z.ZodType< - MysqlStopUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - MysqlStopUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopUpdateConfigSwarm$ { - /** @deprecated use `MysqlStopUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlStopUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlStopUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlStopUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlStopUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlStopUpdateConfigSwarm$Outbound; -} - -export function mysqlStopUpdateConfigSwarmToJSON( - mysqlStopUpdateConfigSwarm: MysqlStopUpdateConfigSwarm, -): string { - return JSON.stringify( - MysqlStopUpdateConfigSwarm$outboundSchema.parse(mysqlStopUpdateConfigSwarm), - ); -} - export function mysqlStopUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2547,117 +1148,6 @@ export const MysqlStopResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type MysqlStopResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseRootPassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: MysqlStopEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: MysqlStopHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: MysqlStopModeSwarm$Outbound | null; - mounts: Array; - mysqlId: string; - name: string; - networkSwarm: Array | null; - placementSwarm: MysqlStopPlacementSwarm$Outbound | null; - replicas: number; - restartPolicySwarm: MysqlStopRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: MysqlStopRollbackConfigSwarm$Outbound | null; - server: MysqlStopServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: MysqlStopUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const MysqlStopResponseBody$outboundSchema: z.ZodType< - MysqlStopResponseBody$Outbound, - z.ZodTypeDef, - MysqlStopResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: MysqlStopApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => MysqlStopBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseRootPassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => MysqlStopEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlStopHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => MysqlStopModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => MysqlStopMount$outboundSchema)), - mysqlId: z.string(), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlStopNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => MysqlStopPlacementSwarm$outboundSchema), - ), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlStopRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlStopRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => MysqlStopServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlStopUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopResponseBody$ { - /** @deprecated use `MysqlStopResponseBody$inboundSchema` instead. */ - export const inboundSchema = MysqlStopResponseBody$inboundSchema; - /** @deprecated use `MysqlStopResponseBody$outboundSchema` instead. */ - export const outboundSchema = MysqlStopResponseBody$outboundSchema; - /** @deprecated use `MysqlStopResponseBody$Outbound` instead. */ - export type Outbound = MysqlStopResponseBody$Outbound; -} - -export function mysqlStopResponseBodyToJSON( - mysqlStopResponseBody: MysqlStopResponseBody, -): string { - return JSON.stringify( - MysqlStopResponseBody$outboundSchema.parse(mysqlStopResponseBody), - ); -} - export function mysqlStopResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2678,42 +1168,6 @@ export const MysqlStopResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type MysqlStopResponse$Outbound = - | MysqlStopResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const MysqlStopResponse$outboundSchema: z.ZodType< - MysqlStopResponse$Outbound, - z.ZodTypeDef, - MysqlStopResponse -> = z.union([ - z.lazy(() => MysqlStopResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlStopResponse$ { - /** @deprecated use `MysqlStopResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlStopResponse$inboundSchema; - /** @deprecated use `MysqlStopResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlStopResponse$outboundSchema; - /** @deprecated use `MysqlStopResponse$Outbound` instead. */ - export type Outbound = MysqlStopResponse$Outbound; -} - -export function mysqlStopResponseToJSON( - mysqlStopResponse: MysqlStopResponse, -): string { - return JSON.stringify( - MysqlStopResponse$outboundSchema.parse(mysqlStopResponse), - ); -} - export function mysqlStopResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/mysqlupdate.ts b/src/models/operations/mysqlupdate.ts index b5a5e1b..b343450 100644 --- a/src/models/operations/mysqlupdate.ts +++ b/src/models/operations/mysqlupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -134,47 +134,10 @@ export type MysqlUpdateRequest = { export type MysqlUpdateResponse = models.ErrorT | boolean; -/** @internal */ -export const MysqlUpdateApplicationStatus$inboundSchema: z.ZodNativeEnum< - typeof MysqlUpdateApplicationStatus -> = z.nativeEnum(MysqlUpdateApplicationStatus); - /** @internal */ export const MysqlUpdateApplicationStatus$outboundSchema: z.ZodNativeEnum< typeof MysqlUpdateApplicationStatus -> = MysqlUpdateApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateApplicationStatus$ { - /** @deprecated use `MysqlUpdateApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateApplicationStatus$inboundSchema; - /** @deprecated use `MysqlUpdateApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateApplicationStatus$outboundSchema; -} - -/** @internal */ -export const MysqlUpdateHealthCheckSwarm$inboundSchema: z.ZodType< - MysqlUpdateHealthCheckSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Interval: z.number().optional(), - Retries: z.number().optional(), - StartPeriod: z.number().optional(), - Test: z.array(z.string()).optional(), - Timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Interval": "interval", - "Retries": "retries", - "StartPeriod": "startPeriod", - "Test": "test", - "Timeout": "timeout", - }); -}); +> = z.nativeEnum(MysqlUpdateApplicationStatus); /** @internal */ export type MysqlUpdateHealthCheckSwarm$Outbound = { @@ -206,19 +169,6 @@ export const MysqlUpdateHealthCheckSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateHealthCheckSwarm$ { - /** @deprecated use `MysqlUpdateHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateHealthCheckSwarm$inboundSchema; - /** @deprecated use `MysqlUpdateHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateHealthCheckSwarm$outboundSchema; - /** @deprecated use `MysqlUpdateHealthCheckSwarm$Outbound` instead. */ - export type Outbound = MysqlUpdateHealthCheckSwarm$Outbound; -} - export function mysqlUpdateHealthCheckSwarmToJSON( mysqlUpdateHealthCheckSwarm: MysqlUpdateHealthCheckSwarm, ): string { @@ -229,23 +179,6 @@ export function mysqlUpdateHealthCheckSwarmToJSON( ); } -export function mysqlUpdateHealthCheckSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateHealthCheckSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateHealthCheckSwarm' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateGlobal$inboundSchema: z.ZodType< - MysqlUpdateGlobal, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MysqlUpdateGlobal$Outbound = {}; @@ -256,19 +189,6 @@ export const MysqlUpdateGlobal$outboundSchema: z.ZodType< MysqlUpdateGlobal > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateGlobal$ { - /** @deprecated use `MysqlUpdateGlobal$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateGlobal$inboundSchema; - /** @deprecated use `MysqlUpdateGlobal$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateGlobal$outboundSchema; - /** @deprecated use `MysqlUpdateGlobal$Outbound` instead. */ - export type Outbound = MysqlUpdateGlobal$Outbound; -} - export function mysqlUpdateGlobalToJSON( mysqlUpdateGlobal: MysqlUpdateGlobal, ): string { @@ -277,23 +197,6 @@ export function mysqlUpdateGlobalToJSON( ); } -export function mysqlUpdateGlobalFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateGlobal$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateGlobal' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateGlobalJob$inboundSchema: z.ZodType< - MysqlUpdateGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MysqlUpdateGlobalJob$Outbound = {}; @@ -304,19 +207,6 @@ export const MysqlUpdateGlobalJob$outboundSchema: z.ZodType< MysqlUpdateGlobalJob > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateGlobalJob$ { - /** @deprecated use `MysqlUpdateGlobalJob$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateGlobalJob$inboundSchema; - /** @deprecated use `MysqlUpdateGlobalJob$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateGlobalJob$outboundSchema; - /** @deprecated use `MysqlUpdateGlobalJob$Outbound` instead. */ - export type Outbound = MysqlUpdateGlobalJob$Outbound; -} - export function mysqlUpdateGlobalJobToJSON( mysqlUpdateGlobalJob: MysqlUpdateGlobalJob, ): string { @@ -325,29 +215,6 @@ export function mysqlUpdateGlobalJobToJSON( ); } -export function mysqlUpdateGlobalJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateGlobalJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateGlobalJob' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateReplicated$inboundSchema: z.ZodType< - MysqlUpdateReplicated, - z.ZodTypeDef, - unknown -> = z.object({ - Replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Replicas": "replicas", - }); -}); - /** @internal */ export type MysqlUpdateReplicated$Outbound = { Replicas?: number | undefined; @@ -366,19 +233,6 @@ export const MysqlUpdateReplicated$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateReplicated$ { - /** @deprecated use `MysqlUpdateReplicated$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateReplicated$inboundSchema; - /** @deprecated use `MysqlUpdateReplicated$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateReplicated$outboundSchema; - /** @deprecated use `MysqlUpdateReplicated$Outbound` instead. */ - export type Outbound = MysqlUpdateReplicated$Outbound; -} - export function mysqlUpdateReplicatedToJSON( mysqlUpdateReplicated: MysqlUpdateReplicated, ): string { @@ -387,31 +241,6 @@ export function mysqlUpdateReplicatedToJSON( ); } -export function mysqlUpdateReplicatedFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateReplicated$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateReplicated' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateReplicatedJob$inboundSchema: z.ZodType< - MysqlUpdateReplicatedJob, - z.ZodTypeDef, - unknown -> = z.object({ - MaxConcurrent: z.number().optional(), - TotalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "MaxConcurrent": "maxConcurrent", - "TotalCompletions": "totalCompletions", - }); -}); - /** @internal */ export type MysqlUpdateReplicatedJob$Outbound = { MaxConcurrent?: number | undefined; @@ -433,19 +262,6 @@ export const MysqlUpdateReplicatedJob$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateReplicatedJob$ { - /** @deprecated use `MysqlUpdateReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateReplicatedJob$inboundSchema; - /** @deprecated use `MysqlUpdateReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateReplicatedJob$outboundSchema; - /** @deprecated use `MysqlUpdateReplicatedJob$Outbound` instead. */ - export type Outbound = MysqlUpdateReplicatedJob$Outbound; -} - export function mysqlUpdateReplicatedJobToJSON( mysqlUpdateReplicatedJob: MysqlUpdateReplicatedJob, ): string { @@ -454,36 +270,6 @@ export function mysqlUpdateReplicatedJobToJSON( ); } -export function mysqlUpdateReplicatedJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateReplicatedJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateReplicatedJob' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateModeSwarm$inboundSchema: z.ZodType< - MysqlUpdateModeSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Global: z.lazy(() => MysqlUpdateGlobal$inboundSchema).optional(), - GlobalJob: z.lazy(() => MysqlUpdateGlobalJob$inboundSchema).optional(), - Replicated: z.lazy(() => MysqlUpdateReplicated$inboundSchema).optional(), - ReplicatedJob: z.lazy(() => MysqlUpdateReplicatedJob$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "Global": "global", - "GlobalJob": "globalJob", - "Replicated": "replicated", - "ReplicatedJob": "replicatedJob", - }); -}); - /** @internal */ export type MysqlUpdateModeSwarm$Outbound = { Global?: MysqlUpdateGlobal$Outbound | undefined; @@ -512,19 +298,6 @@ export const MysqlUpdateModeSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateModeSwarm$ { - /** @deprecated use `MysqlUpdateModeSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateModeSwarm$inboundSchema; - /** @deprecated use `MysqlUpdateModeSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateModeSwarm$outboundSchema; - /** @deprecated use `MysqlUpdateModeSwarm$Outbound` instead. */ - export type Outbound = MysqlUpdateModeSwarm$Outbound; -} - export function mysqlUpdateModeSwarmToJSON( mysqlUpdateModeSwarm: MysqlUpdateModeSwarm, ): string { @@ -533,23 +306,6 @@ export function mysqlUpdateModeSwarmToJSON( ); } -export function mysqlUpdateModeSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateModeSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateModeSwarm' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateDriverOpts$inboundSchema: z.ZodType< - MysqlUpdateDriverOpts, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type MysqlUpdateDriverOpts$Outbound = {}; @@ -560,19 +316,6 @@ export const MysqlUpdateDriverOpts$outboundSchema: z.ZodType< MysqlUpdateDriverOpts > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateDriverOpts$ { - /** @deprecated use `MysqlUpdateDriverOpts$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateDriverOpts$inboundSchema; - /** @deprecated use `MysqlUpdateDriverOpts$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateDriverOpts$outboundSchema; - /** @deprecated use `MysqlUpdateDriverOpts$Outbound` instead. */ - export type Outbound = MysqlUpdateDriverOpts$Outbound; -} - export function mysqlUpdateDriverOptsToJSON( mysqlUpdateDriverOpts: MysqlUpdateDriverOpts, ): string { @@ -581,33 +324,6 @@ export function mysqlUpdateDriverOptsToJSON( ); } -export function mysqlUpdateDriverOptsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateDriverOpts$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateDriverOpts' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateNetworkSwarm$inboundSchema: z.ZodType< - MysqlUpdateNetworkSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Aliases: z.array(z.string()).optional(), - DriverOpts: z.lazy(() => MysqlUpdateDriverOpts$inboundSchema).optional(), - Target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Aliases": "aliases", - "DriverOpts": "driverOpts", - "Target": "target", - }); -}); - /** @internal */ export type MysqlUpdateNetworkSwarm$Outbound = { Aliases?: Array | undefined; @@ -632,19 +348,6 @@ export const MysqlUpdateNetworkSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateNetworkSwarm$ { - /** @deprecated use `MysqlUpdateNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateNetworkSwarm$inboundSchema; - /** @deprecated use `MysqlUpdateNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateNetworkSwarm$outboundSchema; - /** @deprecated use `MysqlUpdateNetworkSwarm$Outbound` instead. */ - export type Outbound = MysqlUpdateNetworkSwarm$Outbound; -} - export function mysqlUpdateNetworkSwarmToJSON( mysqlUpdateNetworkSwarm: MysqlUpdateNetworkSwarm, ): string { @@ -653,31 +356,6 @@ export function mysqlUpdateNetworkSwarmToJSON( ); } -export function mysqlUpdateNetworkSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateNetworkSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateNetworkSwarm' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdatePlatform$inboundSchema: z.ZodType< - MysqlUpdatePlatform, - z.ZodTypeDef, - unknown -> = z.object({ - Architecture: z.string(), - OS: z.string(), -}).transform((v) => { - return remap$(v, { - "Architecture": "architecture", - "OS": "os", - }); -}); - /** @internal */ export type MysqlUpdatePlatform$Outbound = { Architecture: string; @@ -699,19 +377,6 @@ export const MysqlUpdatePlatform$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdatePlatform$ { - /** @deprecated use `MysqlUpdatePlatform$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdatePlatform$inboundSchema; - /** @deprecated use `MysqlUpdatePlatform$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdatePlatform$outboundSchema; - /** @deprecated use `MysqlUpdatePlatform$Outbound` instead. */ - export type Outbound = MysqlUpdatePlatform$Outbound; -} - export function mysqlUpdatePlatformToJSON( mysqlUpdatePlatform: MysqlUpdatePlatform, ): string { @@ -720,29 +385,6 @@ export function mysqlUpdatePlatformToJSON( ); } -export function mysqlUpdatePlatformFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdatePlatform$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdatePlatform' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateSpread$inboundSchema: z.ZodType< - MysqlUpdateSpread, - z.ZodTypeDef, - unknown -> = z.object({ - SpreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - "SpreadDescriptor": "spreadDescriptor", - }); -}); - /** @internal */ export type MysqlUpdateSpread$Outbound = { SpreadDescriptor: string; @@ -761,19 +403,6 @@ export const MysqlUpdateSpread$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateSpread$ { - /** @deprecated use `MysqlUpdateSpread$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateSpread$inboundSchema; - /** @deprecated use `MysqlUpdateSpread$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateSpread$outboundSchema; - /** @deprecated use `MysqlUpdateSpread$Outbound` instead. */ - export type Outbound = MysqlUpdateSpread$Outbound; -} - export function mysqlUpdateSpreadToJSON( mysqlUpdateSpread: MysqlUpdateSpread, ): string { @@ -782,29 +411,6 @@ export function mysqlUpdateSpreadToJSON( ); } -export function mysqlUpdateSpreadFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateSpread$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateSpread' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdatePreference$inboundSchema: z.ZodType< - MysqlUpdatePreference, - z.ZodTypeDef, - unknown -> = z.object({ - Spread: z.lazy(() => MysqlUpdateSpread$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Spread": "spread", - }); -}); - /** @internal */ export type MysqlUpdatePreference$Outbound = { Spread: MysqlUpdateSpread$Outbound; @@ -823,19 +429,6 @@ export const MysqlUpdatePreference$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdatePreference$ { - /** @deprecated use `MysqlUpdatePreference$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdatePreference$inboundSchema; - /** @deprecated use `MysqlUpdatePreference$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdatePreference$outboundSchema; - /** @deprecated use `MysqlUpdatePreference$Outbound` instead. */ - export type Outbound = MysqlUpdatePreference$Outbound; -} - export function mysqlUpdatePreferenceToJSON( mysqlUpdatePreference: MysqlUpdatePreference, ): string { @@ -844,37 +437,6 @@ export function mysqlUpdatePreferenceToJSON( ); } -export function mysqlUpdatePreferenceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdatePreference$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdatePreference' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdatePlacementSwarm$inboundSchema: z.ZodType< - MysqlUpdatePlacementSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Constraints: z.array(z.string()).optional(), - MaxReplicas: z.number().optional(), - Platforms: z.array(z.lazy(() => MysqlUpdatePlatform$inboundSchema)) - .optional(), - Preferences: z.array(z.lazy(() => MysqlUpdatePreference$inboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - "Constraints": "constraints", - "MaxReplicas": "maxReplicas", - "Platforms": "platforms", - "Preferences": "preferences", - }); -}); - /** @internal */ export type MysqlUpdatePlacementSwarm$Outbound = { Constraints?: Array | undefined; @@ -904,19 +466,6 @@ export const MysqlUpdatePlacementSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdatePlacementSwarm$ { - /** @deprecated use `MysqlUpdatePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdatePlacementSwarm$inboundSchema; - /** @deprecated use `MysqlUpdatePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdatePlacementSwarm$outboundSchema; - /** @deprecated use `MysqlUpdatePlacementSwarm$Outbound` instead. */ - export type Outbound = MysqlUpdatePlacementSwarm$Outbound; -} - export function mysqlUpdatePlacementSwarmToJSON( mysqlUpdatePlacementSwarm: MysqlUpdatePlacementSwarm, ): string { @@ -925,35 +474,6 @@ export function mysqlUpdatePlacementSwarmToJSON( ); } -export function mysqlUpdatePlacementSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdatePlacementSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdatePlacementSwarm' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateRestartPolicySwarm$inboundSchema: z.ZodType< - MysqlUpdateRestartPolicySwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - /** @internal */ export type MysqlUpdateRestartPolicySwarm$Outbound = { Condition?: string | undefined; @@ -981,19 +501,6 @@ export const MysqlUpdateRestartPolicySwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateRestartPolicySwarm$ { - /** @deprecated use `MysqlUpdateRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateRestartPolicySwarm$inboundSchema; - /** @deprecated use `MysqlUpdateRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateRestartPolicySwarm$outboundSchema; - /** @deprecated use `MysqlUpdateRestartPolicySwarm$Outbound` instead. */ - export type Outbound = MysqlUpdateRestartPolicySwarm$Outbound; -} - export function mysqlUpdateRestartPolicySwarmToJSON( mysqlUpdateRestartPolicySwarm: MysqlUpdateRestartPolicySwarm, ): string { @@ -1004,39 +511,6 @@ export function mysqlUpdateRestartPolicySwarmToJSON( ); } -export function mysqlUpdateRestartPolicySwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateRestartPolicySwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateRestartPolicySwarm' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateRollbackConfigSwarm$inboundSchema: z.ZodType< - MysqlUpdateRollbackConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type MysqlUpdateRollbackConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1070,19 +544,6 @@ export const MysqlUpdateRollbackConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateRollbackConfigSwarm$ { - /** @deprecated use `MysqlUpdateRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateRollbackConfigSwarm$inboundSchema; - /** @deprecated use `MysqlUpdateRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateRollbackConfigSwarm$outboundSchema; - /** @deprecated use `MysqlUpdateRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlUpdateRollbackConfigSwarm$Outbound; -} - export function mysqlUpdateRollbackConfigSwarmToJSON( mysqlUpdateRollbackConfigSwarm: MysqlUpdateRollbackConfigSwarm, ): string { @@ -1093,39 +554,6 @@ export function mysqlUpdateRollbackConfigSwarmToJSON( ); } -export function mysqlUpdateRollbackConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateRollbackConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateRollbackConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateUpdateConfigSwarm$inboundSchema: z.ZodType< - MysqlUpdateUpdateConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type MysqlUpdateUpdateConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1159,19 +587,6 @@ export const MysqlUpdateUpdateConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateUpdateConfigSwarm$ { - /** @deprecated use `MysqlUpdateUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateUpdateConfigSwarm$inboundSchema; - /** @deprecated use `MysqlUpdateUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateUpdateConfigSwarm$outboundSchema; - /** @deprecated use `MysqlUpdateUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = MysqlUpdateUpdateConfigSwarm$Outbound; -} - export function mysqlUpdateUpdateConfigSwarmToJSON( mysqlUpdateUpdateConfigSwarm: MysqlUpdateUpdateConfigSwarm, ): string { @@ -1182,65 +597,6 @@ export function mysqlUpdateUpdateConfigSwarmToJSON( ); } -export function mysqlUpdateUpdateConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateUpdateConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateUpdateConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const MysqlUpdateRequest$inboundSchema: z.ZodType< - MysqlUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationStatus: MysqlUpdateApplicationStatus$inboundSchema.optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - databaseName: z.string().optional(), - databasePassword: z.string().optional(), - databaseRootPassword: z.string().optional(), - databaseUser: z.string().optional(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("mysql:8"), - env: z.nullable(z.string()).optional(), - environmentId: z.string().optional(), - externalPort: z.nullable(z.number()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => MysqlUpdateHealthCheckSwarm$inboundSchema), - ).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => MysqlUpdateModeSwarm$inboundSchema)) - .optional(), - mysqlId: z.string(), - name: z.string().optional(), - networkSwarm: z.nullable( - z.array(z.lazy(() => MysqlUpdateNetworkSwarm$inboundSchema)), - ).optional(), - placementSwarm: z.nullable( - z.lazy(() => MysqlUpdatePlacementSwarm$inboundSchema), - ).optional(), - replicas: z.number().optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => MysqlUpdateRestartPolicySwarm$inboundSchema), - ).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => MysqlUpdateRollbackConfigSwarm$inboundSchema), - ).optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => MysqlUpdateUpdateConfigSwarm$inboundSchema), - ).optional(), -}); - /** @internal */ export type MysqlUpdateRequest$Outbound = { appName?: string | undefined; @@ -1328,19 +684,6 @@ export const MysqlUpdateRequest$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateRequest$ { - /** @deprecated use `MysqlUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateRequest$inboundSchema; - /** @deprecated use `MysqlUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateRequest$outboundSchema; - /** @deprecated use `MysqlUpdateRequest$Outbound` instead. */ - export type Outbound = MysqlUpdateRequest$Outbound; -} - export function mysqlUpdateRequestToJSON( mysqlUpdateRequest: MysqlUpdateRequest, ): string { @@ -1349,16 +692,6 @@ export function mysqlUpdateRequestToJSON( ); } -export function mysqlUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MysqlUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MysqlUpdateRequest' from JSON`, - ); -} - /** @internal */ export const MysqlUpdateResponse$inboundSchema: z.ZodType< MysqlUpdateResponse, @@ -1366,37 +699,6 @@ export const MysqlUpdateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type MysqlUpdateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const MysqlUpdateResponse$outboundSchema: z.ZodType< - MysqlUpdateResponse$Outbound, - z.ZodTypeDef, - MysqlUpdateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MysqlUpdateResponse$ { - /** @deprecated use `MysqlUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = MysqlUpdateResponse$inboundSchema; - /** @deprecated use `MysqlUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = MysqlUpdateResponse$outboundSchema; - /** @deprecated use `MysqlUpdateResponse$Outbound` instead. */ - export type Outbound = MysqlUpdateResponse$Outbound; -} - -export function mysqlUpdateResponseToJSON( - mysqlUpdateResponse: MysqlUpdateResponse, -): string { - return JSON.stringify( - MysqlUpdateResponse$outboundSchema.parse(mysqlUpdateResponse), - ); -} - export function mysqlUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/notificationcreatediscord.ts b/src/models/operations/notificationcreatediscord.ts index be54695..4adc3c2 100644 --- a/src/models/operations/notificationcreatediscord.ts +++ b/src/models/operations/notificationcreatediscord.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationCreateDiscordRequest = { appBuildError: boolean; @@ -19,23 +16,6 @@ export type NotificationCreateDiscordRequest = { webhookUrl: string; }; -/** @internal */ -export const NotificationCreateDiscordRequest$inboundSchema: z.ZodType< - NotificationCreateDiscordRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean(), - appDeploy: z.boolean(), - databaseBackup: z.boolean(), - decoration: z.boolean(), - dockerCleanup: z.boolean(), - dokployRestart: z.boolean(), - name: z.string(), - serverThreshold: z.boolean(), - webhookUrl: z.string(), -}); - /** @internal */ export type NotificationCreateDiscordRequest$Outbound = { appBuildError: boolean; @@ -66,19 +46,6 @@ export const NotificationCreateDiscordRequest$outboundSchema: z.ZodType< webhookUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationCreateDiscordRequest$ { - /** @deprecated use `NotificationCreateDiscordRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationCreateDiscordRequest$inboundSchema; - /** @deprecated use `NotificationCreateDiscordRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationCreateDiscordRequest$outboundSchema; - /** @deprecated use `NotificationCreateDiscordRequest$Outbound` instead. */ - export type Outbound = NotificationCreateDiscordRequest$Outbound; -} - export function notificationCreateDiscordRequestToJSON( notificationCreateDiscordRequest: NotificationCreateDiscordRequest, ): string { @@ -88,13 +55,3 @@ export function notificationCreateDiscordRequestToJSON( ), ); } - -export function notificationCreateDiscordRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationCreateDiscordRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationCreateDiscordRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationcreateemail.ts b/src/models/operations/notificationcreateemail.ts index 578c4a6..3647f15 100644 --- a/src/models/operations/notificationcreateemail.ts +++ b/src/models/operations/notificationcreateemail.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationCreateEmailRequest = { appBuildError: boolean; @@ -23,27 +20,6 @@ export type NotificationCreateEmailRequest = { username: string; }; -/** @internal */ -export const NotificationCreateEmailRequest$inboundSchema: z.ZodType< - NotificationCreateEmailRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean(), - appDeploy: z.boolean(), - databaseBackup: z.boolean(), - dockerCleanup: z.boolean(), - dokployRestart: z.boolean(), - fromAddress: z.string(), - name: z.string(), - password: z.string(), - serverThreshold: z.boolean(), - smtpPort: z.number(), - smtpServer: z.string(), - toAddresses: z.array(z.string()), - username: z.string(), -}); - /** @internal */ export type NotificationCreateEmailRequest$Outbound = { appBuildError: boolean; @@ -82,19 +58,6 @@ export const NotificationCreateEmailRequest$outboundSchema: z.ZodType< username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationCreateEmailRequest$ { - /** @deprecated use `NotificationCreateEmailRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationCreateEmailRequest$inboundSchema; - /** @deprecated use `NotificationCreateEmailRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationCreateEmailRequest$outboundSchema; - /** @deprecated use `NotificationCreateEmailRequest$Outbound` instead. */ - export type Outbound = NotificationCreateEmailRequest$Outbound; -} - export function notificationCreateEmailRequestToJSON( notificationCreateEmailRequest: NotificationCreateEmailRequest, ): string { @@ -104,13 +67,3 @@ export function notificationCreateEmailRequestToJSON( ), ); } - -export function notificationCreateEmailRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationCreateEmailRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationCreateEmailRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationcreategotify.ts b/src/models/operations/notificationcreategotify.ts index f475652..65d0d0e 100644 --- a/src/models/operations/notificationcreategotify.ts +++ b/src/models/operations/notificationcreategotify.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationCreateGotifyRequest = { appBuildError: boolean; @@ -20,24 +17,6 @@ export type NotificationCreateGotifyRequest = { serverUrl: string; }; -/** @internal */ -export const NotificationCreateGotifyRequest$inboundSchema: z.ZodType< - NotificationCreateGotifyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean(), - appDeploy: z.boolean(), - appToken: z.string(), - databaseBackup: z.boolean(), - decoration: z.boolean(), - dockerCleanup: z.boolean(), - dokployRestart: z.boolean(), - name: z.string(), - priority: z.number(), - serverUrl: z.string(), -}); - /** @internal */ export type NotificationCreateGotifyRequest$Outbound = { appBuildError: boolean; @@ -70,19 +49,6 @@ export const NotificationCreateGotifyRequest$outboundSchema: z.ZodType< serverUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationCreateGotifyRequest$ { - /** @deprecated use `NotificationCreateGotifyRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationCreateGotifyRequest$inboundSchema; - /** @deprecated use `NotificationCreateGotifyRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationCreateGotifyRequest$outboundSchema; - /** @deprecated use `NotificationCreateGotifyRequest$Outbound` instead. */ - export type Outbound = NotificationCreateGotifyRequest$Outbound; -} - export function notificationCreateGotifyRequestToJSON( notificationCreateGotifyRequest: NotificationCreateGotifyRequest, ): string { @@ -92,13 +58,3 @@ export function notificationCreateGotifyRequestToJSON( ), ); } - -export function notificationCreateGotifyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationCreateGotifyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationCreateGotifyRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationcreatentfy.ts b/src/models/operations/notificationcreatentfy.ts index 2ad85f0..e5b195c 100644 --- a/src/models/operations/notificationcreatentfy.ts +++ b/src/models/operations/notificationcreatentfy.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationCreateNtfyRequest = { accessToken: string; @@ -20,24 +17,6 @@ export type NotificationCreateNtfyRequest = { topic: string; }; -/** @internal */ -export const NotificationCreateNtfyRequest$inboundSchema: z.ZodType< - NotificationCreateNtfyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessToken: z.string(), - appBuildError: z.boolean(), - appDeploy: z.boolean(), - databaseBackup: z.boolean(), - dockerCleanup: z.boolean(), - dokployRestart: z.boolean(), - name: z.string(), - priority: z.number(), - serverUrl: z.string(), - topic: z.string(), -}); - /** @internal */ export type NotificationCreateNtfyRequest$Outbound = { accessToken: string; @@ -70,19 +49,6 @@ export const NotificationCreateNtfyRequest$outboundSchema: z.ZodType< topic: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationCreateNtfyRequest$ { - /** @deprecated use `NotificationCreateNtfyRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationCreateNtfyRequest$inboundSchema; - /** @deprecated use `NotificationCreateNtfyRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationCreateNtfyRequest$outboundSchema; - /** @deprecated use `NotificationCreateNtfyRequest$Outbound` instead. */ - export type Outbound = NotificationCreateNtfyRequest$Outbound; -} - export function notificationCreateNtfyRequestToJSON( notificationCreateNtfyRequest: NotificationCreateNtfyRequest, ): string { @@ -92,13 +58,3 @@ export function notificationCreateNtfyRequestToJSON( ), ); } - -export function notificationCreateNtfyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationCreateNtfyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationCreateNtfyRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationcreateslack.ts b/src/models/operations/notificationcreateslack.ts index 5ef7aaf..23d202a 100644 --- a/src/models/operations/notificationcreateslack.ts +++ b/src/models/operations/notificationcreateslack.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationCreateSlackRequest = { appBuildError: boolean; @@ -19,23 +16,6 @@ export type NotificationCreateSlackRequest = { webhookUrl: string; }; -/** @internal */ -export const NotificationCreateSlackRequest$inboundSchema: z.ZodType< - NotificationCreateSlackRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean(), - appDeploy: z.boolean(), - channel: z.string(), - databaseBackup: z.boolean(), - dockerCleanup: z.boolean(), - dokployRestart: z.boolean(), - name: z.string(), - serverThreshold: z.boolean(), - webhookUrl: z.string(), -}); - /** @internal */ export type NotificationCreateSlackRequest$Outbound = { appBuildError: boolean; @@ -66,19 +46,6 @@ export const NotificationCreateSlackRequest$outboundSchema: z.ZodType< webhookUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationCreateSlackRequest$ { - /** @deprecated use `NotificationCreateSlackRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationCreateSlackRequest$inboundSchema; - /** @deprecated use `NotificationCreateSlackRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationCreateSlackRequest$outboundSchema; - /** @deprecated use `NotificationCreateSlackRequest$Outbound` instead. */ - export type Outbound = NotificationCreateSlackRequest$Outbound; -} - export function notificationCreateSlackRequestToJSON( notificationCreateSlackRequest: NotificationCreateSlackRequest, ): string { @@ -88,13 +55,3 @@ export function notificationCreateSlackRequestToJSON( ), ); } - -export function notificationCreateSlackRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationCreateSlackRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationCreateSlackRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationcreatetelegram.ts b/src/models/operations/notificationcreatetelegram.ts index 275bcf8..cfdf4e8 100644 --- a/src/models/operations/notificationcreatetelegram.ts +++ b/src/models/operations/notificationcreatetelegram.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationCreateTelegramRequest = { appBuildError: boolean; @@ -20,24 +17,6 @@ export type NotificationCreateTelegramRequest = { serverThreshold: boolean; }; -/** @internal */ -export const NotificationCreateTelegramRequest$inboundSchema: z.ZodType< - NotificationCreateTelegramRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean(), - appDeploy: z.boolean(), - botToken: z.string(), - chatId: z.string(), - databaseBackup: z.boolean(), - dockerCleanup: z.boolean(), - dokployRestart: z.boolean(), - messageThreadId: z.string(), - name: z.string(), - serverThreshold: z.boolean(), -}); - /** @internal */ export type NotificationCreateTelegramRequest$Outbound = { appBuildError: boolean; @@ -70,20 +49,6 @@ export const NotificationCreateTelegramRequest$outboundSchema: z.ZodType< serverThreshold: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationCreateTelegramRequest$ { - /** @deprecated use `NotificationCreateTelegramRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationCreateTelegramRequest$inboundSchema; - /** @deprecated use `NotificationCreateTelegramRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationCreateTelegramRequest$outboundSchema; - /** @deprecated use `NotificationCreateTelegramRequest$Outbound` instead. */ - export type Outbound = NotificationCreateTelegramRequest$Outbound; -} - export function notificationCreateTelegramRequestToJSON( notificationCreateTelegramRequest: NotificationCreateTelegramRequest, ): string { @@ -93,13 +58,3 @@ export function notificationCreateTelegramRequestToJSON( ), ); } - -export function notificationCreateTelegramRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationCreateTelegramRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationCreateTelegramRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationone.ts b/src/models/operations/notificationone.ts index f6c52c1..6402163 100644 --- a/src/models/operations/notificationone.ts +++ b/src/models/operations/notificationone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationOneRequest = { notificationId: string; }; -/** @internal */ -export const NotificationOneRequest$inboundSchema: z.ZodType< - NotificationOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - notificationId: z.string(), -}); - /** @internal */ export type NotificationOneRequest$Outbound = { notificationId: string; @@ -34,19 +22,6 @@ export const NotificationOneRequest$outboundSchema: z.ZodType< notificationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationOneRequest$ { - /** @deprecated use `NotificationOneRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationOneRequest$inboundSchema; - /** @deprecated use `NotificationOneRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationOneRequest$outboundSchema; - /** @deprecated use `NotificationOneRequest$Outbound` instead. */ - export type Outbound = NotificationOneRequest$Outbound; -} - export function notificationOneRequestToJSON( notificationOneRequest: NotificationOneRequest, ): string { @@ -54,13 +29,3 @@ export function notificationOneRequestToJSON( NotificationOneRequest$outboundSchema.parse(notificationOneRequest), ); } - -export function notificationOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationreceivenotification.ts b/src/models/operations/notificationreceivenotification.ts index 4a47857..d8de165 100644 --- a/src/models/operations/notificationreceivenotification.ts +++ b/src/models/operations/notificationreceivenotification.ts @@ -2,12 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ServerType = { Dokploy: "Dokploy", @@ -34,71 +31,14 @@ export type NotificationReceiveNotificationRequest = { }; /** @internal */ -export const ServerType$inboundSchema: z.ZodNativeEnum = z +export const ServerType$outboundSchema: z.ZodNativeEnum = z .nativeEnum(ServerType); -/** @internal */ -export const ServerType$outboundSchema: z.ZodNativeEnum = - ServerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerType$ { - /** @deprecated use `ServerType$inboundSchema` instead. */ - export const inboundSchema = ServerType$inboundSchema; - /** @deprecated use `ServerType$outboundSchema` instead. */ - export const outboundSchema = ServerType$outboundSchema; -} - -/** @internal */ -export const NotificationReceiveNotificationType$inboundSchema: z.ZodNativeEnum< - typeof NotificationReceiveNotificationType -> = z.nativeEnum(NotificationReceiveNotificationType); - /** @internal */ export const NotificationReceiveNotificationType$outboundSchema: - z.ZodNativeEnum = - NotificationReceiveNotificationType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationReceiveNotificationType$ { - /** @deprecated use `NotificationReceiveNotificationType$inboundSchema` instead. */ - export const inboundSchema = - NotificationReceiveNotificationType$inboundSchema; - /** @deprecated use `NotificationReceiveNotificationType$outboundSchema` instead. */ - export const outboundSchema = - NotificationReceiveNotificationType$outboundSchema; -} - -/** @internal */ -export const NotificationReceiveNotificationRequest$inboundSchema: z.ZodType< - NotificationReceiveNotificationRequest, - z.ZodTypeDef, - unknown -> = z.object({ - Message: z.string(), - ServerType: ServerType$inboundSchema.default("Dokploy"), - Threshold: z.number(), - Timestamp: z.string(), - Token: z.string(), - Type: NotificationReceiveNotificationType$inboundSchema, - Value: z.number(), -}).transform((v) => { - return remap$(v, { - "Message": "message", - "ServerType": "serverType", - "Threshold": "threshold", - "Timestamp": "timestamp", - "Token": "token", - "Type": "type", - "Value": "value", - }); -}); + z.ZodNativeEnum = z.nativeEnum( + NotificationReceiveNotificationType, + ); /** @internal */ export type NotificationReceiveNotificationRequest$Outbound = { @@ -136,21 +76,6 @@ export const NotificationReceiveNotificationRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationReceiveNotificationRequest$ { - /** @deprecated use `NotificationReceiveNotificationRequest$inboundSchema` instead. */ - export const inboundSchema = - NotificationReceiveNotificationRequest$inboundSchema; - /** @deprecated use `NotificationReceiveNotificationRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationReceiveNotificationRequest$outboundSchema; - /** @deprecated use `NotificationReceiveNotificationRequest$Outbound` instead. */ - export type Outbound = NotificationReceiveNotificationRequest$Outbound; -} - export function notificationReceiveNotificationRequestToJSON( notificationReceiveNotificationRequest: NotificationReceiveNotificationRequest, @@ -161,14 +86,3 @@ export function notificationReceiveNotificationRequestToJSON( ), ); } - -export function notificationReceiveNotificationRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - NotificationReceiveNotificationRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationReceiveNotificationRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationremove.ts b/src/models/operations/notificationremove.ts index 4aa3746..61a5ca1 100644 --- a/src/models/operations/notificationremove.ts +++ b/src/models/operations/notificationremove.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationRemoveRequest = { notificationId: string; }; -/** @internal */ -export const NotificationRemoveRequest$inboundSchema: z.ZodType< - NotificationRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - notificationId: z.string(), -}); - /** @internal */ export type NotificationRemoveRequest$Outbound = { notificationId: string; @@ -34,19 +22,6 @@ export const NotificationRemoveRequest$outboundSchema: z.ZodType< notificationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationRemoveRequest$ { - /** @deprecated use `NotificationRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationRemoveRequest$inboundSchema; - /** @deprecated use `NotificationRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationRemoveRequest$outboundSchema; - /** @deprecated use `NotificationRemoveRequest$Outbound` instead. */ - export type Outbound = NotificationRemoveRequest$Outbound; -} - export function notificationRemoveRequestToJSON( notificationRemoveRequest: NotificationRemoveRequest, ): string { @@ -54,13 +29,3 @@ export function notificationRemoveRequestToJSON( NotificationRemoveRequest$outboundSchema.parse(notificationRemoveRequest), ); } - -export function notificationRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationRemoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationtestdiscordconnection.ts b/src/models/operations/notificationtestdiscordconnection.ts index f3b7376..486d6bf 100644 --- a/src/models/operations/notificationtestdiscordconnection.ts +++ b/src/models/operations/notificationtestdiscordconnection.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationTestDiscordConnectionRequest = { decoration?: boolean | undefined; webhookUrl: string; }; -/** @internal */ -export const NotificationTestDiscordConnectionRequest$inboundSchema: z.ZodType< - NotificationTestDiscordConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - decoration: z.boolean().optional(), - webhookUrl: z.string(), -}); - /** @internal */ export type NotificationTestDiscordConnectionRequest$Outbound = { decoration?: boolean | undefined; @@ -38,21 +25,6 @@ export const NotificationTestDiscordConnectionRequest$outboundSchema: z.ZodType< webhookUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationTestDiscordConnectionRequest$ { - /** @deprecated use `NotificationTestDiscordConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = - NotificationTestDiscordConnectionRequest$inboundSchema; - /** @deprecated use `NotificationTestDiscordConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationTestDiscordConnectionRequest$outboundSchema; - /** @deprecated use `NotificationTestDiscordConnectionRequest$Outbound` instead. */ - export type Outbound = NotificationTestDiscordConnectionRequest$Outbound; -} - export function notificationTestDiscordConnectionRequestToJSON( notificationTestDiscordConnectionRequest: NotificationTestDiscordConnectionRequest, @@ -63,19 +35,3 @@ export function notificationTestDiscordConnectionRequestToJSON( ), ); } - -export function notificationTestDiscordConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult< - NotificationTestDiscordConnectionRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - NotificationTestDiscordConnectionRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'NotificationTestDiscordConnectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationtestemailconnection.ts b/src/models/operations/notificationtestemailconnection.ts index 4a23e60..6801a83 100644 --- a/src/models/operations/notificationtestemailconnection.ts +++ b/src/models/operations/notificationtestemailconnection.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationTestEmailConnectionRequest = { fromAddress: string; @@ -16,20 +13,6 @@ export type NotificationTestEmailConnectionRequest = { username: string; }; -/** @internal */ -export const NotificationTestEmailConnectionRequest$inboundSchema: z.ZodType< - NotificationTestEmailConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - fromAddress: z.string(), - password: z.string(), - smtpPort: z.number(), - smtpServer: z.string(), - toAddresses: z.array(z.string()), - username: z.string(), -}); - /** @internal */ export type NotificationTestEmailConnectionRequest$Outbound = { fromAddress: string; @@ -54,21 +37,6 @@ export const NotificationTestEmailConnectionRequest$outboundSchema: z.ZodType< username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationTestEmailConnectionRequest$ { - /** @deprecated use `NotificationTestEmailConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = - NotificationTestEmailConnectionRequest$inboundSchema; - /** @deprecated use `NotificationTestEmailConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationTestEmailConnectionRequest$outboundSchema; - /** @deprecated use `NotificationTestEmailConnectionRequest$Outbound` instead. */ - export type Outbound = NotificationTestEmailConnectionRequest$Outbound; -} - export function notificationTestEmailConnectionRequestToJSON( notificationTestEmailConnectionRequest: NotificationTestEmailConnectionRequest, @@ -79,14 +47,3 @@ export function notificationTestEmailConnectionRequestToJSON( ), ); } - -export function notificationTestEmailConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - NotificationTestEmailConnectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationTestEmailConnectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationtestgotifyconnection.ts b/src/models/operations/notificationtestgotifyconnection.ts index e09623f..b6399ec 100644 --- a/src/models/operations/notificationtestgotifyconnection.ts +++ b/src/models/operations/notificationtestgotifyconnection.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationTestGotifyConnectionRequest = { appToken: string; @@ -14,18 +11,6 @@ export type NotificationTestGotifyConnectionRequest = { serverUrl: string; }; -/** @internal */ -export const NotificationTestGotifyConnectionRequest$inboundSchema: z.ZodType< - NotificationTestGotifyConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appToken: z.string(), - decoration: z.boolean().optional(), - priority: z.number(), - serverUrl: z.string(), -}); - /** @internal */ export type NotificationTestGotifyConnectionRequest$Outbound = { appToken: string; @@ -46,21 +31,6 @@ export const NotificationTestGotifyConnectionRequest$outboundSchema: z.ZodType< serverUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationTestGotifyConnectionRequest$ { - /** @deprecated use `NotificationTestGotifyConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = - NotificationTestGotifyConnectionRequest$inboundSchema; - /** @deprecated use `NotificationTestGotifyConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationTestGotifyConnectionRequest$outboundSchema; - /** @deprecated use `NotificationTestGotifyConnectionRequest$Outbound` instead. */ - export type Outbound = NotificationTestGotifyConnectionRequest$Outbound; -} - export function notificationTestGotifyConnectionRequestToJSON( notificationTestGotifyConnectionRequest: NotificationTestGotifyConnectionRequest, @@ -71,19 +41,3 @@ export function notificationTestGotifyConnectionRequestToJSON( ), ); } - -export function notificationTestGotifyConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult< - NotificationTestGotifyConnectionRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - NotificationTestGotifyConnectionRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'NotificationTestGotifyConnectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationtestntfyconnection.ts b/src/models/operations/notificationtestntfyconnection.ts index 1a15f28..3c3666c 100644 --- a/src/models/operations/notificationtestntfyconnection.ts +++ b/src/models/operations/notificationtestntfyconnection.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationTestNtfyConnectionRequest = { accessToken: string; @@ -14,18 +11,6 @@ export type NotificationTestNtfyConnectionRequest = { topic: string; }; -/** @internal */ -export const NotificationTestNtfyConnectionRequest$inboundSchema: z.ZodType< - NotificationTestNtfyConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessToken: z.string(), - priority: z.number(), - serverUrl: z.string(), - topic: z.string(), -}); - /** @internal */ export type NotificationTestNtfyConnectionRequest$Outbound = { accessToken: string; @@ -46,21 +31,6 @@ export const NotificationTestNtfyConnectionRequest$outboundSchema: z.ZodType< topic: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationTestNtfyConnectionRequest$ { - /** @deprecated use `NotificationTestNtfyConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = - NotificationTestNtfyConnectionRequest$inboundSchema; - /** @deprecated use `NotificationTestNtfyConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationTestNtfyConnectionRequest$outboundSchema; - /** @deprecated use `NotificationTestNtfyConnectionRequest$Outbound` instead. */ - export type Outbound = NotificationTestNtfyConnectionRequest$Outbound; -} - export function notificationTestNtfyConnectionRequestToJSON( notificationTestNtfyConnectionRequest: NotificationTestNtfyConnectionRequest, ): string { @@ -70,14 +40,3 @@ export function notificationTestNtfyConnectionRequestToJSON( ), ); } - -export function notificationTestNtfyConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - NotificationTestNtfyConnectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationTestNtfyConnectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationtestslackconnection.ts b/src/models/operations/notificationtestslackconnection.ts index b2cea41..40032d6 100644 --- a/src/models/operations/notificationtestslackconnection.ts +++ b/src/models/operations/notificationtestslackconnection.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationTestSlackConnectionRequest = { channel: string; webhookUrl: string; }; -/** @internal */ -export const NotificationTestSlackConnectionRequest$inboundSchema: z.ZodType< - NotificationTestSlackConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - channel: z.string(), - webhookUrl: z.string(), -}); - /** @internal */ export type NotificationTestSlackConnectionRequest$Outbound = { channel: string; @@ -38,21 +25,6 @@ export const NotificationTestSlackConnectionRequest$outboundSchema: z.ZodType< webhookUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationTestSlackConnectionRequest$ { - /** @deprecated use `NotificationTestSlackConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = - NotificationTestSlackConnectionRequest$inboundSchema; - /** @deprecated use `NotificationTestSlackConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationTestSlackConnectionRequest$outboundSchema; - /** @deprecated use `NotificationTestSlackConnectionRequest$Outbound` instead. */ - export type Outbound = NotificationTestSlackConnectionRequest$Outbound; -} - export function notificationTestSlackConnectionRequestToJSON( notificationTestSlackConnectionRequest: NotificationTestSlackConnectionRequest, @@ -63,14 +35,3 @@ export function notificationTestSlackConnectionRequestToJSON( ), ); } - -export function notificationTestSlackConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - NotificationTestSlackConnectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationTestSlackConnectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationtesttelegramconnection.ts b/src/models/operations/notificationtesttelegramconnection.ts index 4b6de81..f0838e5 100644 --- a/src/models/operations/notificationtesttelegramconnection.ts +++ b/src/models/operations/notificationtesttelegramconnection.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationTestTelegramConnectionRequest = { botToken: string; @@ -13,17 +10,6 @@ export type NotificationTestTelegramConnectionRequest = { messageThreadId: string; }; -/** @internal */ -export const NotificationTestTelegramConnectionRequest$inboundSchema: z.ZodType< - NotificationTestTelegramConnectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - botToken: z.string(), - chatId: z.string(), - messageThreadId: z.string(), -}); - /** @internal */ export type NotificationTestTelegramConnectionRequest$Outbound = { botToken: string; @@ -43,21 +29,6 @@ export const NotificationTestTelegramConnectionRequest$outboundSchema: messageThreadId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationTestTelegramConnectionRequest$ { - /** @deprecated use `NotificationTestTelegramConnectionRequest$inboundSchema` instead. */ - export const inboundSchema = - NotificationTestTelegramConnectionRequest$inboundSchema; - /** @deprecated use `NotificationTestTelegramConnectionRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationTestTelegramConnectionRequest$outboundSchema; - /** @deprecated use `NotificationTestTelegramConnectionRequest$Outbound` instead. */ - export type Outbound = NotificationTestTelegramConnectionRequest$Outbound; -} - export function notificationTestTelegramConnectionRequestToJSON( notificationTestTelegramConnectionRequest: NotificationTestTelegramConnectionRequest, @@ -68,19 +39,3 @@ export function notificationTestTelegramConnectionRequestToJSON( ), ); } - -export function notificationTestTelegramConnectionRequestFromJSON( - jsonString: string, -): SafeParseResult< - NotificationTestTelegramConnectionRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - NotificationTestTelegramConnectionRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'NotificationTestTelegramConnectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationupdatediscord.ts b/src/models/operations/notificationupdatediscord.ts index 272a0fc..e6bd1c8 100644 --- a/src/models/operations/notificationupdatediscord.ts +++ b/src/models/operations/notificationupdatediscord.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationUpdateDiscordRequest = { appBuildError?: boolean | undefined; @@ -22,26 +19,6 @@ export type NotificationUpdateDiscordRequest = { webhookUrl?: string | undefined; }; -/** @internal */ -export const NotificationUpdateDiscordRequest$inboundSchema: z.ZodType< - NotificationUpdateDiscordRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean().optional(), - appDeploy: z.boolean().optional(), - databaseBackup: z.boolean().optional(), - decoration: z.boolean().optional(), - discordId: z.string(), - dockerCleanup: z.boolean().optional(), - dokployRestart: z.boolean().optional(), - name: z.string().optional(), - notificationId: z.string(), - organizationId: z.string().optional(), - serverThreshold: z.boolean().optional(), - webhookUrl: z.string().optional(), -}); - /** @internal */ export type NotificationUpdateDiscordRequest$Outbound = { appBuildError?: boolean | undefined; @@ -78,19 +55,6 @@ export const NotificationUpdateDiscordRequest$outboundSchema: z.ZodType< webhookUrl: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationUpdateDiscordRequest$ { - /** @deprecated use `NotificationUpdateDiscordRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationUpdateDiscordRequest$inboundSchema; - /** @deprecated use `NotificationUpdateDiscordRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationUpdateDiscordRequest$outboundSchema; - /** @deprecated use `NotificationUpdateDiscordRequest$Outbound` instead. */ - export type Outbound = NotificationUpdateDiscordRequest$Outbound; -} - export function notificationUpdateDiscordRequestToJSON( notificationUpdateDiscordRequest: NotificationUpdateDiscordRequest, ): string { @@ -100,13 +64,3 @@ export function notificationUpdateDiscordRequestToJSON( ), ); } - -export function notificationUpdateDiscordRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationUpdateDiscordRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationUpdateDiscordRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationupdateemail.ts b/src/models/operations/notificationupdateemail.ts index 6b492a7..f101d05 100644 --- a/src/models/operations/notificationupdateemail.ts +++ b/src/models/operations/notificationupdateemail.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationUpdateEmailRequest = { appBuildError?: boolean | undefined; @@ -26,30 +23,6 @@ export type NotificationUpdateEmailRequest = { username?: string | undefined; }; -/** @internal */ -export const NotificationUpdateEmailRequest$inboundSchema: z.ZodType< - NotificationUpdateEmailRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean().optional(), - appDeploy: z.boolean().optional(), - databaseBackup: z.boolean().optional(), - dockerCleanup: z.boolean().optional(), - dokployRestart: z.boolean().optional(), - emailId: z.string(), - fromAddress: z.string().optional(), - name: z.string().optional(), - notificationId: z.string(), - organizationId: z.string().optional(), - password: z.string().optional(), - serverThreshold: z.boolean().optional(), - smtpPort: z.number().optional(), - smtpServer: z.string().optional(), - toAddresses: z.array(z.string()).optional(), - username: z.string().optional(), -}); - /** @internal */ export type NotificationUpdateEmailRequest$Outbound = { appBuildError?: boolean | undefined; @@ -94,19 +67,6 @@ export const NotificationUpdateEmailRequest$outboundSchema: z.ZodType< username: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationUpdateEmailRequest$ { - /** @deprecated use `NotificationUpdateEmailRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationUpdateEmailRequest$inboundSchema; - /** @deprecated use `NotificationUpdateEmailRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationUpdateEmailRequest$outboundSchema; - /** @deprecated use `NotificationUpdateEmailRequest$Outbound` instead. */ - export type Outbound = NotificationUpdateEmailRequest$Outbound; -} - export function notificationUpdateEmailRequestToJSON( notificationUpdateEmailRequest: NotificationUpdateEmailRequest, ): string { @@ -116,13 +76,3 @@ export function notificationUpdateEmailRequestToJSON( ), ); } - -export function notificationUpdateEmailRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationUpdateEmailRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationUpdateEmailRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationupdategotify.ts b/src/models/operations/notificationupdategotify.ts index 4ed24e0..d94db9e 100644 --- a/src/models/operations/notificationupdategotify.ts +++ b/src/models/operations/notificationupdategotify.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationUpdateGotifyRequest = { appBuildError?: boolean | undefined; @@ -23,27 +20,6 @@ export type NotificationUpdateGotifyRequest = { serverUrl?: string | undefined; }; -/** @internal */ -export const NotificationUpdateGotifyRequest$inboundSchema: z.ZodType< - NotificationUpdateGotifyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean().optional(), - appDeploy: z.boolean().optional(), - appToken: z.string().optional(), - databaseBackup: z.boolean().optional(), - decoration: z.boolean().optional(), - dockerCleanup: z.boolean().optional(), - dokployRestart: z.boolean().optional(), - gotifyId: z.string(), - name: z.string().optional(), - notificationId: z.string(), - organizationId: z.string().optional(), - priority: z.number().optional(), - serverUrl: z.string().optional(), -}); - /** @internal */ export type NotificationUpdateGotifyRequest$Outbound = { appBuildError?: boolean | undefined; @@ -82,19 +58,6 @@ export const NotificationUpdateGotifyRequest$outboundSchema: z.ZodType< serverUrl: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationUpdateGotifyRequest$ { - /** @deprecated use `NotificationUpdateGotifyRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationUpdateGotifyRequest$inboundSchema; - /** @deprecated use `NotificationUpdateGotifyRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationUpdateGotifyRequest$outboundSchema; - /** @deprecated use `NotificationUpdateGotifyRequest$Outbound` instead. */ - export type Outbound = NotificationUpdateGotifyRequest$Outbound; -} - export function notificationUpdateGotifyRequestToJSON( notificationUpdateGotifyRequest: NotificationUpdateGotifyRequest, ): string { @@ -104,13 +67,3 @@ export function notificationUpdateGotifyRequestToJSON( ), ); } - -export function notificationUpdateGotifyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationUpdateGotifyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationUpdateGotifyRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationupdatentfy.ts b/src/models/operations/notificationupdatentfy.ts index c92be00..1a2e847 100644 --- a/src/models/operations/notificationupdatentfy.ts +++ b/src/models/operations/notificationupdatentfy.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationUpdateNtfyRequest = { accessToken?: string | undefined; @@ -23,27 +20,6 @@ export type NotificationUpdateNtfyRequest = { topic?: string | undefined; }; -/** @internal */ -export const NotificationUpdateNtfyRequest$inboundSchema: z.ZodType< - NotificationUpdateNtfyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessToken: z.string().optional(), - appBuildError: z.boolean().optional(), - appDeploy: z.boolean().optional(), - databaseBackup: z.boolean().optional(), - dockerCleanup: z.boolean().optional(), - dokployRestart: z.boolean().optional(), - name: z.string().optional(), - notificationId: z.string(), - ntfyId: z.string(), - organizationId: z.string().optional(), - priority: z.number().optional(), - serverUrl: z.string().optional(), - topic: z.string().optional(), -}); - /** @internal */ export type NotificationUpdateNtfyRequest$Outbound = { accessToken?: string | undefined; @@ -82,19 +58,6 @@ export const NotificationUpdateNtfyRequest$outboundSchema: z.ZodType< topic: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationUpdateNtfyRequest$ { - /** @deprecated use `NotificationUpdateNtfyRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationUpdateNtfyRequest$inboundSchema; - /** @deprecated use `NotificationUpdateNtfyRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationUpdateNtfyRequest$outboundSchema; - /** @deprecated use `NotificationUpdateNtfyRequest$Outbound` instead. */ - export type Outbound = NotificationUpdateNtfyRequest$Outbound; -} - export function notificationUpdateNtfyRequestToJSON( notificationUpdateNtfyRequest: NotificationUpdateNtfyRequest, ): string { @@ -104,13 +67,3 @@ export function notificationUpdateNtfyRequestToJSON( ), ); } - -export function notificationUpdateNtfyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationUpdateNtfyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationUpdateNtfyRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationupdateslack.ts b/src/models/operations/notificationupdateslack.ts index 514ba5c..95504c7 100644 --- a/src/models/operations/notificationupdateslack.ts +++ b/src/models/operations/notificationupdateslack.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationUpdateSlackRequest = { appBuildError?: boolean | undefined; @@ -22,26 +19,6 @@ export type NotificationUpdateSlackRequest = { webhookUrl?: string | undefined; }; -/** @internal */ -export const NotificationUpdateSlackRequest$inboundSchema: z.ZodType< - NotificationUpdateSlackRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean().optional(), - appDeploy: z.boolean().optional(), - channel: z.string().optional(), - databaseBackup: z.boolean().optional(), - dockerCleanup: z.boolean().optional(), - dokployRestart: z.boolean().optional(), - name: z.string().optional(), - notificationId: z.string(), - organizationId: z.string().optional(), - serverThreshold: z.boolean().optional(), - slackId: z.string(), - webhookUrl: z.string().optional(), -}); - /** @internal */ export type NotificationUpdateSlackRequest$Outbound = { appBuildError?: boolean | undefined; @@ -78,19 +55,6 @@ export const NotificationUpdateSlackRequest$outboundSchema: z.ZodType< webhookUrl: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationUpdateSlackRequest$ { - /** @deprecated use `NotificationUpdateSlackRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationUpdateSlackRequest$inboundSchema; - /** @deprecated use `NotificationUpdateSlackRequest$outboundSchema` instead. */ - export const outboundSchema = NotificationUpdateSlackRequest$outboundSchema; - /** @deprecated use `NotificationUpdateSlackRequest$Outbound` instead. */ - export type Outbound = NotificationUpdateSlackRequest$Outbound; -} - export function notificationUpdateSlackRequestToJSON( notificationUpdateSlackRequest: NotificationUpdateSlackRequest, ): string { @@ -100,13 +64,3 @@ export function notificationUpdateSlackRequestToJSON( ), ); } - -export function notificationUpdateSlackRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationUpdateSlackRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationUpdateSlackRequest' from JSON`, - ); -} diff --git a/src/models/operations/notificationupdatetelegram.ts b/src/models/operations/notificationupdatetelegram.ts index 10f5227..b1b4b62 100644 --- a/src/models/operations/notificationupdatetelegram.ts +++ b/src/models/operations/notificationupdatetelegram.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type NotificationUpdateTelegramRequest = { appBuildError?: boolean | undefined; @@ -23,27 +20,6 @@ export type NotificationUpdateTelegramRequest = { telegramId: string; }; -/** @internal */ -export const NotificationUpdateTelegramRequest$inboundSchema: z.ZodType< - NotificationUpdateTelegramRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appBuildError: z.boolean().optional(), - appDeploy: z.boolean().optional(), - botToken: z.string().optional(), - chatId: z.string().optional(), - databaseBackup: z.boolean().optional(), - dockerCleanup: z.boolean().optional(), - dokployRestart: z.boolean().optional(), - messageThreadId: z.string().optional(), - name: z.string().optional(), - notificationId: z.string(), - organizationId: z.string().optional(), - serverThreshold: z.boolean().optional(), - telegramId: z.string(), -}); - /** @internal */ export type NotificationUpdateTelegramRequest$Outbound = { appBuildError?: boolean | undefined; @@ -82,20 +58,6 @@ export const NotificationUpdateTelegramRequest$outboundSchema: z.ZodType< telegramId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationUpdateTelegramRequest$ { - /** @deprecated use `NotificationUpdateTelegramRequest$inboundSchema` instead. */ - export const inboundSchema = NotificationUpdateTelegramRequest$inboundSchema; - /** @deprecated use `NotificationUpdateTelegramRequest$outboundSchema` instead. */ - export const outboundSchema = - NotificationUpdateTelegramRequest$outboundSchema; - /** @deprecated use `NotificationUpdateTelegramRequest$Outbound` instead. */ - export type Outbound = NotificationUpdateTelegramRequest$Outbound; -} - export function notificationUpdateTelegramRequestToJSON( notificationUpdateTelegramRequest: NotificationUpdateTelegramRequest, ): string { @@ -105,13 +67,3 @@ export function notificationUpdateTelegramRequestToJSON( ), ); } - -export function notificationUpdateTelegramRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotificationUpdateTelegramRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotificationUpdateTelegramRequest' from JSON`, - ); -} diff --git a/src/models/operations/organizationall.ts b/src/models/operations/organizationall.ts index 9201beb..e2d7d9a 100644 --- a/src/models/operations/organizationall.ts +++ b/src/models/operations/organizationall.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -37,55 +37,6 @@ export const OrganizationAllResponseBody$inboundSchema: z.ZodType< slug: z.nullable(z.string()), }); -/** @internal */ -export type OrganizationAllResponseBody$Outbound = { - createdAt: string; - id: string; - logo: string | null; - metadata: string | null; - name: string; - ownerId: string; - slug: string | null; -}; - -/** @internal */ -export const OrganizationAllResponseBody$outboundSchema: z.ZodType< - OrganizationAllResponseBody$Outbound, - z.ZodTypeDef, - OrganizationAllResponseBody -> = z.object({ - createdAt: z.date().transform(v => v.toISOString()), - id: z.string(), - logo: z.nullable(z.string()), - metadata: z.nullable(z.string()), - name: z.string(), - ownerId: z.string(), - slug: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationAllResponseBody$ { - /** @deprecated use `OrganizationAllResponseBody$inboundSchema` instead. */ - export const inboundSchema = OrganizationAllResponseBody$inboundSchema; - /** @deprecated use `OrganizationAllResponseBody$outboundSchema` instead. */ - export const outboundSchema = OrganizationAllResponseBody$outboundSchema; - /** @deprecated use `OrganizationAllResponseBody$Outbound` instead. */ - export type Outbound = OrganizationAllResponseBody$Outbound; -} - -export function organizationAllResponseBodyToJSON( - organizationAllResponseBody: OrganizationAllResponseBody, -): string { - return JSON.stringify( - OrganizationAllResponseBody$outboundSchema.parse( - organizationAllResponseBody, - ), - ); -} - export function organizationAllResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -106,42 +57,6 @@ export const OrganizationAllResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => OrganizationAllResponseBody$inboundSchema)), ]); -/** @internal */ -export type OrganizationAllResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const OrganizationAllResponse$outboundSchema: z.ZodType< - OrganizationAllResponse$Outbound, - z.ZodTypeDef, - OrganizationAllResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => OrganizationAllResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationAllResponse$ { - /** @deprecated use `OrganizationAllResponse$inboundSchema` instead. */ - export const inboundSchema = OrganizationAllResponse$inboundSchema; - /** @deprecated use `OrganizationAllResponse$outboundSchema` instead. */ - export const outboundSchema = OrganizationAllResponse$outboundSchema; - /** @deprecated use `OrganizationAllResponse$Outbound` instead. */ - export type Outbound = OrganizationAllResponse$Outbound; -} - -export function organizationAllResponseToJSON( - organizationAllResponse: OrganizationAllResponse, -): string { - return JSON.stringify( - OrganizationAllResponse$outboundSchema.parse(organizationAllResponse), - ); -} - export function organizationAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/organizationcreate.ts b/src/models/operations/organizationcreate.ts index 6a7f6a2..d03b8ff 100644 --- a/src/models/operations/organizationcreate.ts +++ b/src/models/operations/organizationcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -30,16 +30,6 @@ export type OrganizationCreateResponse = | OrganizationCreateResponseBody | models.ErrorT; -/** @internal */ -export const OrganizationCreateRequest$inboundSchema: z.ZodType< - OrganizationCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - logo: z.string().optional(), - name: z.string(), -}); - /** @internal */ export type OrganizationCreateRequest$Outbound = { logo?: string | undefined; @@ -56,19 +46,6 @@ export const OrganizationCreateRequest$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationCreateRequest$ { - /** @deprecated use `OrganizationCreateRequest$inboundSchema` instead. */ - export const inboundSchema = OrganizationCreateRequest$inboundSchema; - /** @deprecated use `OrganizationCreateRequest$outboundSchema` instead. */ - export const outboundSchema = OrganizationCreateRequest$outboundSchema; - /** @deprecated use `OrganizationCreateRequest$Outbound` instead. */ - export type Outbound = OrganizationCreateRequest$Outbound; -} - export function organizationCreateRequestToJSON( organizationCreateRequest: OrganizationCreateRequest, ): string { @@ -77,16 +54,6 @@ export function organizationCreateRequestToJSON( ); } -export function organizationCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OrganizationCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OrganizationCreateRequest' from JSON`, - ); -} - /** @internal */ export const OrganizationCreateResponseBody$inboundSchema: z.ZodType< OrganizationCreateResponseBody, @@ -102,55 +69,6 @@ export const OrganizationCreateResponseBody$inboundSchema: z.ZodType< slug: z.nullable(z.string()), }); -/** @internal */ -export type OrganizationCreateResponseBody$Outbound = { - createdAt: string; - id: string; - logo: string | null; - metadata: string | null; - name: string; - ownerId: string; - slug: string | null; -}; - -/** @internal */ -export const OrganizationCreateResponseBody$outboundSchema: z.ZodType< - OrganizationCreateResponseBody$Outbound, - z.ZodTypeDef, - OrganizationCreateResponseBody -> = z.object({ - createdAt: z.date().transform(v => v.toISOString()), - id: z.string(), - logo: z.nullable(z.string()), - metadata: z.nullable(z.string()), - name: z.string(), - ownerId: z.string(), - slug: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationCreateResponseBody$ { - /** @deprecated use `OrganizationCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = OrganizationCreateResponseBody$inboundSchema; - /** @deprecated use `OrganizationCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = OrganizationCreateResponseBody$outboundSchema; - /** @deprecated use `OrganizationCreateResponseBody$Outbound` instead. */ - export type Outbound = OrganizationCreateResponseBody$Outbound; -} - -export function organizationCreateResponseBodyToJSON( - organizationCreateResponseBody: OrganizationCreateResponseBody, -): string { - return JSON.stringify( - OrganizationCreateResponseBody$outboundSchema.parse( - organizationCreateResponseBody, - ), - ); -} - export function organizationCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -171,42 +89,6 @@ export const OrganizationCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type OrganizationCreateResponse$Outbound = - | OrganizationCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const OrganizationCreateResponse$outboundSchema: z.ZodType< - OrganizationCreateResponse$Outbound, - z.ZodTypeDef, - OrganizationCreateResponse -> = z.union([ - z.lazy(() => OrganizationCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationCreateResponse$ { - /** @deprecated use `OrganizationCreateResponse$inboundSchema` instead. */ - export const inboundSchema = OrganizationCreateResponse$inboundSchema; - /** @deprecated use `OrganizationCreateResponse$outboundSchema` instead. */ - export const outboundSchema = OrganizationCreateResponse$outboundSchema; - /** @deprecated use `OrganizationCreateResponse$Outbound` instead. */ - export type Outbound = OrganizationCreateResponse$Outbound; -} - -export function organizationCreateResponseToJSON( - organizationCreateResponse: OrganizationCreateResponse, -): string { - return JSON.stringify( - OrganizationCreateResponse$outboundSchema.parse(organizationCreateResponse), - ); -} - export function organizationCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/organizationdelete.ts b/src/models/operations/organizationdelete.ts index ec67350..8837c80 100644 --- a/src/models/operations/organizationdelete.ts +++ b/src/models/operations/organizationdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -29,15 +29,6 @@ export type OrganizationDeleteResponse = | OrganizationDeleteResponseBody | models.ErrorT; -/** @internal */ -export const OrganizationDeleteRequest$inboundSchema: z.ZodType< - OrganizationDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - organizationId: z.string(), -}); - /** @internal */ export type OrganizationDeleteRequest$Outbound = { organizationId: string; @@ -52,19 +43,6 @@ export const OrganizationDeleteRequest$outboundSchema: z.ZodType< organizationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationDeleteRequest$ { - /** @deprecated use `OrganizationDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = OrganizationDeleteRequest$inboundSchema; - /** @deprecated use `OrganizationDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = OrganizationDeleteRequest$outboundSchema; - /** @deprecated use `OrganizationDeleteRequest$Outbound` instead. */ - export type Outbound = OrganizationDeleteRequest$Outbound; -} - export function organizationDeleteRequestToJSON( organizationDeleteRequest: OrganizationDeleteRequest, ): string { @@ -73,16 +51,6 @@ export function organizationDeleteRequestToJSON( ); } -export function organizationDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OrganizationDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OrganizationDeleteRequest' from JSON`, - ); -} - /** @internal */ export const OrganizationDeleteResponseBody$inboundSchema: z.ZodType< OrganizationDeleteResponseBody, @@ -98,55 +66,6 @@ export const OrganizationDeleteResponseBody$inboundSchema: z.ZodType< slug: z.nullable(z.string()), }); -/** @internal */ -export type OrganizationDeleteResponseBody$Outbound = { - createdAt: string; - id: string; - logo: string | null; - metadata: string | null; - name: string; - ownerId: string; - slug: string | null; -}; - -/** @internal */ -export const OrganizationDeleteResponseBody$outboundSchema: z.ZodType< - OrganizationDeleteResponseBody$Outbound, - z.ZodTypeDef, - OrganizationDeleteResponseBody -> = z.object({ - createdAt: z.date().transform(v => v.toISOString()), - id: z.string(), - logo: z.nullable(z.string()), - metadata: z.nullable(z.string()), - name: z.string(), - ownerId: z.string(), - slug: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationDeleteResponseBody$ { - /** @deprecated use `OrganizationDeleteResponseBody$inboundSchema` instead. */ - export const inboundSchema = OrganizationDeleteResponseBody$inboundSchema; - /** @deprecated use `OrganizationDeleteResponseBody$outboundSchema` instead. */ - export const outboundSchema = OrganizationDeleteResponseBody$outboundSchema; - /** @deprecated use `OrganizationDeleteResponseBody$Outbound` instead. */ - export type Outbound = OrganizationDeleteResponseBody$Outbound; -} - -export function organizationDeleteResponseBodyToJSON( - organizationDeleteResponseBody: OrganizationDeleteResponseBody, -): string { - return JSON.stringify( - OrganizationDeleteResponseBody$outboundSchema.parse( - organizationDeleteResponseBody, - ), - ); -} - export function organizationDeleteResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -167,42 +86,6 @@ export const OrganizationDeleteResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type OrganizationDeleteResponse$Outbound = - | OrganizationDeleteResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const OrganizationDeleteResponse$outboundSchema: z.ZodType< - OrganizationDeleteResponse$Outbound, - z.ZodTypeDef, - OrganizationDeleteResponse -> = z.union([ - z.lazy(() => OrganizationDeleteResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationDeleteResponse$ { - /** @deprecated use `OrganizationDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = OrganizationDeleteResponse$inboundSchema; - /** @deprecated use `OrganizationDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = OrganizationDeleteResponse$outboundSchema; - /** @deprecated use `OrganizationDeleteResponse$Outbound` instead. */ - export type Outbound = OrganizationDeleteResponse$Outbound; -} - -export function organizationDeleteResponseToJSON( - organizationDeleteResponse: OrganizationDeleteResponse, -): string { - return JSON.stringify( - OrganizationDeleteResponse$outboundSchema.parse(organizationDeleteResponse), - ); -} - export function organizationDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/organizationone.ts b/src/models/operations/organizationone.ts index aa9f259..b786696 100644 --- a/src/models/operations/organizationone.ts +++ b/src/models/operations/organizationone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -29,15 +29,6 @@ export type OrganizationOneResponse = | OrganizationOneResponseBody | models.ErrorT; -/** @internal */ -export const OrganizationOneRequest$inboundSchema: z.ZodType< - OrganizationOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - organizationId: z.string(), -}); - /** @internal */ export type OrganizationOneRequest$Outbound = { organizationId: string; @@ -52,19 +43,6 @@ export const OrganizationOneRequest$outboundSchema: z.ZodType< organizationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationOneRequest$ { - /** @deprecated use `OrganizationOneRequest$inboundSchema` instead. */ - export const inboundSchema = OrganizationOneRequest$inboundSchema; - /** @deprecated use `OrganizationOneRequest$outboundSchema` instead. */ - export const outboundSchema = OrganizationOneRequest$outboundSchema; - /** @deprecated use `OrganizationOneRequest$Outbound` instead. */ - export type Outbound = OrganizationOneRequest$Outbound; -} - export function organizationOneRequestToJSON( organizationOneRequest: OrganizationOneRequest, ): string { @@ -73,16 +51,6 @@ export function organizationOneRequestToJSON( ); } -export function organizationOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OrganizationOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OrganizationOneRequest' from JSON`, - ); -} - /** @internal */ export const OrganizationOneResponseBody$inboundSchema: z.ZodType< OrganizationOneResponseBody, @@ -98,55 +66,6 @@ export const OrganizationOneResponseBody$inboundSchema: z.ZodType< slug: z.nullable(z.string()), }); -/** @internal */ -export type OrganizationOneResponseBody$Outbound = { - createdAt: string; - id: string; - logo: string | null; - metadata: string | null; - name: string; - ownerId: string; - slug: string | null; -}; - -/** @internal */ -export const OrganizationOneResponseBody$outboundSchema: z.ZodType< - OrganizationOneResponseBody$Outbound, - z.ZodTypeDef, - OrganizationOneResponseBody -> = z.object({ - createdAt: z.date().transform(v => v.toISOString()), - id: z.string(), - logo: z.nullable(z.string()), - metadata: z.nullable(z.string()), - name: z.string(), - ownerId: z.string(), - slug: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationOneResponseBody$ { - /** @deprecated use `OrganizationOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = OrganizationOneResponseBody$inboundSchema; - /** @deprecated use `OrganizationOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = OrganizationOneResponseBody$outboundSchema; - /** @deprecated use `OrganizationOneResponseBody$Outbound` instead. */ - export type Outbound = OrganizationOneResponseBody$Outbound; -} - -export function organizationOneResponseBodyToJSON( - organizationOneResponseBody: OrganizationOneResponseBody, -): string { - return JSON.stringify( - OrganizationOneResponseBody$outboundSchema.parse( - organizationOneResponseBody, - ), - ); -} - export function organizationOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -167,42 +86,6 @@ export const OrganizationOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type OrganizationOneResponse$Outbound = - | OrganizationOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const OrganizationOneResponse$outboundSchema: z.ZodType< - OrganizationOneResponse$Outbound, - z.ZodTypeDef, - OrganizationOneResponse -> = z.union([ - z.lazy(() => OrganizationOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationOneResponse$ { - /** @deprecated use `OrganizationOneResponse$inboundSchema` instead. */ - export const inboundSchema = OrganizationOneResponse$inboundSchema; - /** @deprecated use `OrganizationOneResponse$outboundSchema` instead. */ - export const outboundSchema = OrganizationOneResponse$outboundSchema; - /** @deprecated use `OrganizationOneResponse$Outbound` instead. */ - export type Outbound = OrganizationOneResponse$Outbound; -} - -export function organizationOneResponseToJSON( - organizationOneResponse: OrganizationOneResponse, -): string { - return JSON.stringify( - OrganizationOneResponse$outboundSchema.parse(organizationOneResponse), - ); -} - export function organizationOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/organizationremoveinvitation.ts b/src/models/operations/organizationremoveinvitation.ts index fef0831..104ad2c 100644 --- a/src/models/operations/organizationremoveinvitation.ts +++ b/src/models/operations/organizationremoveinvitation.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type OrganizationRemoveInvitationRequest = { invitationId: string; }; -/** @internal */ -export const OrganizationRemoveInvitationRequest$inboundSchema: z.ZodType< - OrganizationRemoveInvitationRequest, - z.ZodTypeDef, - unknown -> = z.object({ - invitationId: z.string(), -}); - /** @internal */ export type OrganizationRemoveInvitationRequest$Outbound = { invitationId: string; @@ -34,21 +22,6 @@ export const OrganizationRemoveInvitationRequest$outboundSchema: z.ZodType< invitationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationRemoveInvitationRequest$ { - /** @deprecated use `OrganizationRemoveInvitationRequest$inboundSchema` instead. */ - export const inboundSchema = - OrganizationRemoveInvitationRequest$inboundSchema; - /** @deprecated use `OrganizationRemoveInvitationRequest$outboundSchema` instead. */ - export const outboundSchema = - OrganizationRemoveInvitationRequest$outboundSchema; - /** @deprecated use `OrganizationRemoveInvitationRequest$Outbound` instead. */ - export type Outbound = OrganizationRemoveInvitationRequest$Outbound; -} - export function organizationRemoveInvitationRequestToJSON( organizationRemoveInvitationRequest: OrganizationRemoveInvitationRequest, ): string { @@ -58,14 +31,3 @@ export function organizationRemoveInvitationRequestToJSON( ), ); } - -export function organizationRemoveInvitationRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - OrganizationRemoveInvitationRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OrganizationRemoveInvitationRequest' from JSON`, - ); -} diff --git a/src/models/operations/organizationupdate.ts b/src/models/operations/organizationupdate.ts index 9005fa9..88c69ec 100644 --- a/src/models/operations/organizationupdate.ts +++ b/src/models/operations/organizationupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -31,17 +31,6 @@ export type OrganizationUpdateResponse = | OrganizationUpdateResponseBody | models.ErrorT; -/** @internal */ -export const OrganizationUpdateRequest$inboundSchema: z.ZodType< - OrganizationUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - logo: z.string().optional(), - name: z.string(), - organizationId: z.string(), -}); - /** @internal */ export type OrganizationUpdateRequest$Outbound = { logo?: string | undefined; @@ -60,19 +49,6 @@ export const OrganizationUpdateRequest$outboundSchema: z.ZodType< organizationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationUpdateRequest$ { - /** @deprecated use `OrganizationUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = OrganizationUpdateRequest$inboundSchema; - /** @deprecated use `OrganizationUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = OrganizationUpdateRequest$outboundSchema; - /** @deprecated use `OrganizationUpdateRequest$Outbound` instead. */ - export type Outbound = OrganizationUpdateRequest$Outbound; -} - export function organizationUpdateRequestToJSON( organizationUpdateRequest: OrganizationUpdateRequest, ): string { @@ -81,16 +57,6 @@ export function organizationUpdateRequestToJSON( ); } -export function organizationUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OrganizationUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OrganizationUpdateRequest' from JSON`, - ); -} - /** @internal */ export const OrganizationUpdateResponseBody$inboundSchema: z.ZodType< OrganizationUpdateResponseBody, @@ -106,55 +72,6 @@ export const OrganizationUpdateResponseBody$inboundSchema: z.ZodType< slug: z.nullable(z.string()), }); -/** @internal */ -export type OrganizationUpdateResponseBody$Outbound = { - createdAt: string; - id: string; - logo: string | null; - metadata: string | null; - name: string; - ownerId: string; - slug: string | null; -}; - -/** @internal */ -export const OrganizationUpdateResponseBody$outboundSchema: z.ZodType< - OrganizationUpdateResponseBody$Outbound, - z.ZodTypeDef, - OrganizationUpdateResponseBody -> = z.object({ - createdAt: z.date().transform(v => v.toISOString()), - id: z.string(), - logo: z.nullable(z.string()), - metadata: z.nullable(z.string()), - name: z.string(), - ownerId: z.string(), - slug: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationUpdateResponseBody$ { - /** @deprecated use `OrganizationUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = OrganizationUpdateResponseBody$inboundSchema; - /** @deprecated use `OrganizationUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = OrganizationUpdateResponseBody$outboundSchema; - /** @deprecated use `OrganizationUpdateResponseBody$Outbound` instead. */ - export type Outbound = OrganizationUpdateResponseBody$Outbound; -} - -export function organizationUpdateResponseBodyToJSON( - organizationUpdateResponseBody: OrganizationUpdateResponseBody, -): string { - return JSON.stringify( - OrganizationUpdateResponseBody$outboundSchema.parse( - organizationUpdateResponseBody, - ), - ); -} - export function organizationUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -175,42 +92,6 @@ export const OrganizationUpdateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type OrganizationUpdateResponse$Outbound = - | OrganizationUpdateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const OrganizationUpdateResponse$outboundSchema: z.ZodType< - OrganizationUpdateResponse$Outbound, - z.ZodTypeDef, - OrganizationUpdateResponse -> = z.union([ - z.lazy(() => OrganizationUpdateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationUpdateResponse$ { - /** @deprecated use `OrganizationUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = OrganizationUpdateResponse$inboundSchema; - /** @deprecated use `OrganizationUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = OrganizationUpdateResponse$outboundSchema; - /** @deprecated use `OrganizationUpdateResponse$Outbound` instead. */ - export type Outbound = OrganizationUpdateResponse$Outbound; -} - -export function organizationUpdateResponseToJSON( - organizationUpdateResponse: OrganizationUpdateResponse, -): string { - return JSON.stringify( - OrganizationUpdateResponse$outboundSchema.parse(organizationUpdateResponse), - ); -} - export function organizationUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/portcreate.ts b/src/models/operations/portcreate.ts index eb9780a..a150633 100644 --- a/src/models/operations/portcreate.ts +++ b/src/models/operations/portcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -63,60 +63,15 @@ export type PortCreateResponseBody = { export type PortCreateResponse = PortCreateResponseBody | models.ErrorT; -/** @internal */ -export const PortCreateProtocolRequest$inboundSchema: z.ZodNativeEnum< - typeof PortCreateProtocolRequest -> = z.nativeEnum(PortCreateProtocolRequest); - /** @internal */ export const PortCreateProtocolRequest$outboundSchema: z.ZodNativeEnum< typeof PortCreateProtocolRequest -> = PortCreateProtocolRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortCreateProtocolRequest$ { - /** @deprecated use `PortCreateProtocolRequest$inboundSchema` instead. */ - export const inboundSchema = PortCreateProtocolRequest$inboundSchema; - /** @deprecated use `PortCreateProtocolRequest$outboundSchema` instead. */ - export const outboundSchema = PortCreateProtocolRequest$outboundSchema; -} - -/** @internal */ -export const PortCreatePublishModeRequest$inboundSchema: z.ZodNativeEnum< - typeof PortCreatePublishModeRequest -> = z.nativeEnum(PortCreatePublishModeRequest); +> = z.nativeEnum(PortCreateProtocolRequest); /** @internal */ export const PortCreatePublishModeRequest$outboundSchema: z.ZodNativeEnum< typeof PortCreatePublishModeRequest -> = PortCreatePublishModeRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortCreatePublishModeRequest$ { - /** @deprecated use `PortCreatePublishModeRequest$inboundSchema` instead. */ - export const inboundSchema = PortCreatePublishModeRequest$inboundSchema; - /** @deprecated use `PortCreatePublishModeRequest$outboundSchema` instead. */ - export const outboundSchema = PortCreatePublishModeRequest$outboundSchema; -} - -/** @internal */ -export const PortCreateRequest$inboundSchema: z.ZodType< - PortCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - protocol: PortCreateProtocolRequest$inboundSchema.default("tcp"), - publishMode: PortCreatePublishModeRequest$inboundSchema.default("ingress"), - publishedPort: z.number(), - targetPort: z.number(), -}); +> = z.nativeEnum(PortCreatePublishModeRequest); /** @internal */ export type PortCreateRequest$Outbound = { @@ -140,19 +95,6 @@ export const PortCreateRequest$outboundSchema: z.ZodType< targetPort: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortCreateRequest$ { - /** @deprecated use `PortCreateRequest$inboundSchema` instead. */ - export const inboundSchema = PortCreateRequest$inboundSchema; - /** @deprecated use `PortCreateRequest$outboundSchema` instead. */ - export const outboundSchema = PortCreateRequest$outboundSchema; - /** @deprecated use `PortCreateRequest$Outbound` instead. */ - export type Outbound = PortCreateRequest$Outbound; -} - export function portCreateRequestToJSON( portCreateRequest: PortCreateRequest, ): string { @@ -161,58 +103,16 @@ export function portCreateRequestToJSON( ); } -export function portCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PortCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PortCreateRequest' from JSON`, - ); -} - /** @internal */ export const PortCreateProtocolResponse$inboundSchema: z.ZodNativeEnum< typeof PortCreateProtocolResponse > = z.nativeEnum(PortCreateProtocolResponse); -/** @internal */ -export const PortCreateProtocolResponse$outboundSchema: z.ZodNativeEnum< - typeof PortCreateProtocolResponse -> = PortCreateProtocolResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortCreateProtocolResponse$ { - /** @deprecated use `PortCreateProtocolResponse$inboundSchema` instead. */ - export const inboundSchema = PortCreateProtocolResponse$inboundSchema; - /** @deprecated use `PortCreateProtocolResponse$outboundSchema` instead. */ - export const outboundSchema = PortCreateProtocolResponse$outboundSchema; -} - /** @internal */ export const PortCreatePublishModeResponse$inboundSchema: z.ZodNativeEnum< typeof PortCreatePublishModeResponse > = z.nativeEnum(PortCreatePublishModeResponse); -/** @internal */ -export const PortCreatePublishModeResponse$outboundSchema: z.ZodNativeEnum< - typeof PortCreatePublishModeResponse -> = PortCreatePublishModeResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortCreatePublishModeResponse$ { - /** @deprecated use `PortCreatePublishModeResponse$inboundSchema` instead. */ - export const inboundSchema = PortCreatePublishModeResponse$inboundSchema; - /** @deprecated use `PortCreatePublishModeResponse$outboundSchema` instead. */ - export const outboundSchema = PortCreatePublishModeResponse$outboundSchema; -} - /** @internal */ export const PortCreateResponseBody$inboundSchema: z.ZodType< PortCreateResponseBody, @@ -227,51 +127,6 @@ export const PortCreateResponseBody$inboundSchema: z.ZodType< targetPort: z.number(), }); -/** @internal */ -export type PortCreateResponseBody$Outbound = { - applicationId: string; - portId: string; - protocol: string; - publishMode: string; - publishedPort: number; - targetPort: number; -}; - -/** @internal */ -export const PortCreateResponseBody$outboundSchema: z.ZodType< - PortCreateResponseBody$Outbound, - z.ZodTypeDef, - PortCreateResponseBody -> = z.object({ - applicationId: z.string(), - portId: z.string(), - protocol: PortCreateProtocolResponse$outboundSchema, - publishMode: PortCreatePublishModeResponse$outboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortCreateResponseBody$ { - /** @deprecated use `PortCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = PortCreateResponseBody$inboundSchema; - /** @deprecated use `PortCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = PortCreateResponseBody$outboundSchema; - /** @deprecated use `PortCreateResponseBody$Outbound` instead. */ - export type Outbound = PortCreateResponseBody$Outbound; -} - -export function portCreateResponseBodyToJSON( - portCreateResponseBody: PortCreateResponseBody, -): string { - return JSON.stringify( - PortCreateResponseBody$outboundSchema.parse(portCreateResponseBody), - ); -} - export function portCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -292,42 +147,6 @@ export const PortCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PortCreateResponse$Outbound = - | PortCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PortCreateResponse$outboundSchema: z.ZodType< - PortCreateResponse$Outbound, - z.ZodTypeDef, - PortCreateResponse -> = z.union([ - z.lazy(() => PortCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortCreateResponse$ { - /** @deprecated use `PortCreateResponse$inboundSchema` instead. */ - export const inboundSchema = PortCreateResponse$inboundSchema; - /** @deprecated use `PortCreateResponse$outboundSchema` instead. */ - export const outboundSchema = PortCreateResponse$outboundSchema; - /** @deprecated use `PortCreateResponse$Outbound` instead. */ - export type Outbound = PortCreateResponse$Outbound; -} - -export function portCreateResponseToJSON( - portCreateResponse: PortCreateResponse, -): string { - return JSON.stringify( - PortCreateResponse$outboundSchema.parse(portCreateResponse), - ); -} - export function portCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/portdelete.ts b/src/models/operations/portdelete.ts index 200a463..f99b408 100644 --- a/src/models/operations/portdelete.ts +++ b/src/models/operations/portdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,15 +39,6 @@ export type PortDeleteResponseBody = { export type PortDeleteResponse = PortDeleteResponseBody | models.ErrorT; -/** @internal */ -export const PortDeleteRequest$inboundSchema: z.ZodType< - PortDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - portId: z.string(), -}); - /** @internal */ export type PortDeleteRequest$Outbound = { portId: string; @@ -62,19 +53,6 @@ export const PortDeleteRequest$outboundSchema: z.ZodType< portId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortDeleteRequest$ { - /** @deprecated use `PortDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = PortDeleteRequest$inboundSchema; - /** @deprecated use `PortDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = PortDeleteRequest$outboundSchema; - /** @deprecated use `PortDeleteRequest$Outbound` instead. */ - export type Outbound = PortDeleteRequest$Outbound; -} - export function portDeleteRequestToJSON( portDeleteRequest: PortDeleteRequest, ): string { @@ -83,58 +61,16 @@ export function portDeleteRequestToJSON( ); } -export function portDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PortDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PortDeleteRequest' from JSON`, - ); -} - /** @internal */ export const PortDeleteProtocol$inboundSchema: z.ZodNativeEnum< typeof PortDeleteProtocol > = z.nativeEnum(PortDeleteProtocol); -/** @internal */ -export const PortDeleteProtocol$outboundSchema: z.ZodNativeEnum< - typeof PortDeleteProtocol -> = PortDeleteProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortDeleteProtocol$ { - /** @deprecated use `PortDeleteProtocol$inboundSchema` instead. */ - export const inboundSchema = PortDeleteProtocol$inboundSchema; - /** @deprecated use `PortDeleteProtocol$outboundSchema` instead. */ - export const outboundSchema = PortDeleteProtocol$outboundSchema; -} - /** @internal */ export const PortDeletePublishMode$inboundSchema: z.ZodNativeEnum< typeof PortDeletePublishMode > = z.nativeEnum(PortDeletePublishMode); -/** @internal */ -export const PortDeletePublishMode$outboundSchema: z.ZodNativeEnum< - typeof PortDeletePublishMode -> = PortDeletePublishMode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortDeletePublishMode$ { - /** @deprecated use `PortDeletePublishMode$inboundSchema` instead. */ - export const inboundSchema = PortDeletePublishMode$inboundSchema; - /** @deprecated use `PortDeletePublishMode$outboundSchema` instead. */ - export const outboundSchema = PortDeletePublishMode$outboundSchema; -} - /** @internal */ export const PortDeleteResponseBody$inboundSchema: z.ZodType< PortDeleteResponseBody, @@ -149,51 +85,6 @@ export const PortDeleteResponseBody$inboundSchema: z.ZodType< targetPort: z.number(), }); -/** @internal */ -export type PortDeleteResponseBody$Outbound = { - applicationId: string; - portId: string; - protocol: string; - publishMode: string; - publishedPort: number; - targetPort: number; -}; - -/** @internal */ -export const PortDeleteResponseBody$outboundSchema: z.ZodType< - PortDeleteResponseBody$Outbound, - z.ZodTypeDef, - PortDeleteResponseBody -> = z.object({ - applicationId: z.string(), - portId: z.string(), - protocol: PortDeleteProtocol$outboundSchema, - publishMode: PortDeletePublishMode$outboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortDeleteResponseBody$ { - /** @deprecated use `PortDeleteResponseBody$inboundSchema` instead. */ - export const inboundSchema = PortDeleteResponseBody$inboundSchema; - /** @deprecated use `PortDeleteResponseBody$outboundSchema` instead. */ - export const outboundSchema = PortDeleteResponseBody$outboundSchema; - /** @deprecated use `PortDeleteResponseBody$Outbound` instead. */ - export type Outbound = PortDeleteResponseBody$Outbound; -} - -export function portDeleteResponseBodyToJSON( - portDeleteResponseBody: PortDeleteResponseBody, -): string { - return JSON.stringify( - PortDeleteResponseBody$outboundSchema.parse(portDeleteResponseBody), - ); -} - export function portDeleteResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -214,42 +105,6 @@ export const PortDeleteResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PortDeleteResponse$Outbound = - | PortDeleteResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PortDeleteResponse$outboundSchema: z.ZodType< - PortDeleteResponse$Outbound, - z.ZodTypeDef, - PortDeleteResponse -> = z.union([ - z.lazy(() => PortDeleteResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortDeleteResponse$ { - /** @deprecated use `PortDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = PortDeleteResponse$inboundSchema; - /** @deprecated use `PortDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = PortDeleteResponse$outboundSchema; - /** @deprecated use `PortDeleteResponse$Outbound` instead. */ - export type Outbound = PortDeleteResponse$Outbound; -} - -export function portDeleteResponseToJSON( - portDeleteResponse: PortDeleteResponse, -): string { - return JSON.stringify( - PortDeleteResponse$outboundSchema.parse(portDeleteResponse), - ); -} - export function portDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/portone.ts b/src/models/operations/portone.ts index 92dcb18..d80c067 100644 --- a/src/models/operations/portone.ts +++ b/src/models/operations/portone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,15 +39,6 @@ export type PortOneResponseBody = { export type PortOneResponse = PortOneResponseBody | models.ErrorT; -/** @internal */ -export const PortOneRequest$inboundSchema: z.ZodType< - PortOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - portId: z.string(), -}); - /** @internal */ export type PortOneRequest$Outbound = { portId: string; @@ -62,75 +53,20 @@ export const PortOneRequest$outboundSchema: z.ZodType< portId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortOneRequest$ { - /** @deprecated use `PortOneRequest$inboundSchema` instead. */ - export const inboundSchema = PortOneRequest$inboundSchema; - /** @deprecated use `PortOneRequest$outboundSchema` instead. */ - export const outboundSchema = PortOneRequest$outboundSchema; - /** @deprecated use `PortOneRequest$Outbound` instead. */ - export type Outbound = PortOneRequest$Outbound; -} - export function portOneRequestToJSON(portOneRequest: PortOneRequest): string { return JSON.stringify(PortOneRequest$outboundSchema.parse(portOneRequest)); } -export function portOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PortOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PortOneRequest' from JSON`, - ); -} - /** @internal */ export const PortOneProtocol$inboundSchema: z.ZodNativeEnum< typeof PortOneProtocol > = z.nativeEnum(PortOneProtocol); -/** @internal */ -export const PortOneProtocol$outboundSchema: z.ZodNativeEnum< - typeof PortOneProtocol -> = PortOneProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortOneProtocol$ { - /** @deprecated use `PortOneProtocol$inboundSchema` instead. */ - export const inboundSchema = PortOneProtocol$inboundSchema; - /** @deprecated use `PortOneProtocol$outboundSchema` instead. */ - export const outboundSchema = PortOneProtocol$outboundSchema; -} - /** @internal */ export const PortOnePublishMode$inboundSchema: z.ZodNativeEnum< typeof PortOnePublishMode > = z.nativeEnum(PortOnePublishMode); -/** @internal */ -export const PortOnePublishMode$outboundSchema: z.ZodNativeEnum< - typeof PortOnePublishMode -> = PortOnePublishMode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortOnePublishMode$ { - /** @deprecated use `PortOnePublishMode$inboundSchema` instead. */ - export const inboundSchema = PortOnePublishMode$inboundSchema; - /** @deprecated use `PortOnePublishMode$outboundSchema` instead. */ - export const outboundSchema = PortOnePublishMode$outboundSchema; -} - /** @internal */ export const PortOneResponseBody$inboundSchema: z.ZodType< PortOneResponseBody, @@ -145,51 +81,6 @@ export const PortOneResponseBody$inboundSchema: z.ZodType< targetPort: z.number(), }); -/** @internal */ -export type PortOneResponseBody$Outbound = { - applicationId: string; - portId: string; - protocol: string; - publishMode: string; - publishedPort: number; - targetPort: number; -}; - -/** @internal */ -export const PortOneResponseBody$outboundSchema: z.ZodType< - PortOneResponseBody$Outbound, - z.ZodTypeDef, - PortOneResponseBody -> = z.object({ - applicationId: z.string(), - portId: z.string(), - protocol: PortOneProtocol$outboundSchema, - publishMode: PortOnePublishMode$outboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortOneResponseBody$ { - /** @deprecated use `PortOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = PortOneResponseBody$inboundSchema; - /** @deprecated use `PortOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = PortOneResponseBody$outboundSchema; - /** @deprecated use `PortOneResponseBody$Outbound` instead. */ - export type Outbound = PortOneResponseBody$Outbound; -} - -export function portOneResponseBodyToJSON( - portOneResponseBody: PortOneResponseBody, -): string { - return JSON.stringify( - PortOneResponseBody$outboundSchema.parse(portOneResponseBody), - ); -} - export function portOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -210,40 +101,6 @@ export const PortOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PortOneResponse$Outbound = - | PortOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PortOneResponse$outboundSchema: z.ZodType< - PortOneResponse$Outbound, - z.ZodTypeDef, - PortOneResponse -> = z.union([ - z.lazy(() => PortOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortOneResponse$ { - /** @deprecated use `PortOneResponse$inboundSchema` instead. */ - export const inboundSchema = PortOneResponse$inboundSchema; - /** @deprecated use `PortOneResponse$outboundSchema` instead. */ - export const outboundSchema = PortOneResponse$outboundSchema; - /** @deprecated use `PortOneResponse$Outbound` instead. */ - export type Outbound = PortOneResponse$Outbound; -} - -export function portOneResponseToJSON( - portOneResponse: PortOneResponse, -): string { - return JSON.stringify(PortOneResponse$outboundSchema.parse(portOneResponse)); -} - export function portOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/portupdate.ts b/src/models/operations/portupdate.ts index a0459af..a84fb4f 100644 --- a/src/models/operations/portupdate.ts +++ b/src/models/operations/portupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -63,60 +63,15 @@ export type PortUpdateResponseBody = { export type PortUpdateResponse = PortUpdateResponseBody | models.ErrorT; -/** @internal */ -export const PortUpdateProtocolRequest$inboundSchema: z.ZodNativeEnum< - typeof PortUpdateProtocolRequest -> = z.nativeEnum(PortUpdateProtocolRequest); - /** @internal */ export const PortUpdateProtocolRequest$outboundSchema: z.ZodNativeEnum< typeof PortUpdateProtocolRequest -> = PortUpdateProtocolRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortUpdateProtocolRequest$ { - /** @deprecated use `PortUpdateProtocolRequest$inboundSchema` instead. */ - export const inboundSchema = PortUpdateProtocolRequest$inboundSchema; - /** @deprecated use `PortUpdateProtocolRequest$outboundSchema` instead. */ - export const outboundSchema = PortUpdateProtocolRequest$outboundSchema; -} - -/** @internal */ -export const PortUpdatePublishModeRequest$inboundSchema: z.ZodNativeEnum< - typeof PortUpdatePublishModeRequest -> = z.nativeEnum(PortUpdatePublishModeRequest); +> = z.nativeEnum(PortUpdateProtocolRequest); /** @internal */ export const PortUpdatePublishModeRequest$outboundSchema: z.ZodNativeEnum< typeof PortUpdatePublishModeRequest -> = PortUpdatePublishModeRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortUpdatePublishModeRequest$ { - /** @deprecated use `PortUpdatePublishModeRequest$inboundSchema` instead. */ - export const inboundSchema = PortUpdatePublishModeRequest$inboundSchema; - /** @deprecated use `PortUpdatePublishModeRequest$outboundSchema` instead. */ - export const outboundSchema = PortUpdatePublishModeRequest$outboundSchema; -} - -/** @internal */ -export const PortUpdateRequest$inboundSchema: z.ZodType< - PortUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - portId: z.string(), - protocol: PortUpdateProtocolRequest$inboundSchema.default("tcp"), - publishMode: PortUpdatePublishModeRequest$inboundSchema.default("ingress"), - publishedPort: z.number(), - targetPort: z.number(), -}); +> = z.nativeEnum(PortUpdatePublishModeRequest); /** @internal */ export type PortUpdateRequest$Outbound = { @@ -140,19 +95,6 @@ export const PortUpdateRequest$outboundSchema: z.ZodType< targetPort: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortUpdateRequest$ { - /** @deprecated use `PortUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = PortUpdateRequest$inboundSchema; - /** @deprecated use `PortUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = PortUpdateRequest$outboundSchema; - /** @deprecated use `PortUpdateRequest$Outbound` instead. */ - export type Outbound = PortUpdateRequest$Outbound; -} - export function portUpdateRequestToJSON( portUpdateRequest: PortUpdateRequest, ): string { @@ -161,58 +103,16 @@ export function portUpdateRequestToJSON( ); } -export function portUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PortUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PortUpdateRequest' from JSON`, - ); -} - /** @internal */ export const PortUpdateProtocolResponse$inboundSchema: z.ZodNativeEnum< typeof PortUpdateProtocolResponse > = z.nativeEnum(PortUpdateProtocolResponse); -/** @internal */ -export const PortUpdateProtocolResponse$outboundSchema: z.ZodNativeEnum< - typeof PortUpdateProtocolResponse -> = PortUpdateProtocolResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortUpdateProtocolResponse$ { - /** @deprecated use `PortUpdateProtocolResponse$inboundSchema` instead. */ - export const inboundSchema = PortUpdateProtocolResponse$inboundSchema; - /** @deprecated use `PortUpdateProtocolResponse$outboundSchema` instead. */ - export const outboundSchema = PortUpdateProtocolResponse$outboundSchema; -} - /** @internal */ export const PortUpdatePublishModeResponse$inboundSchema: z.ZodNativeEnum< typeof PortUpdatePublishModeResponse > = z.nativeEnum(PortUpdatePublishModeResponse); -/** @internal */ -export const PortUpdatePublishModeResponse$outboundSchema: z.ZodNativeEnum< - typeof PortUpdatePublishModeResponse -> = PortUpdatePublishModeResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortUpdatePublishModeResponse$ { - /** @deprecated use `PortUpdatePublishModeResponse$inboundSchema` instead. */ - export const inboundSchema = PortUpdatePublishModeResponse$inboundSchema; - /** @deprecated use `PortUpdatePublishModeResponse$outboundSchema` instead. */ - export const outboundSchema = PortUpdatePublishModeResponse$outboundSchema; -} - /** @internal */ export const PortUpdateResponseBody$inboundSchema: z.ZodType< PortUpdateResponseBody, @@ -227,51 +127,6 @@ export const PortUpdateResponseBody$inboundSchema: z.ZodType< targetPort: z.number(), }); -/** @internal */ -export type PortUpdateResponseBody$Outbound = { - applicationId: string; - portId: string; - protocol: string; - publishMode: string; - publishedPort: number; - targetPort: number; -}; - -/** @internal */ -export const PortUpdateResponseBody$outboundSchema: z.ZodType< - PortUpdateResponseBody$Outbound, - z.ZodTypeDef, - PortUpdateResponseBody -> = z.object({ - applicationId: z.string(), - portId: z.string(), - protocol: PortUpdateProtocolResponse$outboundSchema, - publishMode: PortUpdatePublishModeResponse$outboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortUpdateResponseBody$ { - /** @deprecated use `PortUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = PortUpdateResponseBody$inboundSchema; - /** @deprecated use `PortUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = PortUpdateResponseBody$outboundSchema; - /** @deprecated use `PortUpdateResponseBody$Outbound` instead. */ - export type Outbound = PortUpdateResponseBody$Outbound; -} - -export function portUpdateResponseBodyToJSON( - portUpdateResponseBody: PortUpdateResponseBody, -): string { - return JSON.stringify( - PortUpdateResponseBody$outboundSchema.parse(portUpdateResponseBody), - ); -} - export function portUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -292,42 +147,6 @@ export const PortUpdateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PortUpdateResponse$Outbound = - | PortUpdateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PortUpdateResponse$outboundSchema: z.ZodType< - PortUpdateResponse$Outbound, - z.ZodTypeDef, - PortUpdateResponse -> = z.union([ - z.lazy(() => PortUpdateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PortUpdateResponse$ { - /** @deprecated use `PortUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = PortUpdateResponse$inboundSchema; - /** @deprecated use `PortUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = PortUpdateResponse$outboundSchema; - /** @deprecated use `PortUpdateResponse$Outbound` instead. */ - export type Outbound = PortUpdateResponse$Outbound; -} - -export function portUpdateResponseToJSON( - portUpdateResponse: PortUpdateResponse, -): string { - return JSON.stringify( - PortUpdateResponse$outboundSchema.parse(portUpdateResponse), - ); -} - export function portUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgreschangestatus.ts b/src/models/operations/postgreschangestatus.ts index ced33b3..3c22c1f 100644 --- a/src/models/operations/postgreschangestatus.ts +++ b/src/models/operations/postgreschangestatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -350,38 +350,10 @@ export type PostgresChangeStatusResponse = | models.ErrorT; /** @internal */ -export const PostgresChangeStatusApplicationStatusRequest$inboundSchema: +export const PostgresChangeStatusApplicationStatusRequest$outboundSchema: z.ZodNativeEnum = z .nativeEnum(PostgresChangeStatusApplicationStatusRequest); -/** @internal */ -export const PostgresChangeStatusApplicationStatusRequest$outboundSchema: - z.ZodNativeEnum = - PostgresChangeStatusApplicationStatusRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusApplicationStatusRequest$ { - /** @deprecated use `PostgresChangeStatusApplicationStatusRequest$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusApplicationStatusRequest$inboundSchema; - /** @deprecated use `PostgresChangeStatusApplicationStatusRequest$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusApplicationStatusRequest$outboundSchema; -} - -/** @internal */ -export const PostgresChangeStatusRequest$inboundSchema: z.ZodType< - PostgresChangeStatusRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationStatus: PostgresChangeStatusApplicationStatusRequest$inboundSchema, - postgresId: z.string(), -}); - /** @internal */ export type PostgresChangeStatusRequest$Outbound = { applicationStatus: string; @@ -399,19 +371,6 @@ export const PostgresChangeStatusRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusRequest$ { - /** @deprecated use `PostgresChangeStatusRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusRequest$inboundSchema; - /** @deprecated use `PostgresChangeStatusRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusRequest$outboundSchema; - /** @deprecated use `PostgresChangeStatusRequest$Outbound` instead. */ - export type Outbound = PostgresChangeStatusRequest$Outbound; -} - export function postgresChangeStatusRequestToJSON( postgresChangeStatusRequest: PostgresChangeStatusRequest, ): string { @@ -422,102 +381,26 @@ export function postgresChangeStatusRequestToJSON( ); } -export function postgresChangeStatusRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresChangeStatusRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresChangeStatusRequest' from JSON`, - ); -} - /** @internal */ export const PostgresChangeStatusApplicationStatusResponse$inboundSchema: z.ZodNativeEnum = z .nativeEnum(PostgresChangeStatusApplicationStatusResponse); -/** @internal */ -export const PostgresChangeStatusApplicationStatusResponse$outboundSchema: - z.ZodNativeEnum = - PostgresChangeStatusApplicationStatusResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusApplicationStatusResponse$ { - /** @deprecated use `PostgresChangeStatusApplicationStatusResponse$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusApplicationStatusResponse$inboundSchema; - /** @deprecated use `PostgresChangeStatusApplicationStatusResponse$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusApplicationStatusResponse$outboundSchema; -} - /** @internal */ export const PostgresChangeStatusBackupType$inboundSchema: z.ZodNativeEnum< typeof PostgresChangeStatusBackupType > = z.nativeEnum(PostgresChangeStatusBackupType); -/** @internal */ -export const PostgresChangeStatusBackupType$outboundSchema: z.ZodNativeEnum< - typeof PostgresChangeStatusBackupType -> = PostgresChangeStatusBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusBackupType$ { - /** @deprecated use `PostgresChangeStatusBackupType$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusBackupType$inboundSchema; - /** @deprecated use `PostgresChangeStatusBackupType$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusBackupType$outboundSchema; -} - /** @internal */ export const PostgresChangeStatusDatabaseType$inboundSchema: z.ZodNativeEnum< typeof PostgresChangeStatusDatabaseType > = z.nativeEnum(PostgresChangeStatusDatabaseType); -/** @internal */ -export const PostgresChangeStatusDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof PostgresChangeStatusDatabaseType -> = PostgresChangeStatusDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusDatabaseType$ { - /** @deprecated use `PostgresChangeStatusDatabaseType$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusDatabaseType$inboundSchema; - /** @deprecated use `PostgresChangeStatusDatabaseType$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusDatabaseType$outboundSchema; -} - /** @internal */ export const PostgresChangeStatusMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresChangeStatusMetadataEnum > = z.nativeEnum(PostgresChangeStatusMetadataEnum); -/** @internal */ -export const PostgresChangeStatusMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresChangeStatusMetadataEnum -> = PostgresChangeStatusMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMetadataEnum$ { - /** @deprecated use `PostgresChangeStatusMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusMetadataEnum$inboundSchema; - /** @deprecated use `PostgresChangeStatusMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusMetadataEnum$outboundSchema; -} - /** @internal */ export const PostgresChangeStatusMariadb$inboundSchema: z.ZodType< PostgresChangeStatusMariadb, @@ -528,45 +411,6 @@ export const PostgresChangeStatusMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresChangeStatusMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresChangeStatusMariadb$outboundSchema: z.ZodType< - PostgresChangeStatusMariadb$Outbound, - z.ZodTypeDef, - PostgresChangeStatusMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMariadb$ { - /** @deprecated use `PostgresChangeStatusMariadb$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusMariadb$inboundSchema; - /** @deprecated use `PostgresChangeStatusMariadb$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusMariadb$outboundSchema; - /** @deprecated use `PostgresChangeStatusMariadb$Outbound` instead. */ - export type Outbound = PostgresChangeStatusMariadb$Outbound; -} - -export function postgresChangeStatusMariadbToJSON( - postgresChangeStatusMariadb: PostgresChangeStatusMariadb, -): string { - return JSON.stringify( - PostgresChangeStatusMariadb$outboundSchema.parse( - postgresChangeStatusMariadb, - ), - ); -} - export function postgresChangeStatusMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -587,43 +431,6 @@ export const PostgresChangeStatusMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresChangeStatusMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresChangeStatusMongo$outboundSchema: z.ZodType< - PostgresChangeStatusMongo$Outbound, - z.ZodTypeDef, - PostgresChangeStatusMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMongo$ { - /** @deprecated use `PostgresChangeStatusMongo$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusMongo$inboundSchema; - /** @deprecated use `PostgresChangeStatusMongo$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusMongo$outboundSchema; - /** @deprecated use `PostgresChangeStatusMongo$Outbound` instead. */ - export type Outbound = PostgresChangeStatusMongo$Outbound; -} - -export function postgresChangeStatusMongoToJSON( - postgresChangeStatusMongo: PostgresChangeStatusMongo, -): string { - return JSON.stringify( - PostgresChangeStatusMongo$outboundSchema.parse(postgresChangeStatusMongo), - ); -} - export function postgresChangeStatusMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -643,41 +450,6 @@ export const PostgresChangeStatusMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type PostgresChangeStatusMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const PostgresChangeStatusMysql$outboundSchema: z.ZodType< - PostgresChangeStatusMysql$Outbound, - z.ZodTypeDef, - PostgresChangeStatusMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMysql$ { - /** @deprecated use `PostgresChangeStatusMysql$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusMysql$inboundSchema; - /** @deprecated use `PostgresChangeStatusMysql$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusMysql$outboundSchema; - /** @deprecated use `PostgresChangeStatusMysql$Outbound` instead. */ - export type Outbound = PostgresChangeStatusMysql$Outbound; -} - -export function postgresChangeStatusMysqlToJSON( - postgresChangeStatusMysql: PostgresChangeStatusMysql, -): string { - return JSON.stringify( - PostgresChangeStatusMysql$outboundSchema.parse(postgresChangeStatusMysql), - ); -} - export function postgresChangeStatusMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -697,43 +469,6 @@ export const PostgresChangeStatusPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresChangeStatusPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const PostgresChangeStatusPostgres$outboundSchema: z.ZodType< - PostgresChangeStatusPostgres$Outbound, - z.ZodTypeDef, - PostgresChangeStatusPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusPostgres$ { - /** @deprecated use `PostgresChangeStatusPostgres$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusPostgres$inboundSchema; - /** @deprecated use `PostgresChangeStatusPostgres$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusPostgres$outboundSchema; - /** @deprecated use `PostgresChangeStatusPostgres$Outbound` instead. */ - export type Outbound = PostgresChangeStatusPostgres$Outbound; -} - -export function postgresChangeStatusPostgresToJSON( - postgresChangeStatusPostgres: PostgresChangeStatusPostgres, -): string { - return JSON.stringify( - PostgresChangeStatusPostgres$outboundSchema.parse( - postgresChangeStatusPostgres, - ), - ); -} - export function postgresChangeStatusPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -756,50 +491,6 @@ export const PostgresChangeStatusMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => PostgresChangeStatusPostgres$inboundSchema).optional(), }); -/** @internal */ -export type PostgresChangeStatusMetadata$Outbound = { - mariadb?: PostgresChangeStatusMariadb$Outbound | undefined; - mongo?: PostgresChangeStatusMongo$Outbound | undefined; - mysql?: PostgresChangeStatusMysql$Outbound | undefined; - postgres?: PostgresChangeStatusPostgres$Outbound | undefined; -}; - -/** @internal */ -export const PostgresChangeStatusMetadata$outboundSchema: z.ZodType< - PostgresChangeStatusMetadata$Outbound, - z.ZodTypeDef, - PostgresChangeStatusMetadata -> = z.object({ - mariadb: z.lazy(() => PostgresChangeStatusMariadb$outboundSchema).optional(), - mongo: z.lazy(() => PostgresChangeStatusMongo$outboundSchema).optional(), - mysql: z.lazy(() => PostgresChangeStatusMysql$outboundSchema).optional(), - postgres: z.lazy(() => PostgresChangeStatusPostgres$outboundSchema) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMetadata$ { - /** @deprecated use `PostgresChangeStatusMetadata$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusMetadata$inboundSchema; - /** @deprecated use `PostgresChangeStatusMetadata$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusMetadata$outboundSchema; - /** @deprecated use `PostgresChangeStatusMetadata$Outbound` instead. */ - export type Outbound = PostgresChangeStatusMetadata$Outbound; -} - -export function postgresChangeStatusMetadataToJSON( - postgresChangeStatusMetadata: PostgresChangeStatusMetadata, -): string { - return JSON.stringify( - PostgresChangeStatusMetadata$outboundSchema.parse( - postgresChangeStatusMetadata, - ), - ); -} - export function postgresChangeStatusMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -820,45 +511,6 @@ export const PostgresChangeStatusMetadataUnion$inboundSchema: z.ZodType< PostgresChangeStatusMetadataEnum$inboundSchema, ]); -/** @internal */ -export type PostgresChangeStatusMetadataUnion$Outbound = - | PostgresChangeStatusMetadata$Outbound - | string; - -/** @internal */ -export const PostgresChangeStatusMetadataUnion$outboundSchema: z.ZodType< - PostgresChangeStatusMetadataUnion$Outbound, - z.ZodTypeDef, - PostgresChangeStatusMetadataUnion -> = z.union([ - z.lazy(() => PostgresChangeStatusMetadata$outboundSchema), - PostgresChangeStatusMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMetadataUnion$ { - /** @deprecated use `PostgresChangeStatusMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusMetadataUnion$inboundSchema; - /** @deprecated use `PostgresChangeStatusMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusMetadataUnion$outboundSchema; - /** @deprecated use `PostgresChangeStatusMetadataUnion$Outbound` instead. */ - export type Outbound = PostgresChangeStatusMetadataUnion$Outbound; -} - -export function postgresChangeStatusMetadataUnionToJSON( - postgresChangeStatusMetadataUnion: PostgresChangeStatusMetadataUnion, -): string { - return JSON.stringify( - PostgresChangeStatusMetadataUnion$outboundSchema.parse( - postgresChangeStatusMetadataUnion, - ), - ); -} - export function postgresChangeStatusMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -900,80 +552,6 @@ export const PostgresChangeStatusBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type PostgresChangeStatusBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: PostgresChangeStatusMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const PostgresChangeStatusBackup$outboundSchema: z.ZodType< - PostgresChangeStatusBackup$Outbound, - z.ZodTypeDef, - PostgresChangeStatusBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: PostgresChangeStatusBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: PostgresChangeStatusDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => PostgresChangeStatusMetadata$outboundSchema), - PostgresChangeStatusMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusBackup$ { - /** @deprecated use `PostgresChangeStatusBackup$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusBackup$inboundSchema; - /** @deprecated use `PostgresChangeStatusBackup$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusBackup$outboundSchema; - /** @deprecated use `PostgresChangeStatusBackup$Outbound` instead. */ - export type Outbound = PostgresChangeStatusBackup$Outbound; -} - -export function postgresChangeStatusBackupToJSON( - postgresChangeStatusBackup: PostgresChangeStatusBackup, -): string { - return JSON.stringify( - PostgresChangeStatusBackup$outboundSchema.parse(postgresChangeStatusBackup), - ); -} - export function postgresChangeStatusBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -998,53 +576,6 @@ export const PostgresChangeStatusProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresChangeStatusProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const PostgresChangeStatusProject$outboundSchema: z.ZodType< - PostgresChangeStatusProject$Outbound, - z.ZodTypeDef, - PostgresChangeStatusProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusProject$ { - /** @deprecated use `PostgresChangeStatusProject$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusProject$inboundSchema; - /** @deprecated use `PostgresChangeStatusProject$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusProject$outboundSchema; - /** @deprecated use `PostgresChangeStatusProject$Outbound` instead. */ - export type Outbound = PostgresChangeStatusProject$Outbound; -} - -export function postgresChangeStatusProjectToJSON( - postgresChangeStatusProject: PostgresChangeStatusProject, -): string { - return JSON.stringify( - PostgresChangeStatusProject$outboundSchema.parse( - postgresChangeStatusProject, - ), - ); -} - export function postgresChangeStatusProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1070,55 +601,6 @@ export const PostgresChangeStatusEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresChangeStatusEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: PostgresChangeStatusProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const PostgresChangeStatusEnvironment$outboundSchema: z.ZodType< - PostgresChangeStatusEnvironment$Outbound, - z.ZodTypeDef, - PostgresChangeStatusEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => PostgresChangeStatusProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusEnvironment$ { - /** @deprecated use `PostgresChangeStatusEnvironment$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusEnvironment$inboundSchema; - /** @deprecated use `PostgresChangeStatusEnvironment$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusEnvironment$outboundSchema; - /** @deprecated use `PostgresChangeStatusEnvironment$Outbound` instead. */ - export type Outbound = PostgresChangeStatusEnvironment$Outbound; -} - -export function postgresChangeStatusEnvironmentToJSON( - postgresChangeStatusEnvironment: PostgresChangeStatusEnvironment, -): string { - return JSON.stringify( - PostgresChangeStatusEnvironment$outboundSchema.parse( - postgresChangeStatusEnvironment, - ), - ); -} - export function postgresChangeStatusEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1150,61 +632,6 @@ export const PostgresChangeStatusHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const PostgresChangeStatusHealthCheckSwarm$outboundSchema: z.ZodType< - PostgresChangeStatusHealthCheckSwarm$Outbound, - z.ZodTypeDef, - PostgresChangeStatusHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusHealthCheckSwarm$ { - /** @deprecated use `PostgresChangeStatusHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresChangeStatusHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresChangeStatusHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresChangeStatusHealthCheckSwarm$Outbound; -} - -export function postgresChangeStatusHealthCheckSwarmToJSON( - postgresChangeStatusHealthCheckSwarm: PostgresChangeStatusHealthCheckSwarm, -): string { - return JSON.stringify( - PostgresChangeStatusHealthCheckSwarm$outboundSchema.parse( - postgresChangeStatusHealthCheckSwarm, - ), - ); -} - export function postgresChangeStatusHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1223,37 +650,6 @@ export const PostgresChangeStatusGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresChangeStatusGlobal$Outbound = {}; - -/** @internal */ -export const PostgresChangeStatusGlobal$outboundSchema: z.ZodType< - PostgresChangeStatusGlobal$Outbound, - z.ZodTypeDef, - PostgresChangeStatusGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusGlobal$ { - /** @deprecated use `PostgresChangeStatusGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusGlobal$inboundSchema; - /** @deprecated use `PostgresChangeStatusGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusGlobal$outboundSchema; - /** @deprecated use `PostgresChangeStatusGlobal$Outbound` instead. */ - export type Outbound = PostgresChangeStatusGlobal$Outbound; -} - -export function postgresChangeStatusGlobalToJSON( - postgresChangeStatusGlobal: PostgresChangeStatusGlobal, -): string { - return JSON.stringify( - PostgresChangeStatusGlobal$outboundSchema.parse(postgresChangeStatusGlobal), - ); -} - export function postgresChangeStatusGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1271,39 +667,6 @@ export const PostgresChangeStatusGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresChangeStatusGlobalJob$Outbound = {}; - -/** @internal */ -export const PostgresChangeStatusGlobalJob$outboundSchema: z.ZodType< - PostgresChangeStatusGlobalJob$Outbound, - z.ZodTypeDef, - PostgresChangeStatusGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusGlobalJob$ { - /** @deprecated use `PostgresChangeStatusGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusGlobalJob$inboundSchema; - /** @deprecated use `PostgresChangeStatusGlobalJob$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusGlobalJob$outboundSchema; - /** @deprecated use `PostgresChangeStatusGlobalJob$Outbound` instead. */ - export type Outbound = PostgresChangeStatusGlobalJob$Outbound; -} - -export function postgresChangeStatusGlobalJobToJSON( - postgresChangeStatusGlobalJob: PostgresChangeStatusGlobalJob, -): string { - return JSON.stringify( - PostgresChangeStatusGlobalJob$outboundSchema.parse( - postgresChangeStatusGlobalJob, - ), - ); -} - export function postgresChangeStatusGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1323,50 +686,9 @@ export const PostgresChangeStatusReplicated$inboundSchema: z.ZodType< Replicas: z.number().optional(), }).transform((v) => { return remap$(v, { - "Replicas": "replicas", - }); -}); - -/** @internal */ -export type PostgresChangeStatusReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const PostgresChangeStatusReplicated$outboundSchema: z.ZodType< - PostgresChangeStatusReplicated$Outbound, - z.ZodTypeDef, - PostgresChangeStatusReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusReplicated$ { - /** @deprecated use `PostgresChangeStatusReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusReplicated$inboundSchema; - /** @deprecated use `PostgresChangeStatusReplicated$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusReplicated$outboundSchema; - /** @deprecated use `PostgresChangeStatusReplicated$Outbound` instead. */ - export type Outbound = PostgresChangeStatusReplicated$Outbound; -} - -export function postgresChangeStatusReplicatedToJSON( - postgresChangeStatusReplicated: PostgresChangeStatusReplicated, -): string { - return JSON.stringify( - PostgresChangeStatusReplicated$outboundSchema.parse( - postgresChangeStatusReplicated, - ), - ); -} + "Replicas": "replicas", + }); +}); export function postgresChangeStatusReplicatedFromJSON( jsonString: string, @@ -1393,51 +715,6 @@ export const PostgresChangeStatusReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const PostgresChangeStatusReplicatedJob$outboundSchema: z.ZodType< - PostgresChangeStatusReplicatedJob$Outbound, - z.ZodTypeDef, - PostgresChangeStatusReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusReplicatedJob$ { - /** @deprecated use `PostgresChangeStatusReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusReplicatedJob$inboundSchema; - /** @deprecated use `PostgresChangeStatusReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusReplicatedJob$outboundSchema; - /** @deprecated use `PostgresChangeStatusReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresChangeStatusReplicatedJob$Outbound; -} - -export function postgresChangeStatusReplicatedJobToJSON( - postgresChangeStatusReplicatedJob: PostgresChangeStatusReplicatedJob, -): string { - return JSON.stringify( - PostgresChangeStatusReplicatedJob$outboundSchema.parse( - postgresChangeStatusReplicatedJob, - ), - ); -} - export function postgresChangeStatusReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1470,59 +747,6 @@ export const PostgresChangeStatusModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusModeSwarm$Outbound = { - Global?: PostgresChangeStatusGlobal$Outbound | undefined; - GlobalJob?: PostgresChangeStatusGlobalJob$Outbound | undefined; - Replicated?: PostgresChangeStatusReplicated$Outbound | undefined; - ReplicatedJob?: PostgresChangeStatusReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const PostgresChangeStatusModeSwarm$outboundSchema: z.ZodType< - PostgresChangeStatusModeSwarm$Outbound, - z.ZodTypeDef, - PostgresChangeStatusModeSwarm -> = z.object({ - global: z.lazy(() => PostgresChangeStatusGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => PostgresChangeStatusGlobalJob$outboundSchema) - .optional(), - replicated: z.lazy(() => PostgresChangeStatusReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => PostgresChangeStatusReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusModeSwarm$ { - /** @deprecated use `PostgresChangeStatusModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusModeSwarm$inboundSchema; - /** @deprecated use `PostgresChangeStatusModeSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusModeSwarm$outboundSchema; - /** @deprecated use `PostgresChangeStatusModeSwarm$Outbound` instead. */ - export type Outbound = PostgresChangeStatusModeSwarm$Outbound; -} - -export function postgresChangeStatusModeSwarmToJSON( - postgresChangeStatusModeSwarm: PostgresChangeStatusModeSwarm, -): string { - return JSON.stringify( - PostgresChangeStatusModeSwarm$outboundSchema.parse( - postgresChangeStatusModeSwarm, - ), - ); -} - export function postgresChangeStatusModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1538,43 +762,11 @@ export const PostgresChangeStatusServiceType$inboundSchema: z.ZodNativeEnum< typeof PostgresChangeStatusServiceType > = z.nativeEnum(PostgresChangeStatusServiceType); -/** @internal */ -export const PostgresChangeStatusServiceType$outboundSchema: z.ZodNativeEnum< - typeof PostgresChangeStatusServiceType -> = PostgresChangeStatusServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusServiceType$ { - /** @deprecated use `PostgresChangeStatusServiceType$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusServiceType$inboundSchema; - /** @deprecated use `PostgresChangeStatusServiceType$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusServiceType$outboundSchema; -} - /** @internal */ export const PostgresChangeStatusType$inboundSchema: z.ZodNativeEnum< typeof PostgresChangeStatusType > = z.nativeEnum(PostgresChangeStatusType); -/** @internal */ -export const PostgresChangeStatusType$outboundSchema: z.ZodNativeEnum< - typeof PostgresChangeStatusType -> = PostgresChangeStatusType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusType$ { - /** @deprecated use `PostgresChangeStatusType$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusType$inboundSchema; - /** @deprecated use `PostgresChangeStatusType$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusType$outboundSchema; -} - /** @internal */ export const PostgresChangeStatusMount$inboundSchema: z.ZodType< PostgresChangeStatusMount, @@ -1598,69 +790,6 @@ export const PostgresChangeStatusMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type PostgresChangeStatusMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const PostgresChangeStatusMount$outboundSchema: z.ZodType< - PostgresChangeStatusMount$Outbound, - z.ZodTypeDef, - PostgresChangeStatusMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: PostgresChangeStatusServiceType$outboundSchema, - type: PostgresChangeStatusType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMount$ { - /** @deprecated use `PostgresChangeStatusMount$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusMount$inboundSchema; - /** @deprecated use `PostgresChangeStatusMount$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusMount$outboundSchema; - /** @deprecated use `PostgresChangeStatusMount$Outbound` instead. */ - export type Outbound = PostgresChangeStatusMount$Outbound; -} - -export function postgresChangeStatusMountToJSON( - postgresChangeStatusMount: PostgresChangeStatusMount, -): string { - return JSON.stringify( - PostgresChangeStatusMount$outboundSchema.parse(postgresChangeStatusMount), - ); -} - export function postgresChangeStatusMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1678,39 +807,6 @@ export const PostgresChangeStatusDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresChangeStatusDriverOpts$Outbound = {}; - -/** @internal */ -export const PostgresChangeStatusDriverOpts$outboundSchema: z.ZodType< - PostgresChangeStatusDriverOpts$Outbound, - z.ZodTypeDef, - PostgresChangeStatusDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusDriverOpts$ { - /** @deprecated use `PostgresChangeStatusDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusDriverOpts$inboundSchema; - /** @deprecated use `PostgresChangeStatusDriverOpts$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusDriverOpts$outboundSchema; - /** @deprecated use `PostgresChangeStatusDriverOpts$Outbound` instead. */ - export type Outbound = PostgresChangeStatusDriverOpts$Outbound; -} - -export function postgresChangeStatusDriverOptsToJSON( - postgresChangeStatusDriverOpts: PostgresChangeStatusDriverOpts, -): string { - return JSON.stringify( - PostgresChangeStatusDriverOpts$outboundSchema.parse( - postgresChangeStatusDriverOpts, - ), - ); -} - export function postgresChangeStatusDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1739,54 +835,6 @@ export const PostgresChangeStatusNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: PostgresChangeStatusDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const PostgresChangeStatusNetworkSwarm$outboundSchema: z.ZodType< - PostgresChangeStatusNetworkSwarm$Outbound, - z.ZodTypeDef, - PostgresChangeStatusNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => PostgresChangeStatusDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusNetworkSwarm$ { - /** @deprecated use `PostgresChangeStatusNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresChangeStatusNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresChangeStatusNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresChangeStatusNetworkSwarm$Outbound; -} - -export function postgresChangeStatusNetworkSwarmToJSON( - postgresChangeStatusNetworkSwarm: PostgresChangeStatusNetworkSwarm, -): string { - return JSON.stringify( - PostgresChangeStatusNetworkSwarm$outboundSchema.parse( - postgresChangeStatusNetworkSwarm, - ), - ); -} - export function postgresChangeStatusNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1812,50 +860,6 @@ export const PostgresChangeStatusPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const PostgresChangeStatusPlatform$outboundSchema: z.ZodType< - PostgresChangeStatusPlatform$Outbound, - z.ZodTypeDef, - PostgresChangeStatusPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusPlatform$ { - /** @deprecated use `PostgresChangeStatusPlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusPlatform$inboundSchema; - /** @deprecated use `PostgresChangeStatusPlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusPlatform$outboundSchema; - /** @deprecated use `PostgresChangeStatusPlatform$Outbound` instead. */ - export type Outbound = PostgresChangeStatusPlatform$Outbound; -} - -export function postgresChangeStatusPlatformToJSON( - postgresChangeStatusPlatform: PostgresChangeStatusPlatform, -): string { - return JSON.stringify( - PostgresChangeStatusPlatform$outboundSchema.parse( - postgresChangeStatusPlatform, - ), - ); -} - export function postgresChangeStatusPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1879,45 +883,6 @@ export const PostgresChangeStatusSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const PostgresChangeStatusSpread$outboundSchema: z.ZodType< - PostgresChangeStatusSpread$Outbound, - z.ZodTypeDef, - PostgresChangeStatusSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusSpread$ { - /** @deprecated use `PostgresChangeStatusSpread$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusSpread$inboundSchema; - /** @deprecated use `PostgresChangeStatusSpread$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusSpread$outboundSchema; - /** @deprecated use `PostgresChangeStatusSpread$Outbound` instead. */ - export type Outbound = PostgresChangeStatusSpread$Outbound; -} - -export function postgresChangeStatusSpreadToJSON( - postgresChangeStatusSpread: PostgresChangeStatusSpread, -): string { - return JSON.stringify( - PostgresChangeStatusSpread$outboundSchema.parse(postgresChangeStatusSpread), - ); -} - export function postgresChangeStatusSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1941,47 +906,6 @@ export const PostgresChangeStatusPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusPreference$Outbound = { - Spread: PostgresChangeStatusSpread$Outbound; -}; - -/** @internal */ -export const PostgresChangeStatusPreference$outboundSchema: z.ZodType< - PostgresChangeStatusPreference$Outbound, - z.ZodTypeDef, - PostgresChangeStatusPreference -> = z.object({ - spread: z.lazy(() => PostgresChangeStatusSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusPreference$ { - /** @deprecated use `PostgresChangeStatusPreference$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusPreference$inboundSchema; - /** @deprecated use `PostgresChangeStatusPreference$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusPreference$outboundSchema; - /** @deprecated use `PostgresChangeStatusPreference$Outbound` instead. */ - export type Outbound = PostgresChangeStatusPreference$Outbound; -} - -export function postgresChangeStatusPreferenceToJSON( - postgresChangeStatusPreference: PostgresChangeStatusPreference, -): string { - return JSON.stringify( - PostgresChangeStatusPreference$outboundSchema.parse( - postgresChangeStatusPreference, - ), - ); -} - export function postgresChangeStatusPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -2014,60 +938,6 @@ export const PostgresChangeStatusPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const PostgresChangeStatusPlacementSwarm$outboundSchema: z.ZodType< - PostgresChangeStatusPlacementSwarm$Outbound, - z.ZodTypeDef, - PostgresChangeStatusPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => PostgresChangeStatusPlatform$outboundSchema)) - .optional(), - preferences: z.array( - z.lazy(() => PostgresChangeStatusPreference$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusPlacementSwarm$ { - /** @deprecated use `PostgresChangeStatusPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusPlacementSwarm$inboundSchema; - /** @deprecated use `PostgresChangeStatusPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusPlacementSwarm$outboundSchema; - /** @deprecated use `PostgresChangeStatusPlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresChangeStatusPlacementSwarm$Outbound; -} - -export function postgresChangeStatusPlacementSwarmToJSON( - postgresChangeStatusPlacementSwarm: PostgresChangeStatusPlacementSwarm, -): string { - return JSON.stringify( - PostgresChangeStatusPlacementSwarm$outboundSchema.parse( - postgresChangeStatusPlacementSwarm, - ), - ); -} - export function postgresChangeStatusPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2090,66 +960,13 @@ export const PostgresChangeStatusRestartPolicySwarm$inboundSchema: z.ZodType< MaxAttempts: z.number().optional(), Window: z.number().optional(), }).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type PostgresChangeStatusRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const PostgresChangeStatusRestartPolicySwarm$outboundSchema: z.ZodType< - PostgresChangeStatusRestartPolicySwarm$Outbound, - z.ZodTypeDef, - PostgresChangeStatusRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusRestartPolicySwarm$ { - /** @deprecated use `PostgresChangeStatusRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresChangeStatusRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresChangeStatusRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresChangeStatusRestartPolicySwarm$Outbound; -} - -export function postgresChangeStatusRestartPolicySwarmToJSON( - postgresChangeStatusRestartPolicySwarm: - PostgresChangeStatusRestartPolicySwarm, -): string { - return JSON.stringify( - PostgresChangeStatusRestartPolicySwarm$outboundSchema.parse( - postgresChangeStatusRestartPolicySwarm, - ), - ); -} + return remap$(v, { + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", + }); +}); export function postgresChangeStatusRestartPolicySwarmFromJSON( jsonString: string, @@ -2185,65 +1002,6 @@ export const PostgresChangeStatusRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresChangeStatusRollbackConfigSwarm$outboundSchema: z.ZodType< - PostgresChangeStatusRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresChangeStatusRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusRollbackConfigSwarm$ { - /** @deprecated use `PostgresChangeStatusRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresChangeStatusRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresChangeStatusRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresChangeStatusRollbackConfigSwarm$Outbound; -} - -export function postgresChangeStatusRollbackConfigSwarmToJSON( - postgresChangeStatusRollbackConfigSwarm: - PostgresChangeStatusRollbackConfigSwarm, -): string { - return JSON.stringify( - PostgresChangeStatusRollbackConfigSwarm$outboundSchema.parse( - postgresChangeStatusRollbackConfigSwarm, - ), - ); -} - export function postgresChangeStatusRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2266,24 +1024,6 @@ export const PostgresChangeStatusMetricsConfigEnum$inboundSchema: PostgresChangeStatusMetricsConfigEnum, ); -/** @internal */ -export const PostgresChangeStatusMetricsConfigEnum$outboundSchema: - z.ZodNativeEnum = - PostgresChangeStatusMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMetricsConfigEnum$ { - /** @deprecated use `PostgresChangeStatusMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusMetricsConfigEnum$inboundSchema; - /** @deprecated use `PostgresChangeStatusMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const PostgresChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresChangeStatusMetricsConfigUnion1, @@ -2296,51 +1036,6 @@ export const PostgresChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresChangeStatusMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type PostgresChangeStatusMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const PostgresChangeStatusMetricsConfigUnion1$outboundSchema: z.ZodType< - PostgresChangeStatusMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - PostgresChangeStatusMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresChangeStatusMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMetricsConfigUnion1$ { - /** @deprecated use `PostgresChangeStatusMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusMetricsConfigUnion1$inboundSchema; - /** @deprecated use `PostgresChangeStatusMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusMetricsConfigUnion1$outboundSchema; - /** @deprecated use `PostgresChangeStatusMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = PostgresChangeStatusMetricsConfigUnion1$Outbound; -} - -export function postgresChangeStatusMetricsConfigUnion1ToJSON( - postgresChangeStatusMetricsConfigUnion1: - PostgresChangeStatusMetricsConfigUnion1, -): string { - return JSON.stringify( - PostgresChangeStatusMetricsConfigUnion1$outboundSchema.parse( - postgresChangeStatusMetricsConfigUnion1, - ), - ); -} - export function postgresChangeStatusMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult< @@ -2373,57 +1068,6 @@ export const PostgresChangeStatusMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type PostgresChangeStatusMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const PostgresChangeStatusMetricsConfigUnion2$outboundSchema: z.ZodType< - PostgresChangeStatusMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - PostgresChangeStatusMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusMetricsConfigUnion2$ { - /** @deprecated use `PostgresChangeStatusMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusMetricsConfigUnion2$inboundSchema; - /** @deprecated use `PostgresChangeStatusMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusMetricsConfigUnion2$outboundSchema; - /** @deprecated use `PostgresChangeStatusMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = PostgresChangeStatusMetricsConfigUnion2$Outbound; -} - -export function postgresChangeStatusMetricsConfigUnion2ToJSON( - postgresChangeStatusMetricsConfigUnion2: - PostgresChangeStatusMetricsConfigUnion2, -): string { - return JSON.stringify( - PostgresChangeStatusMetricsConfigUnion2$outboundSchema.parse( - postgresChangeStatusMetricsConfigUnion2, - ), - ); -} - export function postgresChangeStatusMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult< @@ -2445,22 +1089,6 @@ export const PostgresChangeStatusServerStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresChangeStatusServerStatus > = z.nativeEnum(PostgresChangeStatusServerStatus); -/** @internal */ -export const PostgresChangeStatusServerStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresChangeStatusServerStatus -> = PostgresChangeStatusServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusServerStatus$ { - /** @deprecated use `PostgresChangeStatusServerStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusServerStatus$inboundSchema; - /** @deprecated use `PostgresChangeStatusServerStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusServerStatus$outboundSchema; -} - /** @internal */ export const PostgresChangeStatusServer$inboundSchema: z.ZodType< PostgresChangeStatusServer, @@ -2492,78 +1120,6 @@ export const PostgresChangeStatusServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type PostgresChangeStatusServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const PostgresChangeStatusServer$outboundSchema: z.ZodType< - PostgresChangeStatusServer$Outbound, - z.ZodTypeDef, - PostgresChangeStatusServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: PostgresChangeStatusServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusServer$ { - /** @deprecated use `PostgresChangeStatusServer$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusServer$inboundSchema; - /** @deprecated use `PostgresChangeStatusServer$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusServer$outboundSchema; - /** @deprecated use `PostgresChangeStatusServer$Outbound` instead. */ - export type Outbound = PostgresChangeStatusServer$Outbound; -} - -export function postgresChangeStatusServerToJSON( - postgresChangeStatusServer: PostgresChangeStatusServer, -): string { - return JSON.stringify( - PostgresChangeStatusServer$outboundSchema.parse(postgresChangeStatusServer), - ); -} - export function postgresChangeStatusServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2597,64 +1153,6 @@ export const PostgresChangeStatusUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresChangeStatusUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresChangeStatusUpdateConfigSwarm$outboundSchema: z.ZodType< - PostgresChangeStatusUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresChangeStatusUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusUpdateConfigSwarm$ { - /** @deprecated use `PostgresChangeStatusUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresChangeStatusUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresChangeStatusUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresChangeStatusUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresChangeStatusUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresChangeStatusUpdateConfigSwarm$Outbound; -} - -export function postgresChangeStatusUpdateConfigSwarmToJSON( - postgresChangeStatusUpdateConfigSwarm: PostgresChangeStatusUpdateConfigSwarm, -): string { - return JSON.stringify( - PostgresChangeStatusUpdateConfigSwarm$outboundSchema.parse( - postgresChangeStatusUpdateConfigSwarm, - ), - ); -} - export function postgresChangeStatusUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2721,120 +1219,6 @@ export const PostgresChangeStatusResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostgresChangeStatusResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: PostgresChangeStatusEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: PostgresChangeStatusHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: PostgresChangeStatusModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: PostgresChangeStatusPlacementSwarm$Outbound | null; - postgresId: string; - replicas: number; - restartPolicySwarm: PostgresChangeStatusRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: PostgresChangeStatusRollbackConfigSwarm$Outbound | null; - server: PostgresChangeStatusServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: PostgresChangeStatusUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const PostgresChangeStatusResponseBody$outboundSchema: z.ZodType< - PostgresChangeStatusResponseBody$Outbound, - z.ZodTypeDef, - PostgresChangeStatusResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: - PostgresChangeStatusApplicationStatusResponse$outboundSchema, - backups: z.array(z.lazy(() => PostgresChangeStatusBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => PostgresChangeStatusEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresChangeStatusHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => PostgresChangeStatusModeSwarm$outboundSchema), - ), - mounts: z.array(z.lazy(() => PostgresChangeStatusMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresChangeStatusNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => PostgresChangeStatusPlacementSwarm$outboundSchema), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresChangeStatusRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresChangeStatusRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => PostgresChangeStatusServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresChangeStatusUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusResponseBody$ { - /** @deprecated use `PostgresChangeStatusResponseBody$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusResponseBody$inboundSchema; - /** @deprecated use `PostgresChangeStatusResponseBody$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusResponseBody$outboundSchema; - /** @deprecated use `PostgresChangeStatusResponseBody$Outbound` instead. */ - export type Outbound = PostgresChangeStatusResponseBody$Outbound; -} - -export function postgresChangeStatusResponseBodyToJSON( - postgresChangeStatusResponseBody: PostgresChangeStatusResponseBody, -): string { - return JSON.stringify( - PostgresChangeStatusResponseBody$outboundSchema.parse( - postgresChangeStatusResponseBody, - ), - ); -} - export function postgresChangeStatusResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2855,44 +1239,6 @@ export const PostgresChangeStatusResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PostgresChangeStatusResponse$Outbound = - | PostgresChangeStatusResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PostgresChangeStatusResponse$outboundSchema: z.ZodType< - PostgresChangeStatusResponse$Outbound, - z.ZodTypeDef, - PostgresChangeStatusResponse -> = z.union([ - z.lazy(() => PostgresChangeStatusResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresChangeStatusResponse$ { - /** @deprecated use `PostgresChangeStatusResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresChangeStatusResponse$inboundSchema; - /** @deprecated use `PostgresChangeStatusResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresChangeStatusResponse$outboundSchema; - /** @deprecated use `PostgresChangeStatusResponse$Outbound` instead. */ - export type Outbound = PostgresChangeStatusResponse$Outbound; -} - -export function postgresChangeStatusResponseToJSON( - postgresChangeStatusResponse: PostgresChangeStatusResponse, -): string { - return JSON.stringify( - PostgresChangeStatusResponse$outboundSchema.parse( - postgresChangeStatusResponse, - ), - ); -} - export function postgresChangeStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgrescreate.ts b/src/models/operations/postgrescreate.ts index 9b2d553..22b8ea3 100644 --- a/src/models/operations/postgrescreate.ts +++ b/src/models/operations/postgrescreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,23 +22,6 @@ export type PostgresCreateRequest = { export type PostgresCreateResponse = models.ErrorT | boolean; -/** @internal */ -export const PostgresCreateRequest$inboundSchema: z.ZodType< - PostgresCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("postgres:15"), - environmentId: z.string(), - name: z.string(), - serverId: z.nullable(z.string()).optional(), -}); - /** @internal */ export type PostgresCreateRequest$Outbound = { appName: string; @@ -69,19 +52,6 @@ export const PostgresCreateRequest$outboundSchema: z.ZodType< serverId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresCreateRequest$ { - /** @deprecated use `PostgresCreateRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresCreateRequest$inboundSchema; - /** @deprecated use `PostgresCreateRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresCreateRequest$outboundSchema; - /** @deprecated use `PostgresCreateRequest$Outbound` instead. */ - export type Outbound = PostgresCreateRequest$Outbound; -} - export function postgresCreateRequestToJSON( postgresCreateRequest: PostgresCreateRequest, ): string { @@ -90,16 +60,6 @@ export function postgresCreateRequestToJSON( ); } -export function postgresCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresCreateRequest' from JSON`, - ); -} - /** @internal */ export const PostgresCreateResponse$inboundSchema: z.ZodType< PostgresCreateResponse, @@ -107,37 +67,6 @@ export const PostgresCreateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type PostgresCreateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const PostgresCreateResponse$outboundSchema: z.ZodType< - PostgresCreateResponse$Outbound, - z.ZodTypeDef, - PostgresCreateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresCreateResponse$ { - /** @deprecated use `PostgresCreateResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresCreateResponse$inboundSchema; - /** @deprecated use `PostgresCreateResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresCreateResponse$outboundSchema; - /** @deprecated use `PostgresCreateResponse$Outbound` instead. */ - export type Outbound = PostgresCreateResponse$Outbound; -} - -export function postgresCreateResponseToJSON( - postgresCreateResponse: PostgresCreateResponse, -): string { - return JSON.stringify( - PostgresCreateResponse$outboundSchema.parse(postgresCreateResponse), - ); -} - export function postgresCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresdeploy.ts b/src/models/operations/postgresdeploy.ts index 85dc7a2..9a3d125 100644 --- a/src/models/operations/postgresdeploy.ts +++ b/src/models/operations/postgresdeploy.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -334,15 +334,6 @@ export type PostgresDeployResponseBody = { export type PostgresDeployResponse = PostgresDeployResponseBody | models.ErrorT; -/** @internal */ -export const PostgresDeployRequest$inboundSchema: z.ZodType< - PostgresDeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - postgresId: z.string(), -}); - /** @internal */ export type PostgresDeployRequest$Outbound = { postgresId: string; @@ -357,19 +348,6 @@ export const PostgresDeployRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployRequest$ { - /** @deprecated use `PostgresDeployRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployRequest$inboundSchema; - /** @deprecated use `PostgresDeployRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployRequest$outboundSchema; - /** @deprecated use `PostgresDeployRequest$Outbound` instead. */ - export type Outbound = PostgresDeployRequest$Outbound; -} - export function postgresDeployRequestToJSON( postgresDeployRequest: PostgresDeployRequest, ): string { @@ -378,100 +356,26 @@ export function postgresDeployRequestToJSON( ); } -export function postgresDeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresDeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresDeployRequest' from JSON`, - ); -} - /** @internal */ export const PostgresDeployApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresDeployApplicationStatus > = z.nativeEnum(PostgresDeployApplicationStatus); -/** @internal */ -export const PostgresDeployApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresDeployApplicationStatus -> = PostgresDeployApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployApplicationStatus$ { - /** @deprecated use `PostgresDeployApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployApplicationStatus$inboundSchema; - /** @deprecated use `PostgresDeployApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployApplicationStatus$outboundSchema; -} - /** @internal */ export const PostgresDeployBackupType$inboundSchema: z.ZodNativeEnum< typeof PostgresDeployBackupType > = z.nativeEnum(PostgresDeployBackupType); -/** @internal */ -export const PostgresDeployBackupType$outboundSchema: z.ZodNativeEnum< - typeof PostgresDeployBackupType -> = PostgresDeployBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployBackupType$ { - /** @deprecated use `PostgresDeployBackupType$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployBackupType$inboundSchema; - /** @deprecated use `PostgresDeployBackupType$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployBackupType$outboundSchema; -} - /** @internal */ export const PostgresDeployDatabaseType$inboundSchema: z.ZodNativeEnum< typeof PostgresDeployDatabaseType > = z.nativeEnum(PostgresDeployDatabaseType); -/** @internal */ -export const PostgresDeployDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof PostgresDeployDatabaseType -> = PostgresDeployDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployDatabaseType$ { - /** @deprecated use `PostgresDeployDatabaseType$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployDatabaseType$inboundSchema; - /** @deprecated use `PostgresDeployDatabaseType$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployDatabaseType$outboundSchema; -} - /** @internal */ export const PostgresDeployMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresDeployMetadataEnum > = z.nativeEnum(PostgresDeployMetadataEnum); -/** @internal */ -export const PostgresDeployMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresDeployMetadataEnum -> = PostgresDeployMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMetadataEnum$ { - /** @deprecated use `PostgresDeployMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMetadataEnum$inboundSchema; - /** @deprecated use `PostgresDeployMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployMetadataEnum$outboundSchema; -} - /** @internal */ export const PostgresDeployMariadb$inboundSchema: z.ZodType< PostgresDeployMariadb, @@ -482,43 +386,6 @@ export const PostgresDeployMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresDeployMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresDeployMariadb$outboundSchema: z.ZodType< - PostgresDeployMariadb$Outbound, - z.ZodTypeDef, - PostgresDeployMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMariadb$ { - /** @deprecated use `PostgresDeployMariadb$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMariadb$inboundSchema; - /** @deprecated use `PostgresDeployMariadb$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployMariadb$outboundSchema; - /** @deprecated use `PostgresDeployMariadb$Outbound` instead. */ - export type Outbound = PostgresDeployMariadb$Outbound; -} - -export function postgresDeployMariadbToJSON( - postgresDeployMariadb: PostgresDeployMariadb, -): string { - return JSON.stringify( - PostgresDeployMariadb$outboundSchema.parse(postgresDeployMariadb), - ); -} - export function postgresDeployMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -539,43 +406,6 @@ export const PostgresDeployMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresDeployMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresDeployMongo$outboundSchema: z.ZodType< - PostgresDeployMongo$Outbound, - z.ZodTypeDef, - PostgresDeployMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMongo$ { - /** @deprecated use `PostgresDeployMongo$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMongo$inboundSchema; - /** @deprecated use `PostgresDeployMongo$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployMongo$outboundSchema; - /** @deprecated use `PostgresDeployMongo$Outbound` instead. */ - export type Outbound = PostgresDeployMongo$Outbound; -} - -export function postgresDeployMongoToJSON( - postgresDeployMongo: PostgresDeployMongo, -): string { - return JSON.stringify( - PostgresDeployMongo$outboundSchema.parse(postgresDeployMongo), - ); -} - export function postgresDeployMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -595,41 +425,6 @@ export const PostgresDeployMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type PostgresDeployMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const PostgresDeployMysql$outboundSchema: z.ZodType< - PostgresDeployMysql$Outbound, - z.ZodTypeDef, - PostgresDeployMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMysql$ { - /** @deprecated use `PostgresDeployMysql$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMysql$inboundSchema; - /** @deprecated use `PostgresDeployMysql$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployMysql$outboundSchema; - /** @deprecated use `PostgresDeployMysql$Outbound` instead. */ - export type Outbound = PostgresDeployMysql$Outbound; -} - -export function postgresDeployMysqlToJSON( - postgresDeployMysql: PostgresDeployMysql, -): string { - return JSON.stringify( - PostgresDeployMysql$outboundSchema.parse(postgresDeployMysql), - ); -} - export function postgresDeployMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -649,41 +444,6 @@ export const PostgresDeployPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresDeployPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const PostgresDeployPostgres$outboundSchema: z.ZodType< - PostgresDeployPostgres$Outbound, - z.ZodTypeDef, - PostgresDeployPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployPostgres$ { - /** @deprecated use `PostgresDeployPostgres$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployPostgres$inboundSchema; - /** @deprecated use `PostgresDeployPostgres$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployPostgres$outboundSchema; - /** @deprecated use `PostgresDeployPostgres$Outbound` instead. */ - export type Outbound = PostgresDeployPostgres$Outbound; -} - -export function postgresDeployPostgresToJSON( - postgresDeployPostgres: PostgresDeployPostgres, -): string { - return JSON.stringify( - PostgresDeployPostgres$outboundSchema.parse(postgresDeployPostgres), - ); -} - export function postgresDeployPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -706,47 +466,6 @@ export const PostgresDeployMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => PostgresDeployPostgres$inboundSchema).optional(), }); -/** @internal */ -export type PostgresDeployMetadata$Outbound = { - mariadb?: PostgresDeployMariadb$Outbound | undefined; - mongo?: PostgresDeployMongo$Outbound | undefined; - mysql?: PostgresDeployMysql$Outbound | undefined; - postgres?: PostgresDeployPostgres$Outbound | undefined; -}; - -/** @internal */ -export const PostgresDeployMetadata$outboundSchema: z.ZodType< - PostgresDeployMetadata$Outbound, - z.ZodTypeDef, - PostgresDeployMetadata -> = z.object({ - mariadb: z.lazy(() => PostgresDeployMariadb$outboundSchema).optional(), - mongo: z.lazy(() => PostgresDeployMongo$outboundSchema).optional(), - mysql: z.lazy(() => PostgresDeployMysql$outboundSchema).optional(), - postgres: z.lazy(() => PostgresDeployPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMetadata$ { - /** @deprecated use `PostgresDeployMetadata$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMetadata$inboundSchema; - /** @deprecated use `PostgresDeployMetadata$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployMetadata$outboundSchema; - /** @deprecated use `PostgresDeployMetadata$Outbound` instead. */ - export type Outbound = PostgresDeployMetadata$Outbound; -} - -export function postgresDeployMetadataToJSON( - postgresDeployMetadata: PostgresDeployMetadata, -): string { - return JSON.stringify( - PostgresDeployMetadata$outboundSchema.parse(postgresDeployMetadata), - ); -} - export function postgresDeployMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -767,44 +486,6 @@ export const PostgresDeployMetadataUnion$inboundSchema: z.ZodType< PostgresDeployMetadataEnum$inboundSchema, ]); -/** @internal */ -export type PostgresDeployMetadataUnion$Outbound = - | PostgresDeployMetadata$Outbound - | string; - -/** @internal */ -export const PostgresDeployMetadataUnion$outboundSchema: z.ZodType< - PostgresDeployMetadataUnion$Outbound, - z.ZodTypeDef, - PostgresDeployMetadataUnion -> = z.union([ - z.lazy(() => PostgresDeployMetadata$outboundSchema), - PostgresDeployMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMetadataUnion$ { - /** @deprecated use `PostgresDeployMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMetadataUnion$inboundSchema; - /** @deprecated use `PostgresDeployMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployMetadataUnion$outboundSchema; - /** @deprecated use `PostgresDeployMetadataUnion$Outbound` instead. */ - export type Outbound = PostgresDeployMetadataUnion$Outbound; -} - -export function postgresDeployMetadataUnionToJSON( - postgresDeployMetadataUnion: PostgresDeployMetadataUnion, -): string { - return JSON.stringify( - PostgresDeployMetadataUnion$outboundSchema.parse( - postgresDeployMetadataUnion, - ), - ); -} - export function postgresDeployMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -846,80 +527,6 @@ export const PostgresDeployBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type PostgresDeployBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: PostgresDeployMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const PostgresDeployBackup$outboundSchema: z.ZodType< - PostgresDeployBackup$Outbound, - z.ZodTypeDef, - PostgresDeployBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: PostgresDeployBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: PostgresDeployDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => PostgresDeployMetadata$outboundSchema), - PostgresDeployMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployBackup$ { - /** @deprecated use `PostgresDeployBackup$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployBackup$inboundSchema; - /** @deprecated use `PostgresDeployBackup$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployBackup$outboundSchema; - /** @deprecated use `PostgresDeployBackup$Outbound` instead. */ - export type Outbound = PostgresDeployBackup$Outbound; -} - -export function postgresDeployBackupToJSON( - postgresDeployBackup: PostgresDeployBackup, -): string { - return JSON.stringify( - PostgresDeployBackup$outboundSchema.parse(postgresDeployBackup), - ); -} - export function postgresDeployBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -944,51 +551,6 @@ export const PostgresDeployProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresDeployProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const PostgresDeployProject$outboundSchema: z.ZodType< - PostgresDeployProject$Outbound, - z.ZodTypeDef, - PostgresDeployProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployProject$ { - /** @deprecated use `PostgresDeployProject$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployProject$inboundSchema; - /** @deprecated use `PostgresDeployProject$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployProject$outboundSchema; - /** @deprecated use `PostgresDeployProject$Outbound` instead. */ - export type Outbound = PostgresDeployProject$Outbound; -} - -export function postgresDeployProjectToJSON( - postgresDeployProject: PostgresDeployProject, -): string { - return JSON.stringify( - PostgresDeployProject$outboundSchema.parse(postgresDeployProject), - ); -} - export function postgresDeployProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1014,53 +576,6 @@ export const PostgresDeployEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresDeployEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: PostgresDeployProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const PostgresDeployEnvironment$outboundSchema: z.ZodType< - PostgresDeployEnvironment$Outbound, - z.ZodTypeDef, - PostgresDeployEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => PostgresDeployProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployEnvironment$ { - /** @deprecated use `PostgresDeployEnvironment$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployEnvironment$inboundSchema; - /** @deprecated use `PostgresDeployEnvironment$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployEnvironment$outboundSchema; - /** @deprecated use `PostgresDeployEnvironment$Outbound` instead. */ - export type Outbound = PostgresDeployEnvironment$Outbound; -} - -export function postgresDeployEnvironmentToJSON( - postgresDeployEnvironment: PostgresDeployEnvironment, -): string { - return JSON.stringify( - PostgresDeployEnvironment$outboundSchema.parse(postgresDeployEnvironment), - ); -} - export function postgresDeployEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1092,59 +607,6 @@ export const PostgresDeployHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const PostgresDeployHealthCheckSwarm$outboundSchema: z.ZodType< - PostgresDeployHealthCheckSwarm$Outbound, - z.ZodTypeDef, - PostgresDeployHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployHealthCheckSwarm$ { - /** @deprecated use `PostgresDeployHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresDeployHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresDeployHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresDeployHealthCheckSwarm$Outbound; -} - -export function postgresDeployHealthCheckSwarmToJSON( - postgresDeployHealthCheckSwarm: PostgresDeployHealthCheckSwarm, -): string { - return JSON.stringify( - PostgresDeployHealthCheckSwarm$outboundSchema.parse( - postgresDeployHealthCheckSwarm, - ), - ); -} - export function postgresDeployHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1162,37 +624,6 @@ export const PostgresDeployGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresDeployGlobal$Outbound = {}; - -/** @internal */ -export const PostgresDeployGlobal$outboundSchema: z.ZodType< - PostgresDeployGlobal$Outbound, - z.ZodTypeDef, - PostgresDeployGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployGlobal$ { - /** @deprecated use `PostgresDeployGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployGlobal$inboundSchema; - /** @deprecated use `PostgresDeployGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployGlobal$outboundSchema; - /** @deprecated use `PostgresDeployGlobal$Outbound` instead. */ - export type Outbound = PostgresDeployGlobal$Outbound; -} - -export function postgresDeployGlobalToJSON( - postgresDeployGlobal: PostgresDeployGlobal, -): string { - return JSON.stringify( - PostgresDeployGlobal$outboundSchema.parse(postgresDeployGlobal), - ); -} - export function postgresDeployGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1206,40 +637,9 @@ export function postgresDeployGlobalFromJSON( /** @internal */ export const PostgresDeployGlobalJob$inboundSchema: z.ZodType< PostgresDeployGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type PostgresDeployGlobalJob$Outbound = {}; - -/** @internal */ -export const PostgresDeployGlobalJob$outboundSchema: z.ZodType< - PostgresDeployGlobalJob$Outbound, - z.ZodTypeDef, - PostgresDeployGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployGlobalJob$ { - /** @deprecated use `PostgresDeployGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployGlobalJob$inboundSchema; - /** @deprecated use `PostgresDeployGlobalJob$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployGlobalJob$outboundSchema; - /** @deprecated use `PostgresDeployGlobalJob$Outbound` instead. */ - export type Outbound = PostgresDeployGlobalJob$Outbound; -} - -export function postgresDeployGlobalJobToJSON( - postgresDeployGlobalJob: PostgresDeployGlobalJob, -): string { - return JSON.stringify( - PostgresDeployGlobalJob$outboundSchema.parse(postgresDeployGlobalJob), - ); -} + z.ZodTypeDef, + unknown +> = z.object({}); export function postgresDeployGlobalJobFromJSON( jsonString: string, @@ -1264,45 +664,6 @@ export const PostgresDeployReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const PostgresDeployReplicated$outboundSchema: z.ZodType< - PostgresDeployReplicated$Outbound, - z.ZodTypeDef, - PostgresDeployReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployReplicated$ { - /** @deprecated use `PostgresDeployReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployReplicated$inboundSchema; - /** @deprecated use `PostgresDeployReplicated$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployReplicated$outboundSchema; - /** @deprecated use `PostgresDeployReplicated$Outbound` instead. */ - export type Outbound = PostgresDeployReplicated$Outbound; -} - -export function postgresDeployReplicatedToJSON( - postgresDeployReplicated: PostgresDeployReplicated, -): string { - return JSON.stringify( - PostgresDeployReplicated$outboundSchema.parse(postgresDeployReplicated), - ); -} - export function postgresDeployReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1328,50 +689,6 @@ export const PostgresDeployReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const PostgresDeployReplicatedJob$outboundSchema: z.ZodType< - PostgresDeployReplicatedJob$Outbound, - z.ZodTypeDef, - PostgresDeployReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployReplicatedJob$ { - /** @deprecated use `PostgresDeployReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployReplicatedJob$inboundSchema; - /** @deprecated use `PostgresDeployReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployReplicatedJob$outboundSchema; - /** @deprecated use `PostgresDeployReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresDeployReplicatedJob$Outbound; -} - -export function postgresDeployReplicatedJobToJSON( - postgresDeployReplicatedJob: PostgresDeployReplicatedJob, -): string { - return JSON.stringify( - PostgresDeployReplicatedJob$outboundSchema.parse( - postgresDeployReplicatedJob, - ), - ); -} - export function postgresDeployReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1402,55 +719,6 @@ export const PostgresDeployModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployModeSwarm$Outbound = { - Global?: PostgresDeployGlobal$Outbound | undefined; - GlobalJob?: PostgresDeployGlobalJob$Outbound | undefined; - Replicated?: PostgresDeployReplicated$Outbound | undefined; - ReplicatedJob?: PostgresDeployReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const PostgresDeployModeSwarm$outboundSchema: z.ZodType< - PostgresDeployModeSwarm$Outbound, - z.ZodTypeDef, - PostgresDeployModeSwarm -> = z.object({ - global: z.lazy(() => PostgresDeployGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => PostgresDeployGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => PostgresDeployReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => PostgresDeployReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployModeSwarm$ { - /** @deprecated use `PostgresDeployModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployModeSwarm$inboundSchema; - /** @deprecated use `PostgresDeployModeSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployModeSwarm$outboundSchema; - /** @deprecated use `PostgresDeployModeSwarm$Outbound` instead. */ - export type Outbound = PostgresDeployModeSwarm$Outbound; -} - -export function postgresDeployModeSwarmToJSON( - postgresDeployModeSwarm: PostgresDeployModeSwarm, -): string { - return JSON.stringify( - PostgresDeployModeSwarm$outboundSchema.parse(postgresDeployModeSwarm), - ); -} - export function postgresDeployModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1466,43 +734,11 @@ export const PostgresDeployServiceType$inboundSchema: z.ZodNativeEnum< typeof PostgresDeployServiceType > = z.nativeEnum(PostgresDeployServiceType); -/** @internal */ -export const PostgresDeployServiceType$outboundSchema: z.ZodNativeEnum< - typeof PostgresDeployServiceType -> = PostgresDeployServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployServiceType$ { - /** @deprecated use `PostgresDeployServiceType$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployServiceType$inboundSchema; - /** @deprecated use `PostgresDeployServiceType$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployServiceType$outboundSchema; -} - /** @internal */ export const PostgresDeployType$inboundSchema: z.ZodNativeEnum< typeof PostgresDeployType > = z.nativeEnum(PostgresDeployType); -/** @internal */ -export const PostgresDeployType$outboundSchema: z.ZodNativeEnum< - typeof PostgresDeployType -> = PostgresDeployType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployType$ { - /** @deprecated use `PostgresDeployType$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployType$inboundSchema; - /** @deprecated use `PostgresDeployType$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployType$outboundSchema; -} - /** @internal */ export const PostgresDeployMount$inboundSchema: z.ZodType< PostgresDeployMount, @@ -1526,69 +762,6 @@ export const PostgresDeployMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type PostgresDeployMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const PostgresDeployMount$outboundSchema: z.ZodType< - PostgresDeployMount$Outbound, - z.ZodTypeDef, - PostgresDeployMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: PostgresDeployServiceType$outboundSchema, - type: PostgresDeployType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMount$ { - /** @deprecated use `PostgresDeployMount$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMount$inboundSchema; - /** @deprecated use `PostgresDeployMount$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployMount$outboundSchema; - /** @deprecated use `PostgresDeployMount$Outbound` instead. */ - export type Outbound = PostgresDeployMount$Outbound; -} - -export function postgresDeployMountToJSON( - postgresDeployMount: PostgresDeployMount, -): string { - return JSON.stringify( - PostgresDeployMount$outboundSchema.parse(postgresDeployMount), - ); -} - export function postgresDeployMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1606,37 +779,6 @@ export const PostgresDeployDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresDeployDriverOpts$Outbound = {}; - -/** @internal */ -export const PostgresDeployDriverOpts$outboundSchema: z.ZodType< - PostgresDeployDriverOpts$Outbound, - z.ZodTypeDef, - PostgresDeployDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployDriverOpts$ { - /** @deprecated use `PostgresDeployDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployDriverOpts$inboundSchema; - /** @deprecated use `PostgresDeployDriverOpts$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployDriverOpts$outboundSchema; - /** @deprecated use `PostgresDeployDriverOpts$Outbound` instead. */ - export type Outbound = PostgresDeployDriverOpts$Outbound; -} - -export function postgresDeployDriverOptsToJSON( - postgresDeployDriverOpts: PostgresDeployDriverOpts, -): string { - return JSON.stringify( - PostgresDeployDriverOpts$outboundSchema.parse(postgresDeployDriverOpts), - ); -} - export function postgresDeployDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1664,51 +806,6 @@ export const PostgresDeployNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: PostgresDeployDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const PostgresDeployNetworkSwarm$outboundSchema: z.ZodType< - PostgresDeployNetworkSwarm$Outbound, - z.ZodTypeDef, - PostgresDeployNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => PostgresDeployDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployNetworkSwarm$ { - /** @deprecated use `PostgresDeployNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresDeployNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresDeployNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresDeployNetworkSwarm$Outbound; -} - -export function postgresDeployNetworkSwarmToJSON( - postgresDeployNetworkSwarm: PostgresDeployNetworkSwarm, -): string { - return JSON.stringify( - PostgresDeployNetworkSwarm$outboundSchema.parse(postgresDeployNetworkSwarm), - ); -} - export function postgresDeployNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1734,48 +831,6 @@ export const PostgresDeployPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const PostgresDeployPlatform$outboundSchema: z.ZodType< - PostgresDeployPlatform$Outbound, - z.ZodTypeDef, - PostgresDeployPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployPlatform$ { - /** @deprecated use `PostgresDeployPlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployPlatform$inboundSchema; - /** @deprecated use `PostgresDeployPlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployPlatform$outboundSchema; - /** @deprecated use `PostgresDeployPlatform$Outbound` instead. */ - export type Outbound = PostgresDeployPlatform$Outbound; -} - -export function postgresDeployPlatformToJSON( - postgresDeployPlatform: PostgresDeployPlatform, -): string { - return JSON.stringify( - PostgresDeployPlatform$outboundSchema.parse(postgresDeployPlatform), - ); -} - export function postgresDeployPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1799,45 +854,6 @@ export const PostgresDeploySpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeploySpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const PostgresDeploySpread$outboundSchema: z.ZodType< - PostgresDeploySpread$Outbound, - z.ZodTypeDef, - PostgresDeploySpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeploySpread$ { - /** @deprecated use `PostgresDeploySpread$inboundSchema` instead. */ - export const inboundSchema = PostgresDeploySpread$inboundSchema; - /** @deprecated use `PostgresDeploySpread$outboundSchema` instead. */ - export const outboundSchema = PostgresDeploySpread$outboundSchema; - /** @deprecated use `PostgresDeploySpread$Outbound` instead. */ - export type Outbound = PostgresDeploySpread$Outbound; -} - -export function postgresDeploySpreadToJSON( - postgresDeploySpread: PostgresDeploySpread, -): string { - return JSON.stringify( - PostgresDeploySpread$outboundSchema.parse(postgresDeploySpread), - ); -} - export function postgresDeploySpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1861,45 +877,6 @@ export const PostgresDeployPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployPreference$Outbound = { - Spread: PostgresDeploySpread$Outbound; -}; - -/** @internal */ -export const PostgresDeployPreference$outboundSchema: z.ZodType< - PostgresDeployPreference$Outbound, - z.ZodTypeDef, - PostgresDeployPreference -> = z.object({ - spread: z.lazy(() => PostgresDeploySpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployPreference$ { - /** @deprecated use `PostgresDeployPreference$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployPreference$inboundSchema; - /** @deprecated use `PostgresDeployPreference$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployPreference$outboundSchema; - /** @deprecated use `PostgresDeployPreference$Outbound` instead. */ - export type Outbound = PostgresDeployPreference$Outbound; -} - -export function postgresDeployPreferenceToJSON( - postgresDeployPreference: PostgresDeployPreference, -): string { - return JSON.stringify( - PostgresDeployPreference$outboundSchema.parse(postgresDeployPreference), - ); -} - export function postgresDeployPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1931,58 +908,6 @@ export const PostgresDeployPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const PostgresDeployPlacementSwarm$outboundSchema: z.ZodType< - PostgresDeployPlacementSwarm$Outbound, - z.ZodTypeDef, - PostgresDeployPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => PostgresDeployPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => PostgresDeployPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployPlacementSwarm$ { - /** @deprecated use `PostgresDeployPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployPlacementSwarm$inboundSchema; - /** @deprecated use `PostgresDeployPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployPlacementSwarm$outboundSchema; - /** @deprecated use `PostgresDeployPlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresDeployPlacementSwarm$Outbound; -} - -export function postgresDeployPlacementSwarmToJSON( - postgresDeployPlacementSwarm: PostgresDeployPlacementSwarm, -): string { - return JSON.stringify( - PostgresDeployPlacementSwarm$outboundSchema.parse( - postgresDeployPlacementSwarm, - ), - ); -} - export function postgresDeployPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2000,68 +925,18 @@ export const PostgresDeployRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type PostgresDeployRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const PostgresDeployRestartPolicySwarm$outboundSchema: z.ZodType< - PostgresDeployRestartPolicySwarm$Outbound, - z.ZodTypeDef, - PostgresDeployRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployRestartPolicySwarm$ { - /** @deprecated use `PostgresDeployRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresDeployRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresDeployRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresDeployRestartPolicySwarm$Outbound; -} - -export function postgresDeployRestartPolicySwarmToJSON( - postgresDeployRestartPolicySwarm: PostgresDeployRestartPolicySwarm, -): string { - return JSON.stringify( - PostgresDeployRestartPolicySwarm$outboundSchema.parse( - postgresDeployRestartPolicySwarm, - ), - ); -} - export function postgresDeployRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2095,63 +970,6 @@ export const PostgresDeployRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresDeployRollbackConfigSwarm$outboundSchema: z.ZodType< - PostgresDeployRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresDeployRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployRollbackConfigSwarm$ { - /** @deprecated use `PostgresDeployRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresDeployRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresDeployRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresDeployRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresDeployRollbackConfigSwarm$Outbound; -} - -export function postgresDeployRollbackConfigSwarmToJSON( - postgresDeployRollbackConfigSwarm: PostgresDeployRollbackConfigSwarm, -): string { - return JSON.stringify( - PostgresDeployRollbackConfigSwarm$outboundSchema.parse( - postgresDeployRollbackConfigSwarm, - ), - ); -} - export function postgresDeployRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2167,22 +985,6 @@ export const PostgresDeployMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresDeployMetricsConfigEnum > = z.nativeEnum(PostgresDeployMetricsConfigEnum); -/** @internal */ -export const PostgresDeployMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresDeployMetricsConfigEnum -> = PostgresDeployMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMetricsConfigEnum$ { - /** @deprecated use `PostgresDeployMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMetricsConfigEnum$inboundSchema; - /** @deprecated use `PostgresDeployMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const PostgresDeployMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresDeployMetricsConfigUnion1, @@ -2195,49 +997,6 @@ export const PostgresDeployMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresDeployMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type PostgresDeployMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const PostgresDeployMetricsConfigUnion1$outboundSchema: z.ZodType< - PostgresDeployMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - PostgresDeployMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresDeployMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMetricsConfigUnion1$ { - /** @deprecated use `PostgresDeployMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMetricsConfigUnion1$inboundSchema; - /** @deprecated use `PostgresDeployMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - PostgresDeployMetricsConfigUnion1$outboundSchema; - /** @deprecated use `PostgresDeployMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = PostgresDeployMetricsConfigUnion1$Outbound; -} - -export function postgresDeployMetricsConfigUnion1ToJSON( - postgresDeployMetricsConfigUnion1: PostgresDeployMetricsConfigUnion1, -): string { - return JSON.stringify( - PostgresDeployMetricsConfigUnion1$outboundSchema.parse( - postgresDeployMetricsConfigUnion1, - ), - ); -} - export function postgresDeployMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2264,55 +1023,6 @@ export const PostgresDeployMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type PostgresDeployMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const PostgresDeployMetricsConfigUnion2$outboundSchema: z.ZodType< - PostgresDeployMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - PostgresDeployMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployMetricsConfigUnion2$ { - /** @deprecated use `PostgresDeployMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployMetricsConfigUnion2$inboundSchema; - /** @deprecated use `PostgresDeployMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - PostgresDeployMetricsConfigUnion2$outboundSchema; - /** @deprecated use `PostgresDeployMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = PostgresDeployMetricsConfigUnion2$Outbound; -} - -export function postgresDeployMetricsConfigUnion2ToJSON( - postgresDeployMetricsConfigUnion2: PostgresDeployMetricsConfigUnion2, -): string { - return JSON.stringify( - PostgresDeployMetricsConfigUnion2$outboundSchema.parse( - postgresDeployMetricsConfigUnion2, - ), - ); -} - export function postgresDeployMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2328,22 +1038,6 @@ export const PostgresDeployServerStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresDeployServerStatus > = z.nativeEnum(PostgresDeployServerStatus); -/** @internal */ -export const PostgresDeployServerStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresDeployServerStatus -> = PostgresDeployServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployServerStatus$ { - /** @deprecated use `PostgresDeployServerStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployServerStatus$inboundSchema; - /** @deprecated use `PostgresDeployServerStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployServerStatus$outboundSchema; -} - /** @internal */ export const PostgresDeployServer$inboundSchema: z.ZodType< PostgresDeployServer, @@ -2375,78 +1069,6 @@ export const PostgresDeployServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type PostgresDeployServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const PostgresDeployServer$outboundSchema: z.ZodType< - PostgresDeployServer$Outbound, - z.ZodTypeDef, - PostgresDeployServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: PostgresDeployServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployServer$ { - /** @deprecated use `PostgresDeployServer$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployServer$inboundSchema; - /** @deprecated use `PostgresDeployServer$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployServer$outboundSchema; - /** @deprecated use `PostgresDeployServer$Outbound` instead. */ - export type Outbound = PostgresDeployServer$Outbound; -} - -export function postgresDeployServerToJSON( - postgresDeployServer: PostgresDeployServer, -): string { - return JSON.stringify( - PostgresDeployServer$outboundSchema.parse(postgresDeployServer), - ); -} - export function postgresDeployServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2480,62 +1102,6 @@ export const PostgresDeployUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresDeployUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresDeployUpdateConfigSwarm$outboundSchema: z.ZodType< - PostgresDeployUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresDeployUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployUpdateConfigSwarm$ { - /** @deprecated use `PostgresDeployUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresDeployUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresDeployUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresDeployUpdateConfigSwarm$Outbound; -} - -export function postgresDeployUpdateConfigSwarmToJSON( - postgresDeployUpdateConfigSwarm: PostgresDeployUpdateConfigSwarm, -): string { - return JSON.stringify( - PostgresDeployUpdateConfigSwarm$outboundSchema.parse( - postgresDeployUpdateConfigSwarm, - ), - ); -} - export function postgresDeployUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2598,115 +1164,6 @@ export const PostgresDeployResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostgresDeployResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: PostgresDeployEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: PostgresDeployHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: PostgresDeployModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: PostgresDeployPlacementSwarm$Outbound | null; - postgresId: string; - replicas: number; - restartPolicySwarm: PostgresDeployRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: PostgresDeployRollbackConfigSwarm$Outbound | null; - server: PostgresDeployServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: PostgresDeployUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const PostgresDeployResponseBody$outboundSchema: z.ZodType< - PostgresDeployResponseBody$Outbound, - z.ZodTypeDef, - PostgresDeployResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: PostgresDeployApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => PostgresDeployBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => PostgresDeployEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresDeployHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => PostgresDeployModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => PostgresDeployMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresDeployNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => PostgresDeployPlacementSwarm$outboundSchema), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresDeployRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresDeployRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => PostgresDeployServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresDeployUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployResponseBody$ { - /** @deprecated use `PostgresDeployResponseBody$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployResponseBody$inboundSchema; - /** @deprecated use `PostgresDeployResponseBody$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployResponseBody$outboundSchema; - /** @deprecated use `PostgresDeployResponseBody$Outbound` instead. */ - export type Outbound = PostgresDeployResponseBody$Outbound; -} - -export function postgresDeployResponseBodyToJSON( - postgresDeployResponseBody: PostgresDeployResponseBody, -): string { - return JSON.stringify( - PostgresDeployResponseBody$outboundSchema.parse(postgresDeployResponseBody), - ); -} - export function postgresDeployResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2727,42 +1184,6 @@ export const PostgresDeployResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PostgresDeployResponse$Outbound = - | PostgresDeployResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PostgresDeployResponse$outboundSchema: z.ZodType< - PostgresDeployResponse$Outbound, - z.ZodTypeDef, - PostgresDeployResponse -> = z.union([ - z.lazy(() => PostgresDeployResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresDeployResponse$ { - /** @deprecated use `PostgresDeployResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresDeployResponse$inboundSchema; - /** @deprecated use `PostgresDeployResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresDeployResponse$outboundSchema; - /** @deprecated use `PostgresDeployResponse$Outbound` instead. */ - export type Outbound = PostgresDeployResponse$Outbound; -} - -export function postgresDeployResponseToJSON( - postgresDeployResponse: PostgresDeployResponse, -): string { - return JSON.stringify( - PostgresDeployResponse$outboundSchema.parse(postgresDeployResponse), - ); -} - export function postgresDeployResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresmove.ts b/src/models/operations/postgresmove.ts index a89afc4..99e6a5c 100644 --- a/src/models/operations/postgresmove.ts +++ b/src/models/operations/postgresmove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -142,16 +142,6 @@ export type PostgresMoveResponseBody = { export type PostgresMoveResponse = PostgresMoveResponseBody | models.ErrorT; -/** @internal */ -export const PostgresMoveRequest$inboundSchema: z.ZodType< - PostgresMoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - postgresId: z.string(), - targetEnvironmentId: z.string(), -}); - /** @internal */ export type PostgresMoveRequest$Outbound = { postgresId: string; @@ -168,19 +158,6 @@ export const PostgresMoveRequest$outboundSchema: z.ZodType< targetEnvironmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveRequest$ { - /** @deprecated use `PostgresMoveRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveRequest$inboundSchema; - /** @deprecated use `PostgresMoveRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveRequest$outboundSchema; - /** @deprecated use `PostgresMoveRequest$Outbound` instead. */ - export type Outbound = PostgresMoveRequest$Outbound; -} - export function postgresMoveRequestToJSON( postgresMoveRequest: PostgresMoveRequest, ): string { @@ -189,37 +166,11 @@ export function postgresMoveRequestToJSON( ); } -export function postgresMoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresMoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresMoveRequest' from JSON`, - ); -} - /** @internal */ export const PostgresMoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresMoveApplicationStatus > = z.nativeEnum(PostgresMoveApplicationStatus); -/** @internal */ -export const PostgresMoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresMoveApplicationStatus -> = PostgresMoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveApplicationStatus$ { - /** @deprecated use `PostgresMoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveApplicationStatus$inboundSchema; - /** @deprecated use `PostgresMoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveApplicationStatus$outboundSchema; -} - /** @internal */ export const PostgresMoveHealthCheckSwarm$inboundSchema: z.ZodType< PostgresMoveHealthCheckSwarm, @@ -241,59 +192,6 @@ export const PostgresMoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const PostgresMoveHealthCheckSwarm$outboundSchema: z.ZodType< - PostgresMoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - PostgresMoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveHealthCheckSwarm$ { - /** @deprecated use `PostgresMoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresMoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresMoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresMoveHealthCheckSwarm$Outbound; -} - -export function postgresMoveHealthCheckSwarmToJSON( - postgresMoveHealthCheckSwarm: PostgresMoveHealthCheckSwarm, -): string { - return JSON.stringify( - PostgresMoveHealthCheckSwarm$outboundSchema.parse( - postgresMoveHealthCheckSwarm, - ), - ); -} - export function postgresMoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -311,37 +209,6 @@ export const PostgresMoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresMoveGlobal$Outbound = {}; - -/** @internal */ -export const PostgresMoveGlobal$outboundSchema: z.ZodType< - PostgresMoveGlobal$Outbound, - z.ZodTypeDef, - PostgresMoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveGlobal$ { - /** @deprecated use `PostgresMoveGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveGlobal$inboundSchema; - /** @deprecated use `PostgresMoveGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveGlobal$outboundSchema; - /** @deprecated use `PostgresMoveGlobal$Outbound` instead. */ - export type Outbound = PostgresMoveGlobal$Outbound; -} - -export function postgresMoveGlobalToJSON( - postgresMoveGlobal: PostgresMoveGlobal, -): string { - return JSON.stringify( - PostgresMoveGlobal$outboundSchema.parse(postgresMoveGlobal), - ); -} - export function postgresMoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -359,37 +226,6 @@ export const PostgresMoveGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresMoveGlobalJob$Outbound = {}; - -/** @internal */ -export const PostgresMoveGlobalJob$outboundSchema: z.ZodType< - PostgresMoveGlobalJob$Outbound, - z.ZodTypeDef, - PostgresMoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveGlobalJob$ { - /** @deprecated use `PostgresMoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveGlobalJob$inboundSchema; - /** @deprecated use `PostgresMoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveGlobalJob$outboundSchema; - /** @deprecated use `PostgresMoveGlobalJob$Outbound` instead. */ - export type Outbound = PostgresMoveGlobalJob$Outbound; -} - -export function postgresMoveGlobalJobToJSON( - postgresMoveGlobalJob: PostgresMoveGlobalJob, -): string { - return JSON.stringify( - PostgresMoveGlobalJob$outboundSchema.parse(postgresMoveGlobalJob), - ); -} - export function postgresMoveGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -413,45 +249,6 @@ export const PostgresMoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const PostgresMoveReplicated$outboundSchema: z.ZodType< - PostgresMoveReplicated$Outbound, - z.ZodTypeDef, - PostgresMoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveReplicated$ { - /** @deprecated use `PostgresMoveReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveReplicated$inboundSchema; - /** @deprecated use `PostgresMoveReplicated$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveReplicated$outboundSchema; - /** @deprecated use `PostgresMoveReplicated$Outbound` instead. */ - export type Outbound = PostgresMoveReplicated$Outbound; -} - -export function postgresMoveReplicatedToJSON( - postgresMoveReplicated: PostgresMoveReplicated, -): string { - return JSON.stringify( - PostgresMoveReplicated$outboundSchema.parse(postgresMoveReplicated), - ); -} - export function postgresMoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -477,48 +274,6 @@ export const PostgresMoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const PostgresMoveReplicatedJob$outboundSchema: z.ZodType< - PostgresMoveReplicatedJob$Outbound, - z.ZodTypeDef, - PostgresMoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveReplicatedJob$ { - /** @deprecated use `PostgresMoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveReplicatedJob$inboundSchema; - /** @deprecated use `PostgresMoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveReplicatedJob$outboundSchema; - /** @deprecated use `PostgresMoveReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresMoveReplicatedJob$Outbound; -} - -export function postgresMoveReplicatedJobToJSON( - postgresMoveReplicatedJob: PostgresMoveReplicatedJob, -): string { - return JSON.stringify( - PostgresMoveReplicatedJob$outboundSchema.parse(postgresMoveReplicatedJob), - ); -} - export function postgresMoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -549,55 +304,6 @@ export const PostgresMoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveModeSwarm$Outbound = { - Global?: PostgresMoveGlobal$Outbound | undefined; - GlobalJob?: PostgresMoveGlobalJob$Outbound | undefined; - Replicated?: PostgresMoveReplicated$Outbound | undefined; - ReplicatedJob?: PostgresMoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const PostgresMoveModeSwarm$outboundSchema: z.ZodType< - PostgresMoveModeSwarm$Outbound, - z.ZodTypeDef, - PostgresMoveModeSwarm -> = z.object({ - global: z.lazy(() => PostgresMoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => PostgresMoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => PostgresMoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => PostgresMoveReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveModeSwarm$ { - /** @deprecated use `PostgresMoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveModeSwarm$inboundSchema; - /** @deprecated use `PostgresMoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveModeSwarm$outboundSchema; - /** @deprecated use `PostgresMoveModeSwarm$Outbound` instead. */ - export type Outbound = PostgresMoveModeSwarm$Outbound; -} - -export function postgresMoveModeSwarmToJSON( - postgresMoveModeSwarm: PostgresMoveModeSwarm, -): string { - return JSON.stringify( - PostgresMoveModeSwarm$outboundSchema.parse(postgresMoveModeSwarm), - ); -} - export function postgresMoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -615,37 +321,6 @@ export const PostgresMoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresMoveDriverOpts$Outbound = {}; - -/** @internal */ -export const PostgresMoveDriverOpts$outboundSchema: z.ZodType< - PostgresMoveDriverOpts$Outbound, - z.ZodTypeDef, - PostgresMoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveDriverOpts$ { - /** @deprecated use `PostgresMoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveDriverOpts$inboundSchema; - /** @deprecated use `PostgresMoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveDriverOpts$outboundSchema; - /** @deprecated use `PostgresMoveDriverOpts$Outbound` instead. */ - export type Outbound = PostgresMoveDriverOpts$Outbound; -} - -export function postgresMoveDriverOptsToJSON( - postgresMoveDriverOpts: PostgresMoveDriverOpts, -): string { - return JSON.stringify( - PostgresMoveDriverOpts$outboundSchema.parse(postgresMoveDriverOpts), - ); -} - export function postgresMoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -673,51 +348,6 @@ export const PostgresMoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: PostgresMoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const PostgresMoveNetworkSwarm$outboundSchema: z.ZodType< - PostgresMoveNetworkSwarm$Outbound, - z.ZodTypeDef, - PostgresMoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => PostgresMoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveNetworkSwarm$ { - /** @deprecated use `PostgresMoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresMoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresMoveNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresMoveNetworkSwarm$Outbound; -} - -export function postgresMoveNetworkSwarmToJSON( - postgresMoveNetworkSwarm: PostgresMoveNetworkSwarm, -): string { - return JSON.stringify( - PostgresMoveNetworkSwarm$outboundSchema.parse(postgresMoveNetworkSwarm), - ); -} - export function postgresMoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -743,48 +373,6 @@ export const PostgresMovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const PostgresMovePlatform$outboundSchema: z.ZodType< - PostgresMovePlatform$Outbound, - z.ZodTypeDef, - PostgresMovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMovePlatform$ { - /** @deprecated use `PostgresMovePlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresMovePlatform$inboundSchema; - /** @deprecated use `PostgresMovePlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresMovePlatform$outboundSchema; - /** @deprecated use `PostgresMovePlatform$Outbound` instead. */ - export type Outbound = PostgresMovePlatform$Outbound; -} - -export function postgresMovePlatformToJSON( - postgresMovePlatform: PostgresMovePlatform, -): string { - return JSON.stringify( - PostgresMovePlatform$outboundSchema.parse(postgresMovePlatform), - ); -} - export function postgresMovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -808,45 +396,6 @@ export const PostgresMoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const PostgresMoveSpread$outboundSchema: z.ZodType< - PostgresMoveSpread$Outbound, - z.ZodTypeDef, - PostgresMoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveSpread$ { - /** @deprecated use `PostgresMoveSpread$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveSpread$inboundSchema; - /** @deprecated use `PostgresMoveSpread$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveSpread$outboundSchema; - /** @deprecated use `PostgresMoveSpread$Outbound` instead. */ - export type Outbound = PostgresMoveSpread$Outbound; -} - -export function postgresMoveSpreadToJSON( - postgresMoveSpread: PostgresMoveSpread, -): string { - return JSON.stringify( - PostgresMoveSpread$outboundSchema.parse(postgresMoveSpread), - ); -} - export function postgresMoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -870,45 +419,6 @@ export const PostgresMovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMovePreference$Outbound = { - Spread: PostgresMoveSpread$Outbound; -}; - -/** @internal */ -export const PostgresMovePreference$outboundSchema: z.ZodType< - PostgresMovePreference$Outbound, - z.ZodTypeDef, - PostgresMovePreference -> = z.object({ - spread: z.lazy(() => PostgresMoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMovePreference$ { - /** @deprecated use `PostgresMovePreference$inboundSchema` instead. */ - export const inboundSchema = PostgresMovePreference$inboundSchema; - /** @deprecated use `PostgresMovePreference$outboundSchema` instead. */ - export const outboundSchema = PostgresMovePreference$outboundSchema; - /** @deprecated use `PostgresMovePreference$Outbound` instead. */ - export type Outbound = PostgresMovePreference$Outbound; -} - -export function postgresMovePreferenceToJSON( - postgresMovePreference: PostgresMovePreference, -): string { - return JSON.stringify( - PostgresMovePreference$outboundSchema.parse(postgresMovePreference), - ); -} - export function postgresMovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -940,56 +450,6 @@ export const PostgresMovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const PostgresMovePlacementSwarm$outboundSchema: z.ZodType< - PostgresMovePlacementSwarm$Outbound, - z.ZodTypeDef, - PostgresMovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => PostgresMovePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => PostgresMovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMovePlacementSwarm$ { - /** @deprecated use `PostgresMovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresMovePlacementSwarm$inboundSchema; - /** @deprecated use `PostgresMovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresMovePlacementSwarm$outboundSchema; - /** @deprecated use `PostgresMovePlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresMovePlacementSwarm$Outbound; -} - -export function postgresMovePlacementSwarmToJSON( - postgresMovePlacementSwarm: PostgresMovePlacementSwarm, -): string { - return JSON.stringify( - PostgresMovePlacementSwarm$outboundSchema.parse(postgresMovePlacementSwarm), - ); -} - export function postgresMovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1019,56 +479,6 @@ export const PostgresMoveRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const PostgresMoveRestartPolicySwarm$outboundSchema: z.ZodType< - PostgresMoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - PostgresMoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveRestartPolicySwarm$ { - /** @deprecated use `PostgresMoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresMoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresMoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresMoveRestartPolicySwarm$Outbound; -} - -export function postgresMoveRestartPolicySwarmToJSON( - postgresMoveRestartPolicySwarm: PostgresMoveRestartPolicySwarm, -): string { - return JSON.stringify( - PostgresMoveRestartPolicySwarm$outboundSchema.parse( - postgresMoveRestartPolicySwarm, - ), - ); -} - export function postgresMoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1102,62 +512,6 @@ export const PostgresMoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresMoveRollbackConfigSwarm$outboundSchema: z.ZodType< - PostgresMoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresMoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveRollbackConfigSwarm$ { - /** @deprecated use `PostgresMoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresMoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresMoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresMoveRollbackConfigSwarm$Outbound; -} - -export function postgresMoveRollbackConfigSwarmToJSON( - postgresMoveRollbackConfigSwarm: PostgresMoveRollbackConfigSwarm, -): string { - return JSON.stringify( - PostgresMoveRollbackConfigSwarm$outboundSchema.parse( - postgresMoveRollbackConfigSwarm, - ), - ); -} - export function postgresMoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1191,62 +545,6 @@ export const PostgresMoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresMoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresMoveUpdateConfigSwarm$outboundSchema: z.ZodType< - PostgresMoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresMoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveUpdateConfigSwarm$ { - /** @deprecated use `PostgresMoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresMoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresMoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresMoveUpdateConfigSwarm$Outbound; -} - -export function postgresMoveUpdateConfigSwarmToJSON( - postgresMoveUpdateConfigSwarm: PostgresMoveUpdateConfigSwarm, -): string { - return JSON.stringify( - PostgresMoveUpdateConfigSwarm$outboundSchema.parse( - postgresMoveUpdateConfigSwarm, - ), - ); -} - export function postgresMoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1305,107 +603,6 @@ export const PostgresMoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostgresMoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: PostgresMoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: PostgresMoveModeSwarm$Outbound | null; - name: string; - networkSwarm: Array | null; - placementSwarm: PostgresMovePlacementSwarm$Outbound | null; - postgresId: string; - replicas: number; - restartPolicySwarm: PostgresMoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: PostgresMoveRollbackConfigSwarm$Outbound | null; - serverId: string | null; - updateConfigSwarm: PostgresMoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const PostgresMoveResponseBody$outboundSchema: z.ZodType< - PostgresMoveResponseBody$Outbound, - z.ZodTypeDef, - PostgresMoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: PostgresMoveApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresMoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => PostgresMoveModeSwarm$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresMoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => PostgresMovePlacementSwarm$outboundSchema), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresMoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresMoveRollbackConfigSwarm$outboundSchema), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresMoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveResponseBody$ { - /** @deprecated use `PostgresMoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveResponseBody$inboundSchema; - /** @deprecated use `PostgresMoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveResponseBody$outboundSchema; - /** @deprecated use `PostgresMoveResponseBody$Outbound` instead. */ - export type Outbound = PostgresMoveResponseBody$Outbound; -} - -export function postgresMoveResponseBodyToJSON( - postgresMoveResponseBody: PostgresMoveResponseBody, -): string { - return JSON.stringify( - PostgresMoveResponseBody$outboundSchema.parse(postgresMoveResponseBody), - ); -} - export function postgresMoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1426,42 +623,6 @@ export const PostgresMoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PostgresMoveResponse$Outbound = - | PostgresMoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PostgresMoveResponse$outboundSchema: z.ZodType< - PostgresMoveResponse$Outbound, - z.ZodTypeDef, - PostgresMoveResponse -> = z.union([ - z.lazy(() => PostgresMoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresMoveResponse$ { - /** @deprecated use `PostgresMoveResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresMoveResponse$inboundSchema; - /** @deprecated use `PostgresMoveResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresMoveResponse$outboundSchema; - /** @deprecated use `PostgresMoveResponse$Outbound` instead. */ - export type Outbound = PostgresMoveResponse$Outbound; -} - -export function postgresMoveResponseToJSON( - postgresMoveResponse: PostgresMoveResponse, -): string { - return JSON.stringify( - PostgresMoveResponse$outboundSchema.parse(postgresMoveResponse), - ); -} - export function postgresMoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresone.ts b/src/models/operations/postgresone.ts index 50e168a..c4d2506 100644 --- a/src/models/operations/postgresone.ts +++ b/src/models/operations/postgresone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -326,15 +326,6 @@ export type PostgresOneResponseBody = { export type PostgresOneResponse = PostgresOneResponseBody | models.ErrorT; -/** @internal */ -export const PostgresOneRequest$inboundSchema: z.ZodType< - PostgresOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - postgresId: z.string(), -}); - /** @internal */ export type PostgresOneRequest$Outbound = { postgresId: string; @@ -349,19 +340,6 @@ export const PostgresOneRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneRequest$ { - /** @deprecated use `PostgresOneRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresOneRequest$inboundSchema; - /** @deprecated use `PostgresOneRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresOneRequest$outboundSchema; - /** @deprecated use `PostgresOneRequest$Outbound` instead. */ - export type Outbound = PostgresOneRequest$Outbound; -} - export function postgresOneRequestToJSON( postgresOneRequest: PostgresOneRequest, ): string { @@ -370,100 +348,26 @@ export function postgresOneRequestToJSON( ); } -export function postgresOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresOneRequest' from JSON`, - ); -} - /** @internal */ export const PostgresOneApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresOneApplicationStatus > = z.nativeEnum(PostgresOneApplicationStatus); -/** @internal */ -export const PostgresOneApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresOneApplicationStatus -> = PostgresOneApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneApplicationStatus$ { - /** @deprecated use `PostgresOneApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresOneApplicationStatus$inboundSchema; - /** @deprecated use `PostgresOneApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresOneApplicationStatus$outboundSchema; -} - /** @internal */ export const PostgresOneBackupType$inboundSchema: z.ZodNativeEnum< typeof PostgresOneBackupType > = z.nativeEnum(PostgresOneBackupType); -/** @internal */ -export const PostgresOneBackupType$outboundSchema: z.ZodNativeEnum< - typeof PostgresOneBackupType -> = PostgresOneBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneBackupType$ { - /** @deprecated use `PostgresOneBackupType$inboundSchema` instead. */ - export const inboundSchema = PostgresOneBackupType$inboundSchema; - /** @deprecated use `PostgresOneBackupType$outboundSchema` instead. */ - export const outboundSchema = PostgresOneBackupType$outboundSchema; -} - /** @internal */ export const PostgresOneDatabaseType$inboundSchema: z.ZodNativeEnum< typeof PostgresOneDatabaseType > = z.nativeEnum(PostgresOneDatabaseType); -/** @internal */ -export const PostgresOneDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof PostgresOneDatabaseType -> = PostgresOneDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneDatabaseType$ { - /** @deprecated use `PostgresOneDatabaseType$inboundSchema` instead. */ - export const inboundSchema = PostgresOneDatabaseType$inboundSchema; - /** @deprecated use `PostgresOneDatabaseType$outboundSchema` instead. */ - export const outboundSchema = PostgresOneDatabaseType$outboundSchema; -} - /** @internal */ export const PostgresOneMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresOneMetadataEnum > = z.nativeEnum(PostgresOneMetadataEnum); -/** @internal */ -export const PostgresOneMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresOneMetadataEnum -> = PostgresOneMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMetadataEnum$ { - /** @deprecated use `PostgresOneMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMetadataEnum$inboundSchema; - /** @deprecated use `PostgresOneMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMetadataEnum$outboundSchema; -} - /** @internal */ export const PostgresOneMariadb$inboundSchema: z.ZodType< PostgresOneMariadb, @@ -474,43 +378,6 @@ export const PostgresOneMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresOneMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresOneMariadb$outboundSchema: z.ZodType< - PostgresOneMariadb$Outbound, - z.ZodTypeDef, - PostgresOneMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMariadb$ { - /** @deprecated use `PostgresOneMariadb$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMariadb$inboundSchema; - /** @deprecated use `PostgresOneMariadb$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMariadb$outboundSchema; - /** @deprecated use `PostgresOneMariadb$Outbound` instead. */ - export type Outbound = PostgresOneMariadb$Outbound; -} - -export function postgresOneMariadbToJSON( - postgresOneMariadb: PostgresOneMariadb, -): string { - return JSON.stringify( - PostgresOneMariadb$outboundSchema.parse(postgresOneMariadb), - ); -} - export function postgresOneMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -531,43 +398,6 @@ export const PostgresOneMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresOneMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresOneMongo$outboundSchema: z.ZodType< - PostgresOneMongo$Outbound, - z.ZodTypeDef, - PostgresOneMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMongo$ { - /** @deprecated use `PostgresOneMongo$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMongo$inboundSchema; - /** @deprecated use `PostgresOneMongo$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMongo$outboundSchema; - /** @deprecated use `PostgresOneMongo$Outbound` instead. */ - export type Outbound = PostgresOneMongo$Outbound; -} - -export function postgresOneMongoToJSON( - postgresOneMongo: PostgresOneMongo, -): string { - return JSON.stringify( - PostgresOneMongo$outboundSchema.parse(postgresOneMongo), - ); -} - export function postgresOneMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -587,41 +417,6 @@ export const PostgresOneMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type PostgresOneMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const PostgresOneMysql$outboundSchema: z.ZodType< - PostgresOneMysql$Outbound, - z.ZodTypeDef, - PostgresOneMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMysql$ { - /** @deprecated use `PostgresOneMysql$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMysql$inboundSchema; - /** @deprecated use `PostgresOneMysql$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMysql$outboundSchema; - /** @deprecated use `PostgresOneMysql$Outbound` instead. */ - export type Outbound = PostgresOneMysql$Outbound; -} - -export function postgresOneMysqlToJSON( - postgresOneMysql: PostgresOneMysql, -): string { - return JSON.stringify( - PostgresOneMysql$outboundSchema.parse(postgresOneMysql), - ); -} - export function postgresOneMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -641,41 +436,6 @@ export const PostgresOnePostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresOnePostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const PostgresOnePostgres$outboundSchema: z.ZodType< - PostgresOnePostgres$Outbound, - z.ZodTypeDef, - PostgresOnePostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOnePostgres$ { - /** @deprecated use `PostgresOnePostgres$inboundSchema` instead. */ - export const inboundSchema = PostgresOnePostgres$inboundSchema; - /** @deprecated use `PostgresOnePostgres$outboundSchema` instead. */ - export const outboundSchema = PostgresOnePostgres$outboundSchema; - /** @deprecated use `PostgresOnePostgres$Outbound` instead. */ - export type Outbound = PostgresOnePostgres$Outbound; -} - -export function postgresOnePostgresToJSON( - postgresOnePostgres: PostgresOnePostgres, -): string { - return JSON.stringify( - PostgresOnePostgres$outboundSchema.parse(postgresOnePostgres), - ); -} - export function postgresOnePostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -698,47 +458,6 @@ export const PostgresOneMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => PostgresOnePostgres$inboundSchema).optional(), }); -/** @internal */ -export type PostgresOneMetadata$Outbound = { - mariadb?: PostgresOneMariadb$Outbound | undefined; - mongo?: PostgresOneMongo$Outbound | undefined; - mysql?: PostgresOneMysql$Outbound | undefined; - postgres?: PostgresOnePostgres$Outbound | undefined; -}; - -/** @internal */ -export const PostgresOneMetadata$outboundSchema: z.ZodType< - PostgresOneMetadata$Outbound, - z.ZodTypeDef, - PostgresOneMetadata -> = z.object({ - mariadb: z.lazy(() => PostgresOneMariadb$outboundSchema).optional(), - mongo: z.lazy(() => PostgresOneMongo$outboundSchema).optional(), - mysql: z.lazy(() => PostgresOneMysql$outboundSchema).optional(), - postgres: z.lazy(() => PostgresOnePostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMetadata$ { - /** @deprecated use `PostgresOneMetadata$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMetadata$inboundSchema; - /** @deprecated use `PostgresOneMetadata$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMetadata$outboundSchema; - /** @deprecated use `PostgresOneMetadata$Outbound` instead. */ - export type Outbound = PostgresOneMetadata$Outbound; -} - -export function postgresOneMetadataToJSON( - postgresOneMetadata: PostgresOneMetadata, -): string { - return JSON.stringify( - PostgresOneMetadata$outboundSchema.parse(postgresOneMetadata), - ); -} - export function postgresOneMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -759,42 +478,6 @@ export const PostgresOneMetadataUnion$inboundSchema: z.ZodType< PostgresOneMetadataEnum$inboundSchema, ]); -/** @internal */ -export type PostgresOneMetadataUnion$Outbound = - | PostgresOneMetadata$Outbound - | string; - -/** @internal */ -export const PostgresOneMetadataUnion$outboundSchema: z.ZodType< - PostgresOneMetadataUnion$Outbound, - z.ZodTypeDef, - PostgresOneMetadataUnion -> = z.union([ - z.lazy(() => PostgresOneMetadata$outboundSchema), - PostgresOneMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMetadataUnion$ { - /** @deprecated use `PostgresOneMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMetadataUnion$inboundSchema; - /** @deprecated use `PostgresOneMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMetadataUnion$outboundSchema; - /** @deprecated use `PostgresOneMetadataUnion$Outbound` instead. */ - export type Outbound = PostgresOneMetadataUnion$Outbound; -} - -export function postgresOneMetadataUnionToJSON( - postgresOneMetadataUnion: PostgresOneMetadataUnion, -): string { - return JSON.stringify( - PostgresOneMetadataUnion$outboundSchema.parse(postgresOneMetadataUnion), - ); -} - export function postgresOneMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -836,80 +519,6 @@ export const PostgresOneBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type PostgresOneBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: PostgresOneMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const PostgresOneBackup$outboundSchema: z.ZodType< - PostgresOneBackup$Outbound, - z.ZodTypeDef, - PostgresOneBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: PostgresOneBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: PostgresOneDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => PostgresOneMetadata$outboundSchema), - PostgresOneMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneBackup$ { - /** @deprecated use `PostgresOneBackup$inboundSchema` instead. */ - export const inboundSchema = PostgresOneBackup$inboundSchema; - /** @deprecated use `PostgresOneBackup$outboundSchema` instead. */ - export const outboundSchema = PostgresOneBackup$outboundSchema; - /** @deprecated use `PostgresOneBackup$Outbound` instead. */ - export type Outbound = PostgresOneBackup$Outbound; -} - -export function postgresOneBackupToJSON( - postgresOneBackup: PostgresOneBackup, -): string { - return JSON.stringify( - PostgresOneBackup$outboundSchema.parse(postgresOneBackup), - ); -} - export function postgresOneBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -934,51 +543,6 @@ export const PostgresOneProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresOneProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const PostgresOneProject$outboundSchema: z.ZodType< - PostgresOneProject$Outbound, - z.ZodTypeDef, - PostgresOneProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneProject$ { - /** @deprecated use `PostgresOneProject$inboundSchema` instead. */ - export const inboundSchema = PostgresOneProject$inboundSchema; - /** @deprecated use `PostgresOneProject$outboundSchema` instead. */ - export const outboundSchema = PostgresOneProject$outboundSchema; - /** @deprecated use `PostgresOneProject$Outbound` instead. */ - export type Outbound = PostgresOneProject$Outbound; -} - -export function postgresOneProjectToJSON( - postgresOneProject: PostgresOneProject, -): string { - return JSON.stringify( - PostgresOneProject$outboundSchema.parse(postgresOneProject), - ); -} - export function postgresOneProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1004,53 +568,6 @@ export const PostgresOneEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresOneEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: PostgresOneProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const PostgresOneEnvironment$outboundSchema: z.ZodType< - PostgresOneEnvironment$Outbound, - z.ZodTypeDef, - PostgresOneEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => PostgresOneProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneEnvironment$ { - /** @deprecated use `PostgresOneEnvironment$inboundSchema` instead. */ - export const inboundSchema = PostgresOneEnvironment$inboundSchema; - /** @deprecated use `PostgresOneEnvironment$outboundSchema` instead. */ - export const outboundSchema = PostgresOneEnvironment$outboundSchema; - /** @deprecated use `PostgresOneEnvironment$Outbound` instead. */ - export type Outbound = PostgresOneEnvironment$Outbound; -} - -export function postgresOneEnvironmentToJSON( - postgresOneEnvironment: PostgresOneEnvironment, -): string { - return JSON.stringify( - PostgresOneEnvironment$outboundSchema.parse(postgresOneEnvironment), - ); -} - export function postgresOneEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1082,59 +599,6 @@ export const PostgresOneHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOneHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const PostgresOneHealthCheckSwarm$outboundSchema: z.ZodType< - PostgresOneHealthCheckSwarm$Outbound, - z.ZodTypeDef, - PostgresOneHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneHealthCheckSwarm$ { - /** @deprecated use `PostgresOneHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresOneHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresOneHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresOneHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresOneHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresOneHealthCheckSwarm$Outbound; -} - -export function postgresOneHealthCheckSwarmToJSON( - postgresOneHealthCheckSwarm: PostgresOneHealthCheckSwarm, -): string { - return JSON.stringify( - PostgresOneHealthCheckSwarm$outboundSchema.parse( - postgresOneHealthCheckSwarm, - ), - ); -} - export function postgresOneHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1152,37 +616,6 @@ export const PostgresOneGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresOneGlobal$Outbound = {}; - -/** @internal */ -export const PostgresOneGlobal$outboundSchema: z.ZodType< - PostgresOneGlobal$Outbound, - z.ZodTypeDef, - PostgresOneGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneGlobal$ { - /** @deprecated use `PostgresOneGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresOneGlobal$inboundSchema; - /** @deprecated use `PostgresOneGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresOneGlobal$outboundSchema; - /** @deprecated use `PostgresOneGlobal$Outbound` instead. */ - export type Outbound = PostgresOneGlobal$Outbound; -} - -export function postgresOneGlobalToJSON( - postgresOneGlobal: PostgresOneGlobal, -): string { - return JSON.stringify( - PostgresOneGlobal$outboundSchema.parse(postgresOneGlobal), - ); -} - export function postgresOneGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1196,40 +629,9 @@ export function postgresOneGlobalFromJSON( /** @internal */ export const PostgresOneGlobalJob$inboundSchema: z.ZodType< PostgresOneGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type PostgresOneGlobalJob$Outbound = {}; - -/** @internal */ -export const PostgresOneGlobalJob$outboundSchema: z.ZodType< - PostgresOneGlobalJob$Outbound, - z.ZodTypeDef, - PostgresOneGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneGlobalJob$ { - /** @deprecated use `PostgresOneGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresOneGlobalJob$inboundSchema; - /** @deprecated use `PostgresOneGlobalJob$outboundSchema` instead. */ - export const outboundSchema = PostgresOneGlobalJob$outboundSchema; - /** @deprecated use `PostgresOneGlobalJob$Outbound` instead. */ - export type Outbound = PostgresOneGlobalJob$Outbound; -} - -export function postgresOneGlobalJobToJSON( - postgresOneGlobalJob: PostgresOneGlobalJob, -): string { - return JSON.stringify( - PostgresOneGlobalJob$outboundSchema.parse(postgresOneGlobalJob), - ); -} + z.ZodTypeDef, + unknown +> = z.object({}); export function postgresOneGlobalJobFromJSON( jsonString: string, @@ -1254,45 +656,6 @@ export const PostgresOneReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOneReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const PostgresOneReplicated$outboundSchema: z.ZodType< - PostgresOneReplicated$Outbound, - z.ZodTypeDef, - PostgresOneReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneReplicated$ { - /** @deprecated use `PostgresOneReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresOneReplicated$inboundSchema; - /** @deprecated use `PostgresOneReplicated$outboundSchema` instead. */ - export const outboundSchema = PostgresOneReplicated$outboundSchema; - /** @deprecated use `PostgresOneReplicated$Outbound` instead. */ - export type Outbound = PostgresOneReplicated$Outbound; -} - -export function postgresOneReplicatedToJSON( - postgresOneReplicated: PostgresOneReplicated, -): string { - return JSON.stringify( - PostgresOneReplicated$outboundSchema.parse(postgresOneReplicated), - ); -} - export function postgresOneReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1318,48 +681,6 @@ export const PostgresOneReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOneReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const PostgresOneReplicatedJob$outboundSchema: z.ZodType< - PostgresOneReplicatedJob$Outbound, - z.ZodTypeDef, - PostgresOneReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneReplicatedJob$ { - /** @deprecated use `PostgresOneReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = PostgresOneReplicatedJob$inboundSchema; - /** @deprecated use `PostgresOneReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = PostgresOneReplicatedJob$outboundSchema; - /** @deprecated use `PostgresOneReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresOneReplicatedJob$Outbound; -} - -export function postgresOneReplicatedJobToJSON( - postgresOneReplicatedJob: PostgresOneReplicatedJob, -): string { - return JSON.stringify( - PostgresOneReplicatedJob$outboundSchema.parse(postgresOneReplicatedJob), - ); -} - export function postgresOneReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1390,55 +711,6 @@ export const PostgresOneModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOneModeSwarm$Outbound = { - Global?: PostgresOneGlobal$Outbound | undefined; - GlobalJob?: PostgresOneGlobalJob$Outbound | undefined; - Replicated?: PostgresOneReplicated$Outbound | undefined; - ReplicatedJob?: PostgresOneReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const PostgresOneModeSwarm$outboundSchema: z.ZodType< - PostgresOneModeSwarm$Outbound, - z.ZodTypeDef, - PostgresOneModeSwarm -> = z.object({ - global: z.lazy(() => PostgresOneGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => PostgresOneGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => PostgresOneReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => PostgresOneReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneModeSwarm$ { - /** @deprecated use `PostgresOneModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresOneModeSwarm$inboundSchema; - /** @deprecated use `PostgresOneModeSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresOneModeSwarm$outboundSchema; - /** @deprecated use `PostgresOneModeSwarm$Outbound` instead. */ - export type Outbound = PostgresOneModeSwarm$Outbound; -} - -export function postgresOneModeSwarmToJSON( - postgresOneModeSwarm: PostgresOneModeSwarm, -): string { - return JSON.stringify( - PostgresOneModeSwarm$outboundSchema.parse(postgresOneModeSwarm), - ); -} - export function postgresOneModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1454,43 +726,11 @@ export const PostgresOneServiceType$inboundSchema: z.ZodNativeEnum< typeof PostgresOneServiceType > = z.nativeEnum(PostgresOneServiceType); -/** @internal */ -export const PostgresOneServiceType$outboundSchema: z.ZodNativeEnum< - typeof PostgresOneServiceType -> = PostgresOneServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneServiceType$ { - /** @deprecated use `PostgresOneServiceType$inboundSchema` instead. */ - export const inboundSchema = PostgresOneServiceType$inboundSchema; - /** @deprecated use `PostgresOneServiceType$outboundSchema` instead. */ - export const outboundSchema = PostgresOneServiceType$outboundSchema; -} - /** @internal */ export const PostgresOneType$inboundSchema: z.ZodNativeEnum< typeof PostgresOneType > = z.nativeEnum(PostgresOneType); -/** @internal */ -export const PostgresOneType$outboundSchema: z.ZodNativeEnum< - typeof PostgresOneType -> = PostgresOneType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneType$ { - /** @deprecated use `PostgresOneType$inboundSchema` instead. */ - export const inboundSchema = PostgresOneType$inboundSchema; - /** @deprecated use `PostgresOneType$outboundSchema` instead. */ - export const outboundSchema = PostgresOneType$outboundSchema; -} - /** @internal */ export const PostgresOneMount$inboundSchema: z.ZodType< PostgresOneMount, @@ -1514,69 +754,6 @@ export const PostgresOneMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type PostgresOneMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const PostgresOneMount$outboundSchema: z.ZodType< - PostgresOneMount$Outbound, - z.ZodTypeDef, - PostgresOneMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: PostgresOneServiceType$outboundSchema, - type: PostgresOneType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMount$ { - /** @deprecated use `PostgresOneMount$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMount$inboundSchema; - /** @deprecated use `PostgresOneMount$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMount$outboundSchema; - /** @deprecated use `PostgresOneMount$Outbound` instead. */ - export type Outbound = PostgresOneMount$Outbound; -} - -export function postgresOneMountToJSON( - postgresOneMount: PostgresOneMount, -): string { - return JSON.stringify( - PostgresOneMount$outboundSchema.parse(postgresOneMount), - ); -} - export function postgresOneMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1594,37 +771,6 @@ export const PostgresOneDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresOneDriverOpts$Outbound = {}; - -/** @internal */ -export const PostgresOneDriverOpts$outboundSchema: z.ZodType< - PostgresOneDriverOpts$Outbound, - z.ZodTypeDef, - PostgresOneDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneDriverOpts$ { - /** @deprecated use `PostgresOneDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresOneDriverOpts$inboundSchema; - /** @deprecated use `PostgresOneDriverOpts$outboundSchema` instead. */ - export const outboundSchema = PostgresOneDriverOpts$outboundSchema; - /** @deprecated use `PostgresOneDriverOpts$Outbound` instead. */ - export type Outbound = PostgresOneDriverOpts$Outbound; -} - -export function postgresOneDriverOptsToJSON( - postgresOneDriverOpts: PostgresOneDriverOpts, -): string { - return JSON.stringify( - PostgresOneDriverOpts$outboundSchema.parse(postgresOneDriverOpts), - ); -} - export function postgresOneDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1652,51 +798,6 @@ export const PostgresOneNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOneNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: PostgresOneDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const PostgresOneNetworkSwarm$outboundSchema: z.ZodType< - PostgresOneNetworkSwarm$Outbound, - z.ZodTypeDef, - PostgresOneNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => PostgresOneDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneNetworkSwarm$ { - /** @deprecated use `PostgresOneNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresOneNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresOneNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresOneNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresOneNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresOneNetworkSwarm$Outbound; -} - -export function postgresOneNetworkSwarmToJSON( - postgresOneNetworkSwarm: PostgresOneNetworkSwarm, -): string { - return JSON.stringify( - PostgresOneNetworkSwarm$outboundSchema.parse(postgresOneNetworkSwarm), - ); -} - export function postgresOneNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1722,48 +823,6 @@ export const PostgresOnePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOnePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const PostgresOnePlatform$outboundSchema: z.ZodType< - PostgresOnePlatform$Outbound, - z.ZodTypeDef, - PostgresOnePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOnePlatform$ { - /** @deprecated use `PostgresOnePlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresOnePlatform$inboundSchema; - /** @deprecated use `PostgresOnePlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresOnePlatform$outboundSchema; - /** @deprecated use `PostgresOnePlatform$Outbound` instead. */ - export type Outbound = PostgresOnePlatform$Outbound; -} - -export function postgresOnePlatformToJSON( - postgresOnePlatform: PostgresOnePlatform, -): string { - return JSON.stringify( - PostgresOnePlatform$outboundSchema.parse(postgresOnePlatform), - ); -} - export function postgresOnePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1787,45 +846,6 @@ export const PostgresOneSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOneSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const PostgresOneSpread$outboundSchema: z.ZodType< - PostgresOneSpread$Outbound, - z.ZodTypeDef, - PostgresOneSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneSpread$ { - /** @deprecated use `PostgresOneSpread$inboundSchema` instead. */ - export const inboundSchema = PostgresOneSpread$inboundSchema; - /** @deprecated use `PostgresOneSpread$outboundSchema` instead. */ - export const outboundSchema = PostgresOneSpread$outboundSchema; - /** @deprecated use `PostgresOneSpread$Outbound` instead. */ - export type Outbound = PostgresOneSpread$Outbound; -} - -export function postgresOneSpreadToJSON( - postgresOneSpread: PostgresOneSpread, -): string { - return JSON.stringify( - PostgresOneSpread$outboundSchema.parse(postgresOneSpread), - ); -} - export function postgresOneSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1849,45 +869,6 @@ export const PostgresOnePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOnePreference$Outbound = { - Spread: PostgresOneSpread$Outbound; -}; - -/** @internal */ -export const PostgresOnePreference$outboundSchema: z.ZodType< - PostgresOnePreference$Outbound, - z.ZodTypeDef, - PostgresOnePreference -> = z.object({ - spread: z.lazy(() => PostgresOneSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOnePreference$ { - /** @deprecated use `PostgresOnePreference$inboundSchema` instead. */ - export const inboundSchema = PostgresOnePreference$inboundSchema; - /** @deprecated use `PostgresOnePreference$outboundSchema` instead. */ - export const outboundSchema = PostgresOnePreference$outboundSchema; - /** @deprecated use `PostgresOnePreference$Outbound` instead. */ - export type Outbound = PostgresOnePreference$Outbound; -} - -export function postgresOnePreferenceToJSON( - postgresOnePreference: PostgresOnePreference, -): string { - return JSON.stringify( - PostgresOnePreference$outboundSchema.parse(postgresOnePreference), - ); -} - export function postgresOnePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1919,56 +900,6 @@ export const PostgresOnePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOnePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const PostgresOnePlacementSwarm$outboundSchema: z.ZodType< - PostgresOnePlacementSwarm$Outbound, - z.ZodTypeDef, - PostgresOnePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => PostgresOnePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => PostgresOnePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOnePlacementSwarm$ { - /** @deprecated use `PostgresOnePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresOnePlacementSwarm$inboundSchema; - /** @deprecated use `PostgresOnePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresOnePlacementSwarm$outboundSchema; - /** @deprecated use `PostgresOnePlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresOnePlacementSwarm$Outbound; -} - -export function postgresOnePlacementSwarmToJSON( - postgresOnePlacementSwarm: PostgresOnePlacementSwarm, -): string { - return JSON.stringify( - PostgresOnePlacementSwarm$outboundSchema.parse(postgresOnePlacementSwarm), - ); -} - export function postgresOnePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1986,68 +917,18 @@ export const PostgresOneRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type PostgresOneRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const PostgresOneRestartPolicySwarm$outboundSchema: z.ZodType< - PostgresOneRestartPolicySwarm$Outbound, - z.ZodTypeDef, - PostgresOneRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneRestartPolicySwarm$ { - /** @deprecated use `PostgresOneRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresOneRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresOneRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresOneRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresOneRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresOneRestartPolicySwarm$Outbound; -} - -export function postgresOneRestartPolicySwarmToJSON( - postgresOneRestartPolicySwarm: PostgresOneRestartPolicySwarm, -): string { - return JSON.stringify( - PostgresOneRestartPolicySwarm$outboundSchema.parse( - postgresOneRestartPolicySwarm, - ), - ); -} - export function postgresOneRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2081,62 +962,6 @@ export const PostgresOneRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOneRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresOneRollbackConfigSwarm$outboundSchema: z.ZodType< - PostgresOneRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresOneRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneRollbackConfigSwarm$ { - /** @deprecated use `PostgresOneRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresOneRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresOneRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresOneRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresOneRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresOneRollbackConfigSwarm$Outbound; -} - -export function postgresOneRollbackConfigSwarmToJSON( - postgresOneRollbackConfigSwarm: PostgresOneRollbackConfigSwarm, -): string { - return JSON.stringify( - PostgresOneRollbackConfigSwarm$outboundSchema.parse( - postgresOneRollbackConfigSwarm, - ), - ); -} - export function postgresOneRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2152,22 +977,6 @@ export const PostgresOneMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresOneMetricsConfigEnum > = z.nativeEnum(PostgresOneMetricsConfigEnum); -/** @internal */ -export const PostgresOneMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresOneMetricsConfigEnum -> = PostgresOneMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMetricsConfigEnum$ { - /** @deprecated use `PostgresOneMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMetricsConfigEnum$inboundSchema; - /** @deprecated use `PostgresOneMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const PostgresOneMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresOneMetricsConfigUnion1, @@ -2180,48 +989,6 @@ export const PostgresOneMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresOneMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type PostgresOneMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const PostgresOneMetricsConfigUnion1$outboundSchema: z.ZodType< - PostgresOneMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - PostgresOneMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresOneMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMetricsConfigUnion1$ { - /** @deprecated use `PostgresOneMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMetricsConfigUnion1$inboundSchema; - /** @deprecated use `PostgresOneMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMetricsConfigUnion1$outboundSchema; - /** @deprecated use `PostgresOneMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = PostgresOneMetricsConfigUnion1$Outbound; -} - -export function postgresOneMetricsConfigUnion1ToJSON( - postgresOneMetricsConfigUnion1: PostgresOneMetricsConfigUnion1, -): string { - return JSON.stringify( - PostgresOneMetricsConfigUnion1$outboundSchema.parse( - postgresOneMetricsConfigUnion1, - ), - ); -} - export function postgresOneMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2248,54 +1015,6 @@ export const PostgresOneMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type PostgresOneMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const PostgresOneMetricsConfigUnion2$outboundSchema: z.ZodType< - PostgresOneMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - PostgresOneMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneMetricsConfigUnion2$ { - /** @deprecated use `PostgresOneMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = PostgresOneMetricsConfigUnion2$inboundSchema; - /** @deprecated use `PostgresOneMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = PostgresOneMetricsConfigUnion2$outboundSchema; - /** @deprecated use `PostgresOneMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = PostgresOneMetricsConfigUnion2$Outbound; -} - -export function postgresOneMetricsConfigUnion2ToJSON( - postgresOneMetricsConfigUnion2: PostgresOneMetricsConfigUnion2, -): string { - return JSON.stringify( - PostgresOneMetricsConfigUnion2$outboundSchema.parse( - postgresOneMetricsConfigUnion2, - ), - ); -} - export function postgresOneMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2311,22 +1030,6 @@ export const PostgresOneServerStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresOneServerStatus > = z.nativeEnum(PostgresOneServerStatus); -/** @internal */ -export const PostgresOneServerStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresOneServerStatus -> = PostgresOneServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneServerStatus$ { - /** @deprecated use `PostgresOneServerStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresOneServerStatus$inboundSchema; - /** @deprecated use `PostgresOneServerStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresOneServerStatus$outboundSchema; -} - /** @internal */ export const PostgresOneServer$inboundSchema: z.ZodType< PostgresOneServer, @@ -2358,78 +1061,6 @@ export const PostgresOneServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type PostgresOneServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const PostgresOneServer$outboundSchema: z.ZodType< - PostgresOneServer$Outbound, - z.ZodTypeDef, - PostgresOneServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: PostgresOneServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneServer$ { - /** @deprecated use `PostgresOneServer$inboundSchema` instead. */ - export const inboundSchema = PostgresOneServer$inboundSchema; - /** @deprecated use `PostgresOneServer$outboundSchema` instead. */ - export const outboundSchema = PostgresOneServer$outboundSchema; - /** @deprecated use `PostgresOneServer$Outbound` instead. */ - export type Outbound = PostgresOneServer$Outbound; -} - -export function postgresOneServerToJSON( - postgresOneServer: PostgresOneServer, -): string { - return JSON.stringify( - PostgresOneServer$outboundSchema.parse(postgresOneServer), - ); -} - export function postgresOneServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2463,62 +1094,6 @@ export const PostgresOneUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresOneUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresOneUpdateConfigSwarm$outboundSchema: z.ZodType< - PostgresOneUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresOneUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneUpdateConfigSwarm$ { - /** @deprecated use `PostgresOneUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresOneUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresOneUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresOneUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresOneUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresOneUpdateConfigSwarm$Outbound; -} - -export function postgresOneUpdateConfigSwarmToJSON( - postgresOneUpdateConfigSwarm: PostgresOneUpdateConfigSwarm, -): string { - return JSON.stringify( - PostgresOneUpdateConfigSwarm$outboundSchema.parse( - postgresOneUpdateConfigSwarm, - ), - ); -} - export function postgresOneUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2581,115 +1156,6 @@ export const PostgresOneResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostgresOneResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: PostgresOneEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: PostgresOneHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: PostgresOneModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: PostgresOnePlacementSwarm$Outbound | null; - postgresId: string; - replicas: number; - restartPolicySwarm: PostgresOneRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: PostgresOneRollbackConfigSwarm$Outbound | null; - server: PostgresOneServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: PostgresOneUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const PostgresOneResponseBody$outboundSchema: z.ZodType< - PostgresOneResponseBody$Outbound, - z.ZodTypeDef, - PostgresOneResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: PostgresOneApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => PostgresOneBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => PostgresOneEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresOneHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => PostgresOneModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => PostgresOneMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresOneNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => PostgresOnePlacementSwarm$outboundSchema), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresOneRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresOneRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => PostgresOneServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresOneUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneResponseBody$ { - /** @deprecated use `PostgresOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = PostgresOneResponseBody$inboundSchema; - /** @deprecated use `PostgresOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = PostgresOneResponseBody$outboundSchema; - /** @deprecated use `PostgresOneResponseBody$Outbound` instead. */ - export type Outbound = PostgresOneResponseBody$Outbound; -} - -export function postgresOneResponseBodyToJSON( - postgresOneResponseBody: PostgresOneResponseBody, -): string { - return JSON.stringify( - PostgresOneResponseBody$outboundSchema.parse(postgresOneResponseBody), - ); -} - export function postgresOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2710,42 +1176,6 @@ export const PostgresOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PostgresOneResponse$Outbound = - | PostgresOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PostgresOneResponse$outboundSchema: z.ZodType< - PostgresOneResponse$Outbound, - z.ZodTypeDef, - PostgresOneResponse -> = z.union([ - z.lazy(() => PostgresOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresOneResponse$ { - /** @deprecated use `PostgresOneResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresOneResponse$inboundSchema; - /** @deprecated use `PostgresOneResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresOneResponse$outboundSchema; - /** @deprecated use `PostgresOneResponse$Outbound` instead. */ - export type Outbound = PostgresOneResponse$Outbound; -} - -export function postgresOneResponseToJSON( - postgresOneResponse: PostgresOneResponse, -): string { - return JSON.stringify( - PostgresOneResponse$outboundSchema.parse(postgresOneResponse), - ); -} - export function postgresOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresrebuild.ts b/src/models/operations/postgresrebuild.ts index d017001..9afe594 100644 --- a/src/models/operations/postgresrebuild.ts +++ b/src/models/operations/postgresrebuild.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type PostgresRebuildRequest = { export type PostgresRebuildResponse = models.ErrorT | boolean; -/** @internal */ -export const PostgresRebuildRequest$inboundSchema: z.ZodType< - PostgresRebuildRequest, - z.ZodTypeDef, - unknown -> = z.object({ - postgresId: z.string(), -}); - /** @internal */ export type PostgresRebuildRequest$Outbound = { postgresId: string; @@ -37,19 +28,6 @@ export const PostgresRebuildRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRebuildRequest$ { - /** @deprecated use `PostgresRebuildRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresRebuildRequest$inboundSchema; - /** @deprecated use `PostgresRebuildRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresRebuildRequest$outboundSchema; - /** @deprecated use `PostgresRebuildRequest$Outbound` instead. */ - export type Outbound = PostgresRebuildRequest$Outbound; -} - export function postgresRebuildRequestToJSON( postgresRebuildRequest: PostgresRebuildRequest, ): string { @@ -58,16 +36,6 @@ export function postgresRebuildRequestToJSON( ); } -export function postgresRebuildRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresRebuildRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresRebuildRequest' from JSON`, - ); -} - /** @internal */ export const PostgresRebuildResponse$inboundSchema: z.ZodType< PostgresRebuildResponse, @@ -75,37 +43,6 @@ export const PostgresRebuildResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type PostgresRebuildResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const PostgresRebuildResponse$outboundSchema: z.ZodType< - PostgresRebuildResponse$Outbound, - z.ZodTypeDef, - PostgresRebuildResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRebuildResponse$ { - /** @deprecated use `PostgresRebuildResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresRebuildResponse$inboundSchema; - /** @deprecated use `PostgresRebuildResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresRebuildResponse$outboundSchema; - /** @deprecated use `PostgresRebuildResponse$Outbound` instead. */ - export type Outbound = PostgresRebuildResponse$Outbound; -} - -export function postgresRebuildResponseToJSON( - postgresRebuildResponse: PostgresRebuildResponse, -): string { - return JSON.stringify( - PostgresRebuildResponse$outboundSchema.parse(postgresRebuildResponse), - ); -} - export function postgresRebuildResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresreload.ts b/src/models/operations/postgresreload.ts index 059ac91..29e8e02 100644 --- a/src/models/operations/postgresreload.ts +++ b/src/models/operations/postgresreload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type PostgresReloadRequest = { export type PostgresReloadResponse = models.ErrorT | boolean; -/** @internal */ -export const PostgresReloadRequest$inboundSchema: z.ZodType< - PostgresReloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - postgresId: z.string(), -}); - /** @internal */ export type PostgresReloadRequest$Outbound = { appName: string; @@ -41,19 +31,6 @@ export const PostgresReloadRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresReloadRequest$ { - /** @deprecated use `PostgresReloadRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresReloadRequest$inboundSchema; - /** @deprecated use `PostgresReloadRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresReloadRequest$outboundSchema; - /** @deprecated use `PostgresReloadRequest$Outbound` instead. */ - export type Outbound = PostgresReloadRequest$Outbound; -} - export function postgresReloadRequestToJSON( postgresReloadRequest: PostgresReloadRequest, ): string { @@ -62,16 +39,6 @@ export function postgresReloadRequestToJSON( ); } -export function postgresReloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresReloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresReloadRequest' from JSON`, - ); -} - /** @internal */ export const PostgresReloadResponse$inboundSchema: z.ZodType< PostgresReloadResponse, @@ -79,37 +46,6 @@ export const PostgresReloadResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type PostgresReloadResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const PostgresReloadResponse$outboundSchema: z.ZodType< - PostgresReloadResponse$Outbound, - z.ZodTypeDef, - PostgresReloadResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresReloadResponse$ { - /** @deprecated use `PostgresReloadResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresReloadResponse$inboundSchema; - /** @deprecated use `PostgresReloadResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresReloadResponse$outboundSchema; - /** @deprecated use `PostgresReloadResponse$Outbound` instead. */ - export type Outbound = PostgresReloadResponse$Outbound; -} - -export function postgresReloadResponseToJSON( - postgresReloadResponse: PostgresReloadResponse, -): string { - return JSON.stringify( - PostgresReloadResponse$outboundSchema.parse(postgresReloadResponse), - ); -} - export function postgresReloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresremove.ts b/src/models/operations/postgresremove.ts index 5420283..8f8553a 100644 --- a/src/models/operations/postgresremove.ts +++ b/src/models/operations/postgresremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -334,15 +334,6 @@ export type PostgresRemoveResponseBody = { export type PostgresRemoveResponse = PostgresRemoveResponseBody | models.ErrorT; -/** @internal */ -export const PostgresRemoveRequest$inboundSchema: z.ZodType< - PostgresRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - postgresId: z.string(), -}); - /** @internal */ export type PostgresRemoveRequest$Outbound = { postgresId: string; @@ -357,19 +348,6 @@ export const PostgresRemoveRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveRequest$ { - /** @deprecated use `PostgresRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveRequest$inboundSchema; - /** @deprecated use `PostgresRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveRequest$outboundSchema; - /** @deprecated use `PostgresRemoveRequest$Outbound` instead. */ - export type Outbound = PostgresRemoveRequest$Outbound; -} - export function postgresRemoveRequestToJSON( postgresRemoveRequest: PostgresRemoveRequest, ): string { @@ -378,100 +356,26 @@ export function postgresRemoveRequestToJSON( ); } -export function postgresRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresRemoveRequest' from JSON`, - ); -} - /** @internal */ export const PostgresRemoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresRemoveApplicationStatus > = z.nativeEnum(PostgresRemoveApplicationStatus); -/** @internal */ -export const PostgresRemoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresRemoveApplicationStatus -> = PostgresRemoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveApplicationStatus$ { - /** @deprecated use `PostgresRemoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveApplicationStatus$inboundSchema; - /** @deprecated use `PostgresRemoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveApplicationStatus$outboundSchema; -} - /** @internal */ export const PostgresRemoveBackupType$inboundSchema: z.ZodNativeEnum< typeof PostgresRemoveBackupType > = z.nativeEnum(PostgresRemoveBackupType); -/** @internal */ -export const PostgresRemoveBackupType$outboundSchema: z.ZodNativeEnum< - typeof PostgresRemoveBackupType -> = PostgresRemoveBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveBackupType$ { - /** @deprecated use `PostgresRemoveBackupType$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveBackupType$inboundSchema; - /** @deprecated use `PostgresRemoveBackupType$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveBackupType$outboundSchema; -} - /** @internal */ export const PostgresRemoveDatabaseType$inboundSchema: z.ZodNativeEnum< typeof PostgresRemoveDatabaseType > = z.nativeEnum(PostgresRemoveDatabaseType); -/** @internal */ -export const PostgresRemoveDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof PostgresRemoveDatabaseType -> = PostgresRemoveDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveDatabaseType$ { - /** @deprecated use `PostgresRemoveDatabaseType$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveDatabaseType$inboundSchema; - /** @deprecated use `PostgresRemoveDatabaseType$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveDatabaseType$outboundSchema; -} - /** @internal */ export const PostgresRemoveMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresRemoveMetadataEnum > = z.nativeEnum(PostgresRemoveMetadataEnum); -/** @internal */ -export const PostgresRemoveMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresRemoveMetadataEnum -> = PostgresRemoveMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMetadataEnum$ { - /** @deprecated use `PostgresRemoveMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMetadataEnum$inboundSchema; - /** @deprecated use `PostgresRemoveMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveMetadataEnum$outboundSchema; -} - /** @internal */ export const PostgresRemoveMariadb$inboundSchema: z.ZodType< PostgresRemoveMariadb, @@ -482,43 +386,6 @@ export const PostgresRemoveMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresRemoveMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresRemoveMariadb$outboundSchema: z.ZodType< - PostgresRemoveMariadb$Outbound, - z.ZodTypeDef, - PostgresRemoveMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMariadb$ { - /** @deprecated use `PostgresRemoveMariadb$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMariadb$inboundSchema; - /** @deprecated use `PostgresRemoveMariadb$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveMariadb$outboundSchema; - /** @deprecated use `PostgresRemoveMariadb$Outbound` instead. */ - export type Outbound = PostgresRemoveMariadb$Outbound; -} - -export function postgresRemoveMariadbToJSON( - postgresRemoveMariadb: PostgresRemoveMariadb, -): string { - return JSON.stringify( - PostgresRemoveMariadb$outboundSchema.parse(postgresRemoveMariadb), - ); -} - export function postgresRemoveMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -539,43 +406,6 @@ export const PostgresRemoveMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresRemoveMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresRemoveMongo$outboundSchema: z.ZodType< - PostgresRemoveMongo$Outbound, - z.ZodTypeDef, - PostgresRemoveMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMongo$ { - /** @deprecated use `PostgresRemoveMongo$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMongo$inboundSchema; - /** @deprecated use `PostgresRemoveMongo$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveMongo$outboundSchema; - /** @deprecated use `PostgresRemoveMongo$Outbound` instead. */ - export type Outbound = PostgresRemoveMongo$Outbound; -} - -export function postgresRemoveMongoToJSON( - postgresRemoveMongo: PostgresRemoveMongo, -): string { - return JSON.stringify( - PostgresRemoveMongo$outboundSchema.parse(postgresRemoveMongo), - ); -} - export function postgresRemoveMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -595,41 +425,6 @@ export const PostgresRemoveMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type PostgresRemoveMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const PostgresRemoveMysql$outboundSchema: z.ZodType< - PostgresRemoveMysql$Outbound, - z.ZodTypeDef, - PostgresRemoveMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMysql$ { - /** @deprecated use `PostgresRemoveMysql$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMysql$inboundSchema; - /** @deprecated use `PostgresRemoveMysql$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveMysql$outboundSchema; - /** @deprecated use `PostgresRemoveMysql$Outbound` instead. */ - export type Outbound = PostgresRemoveMysql$Outbound; -} - -export function postgresRemoveMysqlToJSON( - postgresRemoveMysql: PostgresRemoveMysql, -): string { - return JSON.stringify( - PostgresRemoveMysql$outboundSchema.parse(postgresRemoveMysql), - ); -} - export function postgresRemoveMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -649,41 +444,6 @@ export const PostgresRemovePostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresRemovePostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const PostgresRemovePostgres$outboundSchema: z.ZodType< - PostgresRemovePostgres$Outbound, - z.ZodTypeDef, - PostgresRemovePostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemovePostgres$ { - /** @deprecated use `PostgresRemovePostgres$inboundSchema` instead. */ - export const inboundSchema = PostgresRemovePostgres$inboundSchema; - /** @deprecated use `PostgresRemovePostgres$outboundSchema` instead. */ - export const outboundSchema = PostgresRemovePostgres$outboundSchema; - /** @deprecated use `PostgresRemovePostgres$Outbound` instead. */ - export type Outbound = PostgresRemovePostgres$Outbound; -} - -export function postgresRemovePostgresToJSON( - postgresRemovePostgres: PostgresRemovePostgres, -): string { - return JSON.stringify( - PostgresRemovePostgres$outboundSchema.parse(postgresRemovePostgres), - ); -} - export function postgresRemovePostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -706,47 +466,6 @@ export const PostgresRemoveMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => PostgresRemovePostgres$inboundSchema).optional(), }); -/** @internal */ -export type PostgresRemoveMetadata$Outbound = { - mariadb?: PostgresRemoveMariadb$Outbound | undefined; - mongo?: PostgresRemoveMongo$Outbound | undefined; - mysql?: PostgresRemoveMysql$Outbound | undefined; - postgres?: PostgresRemovePostgres$Outbound | undefined; -}; - -/** @internal */ -export const PostgresRemoveMetadata$outboundSchema: z.ZodType< - PostgresRemoveMetadata$Outbound, - z.ZodTypeDef, - PostgresRemoveMetadata -> = z.object({ - mariadb: z.lazy(() => PostgresRemoveMariadb$outboundSchema).optional(), - mongo: z.lazy(() => PostgresRemoveMongo$outboundSchema).optional(), - mysql: z.lazy(() => PostgresRemoveMysql$outboundSchema).optional(), - postgres: z.lazy(() => PostgresRemovePostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMetadata$ { - /** @deprecated use `PostgresRemoveMetadata$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMetadata$inboundSchema; - /** @deprecated use `PostgresRemoveMetadata$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveMetadata$outboundSchema; - /** @deprecated use `PostgresRemoveMetadata$Outbound` instead. */ - export type Outbound = PostgresRemoveMetadata$Outbound; -} - -export function postgresRemoveMetadataToJSON( - postgresRemoveMetadata: PostgresRemoveMetadata, -): string { - return JSON.stringify( - PostgresRemoveMetadata$outboundSchema.parse(postgresRemoveMetadata), - ); -} - export function postgresRemoveMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -767,44 +486,6 @@ export const PostgresRemoveMetadataUnion$inboundSchema: z.ZodType< PostgresRemoveMetadataEnum$inboundSchema, ]); -/** @internal */ -export type PostgresRemoveMetadataUnion$Outbound = - | PostgresRemoveMetadata$Outbound - | string; - -/** @internal */ -export const PostgresRemoveMetadataUnion$outboundSchema: z.ZodType< - PostgresRemoveMetadataUnion$Outbound, - z.ZodTypeDef, - PostgresRemoveMetadataUnion -> = z.union([ - z.lazy(() => PostgresRemoveMetadata$outboundSchema), - PostgresRemoveMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMetadataUnion$ { - /** @deprecated use `PostgresRemoveMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMetadataUnion$inboundSchema; - /** @deprecated use `PostgresRemoveMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveMetadataUnion$outboundSchema; - /** @deprecated use `PostgresRemoveMetadataUnion$Outbound` instead. */ - export type Outbound = PostgresRemoveMetadataUnion$Outbound; -} - -export function postgresRemoveMetadataUnionToJSON( - postgresRemoveMetadataUnion: PostgresRemoveMetadataUnion, -): string { - return JSON.stringify( - PostgresRemoveMetadataUnion$outboundSchema.parse( - postgresRemoveMetadataUnion, - ), - ); -} - export function postgresRemoveMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -846,80 +527,6 @@ export const PostgresRemoveBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type PostgresRemoveBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: PostgresRemoveMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const PostgresRemoveBackup$outboundSchema: z.ZodType< - PostgresRemoveBackup$Outbound, - z.ZodTypeDef, - PostgresRemoveBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: PostgresRemoveBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: PostgresRemoveDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => PostgresRemoveMetadata$outboundSchema), - PostgresRemoveMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveBackup$ { - /** @deprecated use `PostgresRemoveBackup$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveBackup$inboundSchema; - /** @deprecated use `PostgresRemoveBackup$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveBackup$outboundSchema; - /** @deprecated use `PostgresRemoveBackup$Outbound` instead. */ - export type Outbound = PostgresRemoveBackup$Outbound; -} - -export function postgresRemoveBackupToJSON( - postgresRemoveBackup: PostgresRemoveBackup, -): string { - return JSON.stringify( - PostgresRemoveBackup$outboundSchema.parse(postgresRemoveBackup), - ); -} - export function postgresRemoveBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -944,51 +551,6 @@ export const PostgresRemoveProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresRemoveProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const PostgresRemoveProject$outboundSchema: z.ZodType< - PostgresRemoveProject$Outbound, - z.ZodTypeDef, - PostgresRemoveProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveProject$ { - /** @deprecated use `PostgresRemoveProject$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveProject$inboundSchema; - /** @deprecated use `PostgresRemoveProject$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveProject$outboundSchema; - /** @deprecated use `PostgresRemoveProject$Outbound` instead. */ - export type Outbound = PostgresRemoveProject$Outbound; -} - -export function postgresRemoveProjectToJSON( - postgresRemoveProject: PostgresRemoveProject, -): string { - return JSON.stringify( - PostgresRemoveProject$outboundSchema.parse(postgresRemoveProject), - ); -} - export function postgresRemoveProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1014,53 +576,6 @@ export const PostgresRemoveEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresRemoveEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: PostgresRemoveProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const PostgresRemoveEnvironment$outboundSchema: z.ZodType< - PostgresRemoveEnvironment$Outbound, - z.ZodTypeDef, - PostgresRemoveEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => PostgresRemoveProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveEnvironment$ { - /** @deprecated use `PostgresRemoveEnvironment$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveEnvironment$inboundSchema; - /** @deprecated use `PostgresRemoveEnvironment$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveEnvironment$outboundSchema; - /** @deprecated use `PostgresRemoveEnvironment$Outbound` instead. */ - export type Outbound = PostgresRemoveEnvironment$Outbound; -} - -export function postgresRemoveEnvironmentToJSON( - postgresRemoveEnvironment: PostgresRemoveEnvironment, -): string { - return JSON.stringify( - PostgresRemoveEnvironment$outboundSchema.parse(postgresRemoveEnvironment), - ); -} - export function postgresRemoveEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1092,59 +607,6 @@ export const PostgresRemoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const PostgresRemoveHealthCheckSwarm$outboundSchema: z.ZodType< - PostgresRemoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - PostgresRemoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveHealthCheckSwarm$ { - /** @deprecated use `PostgresRemoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresRemoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresRemoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresRemoveHealthCheckSwarm$Outbound; -} - -export function postgresRemoveHealthCheckSwarmToJSON( - postgresRemoveHealthCheckSwarm: PostgresRemoveHealthCheckSwarm, -): string { - return JSON.stringify( - PostgresRemoveHealthCheckSwarm$outboundSchema.parse( - postgresRemoveHealthCheckSwarm, - ), - ); -} - export function postgresRemoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1162,37 +624,6 @@ export const PostgresRemoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresRemoveGlobal$Outbound = {}; - -/** @internal */ -export const PostgresRemoveGlobal$outboundSchema: z.ZodType< - PostgresRemoveGlobal$Outbound, - z.ZodTypeDef, - PostgresRemoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveGlobal$ { - /** @deprecated use `PostgresRemoveGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveGlobal$inboundSchema; - /** @deprecated use `PostgresRemoveGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveGlobal$outboundSchema; - /** @deprecated use `PostgresRemoveGlobal$Outbound` instead. */ - export type Outbound = PostgresRemoveGlobal$Outbound; -} - -export function postgresRemoveGlobalToJSON( - postgresRemoveGlobal: PostgresRemoveGlobal, -): string { - return JSON.stringify( - PostgresRemoveGlobal$outboundSchema.parse(postgresRemoveGlobal), - ); -} - export function postgresRemoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1206,40 +637,9 @@ export function postgresRemoveGlobalFromJSON( /** @internal */ export const PostgresRemoveGlobalJob$inboundSchema: z.ZodType< PostgresRemoveGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type PostgresRemoveGlobalJob$Outbound = {}; - -/** @internal */ -export const PostgresRemoveGlobalJob$outboundSchema: z.ZodType< - PostgresRemoveGlobalJob$Outbound, - z.ZodTypeDef, - PostgresRemoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveGlobalJob$ { - /** @deprecated use `PostgresRemoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveGlobalJob$inboundSchema; - /** @deprecated use `PostgresRemoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveGlobalJob$outboundSchema; - /** @deprecated use `PostgresRemoveGlobalJob$Outbound` instead. */ - export type Outbound = PostgresRemoveGlobalJob$Outbound; -} - -export function postgresRemoveGlobalJobToJSON( - postgresRemoveGlobalJob: PostgresRemoveGlobalJob, -): string { - return JSON.stringify( - PostgresRemoveGlobalJob$outboundSchema.parse(postgresRemoveGlobalJob), - ); -} + z.ZodTypeDef, + unknown +> = z.object({}); export function postgresRemoveGlobalJobFromJSON( jsonString: string, @@ -1264,45 +664,6 @@ export const PostgresRemoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const PostgresRemoveReplicated$outboundSchema: z.ZodType< - PostgresRemoveReplicated$Outbound, - z.ZodTypeDef, - PostgresRemoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveReplicated$ { - /** @deprecated use `PostgresRemoveReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveReplicated$inboundSchema; - /** @deprecated use `PostgresRemoveReplicated$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveReplicated$outboundSchema; - /** @deprecated use `PostgresRemoveReplicated$Outbound` instead. */ - export type Outbound = PostgresRemoveReplicated$Outbound; -} - -export function postgresRemoveReplicatedToJSON( - postgresRemoveReplicated: PostgresRemoveReplicated, -): string { - return JSON.stringify( - PostgresRemoveReplicated$outboundSchema.parse(postgresRemoveReplicated), - ); -} - export function postgresRemoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1328,50 +689,6 @@ export const PostgresRemoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const PostgresRemoveReplicatedJob$outboundSchema: z.ZodType< - PostgresRemoveReplicatedJob$Outbound, - z.ZodTypeDef, - PostgresRemoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveReplicatedJob$ { - /** @deprecated use `PostgresRemoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveReplicatedJob$inboundSchema; - /** @deprecated use `PostgresRemoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveReplicatedJob$outboundSchema; - /** @deprecated use `PostgresRemoveReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresRemoveReplicatedJob$Outbound; -} - -export function postgresRemoveReplicatedJobToJSON( - postgresRemoveReplicatedJob: PostgresRemoveReplicatedJob, -): string { - return JSON.stringify( - PostgresRemoveReplicatedJob$outboundSchema.parse( - postgresRemoveReplicatedJob, - ), - ); -} - export function postgresRemoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1402,55 +719,6 @@ export const PostgresRemoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemoveModeSwarm$Outbound = { - Global?: PostgresRemoveGlobal$Outbound | undefined; - GlobalJob?: PostgresRemoveGlobalJob$Outbound | undefined; - Replicated?: PostgresRemoveReplicated$Outbound | undefined; - ReplicatedJob?: PostgresRemoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const PostgresRemoveModeSwarm$outboundSchema: z.ZodType< - PostgresRemoveModeSwarm$Outbound, - z.ZodTypeDef, - PostgresRemoveModeSwarm -> = z.object({ - global: z.lazy(() => PostgresRemoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => PostgresRemoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => PostgresRemoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => PostgresRemoveReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveModeSwarm$ { - /** @deprecated use `PostgresRemoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveModeSwarm$inboundSchema; - /** @deprecated use `PostgresRemoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveModeSwarm$outboundSchema; - /** @deprecated use `PostgresRemoveModeSwarm$Outbound` instead. */ - export type Outbound = PostgresRemoveModeSwarm$Outbound; -} - -export function postgresRemoveModeSwarmToJSON( - postgresRemoveModeSwarm: PostgresRemoveModeSwarm, -): string { - return JSON.stringify( - PostgresRemoveModeSwarm$outboundSchema.parse(postgresRemoveModeSwarm), - ); -} - export function postgresRemoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1466,43 +734,11 @@ export const PostgresRemoveServiceType$inboundSchema: z.ZodNativeEnum< typeof PostgresRemoveServiceType > = z.nativeEnum(PostgresRemoveServiceType); -/** @internal */ -export const PostgresRemoveServiceType$outboundSchema: z.ZodNativeEnum< - typeof PostgresRemoveServiceType -> = PostgresRemoveServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveServiceType$ { - /** @deprecated use `PostgresRemoveServiceType$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveServiceType$inboundSchema; - /** @deprecated use `PostgresRemoveServiceType$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveServiceType$outboundSchema; -} - /** @internal */ export const PostgresRemoveType$inboundSchema: z.ZodNativeEnum< typeof PostgresRemoveType > = z.nativeEnum(PostgresRemoveType); -/** @internal */ -export const PostgresRemoveType$outboundSchema: z.ZodNativeEnum< - typeof PostgresRemoveType -> = PostgresRemoveType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveType$ { - /** @deprecated use `PostgresRemoveType$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveType$inboundSchema; - /** @deprecated use `PostgresRemoveType$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveType$outboundSchema; -} - /** @internal */ export const PostgresRemoveMount$inboundSchema: z.ZodType< PostgresRemoveMount, @@ -1526,69 +762,6 @@ export const PostgresRemoveMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type PostgresRemoveMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const PostgresRemoveMount$outboundSchema: z.ZodType< - PostgresRemoveMount$Outbound, - z.ZodTypeDef, - PostgresRemoveMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: PostgresRemoveServiceType$outboundSchema, - type: PostgresRemoveType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMount$ { - /** @deprecated use `PostgresRemoveMount$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMount$inboundSchema; - /** @deprecated use `PostgresRemoveMount$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveMount$outboundSchema; - /** @deprecated use `PostgresRemoveMount$Outbound` instead. */ - export type Outbound = PostgresRemoveMount$Outbound; -} - -export function postgresRemoveMountToJSON( - postgresRemoveMount: PostgresRemoveMount, -): string { - return JSON.stringify( - PostgresRemoveMount$outboundSchema.parse(postgresRemoveMount), - ); -} - export function postgresRemoveMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1606,37 +779,6 @@ export const PostgresRemoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresRemoveDriverOpts$Outbound = {}; - -/** @internal */ -export const PostgresRemoveDriverOpts$outboundSchema: z.ZodType< - PostgresRemoveDriverOpts$Outbound, - z.ZodTypeDef, - PostgresRemoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveDriverOpts$ { - /** @deprecated use `PostgresRemoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveDriverOpts$inboundSchema; - /** @deprecated use `PostgresRemoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveDriverOpts$outboundSchema; - /** @deprecated use `PostgresRemoveDriverOpts$Outbound` instead. */ - export type Outbound = PostgresRemoveDriverOpts$Outbound; -} - -export function postgresRemoveDriverOptsToJSON( - postgresRemoveDriverOpts: PostgresRemoveDriverOpts, -): string { - return JSON.stringify( - PostgresRemoveDriverOpts$outboundSchema.parse(postgresRemoveDriverOpts), - ); -} - export function postgresRemoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1664,51 +806,6 @@ export const PostgresRemoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: PostgresRemoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const PostgresRemoveNetworkSwarm$outboundSchema: z.ZodType< - PostgresRemoveNetworkSwarm$Outbound, - z.ZodTypeDef, - PostgresRemoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => PostgresRemoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveNetworkSwarm$ { - /** @deprecated use `PostgresRemoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresRemoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresRemoveNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresRemoveNetworkSwarm$Outbound; -} - -export function postgresRemoveNetworkSwarmToJSON( - postgresRemoveNetworkSwarm: PostgresRemoveNetworkSwarm, -): string { - return JSON.stringify( - PostgresRemoveNetworkSwarm$outboundSchema.parse(postgresRemoveNetworkSwarm), - ); -} - export function postgresRemoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1734,48 +831,6 @@ export const PostgresRemovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const PostgresRemovePlatform$outboundSchema: z.ZodType< - PostgresRemovePlatform$Outbound, - z.ZodTypeDef, - PostgresRemovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemovePlatform$ { - /** @deprecated use `PostgresRemovePlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresRemovePlatform$inboundSchema; - /** @deprecated use `PostgresRemovePlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresRemovePlatform$outboundSchema; - /** @deprecated use `PostgresRemovePlatform$Outbound` instead. */ - export type Outbound = PostgresRemovePlatform$Outbound; -} - -export function postgresRemovePlatformToJSON( - postgresRemovePlatform: PostgresRemovePlatform, -): string { - return JSON.stringify( - PostgresRemovePlatform$outboundSchema.parse(postgresRemovePlatform), - ); -} - export function postgresRemovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1799,45 +854,6 @@ export const PostgresRemoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const PostgresRemoveSpread$outboundSchema: z.ZodType< - PostgresRemoveSpread$Outbound, - z.ZodTypeDef, - PostgresRemoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveSpread$ { - /** @deprecated use `PostgresRemoveSpread$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveSpread$inboundSchema; - /** @deprecated use `PostgresRemoveSpread$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveSpread$outboundSchema; - /** @deprecated use `PostgresRemoveSpread$Outbound` instead. */ - export type Outbound = PostgresRemoveSpread$Outbound; -} - -export function postgresRemoveSpreadToJSON( - postgresRemoveSpread: PostgresRemoveSpread, -): string { - return JSON.stringify( - PostgresRemoveSpread$outboundSchema.parse(postgresRemoveSpread), - ); -} - export function postgresRemoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1861,45 +877,6 @@ export const PostgresRemovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemovePreference$Outbound = { - Spread: PostgresRemoveSpread$Outbound; -}; - -/** @internal */ -export const PostgresRemovePreference$outboundSchema: z.ZodType< - PostgresRemovePreference$Outbound, - z.ZodTypeDef, - PostgresRemovePreference -> = z.object({ - spread: z.lazy(() => PostgresRemoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemovePreference$ { - /** @deprecated use `PostgresRemovePreference$inboundSchema` instead. */ - export const inboundSchema = PostgresRemovePreference$inboundSchema; - /** @deprecated use `PostgresRemovePreference$outboundSchema` instead. */ - export const outboundSchema = PostgresRemovePreference$outboundSchema; - /** @deprecated use `PostgresRemovePreference$Outbound` instead. */ - export type Outbound = PostgresRemovePreference$Outbound; -} - -export function postgresRemovePreferenceToJSON( - postgresRemovePreference: PostgresRemovePreference, -): string { - return JSON.stringify( - PostgresRemovePreference$outboundSchema.parse(postgresRemovePreference), - ); -} - export function postgresRemovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1931,58 +908,6 @@ export const PostgresRemovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const PostgresRemovePlacementSwarm$outboundSchema: z.ZodType< - PostgresRemovePlacementSwarm$Outbound, - z.ZodTypeDef, - PostgresRemovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => PostgresRemovePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => PostgresRemovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemovePlacementSwarm$ { - /** @deprecated use `PostgresRemovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresRemovePlacementSwarm$inboundSchema; - /** @deprecated use `PostgresRemovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresRemovePlacementSwarm$outboundSchema; - /** @deprecated use `PostgresRemovePlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresRemovePlacementSwarm$Outbound; -} - -export function postgresRemovePlacementSwarmToJSON( - postgresRemovePlacementSwarm: PostgresRemovePlacementSwarm, -): string { - return JSON.stringify( - PostgresRemovePlacementSwarm$outboundSchema.parse( - postgresRemovePlacementSwarm, - ), - ); -} - export function postgresRemovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2000,68 +925,18 @@ export const PostgresRemoveRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type PostgresRemoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const PostgresRemoveRestartPolicySwarm$outboundSchema: z.ZodType< - PostgresRemoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - PostgresRemoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveRestartPolicySwarm$ { - /** @deprecated use `PostgresRemoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresRemoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresRemoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresRemoveRestartPolicySwarm$Outbound; -} - -export function postgresRemoveRestartPolicySwarmToJSON( - postgresRemoveRestartPolicySwarm: PostgresRemoveRestartPolicySwarm, -): string { - return JSON.stringify( - PostgresRemoveRestartPolicySwarm$outboundSchema.parse( - postgresRemoveRestartPolicySwarm, - ), - ); -} - export function postgresRemoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2095,63 +970,6 @@ export const PostgresRemoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresRemoveRollbackConfigSwarm$outboundSchema: z.ZodType< - PostgresRemoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresRemoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveRollbackConfigSwarm$ { - /** @deprecated use `PostgresRemoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresRemoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresRemoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresRemoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresRemoveRollbackConfigSwarm$Outbound; -} - -export function postgresRemoveRollbackConfigSwarmToJSON( - postgresRemoveRollbackConfigSwarm: PostgresRemoveRollbackConfigSwarm, -): string { - return JSON.stringify( - PostgresRemoveRollbackConfigSwarm$outboundSchema.parse( - postgresRemoveRollbackConfigSwarm, - ), - ); -} - export function postgresRemoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2167,22 +985,6 @@ export const PostgresRemoveMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresRemoveMetricsConfigEnum > = z.nativeEnum(PostgresRemoveMetricsConfigEnum); -/** @internal */ -export const PostgresRemoveMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresRemoveMetricsConfigEnum -> = PostgresRemoveMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMetricsConfigEnum$ { - /** @deprecated use `PostgresRemoveMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMetricsConfigEnum$inboundSchema; - /** @deprecated use `PostgresRemoveMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const PostgresRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresRemoveMetricsConfigUnion1, @@ -2195,49 +997,6 @@ export const PostgresRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresRemoveMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type PostgresRemoveMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const PostgresRemoveMetricsConfigUnion1$outboundSchema: z.ZodType< - PostgresRemoveMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - PostgresRemoveMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresRemoveMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMetricsConfigUnion1$ { - /** @deprecated use `PostgresRemoveMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMetricsConfigUnion1$inboundSchema; - /** @deprecated use `PostgresRemoveMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - PostgresRemoveMetricsConfigUnion1$outboundSchema; - /** @deprecated use `PostgresRemoveMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = PostgresRemoveMetricsConfigUnion1$Outbound; -} - -export function postgresRemoveMetricsConfigUnion1ToJSON( - postgresRemoveMetricsConfigUnion1: PostgresRemoveMetricsConfigUnion1, -): string { - return JSON.stringify( - PostgresRemoveMetricsConfigUnion1$outboundSchema.parse( - postgresRemoveMetricsConfigUnion1, - ), - ); -} - export function postgresRemoveMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2264,55 +1023,6 @@ export const PostgresRemoveMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type PostgresRemoveMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const PostgresRemoveMetricsConfigUnion2$outboundSchema: z.ZodType< - PostgresRemoveMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - PostgresRemoveMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveMetricsConfigUnion2$ { - /** @deprecated use `PostgresRemoveMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveMetricsConfigUnion2$inboundSchema; - /** @deprecated use `PostgresRemoveMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - PostgresRemoveMetricsConfigUnion2$outboundSchema; - /** @deprecated use `PostgresRemoveMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = PostgresRemoveMetricsConfigUnion2$Outbound; -} - -export function postgresRemoveMetricsConfigUnion2ToJSON( - postgresRemoveMetricsConfigUnion2: PostgresRemoveMetricsConfigUnion2, -): string { - return JSON.stringify( - PostgresRemoveMetricsConfigUnion2$outboundSchema.parse( - postgresRemoveMetricsConfigUnion2, - ), - ); -} - export function postgresRemoveMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2328,22 +1038,6 @@ export const PostgresRemoveServerStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresRemoveServerStatus > = z.nativeEnum(PostgresRemoveServerStatus); -/** @internal */ -export const PostgresRemoveServerStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresRemoveServerStatus -> = PostgresRemoveServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveServerStatus$ { - /** @deprecated use `PostgresRemoveServerStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveServerStatus$inboundSchema; - /** @deprecated use `PostgresRemoveServerStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveServerStatus$outboundSchema; -} - /** @internal */ export const PostgresRemoveServer$inboundSchema: z.ZodType< PostgresRemoveServer, @@ -2375,78 +1069,6 @@ export const PostgresRemoveServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type PostgresRemoveServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const PostgresRemoveServer$outboundSchema: z.ZodType< - PostgresRemoveServer$Outbound, - z.ZodTypeDef, - PostgresRemoveServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: PostgresRemoveServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveServer$ { - /** @deprecated use `PostgresRemoveServer$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveServer$inboundSchema; - /** @deprecated use `PostgresRemoveServer$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveServer$outboundSchema; - /** @deprecated use `PostgresRemoveServer$Outbound` instead. */ - export type Outbound = PostgresRemoveServer$Outbound; -} - -export function postgresRemoveServerToJSON( - postgresRemoveServer: PostgresRemoveServer, -): string { - return JSON.stringify( - PostgresRemoveServer$outboundSchema.parse(postgresRemoveServer), - ); -} - export function postgresRemoveServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2480,62 +1102,6 @@ export const PostgresRemoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresRemoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresRemoveUpdateConfigSwarm$outboundSchema: z.ZodType< - PostgresRemoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresRemoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveUpdateConfigSwarm$ { - /** @deprecated use `PostgresRemoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresRemoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresRemoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresRemoveUpdateConfigSwarm$Outbound; -} - -export function postgresRemoveUpdateConfigSwarmToJSON( - postgresRemoveUpdateConfigSwarm: PostgresRemoveUpdateConfigSwarm, -): string { - return JSON.stringify( - PostgresRemoveUpdateConfigSwarm$outboundSchema.parse( - postgresRemoveUpdateConfigSwarm, - ), - ); -} - export function postgresRemoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2598,115 +1164,6 @@ export const PostgresRemoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostgresRemoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: PostgresRemoveEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: PostgresRemoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: PostgresRemoveModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: PostgresRemovePlacementSwarm$Outbound | null; - postgresId: string; - replicas: number; - restartPolicySwarm: PostgresRemoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: PostgresRemoveRollbackConfigSwarm$Outbound | null; - server: PostgresRemoveServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: PostgresRemoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const PostgresRemoveResponseBody$outboundSchema: z.ZodType< - PostgresRemoveResponseBody$Outbound, - z.ZodTypeDef, - PostgresRemoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: PostgresRemoveApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => PostgresRemoveBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => PostgresRemoveEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresRemoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => PostgresRemoveModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => PostgresRemoveMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresRemoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => PostgresRemovePlacementSwarm$outboundSchema), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresRemoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresRemoveRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => PostgresRemoveServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresRemoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveResponseBody$ { - /** @deprecated use `PostgresRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveResponseBody$inboundSchema; - /** @deprecated use `PostgresRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveResponseBody$outboundSchema; - /** @deprecated use `PostgresRemoveResponseBody$Outbound` instead. */ - export type Outbound = PostgresRemoveResponseBody$Outbound; -} - -export function postgresRemoveResponseBodyToJSON( - postgresRemoveResponseBody: PostgresRemoveResponseBody, -): string { - return JSON.stringify( - PostgresRemoveResponseBody$outboundSchema.parse(postgresRemoveResponseBody), - ); -} - export function postgresRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2727,42 +1184,6 @@ export const PostgresRemoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PostgresRemoveResponse$Outbound = - | PostgresRemoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PostgresRemoveResponse$outboundSchema: z.ZodType< - PostgresRemoveResponse$Outbound, - z.ZodTypeDef, - PostgresRemoveResponse -> = z.union([ - z.lazy(() => PostgresRemoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresRemoveResponse$ { - /** @deprecated use `PostgresRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresRemoveResponse$inboundSchema; - /** @deprecated use `PostgresRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresRemoveResponse$outboundSchema; - /** @deprecated use `PostgresRemoveResponse$Outbound` instead. */ - export type Outbound = PostgresRemoveResponse$Outbound; -} - -export function postgresRemoveResponseToJSON( - postgresRemoveResponse: PostgresRemoveResponse, -): string { - return JSON.stringify( - PostgresRemoveResponse$outboundSchema.parse(postgresRemoveResponse), - ); -} - export function postgresRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgressaveenvironment.ts b/src/models/operations/postgressaveenvironment.ts index 4332aae..2d8980c 100644 --- a/src/models/operations/postgressaveenvironment.ts +++ b/src/models/operations/postgressaveenvironment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type PostgresSaveEnvironmentRequest = { export type PostgresSaveEnvironmentResponse = models.ErrorT | boolean; -/** @internal */ -export const PostgresSaveEnvironmentRequest$inboundSchema: z.ZodType< - PostgresSaveEnvironmentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - env: z.nullable(z.string()).optional(), - postgresId: z.string(), -}); - /** @internal */ export type PostgresSaveEnvironmentRequest$Outbound = { env?: string | null | undefined; @@ -41,19 +31,6 @@ export const PostgresSaveEnvironmentRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveEnvironmentRequest$ { - /** @deprecated use `PostgresSaveEnvironmentRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveEnvironmentRequest$inboundSchema; - /** @deprecated use `PostgresSaveEnvironmentRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveEnvironmentRequest$outboundSchema; - /** @deprecated use `PostgresSaveEnvironmentRequest$Outbound` instead. */ - export type Outbound = PostgresSaveEnvironmentRequest$Outbound; -} - export function postgresSaveEnvironmentRequestToJSON( postgresSaveEnvironmentRequest: PostgresSaveEnvironmentRequest, ): string { @@ -64,16 +41,6 @@ export function postgresSaveEnvironmentRequestToJSON( ); } -export function postgresSaveEnvironmentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresSaveEnvironmentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresSaveEnvironmentRequest' from JSON`, - ); -} - /** @internal */ export const PostgresSaveEnvironmentResponse$inboundSchema: z.ZodType< PostgresSaveEnvironmentResponse, @@ -81,41 +48,6 @@ export const PostgresSaveEnvironmentResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type PostgresSaveEnvironmentResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const PostgresSaveEnvironmentResponse$outboundSchema: z.ZodType< - PostgresSaveEnvironmentResponse$Outbound, - z.ZodTypeDef, - PostgresSaveEnvironmentResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveEnvironmentResponse$ { - /** @deprecated use `PostgresSaveEnvironmentResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveEnvironmentResponse$inboundSchema; - /** @deprecated use `PostgresSaveEnvironmentResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveEnvironmentResponse$outboundSchema; - /** @deprecated use `PostgresSaveEnvironmentResponse$Outbound` instead. */ - export type Outbound = PostgresSaveEnvironmentResponse$Outbound; -} - -export function postgresSaveEnvironmentResponseToJSON( - postgresSaveEnvironmentResponse: PostgresSaveEnvironmentResponse, -): string { - return JSON.stringify( - PostgresSaveEnvironmentResponse$outboundSchema.parse( - postgresSaveEnvironmentResponse, - ), - ); -} - export function postgresSaveEnvironmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgressaveexternalport.ts b/src/models/operations/postgressaveexternalport.ts index 0858e42..89b8549 100644 --- a/src/models/operations/postgressaveexternalport.ts +++ b/src/models/operations/postgressaveexternalport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -339,16 +339,6 @@ export type PostgresSaveExternalPortResponse = | PostgresSaveExternalPortResponseBody | models.ErrorT; -/** @internal */ -export const PostgresSaveExternalPortRequest$inboundSchema: z.ZodType< - PostgresSaveExternalPortRequest, - z.ZodTypeDef, - unknown -> = z.object({ - externalPort: z.nullable(z.number()), - postgresId: z.string(), -}); - /** @internal */ export type PostgresSaveExternalPortRequest$Outbound = { externalPort: number | null; @@ -365,19 +355,6 @@ export const PostgresSaveExternalPortRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortRequest$ { - /** @deprecated use `PostgresSaveExternalPortRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortRequest$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortRequest$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortRequest$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortRequest$Outbound; -} - export function postgresSaveExternalPortRequestToJSON( postgresSaveExternalPortRequest: PostgresSaveExternalPortRequest, ): string { @@ -388,109 +365,28 @@ export function postgresSaveExternalPortRequestToJSON( ); } -export function postgresSaveExternalPortRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresSaveExternalPortRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresSaveExternalPortRequest' from JSON`, - ); -} - /** @internal */ export const PostgresSaveExternalPortApplicationStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(PostgresSaveExternalPortApplicationStatus); -/** @internal */ -export const PostgresSaveExternalPortApplicationStatus$outboundSchema: - z.ZodNativeEnum = - PostgresSaveExternalPortApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortApplicationStatus$ { - /** @deprecated use `PostgresSaveExternalPortApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortApplicationStatus$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortApplicationStatus$outboundSchema; -} - /** @internal */ export const PostgresSaveExternalPortBackupType$inboundSchema: z.ZodNativeEnum< typeof PostgresSaveExternalPortBackupType > = z.nativeEnum(PostgresSaveExternalPortBackupType); -/** @internal */ -export const PostgresSaveExternalPortBackupType$outboundSchema: z.ZodNativeEnum< - typeof PostgresSaveExternalPortBackupType -> = PostgresSaveExternalPortBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortBackupType$ { - /** @deprecated use `PostgresSaveExternalPortBackupType$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortBackupType$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortBackupType$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortBackupType$outboundSchema; -} - /** @internal */ export const PostgresSaveExternalPortDatabaseType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( PostgresSaveExternalPortDatabaseType, ); -/** @internal */ -export const PostgresSaveExternalPortDatabaseType$outboundSchema: - z.ZodNativeEnum = - PostgresSaveExternalPortDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortDatabaseType$ { - /** @deprecated use `PostgresSaveExternalPortDatabaseType$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortDatabaseType$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortDatabaseType$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortDatabaseType$outboundSchema; -} - /** @internal */ export const PostgresSaveExternalPortMetadataEnum$inboundSchema: z.ZodNativeEnum = z.nativeEnum( PostgresSaveExternalPortMetadataEnum, ); -/** @internal */ -export const PostgresSaveExternalPortMetadataEnum$outboundSchema: - z.ZodNativeEnum = - PostgresSaveExternalPortMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMetadataEnum$ { - /** @deprecated use `PostgresSaveExternalPortMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortMetadataEnum$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortMetadataEnum$outboundSchema; -} - /** @internal */ export const PostgresSaveExternalPortMariadb$inboundSchema: z.ZodType< PostgresSaveExternalPortMariadb, @@ -501,45 +397,6 @@ export const PostgresSaveExternalPortMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresSaveExternalPortMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortMariadb$outboundSchema: z.ZodType< - PostgresSaveExternalPortMariadb$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMariadb$ { - /** @deprecated use `PostgresSaveExternalPortMariadb$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortMariadb$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMariadb$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortMariadb$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortMariadb$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortMariadb$Outbound; -} - -export function postgresSaveExternalPortMariadbToJSON( - postgresSaveExternalPortMariadb: PostgresSaveExternalPortMariadb, -): string { - return JSON.stringify( - PostgresSaveExternalPortMariadb$outboundSchema.parse( - postgresSaveExternalPortMariadb, - ), - ); -} - export function postgresSaveExternalPortMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -560,45 +417,6 @@ export const PostgresSaveExternalPortMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresSaveExternalPortMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortMongo$outboundSchema: z.ZodType< - PostgresSaveExternalPortMongo$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMongo$ { - /** @deprecated use `PostgresSaveExternalPortMongo$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortMongo$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMongo$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortMongo$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortMongo$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortMongo$Outbound; -} - -export function postgresSaveExternalPortMongoToJSON( - postgresSaveExternalPortMongo: PostgresSaveExternalPortMongo, -): string { - return JSON.stringify( - PostgresSaveExternalPortMongo$outboundSchema.parse( - postgresSaveExternalPortMongo, - ), - ); -} - export function postgresSaveExternalPortMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -618,43 +436,6 @@ export const PostgresSaveExternalPortMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type PostgresSaveExternalPortMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortMysql$outboundSchema: z.ZodType< - PostgresSaveExternalPortMysql$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMysql$ { - /** @deprecated use `PostgresSaveExternalPortMysql$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortMysql$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMysql$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortMysql$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortMysql$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortMysql$Outbound; -} - -export function postgresSaveExternalPortMysqlToJSON( - postgresSaveExternalPortMysql: PostgresSaveExternalPortMysql, -): string { - return JSON.stringify( - PostgresSaveExternalPortMysql$outboundSchema.parse( - postgresSaveExternalPortMysql, - ), - ); -} - export function postgresSaveExternalPortMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -674,43 +455,6 @@ export const PostgresSaveExternalPortPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresSaveExternalPortPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortPostgres$outboundSchema: z.ZodType< - PostgresSaveExternalPortPostgres$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortPostgres$ { - /** @deprecated use `PostgresSaveExternalPortPostgres$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortPostgres$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortPostgres$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortPostgres$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortPostgres$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortPostgres$Outbound; -} - -export function postgresSaveExternalPortPostgresToJSON( - postgresSaveExternalPortPostgres: PostgresSaveExternalPortPostgres, -): string { - return JSON.stringify( - PostgresSaveExternalPortPostgres$outboundSchema.parse( - postgresSaveExternalPortPostgres, - ), - ); -} - export function postgresSaveExternalPortPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -735,51 +479,6 @@ export const PostgresSaveExternalPortMetadata$inboundSchema: z.ZodType< .optional(), }); -/** @internal */ -export type PostgresSaveExternalPortMetadata$Outbound = { - mariadb?: PostgresSaveExternalPortMariadb$Outbound | undefined; - mongo?: PostgresSaveExternalPortMongo$Outbound | undefined; - mysql?: PostgresSaveExternalPortMysql$Outbound | undefined; - postgres?: PostgresSaveExternalPortPostgres$Outbound | undefined; -}; - -/** @internal */ -export const PostgresSaveExternalPortMetadata$outboundSchema: z.ZodType< - PostgresSaveExternalPortMetadata$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortMetadata -> = z.object({ - mariadb: z.lazy(() => PostgresSaveExternalPortMariadb$outboundSchema) - .optional(), - mongo: z.lazy(() => PostgresSaveExternalPortMongo$outboundSchema).optional(), - mysql: z.lazy(() => PostgresSaveExternalPortMysql$outboundSchema).optional(), - postgres: z.lazy(() => PostgresSaveExternalPortPostgres$outboundSchema) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMetadata$ { - /** @deprecated use `PostgresSaveExternalPortMetadata$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortMetadata$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetadata$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortMetadata$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetadata$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortMetadata$Outbound; -} - -export function postgresSaveExternalPortMetadataToJSON( - postgresSaveExternalPortMetadata: PostgresSaveExternalPortMetadata, -): string { - return JSON.stringify( - PostgresSaveExternalPortMetadata$outboundSchema.parse( - postgresSaveExternalPortMetadata, - ), - ); -} - export function postgresSaveExternalPortMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -800,46 +499,6 @@ export const PostgresSaveExternalPortMetadataUnion$inboundSchema: z.ZodType< PostgresSaveExternalPortMetadataEnum$inboundSchema, ]); -/** @internal */ -export type PostgresSaveExternalPortMetadataUnion$Outbound = - | PostgresSaveExternalPortMetadata$Outbound - | string; - -/** @internal */ -export const PostgresSaveExternalPortMetadataUnion$outboundSchema: z.ZodType< - PostgresSaveExternalPortMetadataUnion$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortMetadataUnion -> = z.union([ - z.lazy(() => PostgresSaveExternalPortMetadata$outboundSchema), - PostgresSaveExternalPortMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMetadataUnion$ { - /** @deprecated use `PostgresSaveExternalPortMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortMetadataUnion$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortMetadataUnion$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetadataUnion$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortMetadataUnion$Outbound; -} - -export function postgresSaveExternalPortMetadataUnionToJSON( - postgresSaveExternalPortMetadataUnion: PostgresSaveExternalPortMetadataUnion, -): string { - return JSON.stringify( - PostgresSaveExternalPortMetadataUnion$outboundSchema.parse( - postgresSaveExternalPortMetadataUnion, - ), - ); -} - export function postgresSaveExternalPortMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -882,86 +541,6 @@ export const PostgresSaveExternalPortBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type PostgresSaveExternalPortBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: - | PostgresSaveExternalPortMetadata$Outbound - | string - | null - | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const PostgresSaveExternalPortBackup$outboundSchema: z.ZodType< - PostgresSaveExternalPortBackup$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: PostgresSaveExternalPortBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: PostgresSaveExternalPortDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => PostgresSaveExternalPortMetadata$outboundSchema), - PostgresSaveExternalPortMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortBackup$ { - /** @deprecated use `PostgresSaveExternalPortBackup$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortBackup$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortBackup$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortBackup$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortBackup$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortBackup$Outbound; -} - -export function postgresSaveExternalPortBackupToJSON( - postgresSaveExternalPortBackup: PostgresSaveExternalPortBackup, -): string { - return JSON.stringify( - PostgresSaveExternalPortBackup$outboundSchema.parse( - postgresSaveExternalPortBackup, - ), - ); -} - export function postgresSaveExternalPortBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -986,53 +565,6 @@ export const PostgresSaveExternalPortProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresSaveExternalPortProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortProject$outboundSchema: z.ZodType< - PostgresSaveExternalPortProject$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortProject$ { - /** @deprecated use `PostgresSaveExternalPortProject$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortProject$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortProject$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortProject$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortProject$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortProject$Outbound; -} - -export function postgresSaveExternalPortProjectToJSON( - postgresSaveExternalPortProject: PostgresSaveExternalPortProject, -): string { - return JSON.stringify( - PostgresSaveExternalPortProject$outboundSchema.parse( - postgresSaveExternalPortProject, - ), - ); -} - export function postgresSaveExternalPortProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1058,57 +590,6 @@ export const PostgresSaveExternalPortEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresSaveExternalPortEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: PostgresSaveExternalPortProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortEnvironment$outboundSchema: z.ZodType< - PostgresSaveExternalPortEnvironment$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => PostgresSaveExternalPortProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortEnvironment$ { - /** @deprecated use `PostgresSaveExternalPortEnvironment$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortEnvironment$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortEnvironment$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortEnvironment$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortEnvironment$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortEnvironment$Outbound; -} - -export function postgresSaveExternalPortEnvironmentToJSON( - postgresSaveExternalPortEnvironment: PostgresSaveExternalPortEnvironment, -): string { - return JSON.stringify( - PostgresSaveExternalPortEnvironment$outboundSchema.parse( - postgresSaveExternalPortEnvironment, - ), - ); -} - export function postgresSaveExternalPortEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1141,62 +622,6 @@ export const PostgresSaveExternalPortHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const PostgresSaveExternalPortHealthCheckSwarm$outboundSchema: z.ZodType< - PostgresSaveExternalPortHealthCheckSwarm$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortHealthCheckSwarm$ { - /** @deprecated use `PostgresSaveExternalPortHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortHealthCheckSwarm$Outbound; -} - -export function postgresSaveExternalPortHealthCheckSwarmToJSON( - postgresSaveExternalPortHealthCheckSwarm: - PostgresSaveExternalPortHealthCheckSwarm, -): string { - return JSON.stringify( - PostgresSaveExternalPortHealthCheckSwarm$outboundSchema.parse( - postgresSaveExternalPortHealthCheckSwarm, - ), - ); -} - export function postgresSaveExternalPortHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -1220,39 +645,6 @@ export const PostgresSaveExternalPortGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresSaveExternalPortGlobal$Outbound = {}; - -/** @internal */ -export const PostgresSaveExternalPortGlobal$outboundSchema: z.ZodType< - PostgresSaveExternalPortGlobal$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortGlobal$ { - /** @deprecated use `PostgresSaveExternalPortGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortGlobal$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortGlobal$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortGlobal$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortGlobal$Outbound; -} - -export function postgresSaveExternalPortGlobalToJSON( - postgresSaveExternalPortGlobal: PostgresSaveExternalPortGlobal, -): string { - return JSON.stringify( - PostgresSaveExternalPortGlobal$outboundSchema.parse( - postgresSaveExternalPortGlobal, - ), - ); -} - export function postgresSaveExternalPortGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1270,40 +662,6 @@ export const PostgresSaveExternalPortGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresSaveExternalPortGlobalJob$Outbound = {}; - -/** @internal */ -export const PostgresSaveExternalPortGlobalJob$outboundSchema: z.ZodType< - PostgresSaveExternalPortGlobalJob$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortGlobalJob$ { - /** @deprecated use `PostgresSaveExternalPortGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortGlobalJob$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortGlobalJob$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortGlobalJob$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortGlobalJob$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortGlobalJob$Outbound; -} - -export function postgresSaveExternalPortGlobalJobToJSON( - postgresSaveExternalPortGlobalJob: PostgresSaveExternalPortGlobalJob, -): string { - return JSON.stringify( - PostgresSaveExternalPortGlobalJob$outboundSchema.parse( - postgresSaveExternalPortGlobalJob, - ), - ); -} - export function postgresSaveExternalPortGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1319,55 +677,13 @@ export const PostgresSaveExternalPortReplicated$inboundSchema: z.ZodType< PostgresSaveExternalPortReplicated, z.ZodTypeDef, unknown -> = z.object({ - Replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Replicas": "replicas", - }); -}); - -/** @internal */ -export type PostgresSaveExternalPortReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const PostgresSaveExternalPortReplicated$outboundSchema: z.ZodType< - PostgresSaveExternalPortReplicated$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortReplicated$ { - /** @deprecated use `PostgresSaveExternalPortReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortReplicated$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortReplicated$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortReplicated$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortReplicated$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortReplicated$Outbound; -} - -export function postgresSaveExternalPortReplicatedToJSON( - postgresSaveExternalPortReplicated: PostgresSaveExternalPortReplicated, -): string { - return JSON.stringify( - PostgresSaveExternalPortReplicated$outboundSchema.parse( - postgresSaveExternalPortReplicated, - ), - ); -} +> = z.object({ + Replicas: z.number().optional(), +}).transform((v) => { + return remap$(v, { + "Replicas": "replicas", + }); +}); export function postgresSaveExternalPortReplicatedFromJSON( jsonString: string, @@ -1395,52 +711,6 @@ export const PostgresSaveExternalPortReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const PostgresSaveExternalPortReplicatedJob$outboundSchema: z.ZodType< - PostgresSaveExternalPortReplicatedJob$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortReplicatedJob$ { - /** @deprecated use `PostgresSaveExternalPortReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortReplicatedJob$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortReplicatedJob$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortReplicatedJob$Outbound; -} - -export function postgresSaveExternalPortReplicatedJobToJSON( - postgresSaveExternalPortReplicatedJob: PostgresSaveExternalPortReplicatedJob, -): string { - return JSON.stringify( - PostgresSaveExternalPortReplicatedJob$outboundSchema.parse( - postgresSaveExternalPortReplicatedJob, - ), - ); -} - export function postgresSaveExternalPortReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1475,62 +745,6 @@ export const PostgresSaveExternalPortModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortModeSwarm$Outbound = { - Global?: PostgresSaveExternalPortGlobal$Outbound | undefined; - GlobalJob?: PostgresSaveExternalPortGlobalJob$Outbound | undefined; - Replicated?: PostgresSaveExternalPortReplicated$Outbound | undefined; - ReplicatedJob?: PostgresSaveExternalPortReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const PostgresSaveExternalPortModeSwarm$outboundSchema: z.ZodType< - PostgresSaveExternalPortModeSwarm$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortModeSwarm -> = z.object({ - global: z.lazy(() => PostgresSaveExternalPortGlobal$outboundSchema) - .optional(), - globalJob: z.lazy(() => PostgresSaveExternalPortGlobalJob$outboundSchema) - .optional(), - replicated: z.lazy(() => PostgresSaveExternalPortReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => - PostgresSaveExternalPortReplicatedJob$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortModeSwarm$ { - /** @deprecated use `PostgresSaveExternalPortModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortModeSwarm$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortModeSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortModeSwarm$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortModeSwarm$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortModeSwarm$Outbound; -} - -export function postgresSaveExternalPortModeSwarmToJSON( - postgresSaveExternalPortModeSwarm: PostgresSaveExternalPortModeSwarm, -): string { - return JSON.stringify( - PostgresSaveExternalPortModeSwarm$outboundSchema.parse( - postgresSaveExternalPortModeSwarm, - ), - ); -} - export function postgresSaveExternalPortModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1546,45 +760,11 @@ export const PostgresSaveExternalPortServiceType$inboundSchema: z.ZodNativeEnum< typeof PostgresSaveExternalPortServiceType > = z.nativeEnum(PostgresSaveExternalPortServiceType); -/** @internal */ -export const PostgresSaveExternalPortServiceType$outboundSchema: - z.ZodNativeEnum = - PostgresSaveExternalPortServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortServiceType$ { - /** @deprecated use `PostgresSaveExternalPortServiceType$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortServiceType$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortServiceType$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortServiceType$outboundSchema; -} - /** @internal */ export const PostgresSaveExternalPortType$inboundSchema: z.ZodNativeEnum< typeof PostgresSaveExternalPortType > = z.nativeEnum(PostgresSaveExternalPortType); -/** @internal */ -export const PostgresSaveExternalPortType$outboundSchema: z.ZodNativeEnum< - typeof PostgresSaveExternalPortType -> = PostgresSaveExternalPortType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortType$ { - /** @deprecated use `PostgresSaveExternalPortType$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortType$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortType$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortType$outboundSchema; -} - /** @internal */ export const PostgresSaveExternalPortMount$inboundSchema: z.ZodType< PostgresSaveExternalPortMount, @@ -1608,71 +788,6 @@ export const PostgresSaveExternalPortMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type PostgresSaveExternalPortMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const PostgresSaveExternalPortMount$outboundSchema: z.ZodType< - PostgresSaveExternalPortMount$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: PostgresSaveExternalPortServiceType$outboundSchema, - type: PostgresSaveExternalPortType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMount$ { - /** @deprecated use `PostgresSaveExternalPortMount$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortMount$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMount$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortMount$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortMount$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortMount$Outbound; -} - -export function postgresSaveExternalPortMountToJSON( - postgresSaveExternalPortMount: PostgresSaveExternalPortMount, -): string { - return JSON.stringify( - PostgresSaveExternalPortMount$outboundSchema.parse( - postgresSaveExternalPortMount, - ), - ); -} - export function postgresSaveExternalPortMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1690,40 +805,6 @@ export const PostgresSaveExternalPortDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresSaveExternalPortDriverOpts$Outbound = {}; - -/** @internal */ -export const PostgresSaveExternalPortDriverOpts$outboundSchema: z.ZodType< - PostgresSaveExternalPortDriverOpts$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortDriverOpts$ { - /** @deprecated use `PostgresSaveExternalPortDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortDriverOpts$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortDriverOpts$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortDriverOpts$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortDriverOpts$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortDriverOpts$Outbound; -} - -export function postgresSaveExternalPortDriverOptsToJSON( - postgresSaveExternalPortDriverOpts: PostgresSaveExternalPortDriverOpts, -): string { - return JSON.stringify( - PostgresSaveExternalPortDriverOpts$outboundSchema.parse( - postgresSaveExternalPortDriverOpts, - ), - ); -} - export function postgresSaveExternalPortDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1753,56 +834,6 @@ export const PostgresSaveExternalPortNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: PostgresSaveExternalPortDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const PostgresSaveExternalPortNetworkSwarm$outboundSchema: z.ZodType< - PostgresSaveExternalPortNetworkSwarm$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => PostgresSaveExternalPortDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortNetworkSwarm$ { - /** @deprecated use `PostgresSaveExternalPortNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortNetworkSwarm$Outbound; -} - -export function postgresSaveExternalPortNetworkSwarmToJSON( - postgresSaveExternalPortNetworkSwarm: PostgresSaveExternalPortNetworkSwarm, -): string { - return JSON.stringify( - PostgresSaveExternalPortNetworkSwarm$outboundSchema.parse( - postgresSaveExternalPortNetworkSwarm, - ), - ); -} - export function postgresSaveExternalPortNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1829,50 +860,6 @@ export const PostgresSaveExternalPortPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortPlatform$outboundSchema: z.ZodType< - PostgresSaveExternalPortPlatform$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortPlatform$ { - /** @deprecated use `PostgresSaveExternalPortPlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortPlatform$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortPlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortPlatform$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortPlatform$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortPlatform$Outbound; -} - -export function postgresSaveExternalPortPlatformToJSON( - postgresSaveExternalPortPlatform: PostgresSaveExternalPortPlatform, -): string { - return JSON.stringify( - PostgresSaveExternalPortPlatform$outboundSchema.parse( - postgresSaveExternalPortPlatform, - ), - ); -} - export function postgresSaveExternalPortPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1896,47 +883,6 @@ export const PostgresSaveExternalPortSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortSpread$outboundSchema: z.ZodType< - PostgresSaveExternalPortSpread$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortSpread$ { - /** @deprecated use `PostgresSaveExternalPortSpread$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortSpread$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortSpread$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortSpread$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortSpread$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortSpread$Outbound; -} - -export function postgresSaveExternalPortSpreadToJSON( - postgresSaveExternalPortSpread: PostgresSaveExternalPortSpread, -): string { - return JSON.stringify( - PostgresSaveExternalPortSpread$outboundSchema.parse( - postgresSaveExternalPortSpread, - ), - ); -} - export function postgresSaveExternalPortSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1960,48 +906,6 @@ export const PostgresSaveExternalPortPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortPreference$Outbound = { - Spread: PostgresSaveExternalPortSpread$Outbound; -}; - -/** @internal */ -export const PostgresSaveExternalPortPreference$outboundSchema: z.ZodType< - PostgresSaveExternalPortPreference$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortPreference -> = z.object({ - spread: z.lazy(() => PostgresSaveExternalPortSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortPreference$ { - /** @deprecated use `PostgresSaveExternalPortPreference$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortPreference$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortPreference$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortPreference$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortPreference$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortPreference$Outbound; -} - -export function postgresSaveExternalPortPreferenceToJSON( - postgresSaveExternalPortPreference: PostgresSaveExternalPortPreference, -): string { - return JSON.stringify( - PostgresSaveExternalPortPreference$outboundSchema.parse( - postgresSaveExternalPortPreference, - ), - ); -} - export function postgresSaveExternalPortPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -2036,63 +940,6 @@ export const PostgresSaveExternalPortPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const PostgresSaveExternalPortPlacementSwarm$outboundSchema: z.ZodType< - PostgresSaveExternalPortPlacementSwarm$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array( - z.lazy(() => PostgresSaveExternalPortPlatform$outboundSchema), - ).optional(), - preferences: z.array( - z.lazy(() => PostgresSaveExternalPortPreference$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortPlacementSwarm$ { - /** @deprecated use `PostgresSaveExternalPortPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortPlacementSwarm$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortPlacementSwarm$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortPlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortPlacementSwarm$Outbound; -} - -export function postgresSaveExternalPortPlacementSwarmToJSON( - postgresSaveExternalPortPlacementSwarm: - PostgresSaveExternalPortPlacementSwarm, -): string { - return JSON.stringify( - PostgresSaveExternalPortPlacementSwarm$outboundSchema.parse( - postgresSaveExternalPortPlacementSwarm, - ), - ); -} - export function postgresSaveExternalPortPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2121,60 +968,6 @@ export const PostgresSaveExternalPortRestartPolicySwarm$inboundSchema: }); }); -/** @internal */ -export type PostgresSaveExternalPortRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const PostgresSaveExternalPortRestartPolicySwarm$outboundSchema: - z.ZodType< - PostgresSaveExternalPortRestartPolicySwarm$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortRestartPolicySwarm - > = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), - }).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortRestartPolicySwarm$ { - /** @deprecated use `PostgresSaveExternalPortRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortRestartPolicySwarm$Outbound; -} - -export function postgresSaveExternalPortRestartPolicySwarmToJSON( - postgresSaveExternalPortRestartPolicySwarm: - PostgresSaveExternalPortRestartPolicySwarm, -): string { - return JSON.stringify( - PostgresSaveExternalPortRestartPolicySwarm$outboundSchema.parse( - postgresSaveExternalPortRestartPolicySwarm, - ), - ); -} - export function postgresSaveExternalPortRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2215,66 +1008,6 @@ export const PostgresSaveExternalPortRollbackConfigSwarm$inboundSchema: }); }); -/** @internal */ -export type PostgresSaveExternalPortRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresSaveExternalPortRollbackConfigSwarm$outboundSchema: - z.ZodType< - PostgresSaveExternalPortRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortRollbackConfigSwarm - > = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), - }).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortRollbackConfigSwarm$ { - /** @deprecated use `PostgresSaveExternalPortRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortRollbackConfigSwarm$Outbound; -} - -export function postgresSaveExternalPortRollbackConfigSwarmToJSON( - postgresSaveExternalPortRollbackConfigSwarm: - PostgresSaveExternalPortRollbackConfigSwarm, -): string { - return JSON.stringify( - PostgresSaveExternalPortRollbackConfigSwarm$outboundSchema.parse( - postgresSaveExternalPortRollbackConfigSwarm, - ), - ); -} - export function postgresSaveExternalPortRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2296,24 +1029,6 @@ export const PostgresSaveExternalPortMetricsConfigEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(PostgresSaveExternalPortMetricsConfigEnum); -/** @internal */ -export const PostgresSaveExternalPortMetricsConfigEnum$outboundSchema: - z.ZodNativeEnum = - PostgresSaveExternalPortMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMetricsConfigEnum$ { - /** @deprecated use `PostgresSaveExternalPortMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortMetricsConfigEnum$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const PostgresSaveExternalPortMetricsConfigUnion1$inboundSchema: z.ZodType< @@ -2327,52 +1042,6 @@ export const PostgresSaveExternalPortMetricsConfigUnion1$inboundSchema: PostgresSaveExternalPortMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type PostgresSaveExternalPortMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const PostgresSaveExternalPortMetricsConfigUnion1$outboundSchema: - z.ZodType< - PostgresSaveExternalPortMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortMetricsConfigUnion1 - > = z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresSaveExternalPortMetricsConfigEnum$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMetricsConfigUnion1$ { - /** @deprecated use `PostgresSaveExternalPortMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortMetricsConfigUnion1$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortMetricsConfigUnion1$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortMetricsConfigUnion1$Outbound; -} - -export function postgresSaveExternalPortMetricsConfigUnion1ToJSON( - postgresSaveExternalPortMetricsConfigUnion1: - PostgresSaveExternalPortMetricsConfigUnion1, -): string { - return JSON.stringify( - PostgresSaveExternalPortMetricsConfigUnion1$outboundSchema.parse( - postgresSaveExternalPortMetricsConfigUnion1, - ), - ); -} - export function postgresSaveExternalPortMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult< @@ -2406,58 +1075,6 @@ export const PostgresSaveExternalPortMetricsConfigUnion2$inboundSchema: z.record(z.any()), ]); -/** @internal */ -export type PostgresSaveExternalPortMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const PostgresSaveExternalPortMetricsConfigUnion2$outboundSchema: - z.ZodType< - PostgresSaveExternalPortMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortMetricsConfigUnion2 - > = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortMetricsConfigUnion2$ { - /** @deprecated use `PostgresSaveExternalPortMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortMetricsConfigUnion2$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortMetricsConfigUnion2$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortMetricsConfigUnion2$Outbound; -} - -export function postgresSaveExternalPortMetricsConfigUnion2ToJSON( - postgresSaveExternalPortMetricsConfigUnion2: - PostgresSaveExternalPortMetricsConfigUnion2, -): string { - return JSON.stringify( - PostgresSaveExternalPortMetricsConfigUnion2$outboundSchema.parse( - postgresSaveExternalPortMetricsConfigUnion2, - ), - ); -} - export function postgresSaveExternalPortMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult< @@ -2480,24 +1097,6 @@ export const PostgresSaveExternalPortServerStatus$inboundSchema: PostgresSaveExternalPortServerStatus, ); -/** @internal */ -export const PostgresSaveExternalPortServerStatus$outboundSchema: - z.ZodNativeEnum = - PostgresSaveExternalPortServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortServerStatus$ { - /** @deprecated use `PostgresSaveExternalPortServerStatus$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortServerStatus$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortServerStatus$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortServerStatus$outboundSchema; -} - /** @internal */ export const PostgresSaveExternalPortServer$inboundSchema: z.ZodType< PostgresSaveExternalPortServer, @@ -2529,80 +1128,6 @@ export const PostgresSaveExternalPortServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type PostgresSaveExternalPortServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const PostgresSaveExternalPortServer$outboundSchema: z.ZodType< - PostgresSaveExternalPortServer$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: PostgresSaveExternalPortServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortServer$ { - /** @deprecated use `PostgresSaveExternalPortServer$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortServer$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortServer$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortServer$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortServer$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortServer$Outbound; -} - -export function postgresSaveExternalPortServerToJSON( - postgresSaveExternalPortServer: PostgresSaveExternalPortServer, -): string { - return JSON.stringify( - PostgresSaveExternalPortServer$outboundSchema.parse( - postgresSaveExternalPortServer, - ), - ); -} - export function postgresSaveExternalPortServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2636,66 +1161,6 @@ export const PostgresSaveExternalPortUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresSaveExternalPortUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresSaveExternalPortUpdateConfigSwarm$outboundSchema: - z.ZodType< - PostgresSaveExternalPortUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortUpdateConfigSwarm - > = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), - }).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortUpdateConfigSwarm$ { - /** @deprecated use `PostgresSaveExternalPortUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortUpdateConfigSwarm$Outbound; -} - -export function postgresSaveExternalPortUpdateConfigSwarmToJSON( - postgresSaveExternalPortUpdateConfigSwarm: - PostgresSaveExternalPortUpdateConfigSwarm, -): string { - return JSON.stringify( - PostgresSaveExternalPortUpdateConfigSwarm$outboundSchema.parse( - postgresSaveExternalPortUpdateConfigSwarm, - ), - ); -} - export function postgresSaveExternalPortUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -2768,127 +1233,6 @@ export const PostgresSaveExternalPortResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostgresSaveExternalPortResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: PostgresSaveExternalPortEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: PostgresSaveExternalPortHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: PostgresSaveExternalPortModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: PostgresSaveExternalPortPlacementSwarm$Outbound | null; - postgresId: string; - replicas: number; - restartPolicySwarm: - | PostgresSaveExternalPortRestartPolicySwarm$Outbound - | null; - rollbackConfigSwarm: - | PostgresSaveExternalPortRollbackConfigSwarm$Outbound - | null; - server: PostgresSaveExternalPortServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: PostgresSaveExternalPortUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const PostgresSaveExternalPortResponseBody$outboundSchema: z.ZodType< - PostgresSaveExternalPortResponseBody$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: PostgresSaveExternalPortApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => PostgresSaveExternalPortBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => PostgresSaveExternalPortEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresSaveExternalPortHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => PostgresSaveExternalPortModeSwarm$outboundSchema), - ), - mounts: z.array(z.lazy(() => PostgresSaveExternalPortMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresSaveExternalPortNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => PostgresSaveExternalPortPlacementSwarm$outboundSchema), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresSaveExternalPortRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresSaveExternalPortRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable( - z.lazy(() => PostgresSaveExternalPortServer$outboundSchema), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresSaveExternalPortUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortResponseBody$ { - /** @deprecated use `PostgresSaveExternalPortResponseBody$inboundSchema` instead. */ - export const inboundSchema = - PostgresSaveExternalPortResponseBody$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortResponseBody$outboundSchema` instead. */ - export const outboundSchema = - PostgresSaveExternalPortResponseBody$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortResponseBody$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortResponseBody$Outbound; -} - -export function postgresSaveExternalPortResponseBodyToJSON( - postgresSaveExternalPortResponseBody: PostgresSaveExternalPortResponseBody, -): string { - return JSON.stringify( - PostgresSaveExternalPortResponseBody$outboundSchema.parse( - postgresSaveExternalPortResponseBody, - ), - ); -} - export function postgresSaveExternalPortResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2910,44 +1254,6 @@ export const PostgresSaveExternalPortResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PostgresSaveExternalPortResponse$Outbound = - | PostgresSaveExternalPortResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PostgresSaveExternalPortResponse$outboundSchema: z.ZodType< - PostgresSaveExternalPortResponse$Outbound, - z.ZodTypeDef, - PostgresSaveExternalPortResponse -> = z.union([ - z.lazy(() => PostgresSaveExternalPortResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresSaveExternalPortResponse$ { - /** @deprecated use `PostgresSaveExternalPortResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresSaveExternalPortResponse$inboundSchema; - /** @deprecated use `PostgresSaveExternalPortResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresSaveExternalPortResponse$outboundSchema; - /** @deprecated use `PostgresSaveExternalPortResponse$Outbound` instead. */ - export type Outbound = PostgresSaveExternalPortResponse$Outbound; -} - -export function postgresSaveExternalPortResponseToJSON( - postgresSaveExternalPortResponse: PostgresSaveExternalPortResponse, -): string { - return JSON.stringify( - PostgresSaveExternalPortResponse$outboundSchema.parse( - postgresSaveExternalPortResponse, - ), - ); -} - export function postgresSaveExternalPortResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresstart.ts b/src/models/operations/postgresstart.ts index 43ad0e3..ca2ae51 100644 --- a/src/models/operations/postgresstart.ts +++ b/src/models/operations/postgresstart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -334,15 +334,6 @@ export type PostgresStartResponseBody = { export type PostgresStartResponse = PostgresStartResponseBody | models.ErrorT; -/** @internal */ -export const PostgresStartRequest$inboundSchema: z.ZodType< - PostgresStartRequest, - z.ZodTypeDef, - unknown -> = z.object({ - postgresId: z.string(), -}); - /** @internal */ export type PostgresStartRequest$Outbound = { postgresId: string; @@ -357,19 +348,6 @@ export const PostgresStartRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartRequest$ { - /** @deprecated use `PostgresStartRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresStartRequest$inboundSchema; - /** @deprecated use `PostgresStartRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresStartRequest$outboundSchema; - /** @deprecated use `PostgresStartRequest$Outbound` instead. */ - export type Outbound = PostgresStartRequest$Outbound; -} - export function postgresStartRequestToJSON( postgresStartRequest: PostgresStartRequest, ): string { @@ -378,100 +356,26 @@ export function postgresStartRequestToJSON( ); } -export function postgresStartRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresStartRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresStartRequest' from JSON`, - ); -} - /** @internal */ export const PostgresStartApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresStartApplicationStatus > = z.nativeEnum(PostgresStartApplicationStatus); -/** @internal */ -export const PostgresStartApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresStartApplicationStatus -> = PostgresStartApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartApplicationStatus$ { - /** @deprecated use `PostgresStartApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresStartApplicationStatus$inboundSchema; - /** @deprecated use `PostgresStartApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresStartApplicationStatus$outboundSchema; -} - /** @internal */ export const PostgresStartBackupType$inboundSchema: z.ZodNativeEnum< typeof PostgresStartBackupType > = z.nativeEnum(PostgresStartBackupType); -/** @internal */ -export const PostgresStartBackupType$outboundSchema: z.ZodNativeEnum< - typeof PostgresStartBackupType -> = PostgresStartBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartBackupType$ { - /** @deprecated use `PostgresStartBackupType$inboundSchema` instead. */ - export const inboundSchema = PostgresStartBackupType$inboundSchema; - /** @deprecated use `PostgresStartBackupType$outboundSchema` instead. */ - export const outboundSchema = PostgresStartBackupType$outboundSchema; -} - /** @internal */ export const PostgresStartDatabaseType$inboundSchema: z.ZodNativeEnum< typeof PostgresStartDatabaseType > = z.nativeEnum(PostgresStartDatabaseType); -/** @internal */ -export const PostgresStartDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof PostgresStartDatabaseType -> = PostgresStartDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartDatabaseType$ { - /** @deprecated use `PostgresStartDatabaseType$inboundSchema` instead. */ - export const inboundSchema = PostgresStartDatabaseType$inboundSchema; - /** @deprecated use `PostgresStartDatabaseType$outboundSchema` instead. */ - export const outboundSchema = PostgresStartDatabaseType$outboundSchema; -} - /** @internal */ export const PostgresStartMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresStartMetadataEnum > = z.nativeEnum(PostgresStartMetadataEnum); -/** @internal */ -export const PostgresStartMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresStartMetadataEnum -> = PostgresStartMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMetadataEnum$ { - /** @deprecated use `PostgresStartMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMetadataEnum$inboundSchema; - /** @deprecated use `PostgresStartMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMetadataEnum$outboundSchema; -} - /** @internal */ export const PostgresStartMariadb$inboundSchema: z.ZodType< PostgresStartMariadb, @@ -482,43 +386,6 @@ export const PostgresStartMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresStartMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresStartMariadb$outboundSchema: z.ZodType< - PostgresStartMariadb$Outbound, - z.ZodTypeDef, - PostgresStartMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMariadb$ { - /** @deprecated use `PostgresStartMariadb$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMariadb$inboundSchema; - /** @deprecated use `PostgresStartMariadb$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMariadb$outboundSchema; - /** @deprecated use `PostgresStartMariadb$Outbound` instead. */ - export type Outbound = PostgresStartMariadb$Outbound; -} - -export function postgresStartMariadbToJSON( - postgresStartMariadb: PostgresStartMariadb, -): string { - return JSON.stringify( - PostgresStartMariadb$outboundSchema.parse(postgresStartMariadb), - ); -} - export function postgresStartMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -539,43 +406,6 @@ export const PostgresStartMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresStartMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresStartMongo$outboundSchema: z.ZodType< - PostgresStartMongo$Outbound, - z.ZodTypeDef, - PostgresStartMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMongo$ { - /** @deprecated use `PostgresStartMongo$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMongo$inboundSchema; - /** @deprecated use `PostgresStartMongo$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMongo$outboundSchema; - /** @deprecated use `PostgresStartMongo$Outbound` instead. */ - export type Outbound = PostgresStartMongo$Outbound; -} - -export function postgresStartMongoToJSON( - postgresStartMongo: PostgresStartMongo, -): string { - return JSON.stringify( - PostgresStartMongo$outboundSchema.parse(postgresStartMongo), - ); -} - export function postgresStartMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -595,41 +425,6 @@ export const PostgresStartMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type PostgresStartMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const PostgresStartMysql$outboundSchema: z.ZodType< - PostgresStartMysql$Outbound, - z.ZodTypeDef, - PostgresStartMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMysql$ { - /** @deprecated use `PostgresStartMysql$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMysql$inboundSchema; - /** @deprecated use `PostgresStartMysql$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMysql$outboundSchema; - /** @deprecated use `PostgresStartMysql$Outbound` instead. */ - export type Outbound = PostgresStartMysql$Outbound; -} - -export function postgresStartMysqlToJSON( - postgresStartMysql: PostgresStartMysql, -): string { - return JSON.stringify( - PostgresStartMysql$outboundSchema.parse(postgresStartMysql), - ); -} - export function postgresStartMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -649,41 +444,6 @@ export const PostgresStartPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresStartPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const PostgresStartPostgres$outboundSchema: z.ZodType< - PostgresStartPostgres$Outbound, - z.ZodTypeDef, - PostgresStartPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartPostgres$ { - /** @deprecated use `PostgresStartPostgres$inboundSchema` instead. */ - export const inboundSchema = PostgresStartPostgres$inboundSchema; - /** @deprecated use `PostgresStartPostgres$outboundSchema` instead. */ - export const outboundSchema = PostgresStartPostgres$outboundSchema; - /** @deprecated use `PostgresStartPostgres$Outbound` instead. */ - export type Outbound = PostgresStartPostgres$Outbound; -} - -export function postgresStartPostgresToJSON( - postgresStartPostgres: PostgresStartPostgres, -): string { - return JSON.stringify( - PostgresStartPostgres$outboundSchema.parse(postgresStartPostgres), - ); -} - export function postgresStartPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -706,47 +466,6 @@ export const PostgresStartMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => PostgresStartPostgres$inboundSchema).optional(), }); -/** @internal */ -export type PostgresStartMetadata$Outbound = { - mariadb?: PostgresStartMariadb$Outbound | undefined; - mongo?: PostgresStartMongo$Outbound | undefined; - mysql?: PostgresStartMysql$Outbound | undefined; - postgres?: PostgresStartPostgres$Outbound | undefined; -}; - -/** @internal */ -export const PostgresStartMetadata$outboundSchema: z.ZodType< - PostgresStartMetadata$Outbound, - z.ZodTypeDef, - PostgresStartMetadata -> = z.object({ - mariadb: z.lazy(() => PostgresStartMariadb$outboundSchema).optional(), - mongo: z.lazy(() => PostgresStartMongo$outboundSchema).optional(), - mysql: z.lazy(() => PostgresStartMysql$outboundSchema).optional(), - postgres: z.lazy(() => PostgresStartPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMetadata$ { - /** @deprecated use `PostgresStartMetadata$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMetadata$inboundSchema; - /** @deprecated use `PostgresStartMetadata$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMetadata$outboundSchema; - /** @deprecated use `PostgresStartMetadata$Outbound` instead. */ - export type Outbound = PostgresStartMetadata$Outbound; -} - -export function postgresStartMetadataToJSON( - postgresStartMetadata: PostgresStartMetadata, -): string { - return JSON.stringify( - PostgresStartMetadata$outboundSchema.parse(postgresStartMetadata), - ); -} - export function postgresStartMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -767,42 +486,6 @@ export const PostgresStartMetadataUnion$inboundSchema: z.ZodType< PostgresStartMetadataEnum$inboundSchema, ]); -/** @internal */ -export type PostgresStartMetadataUnion$Outbound = - | PostgresStartMetadata$Outbound - | string; - -/** @internal */ -export const PostgresStartMetadataUnion$outboundSchema: z.ZodType< - PostgresStartMetadataUnion$Outbound, - z.ZodTypeDef, - PostgresStartMetadataUnion -> = z.union([ - z.lazy(() => PostgresStartMetadata$outboundSchema), - PostgresStartMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMetadataUnion$ { - /** @deprecated use `PostgresStartMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMetadataUnion$inboundSchema; - /** @deprecated use `PostgresStartMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMetadataUnion$outboundSchema; - /** @deprecated use `PostgresStartMetadataUnion$Outbound` instead. */ - export type Outbound = PostgresStartMetadataUnion$Outbound; -} - -export function postgresStartMetadataUnionToJSON( - postgresStartMetadataUnion: PostgresStartMetadataUnion, -): string { - return JSON.stringify( - PostgresStartMetadataUnion$outboundSchema.parse(postgresStartMetadataUnion), - ); -} - export function postgresStartMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -844,80 +527,6 @@ export const PostgresStartBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type PostgresStartBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: PostgresStartMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const PostgresStartBackup$outboundSchema: z.ZodType< - PostgresStartBackup$Outbound, - z.ZodTypeDef, - PostgresStartBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: PostgresStartBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: PostgresStartDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => PostgresStartMetadata$outboundSchema), - PostgresStartMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartBackup$ { - /** @deprecated use `PostgresStartBackup$inboundSchema` instead. */ - export const inboundSchema = PostgresStartBackup$inboundSchema; - /** @deprecated use `PostgresStartBackup$outboundSchema` instead. */ - export const outboundSchema = PostgresStartBackup$outboundSchema; - /** @deprecated use `PostgresStartBackup$Outbound` instead. */ - export type Outbound = PostgresStartBackup$Outbound; -} - -export function postgresStartBackupToJSON( - postgresStartBackup: PostgresStartBackup, -): string { - return JSON.stringify( - PostgresStartBackup$outboundSchema.parse(postgresStartBackup), - ); -} - export function postgresStartBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -942,51 +551,6 @@ export const PostgresStartProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresStartProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const PostgresStartProject$outboundSchema: z.ZodType< - PostgresStartProject$Outbound, - z.ZodTypeDef, - PostgresStartProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartProject$ { - /** @deprecated use `PostgresStartProject$inboundSchema` instead. */ - export const inboundSchema = PostgresStartProject$inboundSchema; - /** @deprecated use `PostgresStartProject$outboundSchema` instead. */ - export const outboundSchema = PostgresStartProject$outboundSchema; - /** @deprecated use `PostgresStartProject$Outbound` instead. */ - export type Outbound = PostgresStartProject$Outbound; -} - -export function postgresStartProjectToJSON( - postgresStartProject: PostgresStartProject, -): string { - return JSON.stringify( - PostgresStartProject$outboundSchema.parse(postgresStartProject), - ); -} - export function postgresStartProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1012,53 +576,6 @@ export const PostgresStartEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresStartEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: PostgresStartProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const PostgresStartEnvironment$outboundSchema: z.ZodType< - PostgresStartEnvironment$Outbound, - z.ZodTypeDef, - PostgresStartEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => PostgresStartProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartEnvironment$ { - /** @deprecated use `PostgresStartEnvironment$inboundSchema` instead. */ - export const inboundSchema = PostgresStartEnvironment$inboundSchema; - /** @deprecated use `PostgresStartEnvironment$outboundSchema` instead. */ - export const outboundSchema = PostgresStartEnvironment$outboundSchema; - /** @deprecated use `PostgresStartEnvironment$Outbound` instead. */ - export type Outbound = PostgresStartEnvironment$Outbound; -} - -export function postgresStartEnvironmentToJSON( - postgresStartEnvironment: PostgresStartEnvironment, -): string { - return JSON.stringify( - PostgresStartEnvironment$outboundSchema.parse(postgresStartEnvironment), - ); -} - export function postgresStartEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1090,59 +607,6 @@ export const PostgresStartHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const PostgresStartHealthCheckSwarm$outboundSchema: z.ZodType< - PostgresStartHealthCheckSwarm$Outbound, - z.ZodTypeDef, - PostgresStartHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartHealthCheckSwarm$ { - /** @deprecated use `PostgresStartHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStartHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresStartHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStartHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresStartHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresStartHealthCheckSwarm$Outbound; -} - -export function postgresStartHealthCheckSwarmToJSON( - postgresStartHealthCheckSwarm: PostgresStartHealthCheckSwarm, -): string { - return JSON.stringify( - PostgresStartHealthCheckSwarm$outboundSchema.parse( - postgresStartHealthCheckSwarm, - ), - ); -} - export function postgresStartHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1160,37 +624,6 @@ export const PostgresStartGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresStartGlobal$Outbound = {}; - -/** @internal */ -export const PostgresStartGlobal$outboundSchema: z.ZodType< - PostgresStartGlobal$Outbound, - z.ZodTypeDef, - PostgresStartGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartGlobal$ { - /** @deprecated use `PostgresStartGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresStartGlobal$inboundSchema; - /** @deprecated use `PostgresStartGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresStartGlobal$outboundSchema; - /** @deprecated use `PostgresStartGlobal$Outbound` instead. */ - export type Outbound = PostgresStartGlobal$Outbound; -} - -export function postgresStartGlobalToJSON( - postgresStartGlobal: PostgresStartGlobal, -): string { - return JSON.stringify( - PostgresStartGlobal$outboundSchema.parse(postgresStartGlobal), - ); -} - export function postgresStartGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1204,40 +637,9 @@ export function postgresStartGlobalFromJSON( /** @internal */ export const PostgresStartGlobalJob$inboundSchema: z.ZodType< PostgresStartGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type PostgresStartGlobalJob$Outbound = {}; - -/** @internal */ -export const PostgresStartGlobalJob$outboundSchema: z.ZodType< - PostgresStartGlobalJob$Outbound, - z.ZodTypeDef, - PostgresStartGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartGlobalJob$ { - /** @deprecated use `PostgresStartGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresStartGlobalJob$inboundSchema; - /** @deprecated use `PostgresStartGlobalJob$outboundSchema` instead. */ - export const outboundSchema = PostgresStartGlobalJob$outboundSchema; - /** @deprecated use `PostgresStartGlobalJob$Outbound` instead. */ - export type Outbound = PostgresStartGlobalJob$Outbound; -} - -export function postgresStartGlobalJobToJSON( - postgresStartGlobalJob: PostgresStartGlobalJob, -): string { - return JSON.stringify( - PostgresStartGlobalJob$outboundSchema.parse(postgresStartGlobalJob), - ); -} + z.ZodTypeDef, + unknown +> = z.object({}); export function postgresStartGlobalJobFromJSON( jsonString: string, @@ -1262,45 +664,6 @@ export const PostgresStartReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const PostgresStartReplicated$outboundSchema: z.ZodType< - PostgresStartReplicated$Outbound, - z.ZodTypeDef, - PostgresStartReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartReplicated$ { - /** @deprecated use `PostgresStartReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresStartReplicated$inboundSchema; - /** @deprecated use `PostgresStartReplicated$outboundSchema` instead. */ - export const outboundSchema = PostgresStartReplicated$outboundSchema; - /** @deprecated use `PostgresStartReplicated$Outbound` instead. */ - export type Outbound = PostgresStartReplicated$Outbound; -} - -export function postgresStartReplicatedToJSON( - postgresStartReplicated: PostgresStartReplicated, -): string { - return JSON.stringify( - PostgresStartReplicated$outboundSchema.parse(postgresStartReplicated), - ); -} - export function postgresStartReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1326,48 +689,6 @@ export const PostgresStartReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const PostgresStartReplicatedJob$outboundSchema: z.ZodType< - PostgresStartReplicatedJob$Outbound, - z.ZodTypeDef, - PostgresStartReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartReplicatedJob$ { - /** @deprecated use `PostgresStartReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = PostgresStartReplicatedJob$inboundSchema; - /** @deprecated use `PostgresStartReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = PostgresStartReplicatedJob$outboundSchema; - /** @deprecated use `PostgresStartReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresStartReplicatedJob$Outbound; -} - -export function postgresStartReplicatedJobToJSON( - postgresStartReplicatedJob: PostgresStartReplicatedJob, -): string { - return JSON.stringify( - PostgresStartReplicatedJob$outboundSchema.parse(postgresStartReplicatedJob), - ); -} - export function postgresStartReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1398,55 +719,6 @@ export const PostgresStartModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartModeSwarm$Outbound = { - Global?: PostgresStartGlobal$Outbound | undefined; - GlobalJob?: PostgresStartGlobalJob$Outbound | undefined; - Replicated?: PostgresStartReplicated$Outbound | undefined; - ReplicatedJob?: PostgresStartReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const PostgresStartModeSwarm$outboundSchema: z.ZodType< - PostgresStartModeSwarm$Outbound, - z.ZodTypeDef, - PostgresStartModeSwarm -> = z.object({ - global: z.lazy(() => PostgresStartGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => PostgresStartGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => PostgresStartReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => PostgresStartReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartModeSwarm$ { - /** @deprecated use `PostgresStartModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStartModeSwarm$inboundSchema; - /** @deprecated use `PostgresStartModeSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStartModeSwarm$outboundSchema; - /** @deprecated use `PostgresStartModeSwarm$Outbound` instead. */ - export type Outbound = PostgresStartModeSwarm$Outbound; -} - -export function postgresStartModeSwarmToJSON( - postgresStartModeSwarm: PostgresStartModeSwarm, -): string { - return JSON.stringify( - PostgresStartModeSwarm$outboundSchema.parse(postgresStartModeSwarm), - ); -} - export function postgresStartModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1462,43 +734,11 @@ export const PostgresStartServiceType$inboundSchema: z.ZodNativeEnum< typeof PostgresStartServiceType > = z.nativeEnum(PostgresStartServiceType); -/** @internal */ -export const PostgresStartServiceType$outboundSchema: z.ZodNativeEnum< - typeof PostgresStartServiceType -> = PostgresStartServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartServiceType$ { - /** @deprecated use `PostgresStartServiceType$inboundSchema` instead. */ - export const inboundSchema = PostgresStartServiceType$inboundSchema; - /** @deprecated use `PostgresStartServiceType$outboundSchema` instead. */ - export const outboundSchema = PostgresStartServiceType$outboundSchema; -} - /** @internal */ export const PostgresStartType$inboundSchema: z.ZodNativeEnum< typeof PostgresStartType > = z.nativeEnum(PostgresStartType); -/** @internal */ -export const PostgresStartType$outboundSchema: z.ZodNativeEnum< - typeof PostgresStartType -> = PostgresStartType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartType$ { - /** @deprecated use `PostgresStartType$inboundSchema` instead. */ - export const inboundSchema = PostgresStartType$inboundSchema; - /** @deprecated use `PostgresStartType$outboundSchema` instead. */ - export const outboundSchema = PostgresStartType$outboundSchema; -} - /** @internal */ export const PostgresStartMount$inboundSchema: z.ZodType< PostgresStartMount, @@ -1522,69 +762,6 @@ export const PostgresStartMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type PostgresStartMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const PostgresStartMount$outboundSchema: z.ZodType< - PostgresStartMount$Outbound, - z.ZodTypeDef, - PostgresStartMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: PostgresStartServiceType$outboundSchema, - type: PostgresStartType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMount$ { - /** @deprecated use `PostgresStartMount$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMount$inboundSchema; - /** @deprecated use `PostgresStartMount$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMount$outboundSchema; - /** @deprecated use `PostgresStartMount$Outbound` instead. */ - export type Outbound = PostgresStartMount$Outbound; -} - -export function postgresStartMountToJSON( - postgresStartMount: PostgresStartMount, -): string { - return JSON.stringify( - PostgresStartMount$outboundSchema.parse(postgresStartMount), - ); -} - export function postgresStartMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1602,37 +779,6 @@ export const PostgresStartDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresStartDriverOpts$Outbound = {}; - -/** @internal */ -export const PostgresStartDriverOpts$outboundSchema: z.ZodType< - PostgresStartDriverOpts$Outbound, - z.ZodTypeDef, - PostgresStartDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartDriverOpts$ { - /** @deprecated use `PostgresStartDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresStartDriverOpts$inboundSchema; - /** @deprecated use `PostgresStartDriverOpts$outboundSchema` instead. */ - export const outboundSchema = PostgresStartDriverOpts$outboundSchema; - /** @deprecated use `PostgresStartDriverOpts$Outbound` instead. */ - export type Outbound = PostgresStartDriverOpts$Outbound; -} - -export function postgresStartDriverOptsToJSON( - postgresStartDriverOpts: PostgresStartDriverOpts, -): string { - return JSON.stringify( - PostgresStartDriverOpts$outboundSchema.parse(postgresStartDriverOpts), - ); -} - export function postgresStartDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1660,51 +806,6 @@ export const PostgresStartNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: PostgresStartDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const PostgresStartNetworkSwarm$outboundSchema: z.ZodType< - PostgresStartNetworkSwarm$Outbound, - z.ZodTypeDef, - PostgresStartNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => PostgresStartDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartNetworkSwarm$ { - /** @deprecated use `PostgresStartNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStartNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresStartNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStartNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresStartNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresStartNetworkSwarm$Outbound; -} - -export function postgresStartNetworkSwarmToJSON( - postgresStartNetworkSwarm: PostgresStartNetworkSwarm, -): string { - return JSON.stringify( - PostgresStartNetworkSwarm$outboundSchema.parse(postgresStartNetworkSwarm), - ); -} - export function postgresStartNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1730,48 +831,6 @@ export const PostgresStartPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const PostgresStartPlatform$outboundSchema: z.ZodType< - PostgresStartPlatform$Outbound, - z.ZodTypeDef, - PostgresStartPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartPlatform$ { - /** @deprecated use `PostgresStartPlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresStartPlatform$inboundSchema; - /** @deprecated use `PostgresStartPlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresStartPlatform$outboundSchema; - /** @deprecated use `PostgresStartPlatform$Outbound` instead. */ - export type Outbound = PostgresStartPlatform$Outbound; -} - -export function postgresStartPlatformToJSON( - postgresStartPlatform: PostgresStartPlatform, -): string { - return JSON.stringify( - PostgresStartPlatform$outboundSchema.parse(postgresStartPlatform), - ); -} - export function postgresStartPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1795,45 +854,6 @@ export const PostgresStartSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const PostgresStartSpread$outboundSchema: z.ZodType< - PostgresStartSpread$Outbound, - z.ZodTypeDef, - PostgresStartSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartSpread$ { - /** @deprecated use `PostgresStartSpread$inboundSchema` instead. */ - export const inboundSchema = PostgresStartSpread$inboundSchema; - /** @deprecated use `PostgresStartSpread$outboundSchema` instead. */ - export const outboundSchema = PostgresStartSpread$outboundSchema; - /** @deprecated use `PostgresStartSpread$Outbound` instead. */ - export type Outbound = PostgresStartSpread$Outbound; -} - -export function postgresStartSpreadToJSON( - postgresStartSpread: PostgresStartSpread, -): string { - return JSON.stringify( - PostgresStartSpread$outboundSchema.parse(postgresStartSpread), - ); -} - export function postgresStartSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1857,45 +877,6 @@ export const PostgresStartPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartPreference$Outbound = { - Spread: PostgresStartSpread$Outbound; -}; - -/** @internal */ -export const PostgresStartPreference$outboundSchema: z.ZodType< - PostgresStartPreference$Outbound, - z.ZodTypeDef, - PostgresStartPreference -> = z.object({ - spread: z.lazy(() => PostgresStartSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartPreference$ { - /** @deprecated use `PostgresStartPreference$inboundSchema` instead. */ - export const inboundSchema = PostgresStartPreference$inboundSchema; - /** @deprecated use `PostgresStartPreference$outboundSchema` instead. */ - export const outboundSchema = PostgresStartPreference$outboundSchema; - /** @deprecated use `PostgresStartPreference$Outbound` instead. */ - export type Outbound = PostgresStartPreference$Outbound; -} - -export function postgresStartPreferenceToJSON( - postgresStartPreference: PostgresStartPreference, -): string { - return JSON.stringify( - PostgresStartPreference$outboundSchema.parse(postgresStartPreference), - ); -} - export function postgresStartPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1927,58 +908,6 @@ export const PostgresStartPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const PostgresStartPlacementSwarm$outboundSchema: z.ZodType< - PostgresStartPlacementSwarm$Outbound, - z.ZodTypeDef, - PostgresStartPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => PostgresStartPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => PostgresStartPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartPlacementSwarm$ { - /** @deprecated use `PostgresStartPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStartPlacementSwarm$inboundSchema; - /** @deprecated use `PostgresStartPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStartPlacementSwarm$outboundSchema; - /** @deprecated use `PostgresStartPlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresStartPlacementSwarm$Outbound; -} - -export function postgresStartPlacementSwarmToJSON( - postgresStartPlacementSwarm: PostgresStartPlacementSwarm, -): string { - return JSON.stringify( - PostgresStartPlacementSwarm$outboundSchema.parse( - postgresStartPlacementSwarm, - ), - ); -} - export function postgresStartPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1996,68 +925,18 @@ export const PostgresStartRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type PostgresStartRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const PostgresStartRestartPolicySwarm$outboundSchema: z.ZodType< - PostgresStartRestartPolicySwarm$Outbound, - z.ZodTypeDef, - PostgresStartRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartRestartPolicySwarm$ { - /** @deprecated use `PostgresStartRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStartRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresStartRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStartRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresStartRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresStartRestartPolicySwarm$Outbound; -} - -export function postgresStartRestartPolicySwarmToJSON( - postgresStartRestartPolicySwarm: PostgresStartRestartPolicySwarm, -): string { - return JSON.stringify( - PostgresStartRestartPolicySwarm$outboundSchema.parse( - postgresStartRestartPolicySwarm, - ), - ); -} - export function postgresStartRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2091,62 +970,6 @@ export const PostgresStartRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresStartRollbackConfigSwarm$outboundSchema: z.ZodType< - PostgresStartRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresStartRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartRollbackConfigSwarm$ { - /** @deprecated use `PostgresStartRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStartRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresStartRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStartRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresStartRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresStartRollbackConfigSwarm$Outbound; -} - -export function postgresStartRollbackConfigSwarmToJSON( - postgresStartRollbackConfigSwarm: PostgresStartRollbackConfigSwarm, -): string { - return JSON.stringify( - PostgresStartRollbackConfigSwarm$outboundSchema.parse( - postgresStartRollbackConfigSwarm, - ), - ); -} - export function postgresStartRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2162,22 +985,6 @@ export const PostgresStartMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresStartMetricsConfigEnum > = z.nativeEnum(PostgresStartMetricsConfigEnum); -/** @internal */ -export const PostgresStartMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresStartMetricsConfigEnum -> = PostgresStartMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMetricsConfigEnum$ { - /** @deprecated use `PostgresStartMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMetricsConfigEnum$inboundSchema; - /** @deprecated use `PostgresStartMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const PostgresStartMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresStartMetricsConfigUnion1, @@ -2190,48 +997,6 @@ export const PostgresStartMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresStartMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type PostgresStartMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const PostgresStartMetricsConfigUnion1$outboundSchema: z.ZodType< - PostgresStartMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - PostgresStartMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresStartMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMetricsConfigUnion1$ { - /** @deprecated use `PostgresStartMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMetricsConfigUnion1$inboundSchema; - /** @deprecated use `PostgresStartMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMetricsConfigUnion1$outboundSchema; - /** @deprecated use `PostgresStartMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = PostgresStartMetricsConfigUnion1$Outbound; -} - -export function postgresStartMetricsConfigUnion1ToJSON( - postgresStartMetricsConfigUnion1: PostgresStartMetricsConfigUnion1, -): string { - return JSON.stringify( - PostgresStartMetricsConfigUnion1$outboundSchema.parse( - postgresStartMetricsConfigUnion1, - ), - ); -} - export function postgresStartMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2258,54 +1023,6 @@ export const PostgresStartMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type PostgresStartMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const PostgresStartMetricsConfigUnion2$outboundSchema: z.ZodType< - PostgresStartMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - PostgresStartMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartMetricsConfigUnion2$ { - /** @deprecated use `PostgresStartMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = PostgresStartMetricsConfigUnion2$inboundSchema; - /** @deprecated use `PostgresStartMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = PostgresStartMetricsConfigUnion2$outboundSchema; - /** @deprecated use `PostgresStartMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = PostgresStartMetricsConfigUnion2$Outbound; -} - -export function postgresStartMetricsConfigUnion2ToJSON( - postgresStartMetricsConfigUnion2: PostgresStartMetricsConfigUnion2, -): string { - return JSON.stringify( - PostgresStartMetricsConfigUnion2$outboundSchema.parse( - postgresStartMetricsConfigUnion2, - ), - ); -} - export function postgresStartMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2321,22 +1038,6 @@ export const PostgresStartServerStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresStartServerStatus > = z.nativeEnum(PostgresStartServerStatus); -/** @internal */ -export const PostgresStartServerStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresStartServerStatus -> = PostgresStartServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartServerStatus$ { - /** @deprecated use `PostgresStartServerStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresStartServerStatus$inboundSchema; - /** @deprecated use `PostgresStartServerStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresStartServerStatus$outboundSchema; -} - /** @internal */ export const PostgresStartServer$inboundSchema: z.ZodType< PostgresStartServer, @@ -2368,78 +1069,6 @@ export const PostgresStartServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type PostgresStartServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const PostgresStartServer$outboundSchema: z.ZodType< - PostgresStartServer$Outbound, - z.ZodTypeDef, - PostgresStartServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: PostgresStartServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartServer$ { - /** @deprecated use `PostgresStartServer$inboundSchema` instead. */ - export const inboundSchema = PostgresStartServer$inboundSchema; - /** @deprecated use `PostgresStartServer$outboundSchema` instead. */ - export const outboundSchema = PostgresStartServer$outboundSchema; - /** @deprecated use `PostgresStartServer$Outbound` instead. */ - export type Outbound = PostgresStartServer$Outbound; -} - -export function postgresStartServerToJSON( - postgresStartServer: PostgresStartServer, -): string { - return JSON.stringify( - PostgresStartServer$outboundSchema.parse(postgresStartServer), - ); -} - export function postgresStartServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2473,62 +1102,6 @@ export const PostgresStartUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStartUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresStartUpdateConfigSwarm$outboundSchema: z.ZodType< - PostgresStartUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresStartUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartUpdateConfigSwarm$ { - /** @deprecated use `PostgresStartUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStartUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresStartUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStartUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresStartUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresStartUpdateConfigSwarm$Outbound; -} - -export function postgresStartUpdateConfigSwarmToJSON( - postgresStartUpdateConfigSwarm: PostgresStartUpdateConfigSwarm, -): string { - return JSON.stringify( - PostgresStartUpdateConfigSwarm$outboundSchema.parse( - postgresStartUpdateConfigSwarm, - ), - ); -} - export function postgresStartUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2591,115 +1164,6 @@ export const PostgresStartResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostgresStartResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: PostgresStartEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: PostgresStartHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: PostgresStartModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: PostgresStartPlacementSwarm$Outbound | null; - postgresId: string; - replicas: number; - restartPolicySwarm: PostgresStartRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: PostgresStartRollbackConfigSwarm$Outbound | null; - server: PostgresStartServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: PostgresStartUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const PostgresStartResponseBody$outboundSchema: z.ZodType< - PostgresStartResponseBody$Outbound, - z.ZodTypeDef, - PostgresStartResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: PostgresStartApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => PostgresStartBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => PostgresStartEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresStartHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => PostgresStartModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => PostgresStartMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresStartNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => PostgresStartPlacementSwarm$outboundSchema), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresStartRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresStartRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => PostgresStartServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresStartUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartResponseBody$ { - /** @deprecated use `PostgresStartResponseBody$inboundSchema` instead. */ - export const inboundSchema = PostgresStartResponseBody$inboundSchema; - /** @deprecated use `PostgresStartResponseBody$outboundSchema` instead. */ - export const outboundSchema = PostgresStartResponseBody$outboundSchema; - /** @deprecated use `PostgresStartResponseBody$Outbound` instead. */ - export type Outbound = PostgresStartResponseBody$Outbound; -} - -export function postgresStartResponseBodyToJSON( - postgresStartResponseBody: PostgresStartResponseBody, -): string { - return JSON.stringify( - PostgresStartResponseBody$outboundSchema.parse(postgresStartResponseBody), - ); -} - export function postgresStartResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2720,42 +1184,6 @@ export const PostgresStartResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PostgresStartResponse$Outbound = - | PostgresStartResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PostgresStartResponse$outboundSchema: z.ZodType< - PostgresStartResponse$Outbound, - z.ZodTypeDef, - PostgresStartResponse -> = z.union([ - z.lazy(() => PostgresStartResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStartResponse$ { - /** @deprecated use `PostgresStartResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresStartResponse$inboundSchema; - /** @deprecated use `PostgresStartResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresStartResponse$outboundSchema; - /** @deprecated use `PostgresStartResponse$Outbound` instead. */ - export type Outbound = PostgresStartResponse$Outbound; -} - -export function postgresStartResponseToJSON( - postgresStartResponse: PostgresStartResponse, -): string { - return JSON.stringify( - PostgresStartResponse$outboundSchema.parse(postgresStartResponse), - ); -} - export function postgresStartResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresstop.ts b/src/models/operations/postgresstop.ts index a9924ef..0b0fa25 100644 --- a/src/models/operations/postgresstop.ts +++ b/src/models/operations/postgresstop.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -328,15 +328,6 @@ export type PostgresStopResponseBody = { export type PostgresStopResponse = PostgresStopResponseBody | models.ErrorT; -/** @internal */ -export const PostgresStopRequest$inboundSchema: z.ZodType< - PostgresStopRequest, - z.ZodTypeDef, - unknown -> = z.object({ - postgresId: z.string(), -}); - /** @internal */ export type PostgresStopRequest$Outbound = { postgresId: string; @@ -351,19 +342,6 @@ export const PostgresStopRequest$outboundSchema: z.ZodType< postgresId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopRequest$ { - /** @deprecated use `PostgresStopRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresStopRequest$inboundSchema; - /** @deprecated use `PostgresStopRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresStopRequest$outboundSchema; - /** @deprecated use `PostgresStopRequest$Outbound` instead. */ - export type Outbound = PostgresStopRequest$Outbound; -} - export function postgresStopRequestToJSON( postgresStopRequest: PostgresStopRequest, ): string { @@ -372,100 +350,26 @@ export function postgresStopRequestToJSON( ); } -export function postgresStopRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresStopRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresStopRequest' from JSON`, - ); -} - /** @internal */ export const PostgresStopApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresStopApplicationStatus > = z.nativeEnum(PostgresStopApplicationStatus); -/** @internal */ -export const PostgresStopApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresStopApplicationStatus -> = PostgresStopApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopApplicationStatus$ { - /** @deprecated use `PostgresStopApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresStopApplicationStatus$inboundSchema; - /** @deprecated use `PostgresStopApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresStopApplicationStatus$outboundSchema; -} - /** @internal */ export const PostgresStopBackupType$inboundSchema: z.ZodNativeEnum< typeof PostgresStopBackupType > = z.nativeEnum(PostgresStopBackupType); -/** @internal */ -export const PostgresStopBackupType$outboundSchema: z.ZodNativeEnum< - typeof PostgresStopBackupType -> = PostgresStopBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopBackupType$ { - /** @deprecated use `PostgresStopBackupType$inboundSchema` instead. */ - export const inboundSchema = PostgresStopBackupType$inboundSchema; - /** @deprecated use `PostgresStopBackupType$outboundSchema` instead. */ - export const outboundSchema = PostgresStopBackupType$outboundSchema; -} - /** @internal */ export const PostgresStopDatabaseType$inboundSchema: z.ZodNativeEnum< typeof PostgresStopDatabaseType > = z.nativeEnum(PostgresStopDatabaseType); -/** @internal */ -export const PostgresStopDatabaseType$outboundSchema: z.ZodNativeEnum< - typeof PostgresStopDatabaseType -> = PostgresStopDatabaseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopDatabaseType$ { - /** @deprecated use `PostgresStopDatabaseType$inboundSchema` instead. */ - export const inboundSchema = PostgresStopDatabaseType$inboundSchema; - /** @deprecated use `PostgresStopDatabaseType$outboundSchema` instead. */ - export const outboundSchema = PostgresStopDatabaseType$outboundSchema; -} - /** @internal */ export const PostgresStopMetadataEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresStopMetadataEnum > = z.nativeEnum(PostgresStopMetadataEnum); -/** @internal */ -export const PostgresStopMetadataEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresStopMetadataEnum -> = PostgresStopMetadataEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMetadataEnum$ { - /** @deprecated use `PostgresStopMetadataEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMetadataEnum$inboundSchema; - /** @deprecated use `PostgresStopMetadataEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMetadataEnum$outboundSchema; -} - /** @internal */ export const PostgresStopMariadb$inboundSchema: z.ZodType< PostgresStopMariadb, @@ -476,43 +380,6 @@ export const PostgresStopMariadb$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresStopMariadb$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresStopMariadb$outboundSchema: z.ZodType< - PostgresStopMariadb$Outbound, - z.ZodTypeDef, - PostgresStopMariadb -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMariadb$ { - /** @deprecated use `PostgresStopMariadb$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMariadb$inboundSchema; - /** @deprecated use `PostgresStopMariadb$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMariadb$outboundSchema; - /** @deprecated use `PostgresStopMariadb$Outbound` instead. */ - export type Outbound = PostgresStopMariadb$Outbound; -} - -export function postgresStopMariadbToJSON( - postgresStopMariadb: PostgresStopMariadb, -): string { - return JSON.stringify( - PostgresStopMariadb$outboundSchema.parse(postgresStopMariadb), - ); -} - export function postgresStopMariadbFromJSON( jsonString: string, ): SafeParseResult { @@ -533,43 +400,6 @@ export const PostgresStopMongo$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresStopMongo$Outbound = { - databasePassword: string; - databaseUser: string; -}; - -/** @internal */ -export const PostgresStopMongo$outboundSchema: z.ZodType< - PostgresStopMongo$Outbound, - z.ZodTypeDef, - PostgresStopMongo -> = z.object({ - databasePassword: z.string(), - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMongo$ { - /** @deprecated use `PostgresStopMongo$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMongo$inboundSchema; - /** @deprecated use `PostgresStopMongo$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMongo$outboundSchema; - /** @deprecated use `PostgresStopMongo$Outbound` instead. */ - export type Outbound = PostgresStopMongo$Outbound; -} - -export function postgresStopMongoToJSON( - postgresStopMongo: PostgresStopMongo, -): string { - return JSON.stringify( - PostgresStopMongo$outboundSchema.parse(postgresStopMongo), - ); -} - export function postgresStopMongoFromJSON( jsonString: string, ): SafeParseResult { @@ -589,41 +419,6 @@ export const PostgresStopMysql$inboundSchema: z.ZodType< databaseRootPassword: z.string(), }); -/** @internal */ -export type PostgresStopMysql$Outbound = { - databaseRootPassword: string; -}; - -/** @internal */ -export const PostgresStopMysql$outboundSchema: z.ZodType< - PostgresStopMysql$Outbound, - z.ZodTypeDef, - PostgresStopMysql -> = z.object({ - databaseRootPassword: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMysql$ { - /** @deprecated use `PostgresStopMysql$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMysql$inboundSchema; - /** @deprecated use `PostgresStopMysql$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMysql$outboundSchema; - /** @deprecated use `PostgresStopMysql$Outbound` instead. */ - export type Outbound = PostgresStopMysql$Outbound; -} - -export function postgresStopMysqlToJSON( - postgresStopMysql: PostgresStopMysql, -): string { - return JSON.stringify( - PostgresStopMysql$outboundSchema.parse(postgresStopMysql), - ); -} - export function postgresStopMysqlFromJSON( jsonString: string, ): SafeParseResult { @@ -643,41 +438,6 @@ export const PostgresStopPostgres$inboundSchema: z.ZodType< databaseUser: z.string(), }); -/** @internal */ -export type PostgresStopPostgres$Outbound = { - databaseUser: string; -}; - -/** @internal */ -export const PostgresStopPostgres$outboundSchema: z.ZodType< - PostgresStopPostgres$Outbound, - z.ZodTypeDef, - PostgresStopPostgres -> = z.object({ - databaseUser: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopPostgres$ { - /** @deprecated use `PostgresStopPostgres$inboundSchema` instead. */ - export const inboundSchema = PostgresStopPostgres$inboundSchema; - /** @deprecated use `PostgresStopPostgres$outboundSchema` instead. */ - export const outboundSchema = PostgresStopPostgres$outboundSchema; - /** @deprecated use `PostgresStopPostgres$Outbound` instead. */ - export type Outbound = PostgresStopPostgres$Outbound; -} - -export function postgresStopPostgresToJSON( - postgresStopPostgres: PostgresStopPostgres, -): string { - return JSON.stringify( - PostgresStopPostgres$outboundSchema.parse(postgresStopPostgres), - ); -} - export function postgresStopPostgresFromJSON( jsonString: string, ): SafeParseResult { @@ -700,47 +460,6 @@ export const PostgresStopMetadata$inboundSchema: z.ZodType< postgres: z.lazy(() => PostgresStopPostgres$inboundSchema).optional(), }); -/** @internal */ -export type PostgresStopMetadata$Outbound = { - mariadb?: PostgresStopMariadb$Outbound | undefined; - mongo?: PostgresStopMongo$Outbound | undefined; - mysql?: PostgresStopMysql$Outbound | undefined; - postgres?: PostgresStopPostgres$Outbound | undefined; -}; - -/** @internal */ -export const PostgresStopMetadata$outboundSchema: z.ZodType< - PostgresStopMetadata$Outbound, - z.ZodTypeDef, - PostgresStopMetadata -> = z.object({ - mariadb: z.lazy(() => PostgresStopMariadb$outboundSchema).optional(), - mongo: z.lazy(() => PostgresStopMongo$outboundSchema).optional(), - mysql: z.lazy(() => PostgresStopMysql$outboundSchema).optional(), - postgres: z.lazy(() => PostgresStopPostgres$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMetadata$ { - /** @deprecated use `PostgresStopMetadata$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMetadata$inboundSchema; - /** @deprecated use `PostgresStopMetadata$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMetadata$outboundSchema; - /** @deprecated use `PostgresStopMetadata$Outbound` instead. */ - export type Outbound = PostgresStopMetadata$Outbound; -} - -export function postgresStopMetadataToJSON( - postgresStopMetadata: PostgresStopMetadata, -): string { - return JSON.stringify( - PostgresStopMetadata$outboundSchema.parse(postgresStopMetadata), - ); -} - export function postgresStopMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -761,42 +480,6 @@ export const PostgresStopMetadataUnion$inboundSchema: z.ZodType< PostgresStopMetadataEnum$inboundSchema, ]); -/** @internal */ -export type PostgresStopMetadataUnion$Outbound = - | PostgresStopMetadata$Outbound - | string; - -/** @internal */ -export const PostgresStopMetadataUnion$outboundSchema: z.ZodType< - PostgresStopMetadataUnion$Outbound, - z.ZodTypeDef, - PostgresStopMetadataUnion -> = z.union([ - z.lazy(() => PostgresStopMetadata$outboundSchema), - PostgresStopMetadataEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMetadataUnion$ { - /** @deprecated use `PostgresStopMetadataUnion$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMetadataUnion$inboundSchema; - /** @deprecated use `PostgresStopMetadataUnion$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMetadataUnion$outboundSchema; - /** @deprecated use `PostgresStopMetadataUnion$Outbound` instead. */ - export type Outbound = PostgresStopMetadataUnion$Outbound; -} - -export function postgresStopMetadataUnionToJSON( - postgresStopMetadataUnion: PostgresStopMetadataUnion, -): string { - return JSON.stringify( - PostgresStopMetadataUnion$outboundSchema.parse(postgresStopMetadataUnion), - ); -} - export function postgresStopMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { @@ -838,80 +521,6 @@ export const PostgresStopBackup$inboundSchema: z.ZodType< userId: z.nullable(z.string()), }); -/** @internal */ -export type PostgresStopBackup$Outbound = { - appName: string; - backupId: string; - backupType: string; - composeId: string | null; - database: string; - databaseType: string; - destinationId: string; - enabled: boolean | null; - keepLatestCount: number | null; - mariadbId: string | null; - metadata?: PostgresStopMetadata$Outbound | string | null | undefined; - mongoId: string | null; - mysqlId: string | null; - postgresId: string | null; - prefix: string; - schedule: string; - serviceName: string | null; - userId: string | null; -}; - -/** @internal */ -export const PostgresStopBackup$outboundSchema: z.ZodType< - PostgresStopBackup$Outbound, - z.ZodTypeDef, - PostgresStopBackup -> = z.object({ - appName: z.string(), - backupId: z.string(), - backupType: PostgresStopBackupType$outboundSchema, - composeId: z.nullable(z.string()), - database: z.string(), - databaseType: PostgresStopDatabaseType$outboundSchema, - destinationId: z.string(), - enabled: z.nullable(z.boolean()), - keepLatestCount: z.nullable(z.number()), - mariadbId: z.nullable(z.string()), - metadata: z.nullable( - z.union([ - z.lazy(() => PostgresStopMetadata$outboundSchema), - PostgresStopMetadataEnum$outboundSchema, - ]), - ).optional(), - mongoId: z.nullable(z.string()), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - prefix: z.string(), - schedule: z.string(), - serviceName: z.nullable(z.string()), - userId: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopBackup$ { - /** @deprecated use `PostgresStopBackup$inboundSchema` instead. */ - export const inboundSchema = PostgresStopBackup$inboundSchema; - /** @deprecated use `PostgresStopBackup$outboundSchema` instead. */ - export const outboundSchema = PostgresStopBackup$outboundSchema; - /** @deprecated use `PostgresStopBackup$Outbound` instead. */ - export type Outbound = PostgresStopBackup$Outbound; -} - -export function postgresStopBackupToJSON( - postgresStopBackup: PostgresStopBackup, -): string { - return JSON.stringify( - PostgresStopBackup$outboundSchema.parse(postgresStopBackup), - ); -} - export function postgresStopBackupFromJSON( jsonString: string, ): SafeParseResult { @@ -936,51 +545,6 @@ export const PostgresStopProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresStopProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const PostgresStopProject$outboundSchema: z.ZodType< - PostgresStopProject$Outbound, - z.ZodTypeDef, - PostgresStopProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopProject$ { - /** @deprecated use `PostgresStopProject$inboundSchema` instead. */ - export const inboundSchema = PostgresStopProject$inboundSchema; - /** @deprecated use `PostgresStopProject$outboundSchema` instead. */ - export const outboundSchema = PostgresStopProject$outboundSchema; - /** @deprecated use `PostgresStopProject$Outbound` instead. */ - export type Outbound = PostgresStopProject$Outbound; -} - -export function postgresStopProjectToJSON( - postgresStopProject: PostgresStopProject, -): string { - return JSON.stringify( - PostgresStopProject$outboundSchema.parse(postgresStopProject), - ); -} - export function postgresStopProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -1006,53 +570,6 @@ export const PostgresStopEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type PostgresStopEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: PostgresStopProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const PostgresStopEnvironment$outboundSchema: z.ZodType< - PostgresStopEnvironment$Outbound, - z.ZodTypeDef, - PostgresStopEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => PostgresStopProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopEnvironment$ { - /** @deprecated use `PostgresStopEnvironment$inboundSchema` instead. */ - export const inboundSchema = PostgresStopEnvironment$inboundSchema; - /** @deprecated use `PostgresStopEnvironment$outboundSchema` instead. */ - export const outboundSchema = PostgresStopEnvironment$outboundSchema; - /** @deprecated use `PostgresStopEnvironment$Outbound` instead. */ - export type Outbound = PostgresStopEnvironment$Outbound; -} - -export function postgresStopEnvironmentToJSON( - postgresStopEnvironment: PostgresStopEnvironment, -): string { - return JSON.stringify( - PostgresStopEnvironment$outboundSchema.parse(postgresStopEnvironment), - ); -} - export function postgresStopEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1084,59 +601,6 @@ export const PostgresStopHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const PostgresStopHealthCheckSwarm$outboundSchema: z.ZodType< - PostgresStopHealthCheckSwarm$Outbound, - z.ZodTypeDef, - PostgresStopHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopHealthCheckSwarm$ { - /** @deprecated use `PostgresStopHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStopHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresStopHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStopHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresStopHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresStopHealthCheckSwarm$Outbound; -} - -export function postgresStopHealthCheckSwarmToJSON( - postgresStopHealthCheckSwarm: PostgresStopHealthCheckSwarm, -): string { - return JSON.stringify( - PostgresStopHealthCheckSwarm$outboundSchema.parse( - postgresStopHealthCheckSwarm, - ), - ); -} - export function postgresStopHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1154,37 +618,6 @@ export const PostgresStopGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresStopGlobal$Outbound = {}; - -/** @internal */ -export const PostgresStopGlobal$outboundSchema: z.ZodType< - PostgresStopGlobal$Outbound, - z.ZodTypeDef, - PostgresStopGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopGlobal$ { - /** @deprecated use `PostgresStopGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresStopGlobal$inboundSchema; - /** @deprecated use `PostgresStopGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresStopGlobal$outboundSchema; - /** @deprecated use `PostgresStopGlobal$Outbound` instead. */ - export type Outbound = PostgresStopGlobal$Outbound; -} - -export function postgresStopGlobalToJSON( - postgresStopGlobal: PostgresStopGlobal, -): string { - return JSON.stringify( - PostgresStopGlobal$outboundSchema.parse(postgresStopGlobal), - ); -} - export function postgresStopGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -1198,40 +631,9 @@ export function postgresStopGlobalFromJSON( /** @internal */ export const PostgresStopGlobalJob$inboundSchema: z.ZodType< PostgresStopGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type PostgresStopGlobalJob$Outbound = {}; - -/** @internal */ -export const PostgresStopGlobalJob$outboundSchema: z.ZodType< - PostgresStopGlobalJob$Outbound, - z.ZodTypeDef, - PostgresStopGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopGlobalJob$ { - /** @deprecated use `PostgresStopGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresStopGlobalJob$inboundSchema; - /** @deprecated use `PostgresStopGlobalJob$outboundSchema` instead. */ - export const outboundSchema = PostgresStopGlobalJob$outboundSchema; - /** @deprecated use `PostgresStopGlobalJob$Outbound` instead. */ - export type Outbound = PostgresStopGlobalJob$Outbound; -} - -export function postgresStopGlobalJobToJSON( - postgresStopGlobalJob: PostgresStopGlobalJob, -): string { - return JSON.stringify( - PostgresStopGlobalJob$outboundSchema.parse(postgresStopGlobalJob), - ); -} + z.ZodTypeDef, + unknown +> = z.object({}); export function postgresStopGlobalJobFromJSON( jsonString: string, @@ -1256,45 +658,6 @@ export const PostgresStopReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const PostgresStopReplicated$outboundSchema: z.ZodType< - PostgresStopReplicated$Outbound, - z.ZodTypeDef, - PostgresStopReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopReplicated$ { - /** @deprecated use `PostgresStopReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresStopReplicated$inboundSchema; - /** @deprecated use `PostgresStopReplicated$outboundSchema` instead. */ - export const outboundSchema = PostgresStopReplicated$outboundSchema; - /** @deprecated use `PostgresStopReplicated$Outbound` instead. */ - export type Outbound = PostgresStopReplicated$Outbound; -} - -export function postgresStopReplicatedToJSON( - postgresStopReplicated: PostgresStopReplicated, -): string { - return JSON.stringify( - PostgresStopReplicated$outboundSchema.parse(postgresStopReplicated), - ); -} - export function postgresStopReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -1320,48 +683,6 @@ export const PostgresStopReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const PostgresStopReplicatedJob$outboundSchema: z.ZodType< - PostgresStopReplicatedJob$Outbound, - z.ZodTypeDef, - PostgresStopReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopReplicatedJob$ { - /** @deprecated use `PostgresStopReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = PostgresStopReplicatedJob$inboundSchema; - /** @deprecated use `PostgresStopReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = PostgresStopReplicatedJob$outboundSchema; - /** @deprecated use `PostgresStopReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresStopReplicatedJob$Outbound; -} - -export function postgresStopReplicatedJobToJSON( - postgresStopReplicatedJob: PostgresStopReplicatedJob, -): string { - return JSON.stringify( - PostgresStopReplicatedJob$outboundSchema.parse(postgresStopReplicatedJob), - ); -} - export function postgresStopReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -1392,55 +713,6 @@ export const PostgresStopModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopModeSwarm$Outbound = { - Global?: PostgresStopGlobal$Outbound | undefined; - GlobalJob?: PostgresStopGlobalJob$Outbound | undefined; - Replicated?: PostgresStopReplicated$Outbound | undefined; - ReplicatedJob?: PostgresStopReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const PostgresStopModeSwarm$outboundSchema: z.ZodType< - PostgresStopModeSwarm$Outbound, - z.ZodTypeDef, - PostgresStopModeSwarm -> = z.object({ - global: z.lazy(() => PostgresStopGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => PostgresStopGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => PostgresStopReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => PostgresStopReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopModeSwarm$ { - /** @deprecated use `PostgresStopModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStopModeSwarm$inboundSchema; - /** @deprecated use `PostgresStopModeSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStopModeSwarm$outboundSchema; - /** @deprecated use `PostgresStopModeSwarm$Outbound` instead. */ - export type Outbound = PostgresStopModeSwarm$Outbound; -} - -export function postgresStopModeSwarmToJSON( - postgresStopModeSwarm: PostgresStopModeSwarm, -): string { - return JSON.stringify( - PostgresStopModeSwarm$outboundSchema.parse(postgresStopModeSwarm), - ); -} - export function postgresStopModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1456,43 +728,11 @@ export const PostgresStopServiceType$inboundSchema: z.ZodNativeEnum< typeof PostgresStopServiceType > = z.nativeEnum(PostgresStopServiceType); -/** @internal */ -export const PostgresStopServiceType$outboundSchema: z.ZodNativeEnum< - typeof PostgresStopServiceType -> = PostgresStopServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopServiceType$ { - /** @deprecated use `PostgresStopServiceType$inboundSchema` instead. */ - export const inboundSchema = PostgresStopServiceType$inboundSchema; - /** @deprecated use `PostgresStopServiceType$outboundSchema` instead. */ - export const outboundSchema = PostgresStopServiceType$outboundSchema; -} - /** @internal */ export const PostgresStopType$inboundSchema: z.ZodNativeEnum< typeof PostgresStopType > = z.nativeEnum(PostgresStopType); -/** @internal */ -export const PostgresStopType$outboundSchema: z.ZodNativeEnum< - typeof PostgresStopType -> = PostgresStopType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopType$ { - /** @deprecated use `PostgresStopType$inboundSchema` instead. */ - export const inboundSchema = PostgresStopType$inboundSchema; - /** @deprecated use `PostgresStopType$outboundSchema` instead. */ - export const outboundSchema = PostgresStopType$outboundSchema; -} - /** @internal */ export const PostgresStopMount$inboundSchema: z.ZodType< PostgresStopMount, @@ -1516,69 +756,6 @@ export const PostgresStopMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type PostgresStopMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const PostgresStopMount$outboundSchema: z.ZodType< - PostgresStopMount$Outbound, - z.ZodTypeDef, - PostgresStopMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: PostgresStopServiceType$outboundSchema, - type: PostgresStopType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMount$ { - /** @deprecated use `PostgresStopMount$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMount$inboundSchema; - /** @deprecated use `PostgresStopMount$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMount$outboundSchema; - /** @deprecated use `PostgresStopMount$Outbound` instead. */ - export type Outbound = PostgresStopMount$Outbound; -} - -export function postgresStopMountToJSON( - postgresStopMount: PostgresStopMount, -): string { - return JSON.stringify( - PostgresStopMount$outboundSchema.parse(postgresStopMount), - ); -} - export function postgresStopMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1596,37 +773,6 @@ export const PostgresStopDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PostgresStopDriverOpts$Outbound = {}; - -/** @internal */ -export const PostgresStopDriverOpts$outboundSchema: z.ZodType< - PostgresStopDriverOpts$Outbound, - z.ZodTypeDef, - PostgresStopDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopDriverOpts$ { - /** @deprecated use `PostgresStopDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresStopDriverOpts$inboundSchema; - /** @deprecated use `PostgresStopDriverOpts$outboundSchema` instead. */ - export const outboundSchema = PostgresStopDriverOpts$outboundSchema; - /** @deprecated use `PostgresStopDriverOpts$Outbound` instead. */ - export type Outbound = PostgresStopDriverOpts$Outbound; -} - -export function postgresStopDriverOptsToJSON( - postgresStopDriverOpts: PostgresStopDriverOpts, -): string { - return JSON.stringify( - PostgresStopDriverOpts$outboundSchema.parse(postgresStopDriverOpts), - ); -} - export function postgresStopDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1654,51 +800,6 @@ export const PostgresStopNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: PostgresStopDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const PostgresStopNetworkSwarm$outboundSchema: z.ZodType< - PostgresStopNetworkSwarm$Outbound, - z.ZodTypeDef, - PostgresStopNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => PostgresStopDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopNetworkSwarm$ { - /** @deprecated use `PostgresStopNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStopNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresStopNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStopNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresStopNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresStopNetworkSwarm$Outbound; -} - -export function postgresStopNetworkSwarmToJSON( - postgresStopNetworkSwarm: PostgresStopNetworkSwarm, -): string { - return JSON.stringify( - PostgresStopNetworkSwarm$outboundSchema.parse(postgresStopNetworkSwarm), - ); -} - export function postgresStopNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1724,48 +825,6 @@ export const PostgresStopPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const PostgresStopPlatform$outboundSchema: z.ZodType< - PostgresStopPlatform$Outbound, - z.ZodTypeDef, - PostgresStopPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopPlatform$ { - /** @deprecated use `PostgresStopPlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresStopPlatform$inboundSchema; - /** @deprecated use `PostgresStopPlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresStopPlatform$outboundSchema; - /** @deprecated use `PostgresStopPlatform$Outbound` instead. */ - export type Outbound = PostgresStopPlatform$Outbound; -} - -export function postgresStopPlatformToJSON( - postgresStopPlatform: PostgresStopPlatform, -): string { - return JSON.stringify( - PostgresStopPlatform$outboundSchema.parse(postgresStopPlatform), - ); -} - export function postgresStopPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1789,45 +848,6 @@ export const PostgresStopSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const PostgresStopSpread$outboundSchema: z.ZodType< - PostgresStopSpread$Outbound, - z.ZodTypeDef, - PostgresStopSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopSpread$ { - /** @deprecated use `PostgresStopSpread$inboundSchema` instead. */ - export const inboundSchema = PostgresStopSpread$inboundSchema; - /** @deprecated use `PostgresStopSpread$outboundSchema` instead. */ - export const outboundSchema = PostgresStopSpread$outboundSchema; - /** @deprecated use `PostgresStopSpread$Outbound` instead. */ - export type Outbound = PostgresStopSpread$Outbound; -} - -export function postgresStopSpreadToJSON( - postgresStopSpread: PostgresStopSpread, -): string { - return JSON.stringify( - PostgresStopSpread$outboundSchema.parse(postgresStopSpread), - ); -} - export function postgresStopSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1851,45 +871,6 @@ export const PostgresStopPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopPreference$Outbound = { - Spread: PostgresStopSpread$Outbound; -}; - -/** @internal */ -export const PostgresStopPreference$outboundSchema: z.ZodType< - PostgresStopPreference$Outbound, - z.ZodTypeDef, - PostgresStopPreference -> = z.object({ - spread: z.lazy(() => PostgresStopSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopPreference$ { - /** @deprecated use `PostgresStopPreference$inboundSchema` instead. */ - export const inboundSchema = PostgresStopPreference$inboundSchema; - /** @deprecated use `PostgresStopPreference$outboundSchema` instead. */ - export const outboundSchema = PostgresStopPreference$outboundSchema; - /** @deprecated use `PostgresStopPreference$Outbound` instead. */ - export type Outbound = PostgresStopPreference$Outbound; -} - -export function postgresStopPreferenceToJSON( - postgresStopPreference: PostgresStopPreference, -): string { - return JSON.stringify( - PostgresStopPreference$outboundSchema.parse(postgresStopPreference), - ); -} - export function postgresStopPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1921,56 +902,6 @@ export const PostgresStopPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const PostgresStopPlacementSwarm$outboundSchema: z.ZodType< - PostgresStopPlacementSwarm$Outbound, - z.ZodTypeDef, - PostgresStopPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => PostgresStopPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => PostgresStopPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopPlacementSwarm$ { - /** @deprecated use `PostgresStopPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStopPlacementSwarm$inboundSchema; - /** @deprecated use `PostgresStopPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStopPlacementSwarm$outboundSchema; - /** @deprecated use `PostgresStopPlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresStopPlacementSwarm$Outbound; -} - -export function postgresStopPlacementSwarmToJSON( - postgresStopPlacementSwarm: PostgresStopPlacementSwarm, -): string { - return JSON.stringify( - PostgresStopPlacementSwarm$outboundSchema.parse(postgresStopPlacementSwarm), - ); -} - export function postgresStopPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1988,68 +919,18 @@ export const PostgresStopRestartPolicySwarm$inboundSchema: z.ZodType< unknown > = z.object({ Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type PostgresStopRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const PostgresStopRestartPolicySwarm$outboundSchema: z.ZodType< - PostgresStopRestartPolicySwarm$Outbound, - z.ZodTypeDef, - PostgresStopRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), + Delay: z.number().optional(), + MaxAttempts: z.number().optional(), + Window: z.number().optional(), }).transform((v) => { return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "Condition": "condition", + "Delay": "delay", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopRestartPolicySwarm$ { - /** @deprecated use `PostgresStopRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStopRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresStopRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStopRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresStopRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresStopRestartPolicySwarm$Outbound; -} - -export function postgresStopRestartPolicySwarmToJSON( - postgresStopRestartPolicySwarm: PostgresStopRestartPolicySwarm, -): string { - return JSON.stringify( - PostgresStopRestartPolicySwarm$outboundSchema.parse( - postgresStopRestartPolicySwarm, - ), - ); -} - export function postgresStopRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2083,62 +964,6 @@ export const PostgresStopRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresStopRollbackConfigSwarm$outboundSchema: z.ZodType< - PostgresStopRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresStopRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopRollbackConfigSwarm$ { - /** @deprecated use `PostgresStopRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStopRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresStopRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStopRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresStopRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresStopRollbackConfigSwarm$Outbound; -} - -export function postgresStopRollbackConfigSwarmToJSON( - postgresStopRollbackConfigSwarm: PostgresStopRollbackConfigSwarm, -): string { - return JSON.stringify( - PostgresStopRollbackConfigSwarm$outboundSchema.parse( - postgresStopRollbackConfigSwarm, - ), - ); -} - export function postgresStopRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2154,22 +979,6 @@ export const PostgresStopMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof PostgresStopMetricsConfigEnum > = z.nativeEnum(PostgresStopMetricsConfigEnum); -/** @internal */ -export const PostgresStopMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof PostgresStopMetricsConfigEnum -> = PostgresStopMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMetricsConfigEnum$ { - /** @deprecated use `PostgresStopMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMetricsConfigEnum$inboundSchema; - /** @deprecated use `PostgresStopMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const PostgresStopMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresStopMetricsConfigUnion1, @@ -2182,48 +991,6 @@ export const PostgresStopMetricsConfigUnion1$inboundSchema: z.ZodType< PostgresStopMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type PostgresStopMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const PostgresStopMetricsConfigUnion1$outboundSchema: z.ZodType< - PostgresStopMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - PostgresStopMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresStopMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMetricsConfigUnion1$ { - /** @deprecated use `PostgresStopMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMetricsConfigUnion1$inboundSchema; - /** @deprecated use `PostgresStopMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMetricsConfigUnion1$outboundSchema; - /** @deprecated use `PostgresStopMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = PostgresStopMetricsConfigUnion1$Outbound; -} - -export function postgresStopMetricsConfigUnion1ToJSON( - postgresStopMetricsConfigUnion1: PostgresStopMetricsConfigUnion1, -): string { - return JSON.stringify( - PostgresStopMetricsConfigUnion1$outboundSchema.parse( - postgresStopMetricsConfigUnion1, - ), - ); -} - export function postgresStopMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -2250,54 +1017,6 @@ export const PostgresStopMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type PostgresStopMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const PostgresStopMetricsConfigUnion2$outboundSchema: z.ZodType< - PostgresStopMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - PostgresStopMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopMetricsConfigUnion2$ { - /** @deprecated use `PostgresStopMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = PostgresStopMetricsConfigUnion2$inboundSchema; - /** @deprecated use `PostgresStopMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = PostgresStopMetricsConfigUnion2$outboundSchema; - /** @deprecated use `PostgresStopMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = PostgresStopMetricsConfigUnion2$Outbound; -} - -export function postgresStopMetricsConfigUnion2ToJSON( - postgresStopMetricsConfigUnion2: PostgresStopMetricsConfigUnion2, -): string { - return JSON.stringify( - PostgresStopMetricsConfigUnion2$outboundSchema.parse( - postgresStopMetricsConfigUnion2, - ), - ); -} - export function postgresStopMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -2313,22 +1032,6 @@ export const PostgresStopServerStatus$inboundSchema: z.ZodNativeEnum< typeof PostgresStopServerStatus > = z.nativeEnum(PostgresStopServerStatus); -/** @internal */ -export const PostgresStopServerStatus$outboundSchema: z.ZodNativeEnum< - typeof PostgresStopServerStatus -> = PostgresStopServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopServerStatus$ { - /** @deprecated use `PostgresStopServerStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresStopServerStatus$inboundSchema; - /** @deprecated use `PostgresStopServerStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresStopServerStatus$outboundSchema; -} - /** @internal */ export const PostgresStopServer$inboundSchema: z.ZodType< PostgresStopServer, @@ -2360,78 +1063,6 @@ export const PostgresStopServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type PostgresStopServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const PostgresStopServer$outboundSchema: z.ZodType< - PostgresStopServer$Outbound, - z.ZodTypeDef, - PostgresStopServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - PostgresStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: PostgresStopServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopServer$ { - /** @deprecated use `PostgresStopServer$inboundSchema` instead. */ - export const inboundSchema = PostgresStopServer$inboundSchema; - /** @deprecated use `PostgresStopServer$outboundSchema` instead. */ - export const outboundSchema = PostgresStopServer$outboundSchema; - /** @deprecated use `PostgresStopServer$Outbound` instead. */ - export type Outbound = PostgresStopServer$Outbound; -} - -export function postgresStopServerToJSON( - postgresStopServer: PostgresStopServer, -): string { - return JSON.stringify( - PostgresStopServer$outboundSchema.parse(postgresStopServer), - ); -} - export function postgresStopServerFromJSON( jsonString: string, ): SafeParseResult { @@ -2465,62 +1096,6 @@ export const PostgresStopUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PostgresStopUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const PostgresStopUpdateConfigSwarm$outboundSchema: z.ZodType< - PostgresStopUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - PostgresStopUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopUpdateConfigSwarm$ { - /** @deprecated use `PostgresStopUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresStopUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresStopUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresStopUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresStopUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresStopUpdateConfigSwarm$Outbound; -} - -export function postgresStopUpdateConfigSwarmToJSON( - postgresStopUpdateConfigSwarm: PostgresStopUpdateConfigSwarm, -): string { - return JSON.stringify( - PostgresStopUpdateConfigSwarm$outboundSchema.parse( - postgresStopUpdateConfigSwarm, - ), - ); -} - export function postgresStopUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2583,115 +1158,6 @@ export const PostgresStopResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostgresStopResponseBody$Outbound = { - appName: string; - applicationStatus: string; - backups: Array; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databaseName: string; - databasePassword: string; - databaseUser: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: PostgresStopEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: PostgresStopHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: PostgresStopModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: PostgresStopPlacementSwarm$Outbound | null; - postgresId: string; - replicas: number; - restartPolicySwarm: PostgresStopRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: PostgresStopRollbackConfigSwarm$Outbound | null; - server: PostgresStopServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: PostgresStopUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const PostgresStopResponseBody$outboundSchema: z.ZodType< - PostgresStopResponseBody$Outbound, - z.ZodTypeDef, - PostgresStopResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: PostgresStopApplicationStatus$outboundSchema, - backups: z.array(z.lazy(() => PostgresStopBackup$outboundSchema)), - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databaseName: z.string(), - databasePassword: z.string(), - databaseUser: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => PostgresStopEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresStopHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => PostgresStopModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => PostgresStopMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresStopNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => PostgresStopPlacementSwarm$outboundSchema), - ), - postgresId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresStopRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresStopRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => PostgresStopServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresStopUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopResponseBody$ { - /** @deprecated use `PostgresStopResponseBody$inboundSchema` instead. */ - export const inboundSchema = PostgresStopResponseBody$inboundSchema; - /** @deprecated use `PostgresStopResponseBody$outboundSchema` instead. */ - export const outboundSchema = PostgresStopResponseBody$outboundSchema; - /** @deprecated use `PostgresStopResponseBody$Outbound` instead. */ - export type Outbound = PostgresStopResponseBody$Outbound; -} - -export function postgresStopResponseBodyToJSON( - postgresStopResponseBody: PostgresStopResponseBody, -): string { - return JSON.stringify( - PostgresStopResponseBody$outboundSchema.parse(postgresStopResponseBody), - ); -} - export function postgresStopResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2712,42 +1178,6 @@ export const PostgresStopResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PostgresStopResponse$Outbound = - | PostgresStopResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PostgresStopResponse$outboundSchema: z.ZodType< - PostgresStopResponse$Outbound, - z.ZodTypeDef, - PostgresStopResponse -> = z.union([ - z.lazy(() => PostgresStopResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresStopResponse$ { - /** @deprecated use `PostgresStopResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresStopResponse$inboundSchema; - /** @deprecated use `PostgresStopResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresStopResponse$outboundSchema; - /** @deprecated use `PostgresStopResponse$Outbound` instead. */ - export type Outbound = PostgresStopResponse$Outbound; -} - -export function postgresStopResponseToJSON( - postgresStopResponse: PostgresStopResponse, -): string { - return JSON.stringify( - PostgresStopResponse$outboundSchema.parse(postgresStopResponse), - ); -} - export function postgresStopResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postgresupdate.ts b/src/models/operations/postgresupdate.ts index aa42357..8db0cc5 100644 --- a/src/models/operations/postgresupdate.ts +++ b/src/models/operations/postgresupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -133,47 +133,10 @@ export type PostgresUpdateRequest = { export type PostgresUpdateResponse = models.ErrorT | boolean; -/** @internal */ -export const PostgresUpdateApplicationStatus$inboundSchema: z.ZodNativeEnum< - typeof PostgresUpdateApplicationStatus -> = z.nativeEnum(PostgresUpdateApplicationStatus); - /** @internal */ export const PostgresUpdateApplicationStatus$outboundSchema: z.ZodNativeEnum< typeof PostgresUpdateApplicationStatus -> = PostgresUpdateApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateApplicationStatus$ { - /** @deprecated use `PostgresUpdateApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateApplicationStatus$inboundSchema; - /** @deprecated use `PostgresUpdateApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateApplicationStatus$outboundSchema; -} - -/** @internal */ -export const PostgresUpdateHealthCheckSwarm$inboundSchema: z.ZodType< - PostgresUpdateHealthCheckSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Interval: z.number().optional(), - Retries: z.number().optional(), - StartPeriod: z.number().optional(), - Test: z.array(z.string()).optional(), - Timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Interval": "interval", - "Retries": "retries", - "StartPeriod": "startPeriod", - "Test": "test", - "Timeout": "timeout", - }); -}); +> = z.nativeEnum(PostgresUpdateApplicationStatus); /** @internal */ export type PostgresUpdateHealthCheckSwarm$Outbound = { @@ -205,19 +168,6 @@ export const PostgresUpdateHealthCheckSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateHealthCheckSwarm$ { - /** @deprecated use `PostgresUpdateHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateHealthCheckSwarm$inboundSchema; - /** @deprecated use `PostgresUpdateHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateHealthCheckSwarm$outboundSchema; - /** @deprecated use `PostgresUpdateHealthCheckSwarm$Outbound` instead. */ - export type Outbound = PostgresUpdateHealthCheckSwarm$Outbound; -} - export function postgresUpdateHealthCheckSwarmToJSON( postgresUpdateHealthCheckSwarm: PostgresUpdateHealthCheckSwarm, ): string { @@ -228,23 +178,6 @@ export function postgresUpdateHealthCheckSwarmToJSON( ); } -export function postgresUpdateHealthCheckSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateHealthCheckSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateHealthCheckSwarm' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateGlobal$inboundSchema: z.ZodType< - PostgresUpdateGlobal, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type PostgresUpdateGlobal$Outbound = {}; @@ -255,19 +188,6 @@ export const PostgresUpdateGlobal$outboundSchema: z.ZodType< PostgresUpdateGlobal > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateGlobal$ { - /** @deprecated use `PostgresUpdateGlobal$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateGlobal$inboundSchema; - /** @deprecated use `PostgresUpdateGlobal$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateGlobal$outboundSchema; - /** @deprecated use `PostgresUpdateGlobal$Outbound` instead. */ - export type Outbound = PostgresUpdateGlobal$Outbound; -} - export function postgresUpdateGlobalToJSON( postgresUpdateGlobal: PostgresUpdateGlobal, ): string { @@ -276,23 +196,6 @@ export function postgresUpdateGlobalToJSON( ); } -export function postgresUpdateGlobalFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateGlobal$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateGlobal' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateGlobalJob$inboundSchema: z.ZodType< - PostgresUpdateGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type PostgresUpdateGlobalJob$Outbound = {}; @@ -303,19 +206,6 @@ export const PostgresUpdateGlobalJob$outboundSchema: z.ZodType< PostgresUpdateGlobalJob > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateGlobalJob$ { - /** @deprecated use `PostgresUpdateGlobalJob$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateGlobalJob$inboundSchema; - /** @deprecated use `PostgresUpdateGlobalJob$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateGlobalJob$outboundSchema; - /** @deprecated use `PostgresUpdateGlobalJob$Outbound` instead. */ - export type Outbound = PostgresUpdateGlobalJob$Outbound; -} - export function postgresUpdateGlobalJobToJSON( postgresUpdateGlobalJob: PostgresUpdateGlobalJob, ): string { @@ -324,29 +214,6 @@ export function postgresUpdateGlobalJobToJSON( ); } -export function postgresUpdateGlobalJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateGlobalJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateGlobalJob' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateReplicated$inboundSchema: z.ZodType< - PostgresUpdateReplicated, - z.ZodTypeDef, - unknown -> = z.object({ - Replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Replicas": "replicas", - }); -}); - /** @internal */ export type PostgresUpdateReplicated$Outbound = { Replicas?: number | undefined; @@ -365,19 +232,6 @@ export const PostgresUpdateReplicated$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateReplicated$ { - /** @deprecated use `PostgresUpdateReplicated$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateReplicated$inboundSchema; - /** @deprecated use `PostgresUpdateReplicated$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateReplicated$outboundSchema; - /** @deprecated use `PostgresUpdateReplicated$Outbound` instead. */ - export type Outbound = PostgresUpdateReplicated$Outbound; -} - export function postgresUpdateReplicatedToJSON( postgresUpdateReplicated: PostgresUpdateReplicated, ): string { @@ -386,31 +240,6 @@ export function postgresUpdateReplicatedToJSON( ); } -export function postgresUpdateReplicatedFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateReplicated$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateReplicated' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateReplicatedJob$inboundSchema: z.ZodType< - PostgresUpdateReplicatedJob, - z.ZodTypeDef, - unknown -> = z.object({ - MaxConcurrent: z.number().optional(), - TotalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "MaxConcurrent": "maxConcurrent", - "TotalCompletions": "totalCompletions", - }); -}); - /** @internal */ export type PostgresUpdateReplicatedJob$Outbound = { MaxConcurrent?: number | undefined; @@ -432,19 +261,6 @@ export const PostgresUpdateReplicatedJob$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateReplicatedJob$ { - /** @deprecated use `PostgresUpdateReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateReplicatedJob$inboundSchema; - /** @deprecated use `PostgresUpdateReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateReplicatedJob$outboundSchema; - /** @deprecated use `PostgresUpdateReplicatedJob$Outbound` instead. */ - export type Outbound = PostgresUpdateReplicatedJob$Outbound; -} - export function postgresUpdateReplicatedJobToJSON( postgresUpdateReplicatedJob: PostgresUpdateReplicatedJob, ): string { @@ -455,36 +271,6 @@ export function postgresUpdateReplicatedJobToJSON( ); } -export function postgresUpdateReplicatedJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateReplicatedJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateReplicatedJob' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateModeSwarm$inboundSchema: z.ZodType< - PostgresUpdateModeSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Global: z.lazy(() => PostgresUpdateGlobal$inboundSchema).optional(), - GlobalJob: z.lazy(() => PostgresUpdateGlobalJob$inboundSchema).optional(), - Replicated: z.lazy(() => PostgresUpdateReplicated$inboundSchema).optional(), - ReplicatedJob: z.lazy(() => PostgresUpdateReplicatedJob$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "Global": "global", - "GlobalJob": "globalJob", - "Replicated": "replicated", - "ReplicatedJob": "replicatedJob", - }); -}); - /** @internal */ export type PostgresUpdateModeSwarm$Outbound = { Global?: PostgresUpdateGlobal$Outbound | undefined; @@ -513,19 +299,6 @@ export const PostgresUpdateModeSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateModeSwarm$ { - /** @deprecated use `PostgresUpdateModeSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateModeSwarm$inboundSchema; - /** @deprecated use `PostgresUpdateModeSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateModeSwarm$outboundSchema; - /** @deprecated use `PostgresUpdateModeSwarm$Outbound` instead. */ - export type Outbound = PostgresUpdateModeSwarm$Outbound; -} - export function postgresUpdateModeSwarmToJSON( postgresUpdateModeSwarm: PostgresUpdateModeSwarm, ): string { @@ -534,23 +307,6 @@ export function postgresUpdateModeSwarmToJSON( ); } -export function postgresUpdateModeSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateModeSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateModeSwarm' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateDriverOpts$inboundSchema: z.ZodType< - PostgresUpdateDriverOpts, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type PostgresUpdateDriverOpts$Outbound = {}; @@ -561,19 +317,6 @@ export const PostgresUpdateDriverOpts$outboundSchema: z.ZodType< PostgresUpdateDriverOpts > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateDriverOpts$ { - /** @deprecated use `PostgresUpdateDriverOpts$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateDriverOpts$inboundSchema; - /** @deprecated use `PostgresUpdateDriverOpts$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateDriverOpts$outboundSchema; - /** @deprecated use `PostgresUpdateDriverOpts$Outbound` instead. */ - export type Outbound = PostgresUpdateDriverOpts$Outbound; -} - export function postgresUpdateDriverOptsToJSON( postgresUpdateDriverOpts: PostgresUpdateDriverOpts, ): string { @@ -582,33 +325,6 @@ export function postgresUpdateDriverOptsToJSON( ); } -export function postgresUpdateDriverOptsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateDriverOpts$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateDriverOpts' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateNetworkSwarm$inboundSchema: z.ZodType< - PostgresUpdateNetworkSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Aliases: z.array(z.string()).optional(), - DriverOpts: z.lazy(() => PostgresUpdateDriverOpts$inboundSchema).optional(), - Target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Aliases": "aliases", - "DriverOpts": "driverOpts", - "Target": "target", - }); -}); - /** @internal */ export type PostgresUpdateNetworkSwarm$Outbound = { Aliases?: Array | undefined; @@ -633,19 +349,6 @@ export const PostgresUpdateNetworkSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateNetworkSwarm$ { - /** @deprecated use `PostgresUpdateNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateNetworkSwarm$inboundSchema; - /** @deprecated use `PostgresUpdateNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateNetworkSwarm$outboundSchema; - /** @deprecated use `PostgresUpdateNetworkSwarm$Outbound` instead. */ - export type Outbound = PostgresUpdateNetworkSwarm$Outbound; -} - export function postgresUpdateNetworkSwarmToJSON( postgresUpdateNetworkSwarm: PostgresUpdateNetworkSwarm, ): string { @@ -654,31 +357,6 @@ export function postgresUpdateNetworkSwarmToJSON( ); } -export function postgresUpdateNetworkSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateNetworkSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateNetworkSwarm' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdatePlatform$inboundSchema: z.ZodType< - PostgresUpdatePlatform, - z.ZodTypeDef, - unknown -> = z.object({ - Architecture: z.string(), - OS: z.string(), -}).transform((v) => { - return remap$(v, { - "Architecture": "architecture", - "OS": "os", - }); -}); - /** @internal */ export type PostgresUpdatePlatform$Outbound = { Architecture: string; @@ -700,19 +378,6 @@ export const PostgresUpdatePlatform$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdatePlatform$ { - /** @deprecated use `PostgresUpdatePlatform$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdatePlatform$inboundSchema; - /** @deprecated use `PostgresUpdatePlatform$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdatePlatform$outboundSchema; - /** @deprecated use `PostgresUpdatePlatform$Outbound` instead. */ - export type Outbound = PostgresUpdatePlatform$Outbound; -} - export function postgresUpdatePlatformToJSON( postgresUpdatePlatform: PostgresUpdatePlatform, ): string { @@ -721,29 +386,6 @@ export function postgresUpdatePlatformToJSON( ); } -export function postgresUpdatePlatformFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdatePlatform$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdatePlatform' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateSpread$inboundSchema: z.ZodType< - PostgresUpdateSpread, - z.ZodTypeDef, - unknown -> = z.object({ - SpreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - "SpreadDescriptor": "spreadDescriptor", - }); -}); - /** @internal */ export type PostgresUpdateSpread$Outbound = { SpreadDescriptor: string; @@ -762,19 +404,6 @@ export const PostgresUpdateSpread$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateSpread$ { - /** @deprecated use `PostgresUpdateSpread$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateSpread$inboundSchema; - /** @deprecated use `PostgresUpdateSpread$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateSpread$outboundSchema; - /** @deprecated use `PostgresUpdateSpread$Outbound` instead. */ - export type Outbound = PostgresUpdateSpread$Outbound; -} - export function postgresUpdateSpreadToJSON( postgresUpdateSpread: PostgresUpdateSpread, ): string { @@ -783,29 +412,6 @@ export function postgresUpdateSpreadToJSON( ); } -export function postgresUpdateSpreadFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateSpread$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateSpread' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdatePreference$inboundSchema: z.ZodType< - PostgresUpdatePreference, - z.ZodTypeDef, - unknown -> = z.object({ - Spread: z.lazy(() => PostgresUpdateSpread$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Spread": "spread", - }); -}); - /** @internal */ export type PostgresUpdatePreference$Outbound = { Spread: PostgresUpdateSpread$Outbound; @@ -824,19 +430,6 @@ export const PostgresUpdatePreference$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdatePreference$ { - /** @deprecated use `PostgresUpdatePreference$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdatePreference$inboundSchema; - /** @deprecated use `PostgresUpdatePreference$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdatePreference$outboundSchema; - /** @deprecated use `PostgresUpdatePreference$Outbound` instead. */ - export type Outbound = PostgresUpdatePreference$Outbound; -} - export function postgresUpdatePreferenceToJSON( postgresUpdatePreference: PostgresUpdatePreference, ): string { @@ -845,37 +438,6 @@ export function postgresUpdatePreferenceToJSON( ); } -export function postgresUpdatePreferenceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdatePreference$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdatePreference' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdatePlacementSwarm$inboundSchema: z.ZodType< - PostgresUpdatePlacementSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Constraints: z.array(z.string()).optional(), - MaxReplicas: z.number().optional(), - Platforms: z.array(z.lazy(() => PostgresUpdatePlatform$inboundSchema)) - .optional(), - Preferences: z.array(z.lazy(() => PostgresUpdatePreference$inboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - "Constraints": "constraints", - "MaxReplicas": "maxReplicas", - "Platforms": "platforms", - "Preferences": "preferences", - }); -}); - /** @internal */ export type PostgresUpdatePlacementSwarm$Outbound = { Constraints?: Array | undefined; @@ -905,19 +467,6 @@ export const PostgresUpdatePlacementSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdatePlacementSwarm$ { - /** @deprecated use `PostgresUpdatePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdatePlacementSwarm$inboundSchema; - /** @deprecated use `PostgresUpdatePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdatePlacementSwarm$outboundSchema; - /** @deprecated use `PostgresUpdatePlacementSwarm$Outbound` instead. */ - export type Outbound = PostgresUpdatePlacementSwarm$Outbound; -} - export function postgresUpdatePlacementSwarmToJSON( postgresUpdatePlacementSwarm: PostgresUpdatePlacementSwarm, ): string { @@ -928,35 +477,6 @@ export function postgresUpdatePlacementSwarmToJSON( ); } -export function postgresUpdatePlacementSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdatePlacementSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdatePlacementSwarm' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateRestartPolicySwarm$inboundSchema: z.ZodType< - PostgresUpdateRestartPolicySwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - /** @internal */ export type PostgresUpdateRestartPolicySwarm$Outbound = { Condition?: string | undefined; @@ -984,19 +504,6 @@ export const PostgresUpdateRestartPolicySwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateRestartPolicySwarm$ { - /** @deprecated use `PostgresUpdateRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateRestartPolicySwarm$inboundSchema; - /** @deprecated use `PostgresUpdateRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateRestartPolicySwarm$outboundSchema; - /** @deprecated use `PostgresUpdateRestartPolicySwarm$Outbound` instead. */ - export type Outbound = PostgresUpdateRestartPolicySwarm$Outbound; -} - export function postgresUpdateRestartPolicySwarmToJSON( postgresUpdateRestartPolicySwarm: PostgresUpdateRestartPolicySwarm, ): string { @@ -1007,39 +514,6 @@ export function postgresUpdateRestartPolicySwarmToJSON( ); } -export function postgresUpdateRestartPolicySwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateRestartPolicySwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateRestartPolicySwarm' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateRollbackConfigSwarm$inboundSchema: z.ZodType< - PostgresUpdateRollbackConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type PostgresUpdateRollbackConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1073,20 +547,6 @@ export const PostgresUpdateRollbackConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateRollbackConfigSwarm$ { - /** @deprecated use `PostgresUpdateRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateRollbackConfigSwarm$inboundSchema; - /** @deprecated use `PostgresUpdateRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - PostgresUpdateRollbackConfigSwarm$outboundSchema; - /** @deprecated use `PostgresUpdateRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresUpdateRollbackConfigSwarm$Outbound; -} - export function postgresUpdateRollbackConfigSwarmToJSON( postgresUpdateRollbackConfigSwarm: PostgresUpdateRollbackConfigSwarm, ): string { @@ -1097,39 +557,6 @@ export function postgresUpdateRollbackConfigSwarmToJSON( ); } -export function postgresUpdateRollbackConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateRollbackConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateRollbackConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateUpdateConfigSwarm$inboundSchema: z.ZodType< - PostgresUpdateUpdateConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type PostgresUpdateUpdateConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1163,19 +590,6 @@ export const PostgresUpdateUpdateConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateUpdateConfigSwarm$ { - /** @deprecated use `PostgresUpdateUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateUpdateConfigSwarm$inboundSchema; - /** @deprecated use `PostgresUpdateUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateUpdateConfigSwarm$outboundSchema; - /** @deprecated use `PostgresUpdateUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = PostgresUpdateUpdateConfigSwarm$Outbound; -} - export function postgresUpdateUpdateConfigSwarmToJSON( postgresUpdateUpdateConfigSwarm: PostgresUpdateUpdateConfigSwarm, ): string { @@ -1186,64 +600,6 @@ export function postgresUpdateUpdateConfigSwarmToJSON( ); } -export function postgresUpdateUpdateConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateUpdateConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateUpdateConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const PostgresUpdateRequest$inboundSchema: z.ZodType< - PostgresUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationStatus: PostgresUpdateApplicationStatus$inboundSchema.optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - databaseName: z.string().optional(), - databasePassword: z.string().optional(), - databaseUser: z.string().optional(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("postgres:15"), - env: z.nullable(z.string()).optional(), - environmentId: z.string().optional(), - externalPort: z.nullable(z.number()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => PostgresUpdateHealthCheckSwarm$inboundSchema), - ).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => PostgresUpdateModeSwarm$inboundSchema)) - .optional(), - name: z.string().optional(), - networkSwarm: z.nullable( - z.array(z.lazy(() => PostgresUpdateNetworkSwarm$inboundSchema)), - ).optional(), - placementSwarm: z.nullable( - z.lazy(() => PostgresUpdatePlacementSwarm$inboundSchema), - ).optional(), - postgresId: z.string(), - replicas: z.number().optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => PostgresUpdateRestartPolicySwarm$inboundSchema), - ).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => PostgresUpdateRollbackConfigSwarm$inboundSchema), - ).optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => PostgresUpdateUpdateConfigSwarm$inboundSchema), - ).optional(), -}); - /** @internal */ export type PostgresUpdateRequest$Outbound = { appName?: string | undefined; @@ -1332,19 +688,6 @@ export const PostgresUpdateRequest$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateRequest$ { - /** @deprecated use `PostgresUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateRequest$inboundSchema; - /** @deprecated use `PostgresUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateRequest$outboundSchema; - /** @deprecated use `PostgresUpdateRequest$Outbound` instead. */ - export type Outbound = PostgresUpdateRequest$Outbound; -} - export function postgresUpdateRequestToJSON( postgresUpdateRequest: PostgresUpdateRequest, ): string { @@ -1353,16 +696,6 @@ export function postgresUpdateRequestToJSON( ); } -export function postgresUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostgresUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostgresUpdateRequest' from JSON`, - ); -} - /** @internal */ export const PostgresUpdateResponse$inboundSchema: z.ZodType< PostgresUpdateResponse, @@ -1370,37 +703,6 @@ export const PostgresUpdateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type PostgresUpdateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const PostgresUpdateResponse$outboundSchema: z.ZodType< - PostgresUpdateResponse$Outbound, - z.ZodTypeDef, - PostgresUpdateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostgresUpdateResponse$ { - /** @deprecated use `PostgresUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = PostgresUpdateResponse$inboundSchema; - /** @deprecated use `PostgresUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = PostgresUpdateResponse$outboundSchema; - /** @deprecated use `PostgresUpdateResponse$Outbound` instead. */ - export type Outbound = PostgresUpdateResponse$Outbound; -} - -export function postgresUpdateResponseToJSON( - postgresUpdateResponse: PostgresUpdateResponse, -): string { - return JSON.stringify( - PostgresUpdateResponse$outboundSchema.parse(postgresUpdateResponse), - ); -} - export function postgresUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/previewdeploymentall.ts b/src/models/operations/previewdeploymentall.ts index fcb1827..9c34603 100644 --- a/src/models/operations/previewdeploymentall.ts +++ b/src/models/operations/previewdeploymentall.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,15 +43,6 @@ export type PreviewDeploymentAllResponse = | models.ErrorT | Array; -/** @internal */ -export const PreviewDeploymentAllRequest$inboundSchema: z.ZodType< - PreviewDeploymentAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), -}); - /** @internal */ export type PreviewDeploymentAllRequest$Outbound = { applicationId: string; @@ -66,19 +57,6 @@ export const PreviewDeploymentAllRequest$outboundSchema: z.ZodType< applicationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentAllRequest$ { - /** @deprecated use `PreviewDeploymentAllRequest$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentAllRequest$inboundSchema; - /** @deprecated use `PreviewDeploymentAllRequest$outboundSchema` instead. */ - export const outboundSchema = PreviewDeploymentAllRequest$outboundSchema; - /** @deprecated use `PreviewDeploymentAllRequest$Outbound` instead. */ - export type Outbound = PreviewDeploymentAllRequest$Outbound; -} - export function previewDeploymentAllRequestToJSON( previewDeploymentAllRequest: PreviewDeploymentAllRequest, ): string { @@ -89,38 +67,11 @@ export function previewDeploymentAllRequestToJSON( ); } -export function previewDeploymentAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PreviewDeploymentAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PreviewDeploymentAllRequest' from JSON`, - ); -} - /** @internal */ export const PreviewDeploymentAllPreviewStatus$inboundSchema: z.ZodNativeEnum< typeof PreviewDeploymentAllPreviewStatus > = z.nativeEnum(PreviewDeploymentAllPreviewStatus); -/** @internal */ -export const PreviewDeploymentAllPreviewStatus$outboundSchema: z.ZodNativeEnum< - typeof PreviewDeploymentAllPreviewStatus -> = PreviewDeploymentAllPreviewStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentAllPreviewStatus$ { - /** @deprecated use `PreviewDeploymentAllPreviewStatus$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentAllPreviewStatus$inboundSchema; - /** @deprecated use `PreviewDeploymentAllPreviewStatus$outboundSchema` instead. */ - export const outboundSchema = - PreviewDeploymentAllPreviewStatus$outboundSchema; -} - /** @internal */ export const PreviewDeploymentAllResponseBody$inboundSchema: z.ZodType< PreviewDeploymentAllResponseBody, @@ -142,67 +93,6 @@ export const PreviewDeploymentAllResponseBody$inboundSchema: z.ZodType< pullRequestURL: z.string(), }); -/** @internal */ -export type PreviewDeploymentAllResponseBody$Outbound = { - appName: string; - applicationId: string; - branch: string; - createdAt: string; - domainId: string | null; - expiresAt: string | null; - previewDeploymentId: string; - previewStatus: string; - pullRequestCommentId: string; - pullRequestId: string; - pullRequestNumber: string; - pullRequestTitle: string; - pullRequestURL: string; -}; - -/** @internal */ -export const PreviewDeploymentAllResponseBody$outboundSchema: z.ZodType< - PreviewDeploymentAllResponseBody$Outbound, - z.ZodTypeDef, - PreviewDeploymentAllResponseBody -> = z.object({ - appName: z.string(), - applicationId: z.string(), - branch: z.string(), - createdAt: z.string(), - domainId: z.nullable(z.string()), - expiresAt: z.nullable(z.string()), - previewDeploymentId: z.string(), - previewStatus: PreviewDeploymentAllPreviewStatus$outboundSchema, - pullRequestCommentId: z.string(), - pullRequestId: z.string(), - pullRequestNumber: z.string(), - pullRequestTitle: z.string(), - pullRequestURL: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentAllResponseBody$ { - /** @deprecated use `PreviewDeploymentAllResponseBody$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentAllResponseBody$inboundSchema; - /** @deprecated use `PreviewDeploymentAllResponseBody$outboundSchema` instead. */ - export const outboundSchema = PreviewDeploymentAllResponseBody$outboundSchema; - /** @deprecated use `PreviewDeploymentAllResponseBody$Outbound` instead. */ - export type Outbound = PreviewDeploymentAllResponseBody$Outbound; -} - -export function previewDeploymentAllResponseBodyToJSON( - previewDeploymentAllResponseBody: PreviewDeploymentAllResponseBody, -): string { - return JSON.stringify( - PreviewDeploymentAllResponseBody$outboundSchema.parse( - previewDeploymentAllResponseBody, - ), - ); -} - export function previewDeploymentAllResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -223,44 +113,6 @@ export const PreviewDeploymentAllResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => PreviewDeploymentAllResponseBody$inboundSchema)), ]); -/** @internal */ -export type PreviewDeploymentAllResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const PreviewDeploymentAllResponse$outboundSchema: z.ZodType< - PreviewDeploymentAllResponse$Outbound, - z.ZodTypeDef, - PreviewDeploymentAllResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => PreviewDeploymentAllResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentAllResponse$ { - /** @deprecated use `PreviewDeploymentAllResponse$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentAllResponse$inboundSchema; - /** @deprecated use `PreviewDeploymentAllResponse$outboundSchema` instead. */ - export const outboundSchema = PreviewDeploymentAllResponse$outboundSchema; - /** @deprecated use `PreviewDeploymentAllResponse$Outbound` instead. */ - export type Outbound = PreviewDeploymentAllResponse$Outbound; -} - -export function previewDeploymentAllResponseToJSON( - previewDeploymentAllResponse: PreviewDeploymentAllResponse, -): string { - return JSON.stringify( - PreviewDeploymentAllResponse$outboundSchema.parse( - previewDeploymentAllResponse, - ), - ); -} - export function previewDeploymentAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/previewdeploymentdelete.ts b/src/models/operations/previewdeploymentdelete.ts index 70629e9..c41620c 100644 --- a/src/models/operations/previewdeploymentdelete.ts +++ b/src/models/operations/previewdeploymentdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type PreviewDeploymentDeleteRequest = { export type PreviewDeploymentDeleteResponse = models.ErrorT | boolean; -/** @internal */ -export const PreviewDeploymentDeleteRequest$inboundSchema: z.ZodType< - PreviewDeploymentDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - previewDeploymentId: z.string(), -}); - /** @internal */ export type PreviewDeploymentDeleteRequest$Outbound = { previewDeploymentId: string; @@ -37,19 +28,6 @@ export const PreviewDeploymentDeleteRequest$outboundSchema: z.ZodType< previewDeploymentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentDeleteRequest$ { - /** @deprecated use `PreviewDeploymentDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentDeleteRequest$inboundSchema; - /** @deprecated use `PreviewDeploymentDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = PreviewDeploymentDeleteRequest$outboundSchema; - /** @deprecated use `PreviewDeploymentDeleteRequest$Outbound` instead. */ - export type Outbound = PreviewDeploymentDeleteRequest$Outbound; -} - export function previewDeploymentDeleteRequestToJSON( previewDeploymentDeleteRequest: PreviewDeploymentDeleteRequest, ): string { @@ -60,16 +38,6 @@ export function previewDeploymentDeleteRequestToJSON( ); } -export function previewDeploymentDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PreviewDeploymentDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PreviewDeploymentDeleteRequest' from JSON`, - ); -} - /** @internal */ export const PreviewDeploymentDeleteResponse$inboundSchema: z.ZodType< PreviewDeploymentDeleteResponse, @@ -77,41 +45,6 @@ export const PreviewDeploymentDeleteResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type PreviewDeploymentDeleteResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const PreviewDeploymentDeleteResponse$outboundSchema: z.ZodType< - PreviewDeploymentDeleteResponse$Outbound, - z.ZodTypeDef, - PreviewDeploymentDeleteResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentDeleteResponse$ { - /** @deprecated use `PreviewDeploymentDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentDeleteResponse$inboundSchema; - /** @deprecated use `PreviewDeploymentDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = PreviewDeploymentDeleteResponse$outboundSchema; - /** @deprecated use `PreviewDeploymentDeleteResponse$Outbound` instead. */ - export type Outbound = PreviewDeploymentDeleteResponse$Outbound; -} - -export function previewDeploymentDeleteResponseToJSON( - previewDeploymentDeleteResponse: PreviewDeploymentDeleteResponse, -): string { - return JSON.stringify( - PreviewDeploymentDeleteResponse$outboundSchema.parse( - previewDeploymentDeleteResponse, - ), - ); -} - export function previewDeploymentDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/previewdeploymentone.ts b/src/models/operations/previewdeploymentone.ts index 3c4a51e..f4d5aba 100644 --- a/src/models/operations/previewdeploymentone.ts +++ b/src/models/operations/previewdeploymentone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -46,15 +46,6 @@ export type PreviewDeploymentOneResponse = | PreviewDeploymentOneResponseBody | models.ErrorT; -/** @internal */ -export const PreviewDeploymentOneRequest$inboundSchema: z.ZodType< - PreviewDeploymentOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - previewDeploymentId: z.string(), -}); - /** @internal */ export type PreviewDeploymentOneRequest$Outbound = { previewDeploymentId: string; @@ -69,19 +60,6 @@ export const PreviewDeploymentOneRequest$outboundSchema: z.ZodType< previewDeploymentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentOneRequest$ { - /** @deprecated use `PreviewDeploymentOneRequest$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentOneRequest$inboundSchema; - /** @deprecated use `PreviewDeploymentOneRequest$outboundSchema` instead. */ - export const outboundSchema = PreviewDeploymentOneRequest$outboundSchema; - /** @deprecated use `PreviewDeploymentOneRequest$Outbound` instead. */ - export type Outbound = PreviewDeploymentOneRequest$Outbound; -} - export function previewDeploymentOneRequestToJSON( previewDeploymentOneRequest: PreviewDeploymentOneRequest, ): string { @@ -92,38 +70,11 @@ export function previewDeploymentOneRequestToJSON( ); } -export function previewDeploymentOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PreviewDeploymentOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PreviewDeploymentOneRequest' from JSON`, - ); -} - /** @internal */ export const PreviewDeploymentOnePreviewStatus$inboundSchema: z.ZodNativeEnum< typeof PreviewDeploymentOnePreviewStatus > = z.nativeEnum(PreviewDeploymentOnePreviewStatus); -/** @internal */ -export const PreviewDeploymentOnePreviewStatus$outboundSchema: z.ZodNativeEnum< - typeof PreviewDeploymentOnePreviewStatus -> = PreviewDeploymentOnePreviewStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentOnePreviewStatus$ { - /** @deprecated use `PreviewDeploymentOnePreviewStatus$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentOnePreviewStatus$inboundSchema; - /** @deprecated use `PreviewDeploymentOnePreviewStatus$outboundSchema` instead. */ - export const outboundSchema = - PreviewDeploymentOnePreviewStatus$outboundSchema; -} - /** @internal */ export const PreviewDeploymentOneResponseBody$inboundSchema: z.ZodType< PreviewDeploymentOneResponseBody, @@ -145,67 +96,6 @@ export const PreviewDeploymentOneResponseBody$inboundSchema: z.ZodType< pullRequestURL: z.string(), }); -/** @internal */ -export type PreviewDeploymentOneResponseBody$Outbound = { - appName: string; - applicationId: string; - branch: string; - createdAt: string; - domainId: string | null; - expiresAt: string | null; - previewDeploymentId: string; - previewStatus: string; - pullRequestCommentId: string; - pullRequestId: string; - pullRequestNumber: string; - pullRequestTitle: string; - pullRequestURL: string; -}; - -/** @internal */ -export const PreviewDeploymentOneResponseBody$outboundSchema: z.ZodType< - PreviewDeploymentOneResponseBody$Outbound, - z.ZodTypeDef, - PreviewDeploymentOneResponseBody -> = z.object({ - appName: z.string(), - applicationId: z.string(), - branch: z.string(), - createdAt: z.string(), - domainId: z.nullable(z.string()), - expiresAt: z.nullable(z.string()), - previewDeploymentId: z.string(), - previewStatus: PreviewDeploymentOnePreviewStatus$outboundSchema, - pullRequestCommentId: z.string(), - pullRequestId: z.string(), - pullRequestNumber: z.string(), - pullRequestTitle: z.string(), - pullRequestURL: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentOneResponseBody$ { - /** @deprecated use `PreviewDeploymentOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentOneResponseBody$inboundSchema; - /** @deprecated use `PreviewDeploymentOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = PreviewDeploymentOneResponseBody$outboundSchema; - /** @deprecated use `PreviewDeploymentOneResponseBody$Outbound` instead. */ - export type Outbound = PreviewDeploymentOneResponseBody$Outbound; -} - -export function previewDeploymentOneResponseBodyToJSON( - previewDeploymentOneResponseBody: PreviewDeploymentOneResponseBody, -): string { - return JSON.stringify( - PreviewDeploymentOneResponseBody$outboundSchema.parse( - previewDeploymentOneResponseBody, - ), - ); -} - export function previewDeploymentOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -226,44 +116,6 @@ export const PreviewDeploymentOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type PreviewDeploymentOneResponse$Outbound = - | PreviewDeploymentOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const PreviewDeploymentOneResponse$outboundSchema: z.ZodType< - PreviewDeploymentOneResponse$Outbound, - z.ZodTypeDef, - PreviewDeploymentOneResponse -> = z.union([ - z.lazy(() => PreviewDeploymentOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreviewDeploymentOneResponse$ { - /** @deprecated use `PreviewDeploymentOneResponse$inboundSchema` instead. */ - export const inboundSchema = PreviewDeploymentOneResponse$inboundSchema; - /** @deprecated use `PreviewDeploymentOneResponse$outboundSchema` instead. */ - export const outboundSchema = PreviewDeploymentOneResponse$outboundSchema; - /** @deprecated use `PreviewDeploymentOneResponse$Outbound` instead. */ - export type Outbound = PreviewDeploymentOneResponse$Outbound; -} - -export function previewDeploymentOneResponseToJSON( - previewDeploymentOneResponse: PreviewDeploymentOneResponse, -): string { - return JSON.stringify( - PreviewDeploymentOneResponse$outboundSchema.parse( - previewDeploymentOneResponse, - ), - ); -} - export function previewDeploymentOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/projectall.ts b/src/models/operations/projectall.ts index be57aa2..f7cecf4 100644 --- a/src/models/operations/projectall.ts +++ b/src/models/operations/projectall.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -57,65 +57,6 @@ export const ProjectAllEnvironment$inboundSchema: z.ZodType< redis: z.array(z.any()).optional(), }); -/** @internal */ -export type ProjectAllEnvironment$Outbound = { - applications?: Array | undefined; - compose?: Array | undefined; - createdAt: string; - description: string | null; - env: string; - environmentId: string; - mariadb?: Array | undefined; - mongo?: Array | undefined; - mysql?: Array | undefined; - name: string; - postgres?: Array | undefined; - projectId: string; - redis?: Array | undefined; -}; - -/** @internal */ -export const ProjectAllEnvironment$outboundSchema: z.ZodType< - ProjectAllEnvironment$Outbound, - z.ZodTypeDef, - ProjectAllEnvironment -> = z.object({ - applications: z.array(z.any()).optional(), - compose: z.array(z.any()).optional(), - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - mariadb: z.array(z.any()).optional(), - mongo: z.array(z.any()).optional(), - mysql: z.array(z.any()).optional(), - name: z.string(), - postgres: z.array(z.any()).optional(), - projectId: z.string(), - redis: z.array(z.any()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectAllEnvironment$ { - /** @deprecated use `ProjectAllEnvironment$inboundSchema` instead. */ - export const inboundSchema = ProjectAllEnvironment$inboundSchema; - /** @deprecated use `ProjectAllEnvironment$outboundSchema` instead. */ - export const outboundSchema = ProjectAllEnvironment$outboundSchema; - /** @deprecated use `ProjectAllEnvironment$Outbound` instead. */ - export type Outbound = ProjectAllEnvironment$Outbound; -} - -export function projectAllEnvironmentToJSON( - projectAllEnvironment: ProjectAllEnvironment, -): string { - return JSON.stringify( - ProjectAllEnvironment$outboundSchema.parse(projectAllEnvironment), - ); -} - export function projectAllEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -141,53 +82,6 @@ export const ProjectAllResponseBody$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ProjectAllResponseBody$Outbound = { - createdAt: string; - description: string | null; - env: string; - environments: Array; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ProjectAllResponseBody$outboundSchema: z.ZodType< - ProjectAllResponseBody$Outbound, - z.ZodTypeDef, - ProjectAllResponseBody -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environments: z.array(z.lazy(() => ProjectAllEnvironment$outboundSchema)), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectAllResponseBody$ { - /** @deprecated use `ProjectAllResponseBody$inboundSchema` instead. */ - export const inboundSchema = ProjectAllResponseBody$inboundSchema; - /** @deprecated use `ProjectAllResponseBody$outboundSchema` instead. */ - export const outboundSchema = ProjectAllResponseBody$outboundSchema; - /** @deprecated use `ProjectAllResponseBody$Outbound` instead. */ - export type Outbound = ProjectAllResponseBody$Outbound; -} - -export function projectAllResponseBodyToJSON( - projectAllResponseBody: ProjectAllResponseBody, -): string { - return JSON.stringify( - ProjectAllResponseBody$outboundSchema.parse(projectAllResponseBody), - ); -} - export function projectAllResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -208,42 +102,6 @@ export const ProjectAllResponse$inboundSchema: z.ZodType< z.array(z.lazy(() => ProjectAllResponseBody$inboundSchema)), ]); -/** @internal */ -export type ProjectAllResponse$Outbound = - | models.ErrorT$Outbound - | Array; - -/** @internal */ -export const ProjectAllResponse$outboundSchema: z.ZodType< - ProjectAllResponse$Outbound, - z.ZodTypeDef, - ProjectAllResponse -> = z.union([ - models.ErrorT$outboundSchema, - z.array(z.lazy(() => ProjectAllResponseBody$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectAllResponse$ { - /** @deprecated use `ProjectAllResponse$inboundSchema` instead. */ - export const inboundSchema = ProjectAllResponse$inboundSchema; - /** @deprecated use `ProjectAllResponse$outboundSchema` instead. */ - export const outboundSchema = ProjectAllResponse$outboundSchema; - /** @deprecated use `ProjectAllResponse$Outbound` instead. */ - export type Outbound = ProjectAllResponse$Outbound; -} - -export function projectAllResponseToJSON( - projectAllResponse: ProjectAllResponse, -): string { - return JSON.stringify( - ProjectAllResponse$outboundSchema.parse(projectAllResponse), - ); -} - export function projectAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/projectcreate.ts b/src/models/operations/projectcreate.ts index 6ca7119..527eabe 100644 --- a/src/models/operations/projectcreate.ts +++ b/src/models/operations/projectcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -42,17 +42,6 @@ export type ProjectCreateResponseBody = { export type ProjectCreateResponse = ProjectCreateResponseBody | models.ErrorT; -/** @internal */ -export const ProjectCreateRequest$inboundSchema: z.ZodType< - ProjectCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - env: z.string().optional(), - name: z.string(), -}); - /** @internal */ export type ProjectCreateRequest$Outbound = { description?: string | null | undefined; @@ -71,19 +60,6 @@ export const ProjectCreateRequest$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectCreateRequest$ { - /** @deprecated use `ProjectCreateRequest$inboundSchema` instead. */ - export const inboundSchema = ProjectCreateRequest$inboundSchema; - /** @deprecated use `ProjectCreateRequest$outboundSchema` instead. */ - export const outboundSchema = ProjectCreateRequest$outboundSchema; - /** @deprecated use `ProjectCreateRequest$Outbound` instead. */ - export type Outbound = ProjectCreateRequest$Outbound; -} - export function projectCreateRequestToJSON( projectCreateRequest: ProjectCreateRequest, ): string { @@ -92,16 +68,6 @@ export function projectCreateRequestToJSON( ); } -export function projectCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProjectCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectCreateRequest' from JSON`, - ); -} - /** @internal */ export const ProjectCreateEnvironment$inboundSchema: z.ZodType< ProjectCreateEnvironment, @@ -116,51 +82,6 @@ export const ProjectCreateEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ProjectCreateEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - projectId: string; -}; - -/** @internal */ -export const ProjectCreateEnvironment$outboundSchema: z.ZodType< - ProjectCreateEnvironment$Outbound, - z.ZodTypeDef, - ProjectCreateEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectCreateEnvironment$ { - /** @deprecated use `ProjectCreateEnvironment$inboundSchema` instead. */ - export const inboundSchema = ProjectCreateEnvironment$inboundSchema; - /** @deprecated use `ProjectCreateEnvironment$outboundSchema` instead. */ - export const outboundSchema = ProjectCreateEnvironment$outboundSchema; - /** @deprecated use `ProjectCreateEnvironment$Outbound` instead. */ - export type Outbound = ProjectCreateEnvironment$Outbound; -} - -export function projectCreateEnvironmentToJSON( - projectCreateEnvironment: ProjectCreateEnvironment, -): string { - return JSON.stringify( - ProjectCreateEnvironment$outboundSchema.parse(projectCreateEnvironment), - ); -} - export function projectCreateEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -185,51 +106,6 @@ export const ProjectCreateProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ProjectCreateProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ProjectCreateProject$outboundSchema: z.ZodType< - ProjectCreateProject$Outbound, - z.ZodTypeDef, - ProjectCreateProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectCreateProject$ { - /** @deprecated use `ProjectCreateProject$inboundSchema` instead. */ - export const inboundSchema = ProjectCreateProject$inboundSchema; - /** @deprecated use `ProjectCreateProject$outboundSchema` instead. */ - export const outboundSchema = ProjectCreateProject$outboundSchema; - /** @deprecated use `ProjectCreateProject$Outbound` instead. */ - export type Outbound = ProjectCreateProject$Outbound; -} - -export function projectCreateProjectToJSON( - projectCreateProject: ProjectCreateProject, -): string { - return JSON.stringify( - ProjectCreateProject$outboundSchema.parse(projectCreateProject), - ); -} - export function projectCreateProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -250,43 +126,6 @@ export const ProjectCreateResponseBody$inboundSchema: z.ZodType< project: z.lazy(() => ProjectCreateProject$inboundSchema), }); -/** @internal */ -export type ProjectCreateResponseBody$Outbound = { - environment: ProjectCreateEnvironment$Outbound; - project: ProjectCreateProject$Outbound; -}; - -/** @internal */ -export const ProjectCreateResponseBody$outboundSchema: z.ZodType< - ProjectCreateResponseBody$Outbound, - z.ZodTypeDef, - ProjectCreateResponseBody -> = z.object({ - environment: z.lazy(() => ProjectCreateEnvironment$outboundSchema), - project: z.lazy(() => ProjectCreateProject$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectCreateResponseBody$ { - /** @deprecated use `ProjectCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = ProjectCreateResponseBody$inboundSchema; - /** @deprecated use `ProjectCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = ProjectCreateResponseBody$outboundSchema; - /** @deprecated use `ProjectCreateResponseBody$Outbound` instead. */ - export type Outbound = ProjectCreateResponseBody$Outbound; -} - -export function projectCreateResponseBodyToJSON( - projectCreateResponseBody: ProjectCreateResponseBody, -): string { - return JSON.stringify( - ProjectCreateResponseBody$outboundSchema.parse(projectCreateResponseBody), - ); -} - export function projectCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -307,42 +146,6 @@ export const ProjectCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ProjectCreateResponse$Outbound = - | ProjectCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ProjectCreateResponse$outboundSchema: z.ZodType< - ProjectCreateResponse$Outbound, - z.ZodTypeDef, - ProjectCreateResponse -> = z.union([ - z.lazy(() => ProjectCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectCreateResponse$ { - /** @deprecated use `ProjectCreateResponse$inboundSchema` instead. */ - export const inboundSchema = ProjectCreateResponse$inboundSchema; - /** @deprecated use `ProjectCreateResponse$outboundSchema` instead. */ - export const outboundSchema = ProjectCreateResponse$outboundSchema; - /** @deprecated use `ProjectCreateResponse$Outbound` instead. */ - export type Outbound = ProjectCreateResponse$Outbound; -} - -export function projectCreateResponseToJSON( - projectCreateResponse: ProjectCreateResponse, -): string { - return JSON.stringify( - ProjectCreateResponse$outboundSchema.parse(projectCreateResponse), - ); -} - export function projectCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/projectduplicate.ts b/src/models/operations/projectduplicate.ts index 4137975..4885a4a 100644 --- a/src/models/operations/projectduplicate.ts +++ b/src/models/operations/projectduplicate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ProjectDuplicateType = { Application: "application", @@ -33,36 +30,10 @@ export type ProjectDuplicateRequest = { sourceEnvironmentId: string; }; -/** @internal */ -export const ProjectDuplicateType$inboundSchema: z.ZodNativeEnum< - typeof ProjectDuplicateType -> = z.nativeEnum(ProjectDuplicateType); - /** @internal */ export const ProjectDuplicateType$outboundSchema: z.ZodNativeEnum< typeof ProjectDuplicateType -> = ProjectDuplicateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectDuplicateType$ { - /** @deprecated use `ProjectDuplicateType$inboundSchema` instead. */ - export const inboundSchema = ProjectDuplicateType$inboundSchema; - /** @deprecated use `ProjectDuplicateType$outboundSchema` instead. */ - export const outboundSchema = ProjectDuplicateType$outboundSchema; -} - -/** @internal */ -export const SelectedService$inboundSchema: z.ZodType< - SelectedService, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - type: ProjectDuplicateType$inboundSchema, -}); +> = z.nativeEnum(ProjectDuplicateType); /** @internal */ export type SelectedService$Outbound = { @@ -80,50 +51,12 @@ export const SelectedService$outboundSchema: z.ZodType< type: ProjectDuplicateType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectedService$ { - /** @deprecated use `SelectedService$inboundSchema` instead. */ - export const inboundSchema = SelectedService$inboundSchema; - /** @deprecated use `SelectedService$outboundSchema` instead. */ - export const outboundSchema = SelectedService$outboundSchema; - /** @deprecated use `SelectedService$Outbound` instead. */ - export type Outbound = SelectedService$Outbound; -} - export function selectedServiceToJSON( selectedService: SelectedService, ): string { return JSON.stringify(SelectedService$outboundSchema.parse(selectedService)); } -export function selectedServiceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SelectedService$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SelectedService' from JSON`, - ); -} - -/** @internal */ -export const ProjectDuplicateRequest$inboundSchema: z.ZodType< - ProjectDuplicateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.string().optional(), - duplicateInSameProject: z.boolean().default(false), - includeServices: z.boolean().default(true), - name: z.string(), - selectedServices: z.array(z.lazy(() => SelectedService$inboundSchema)) - .optional(), - sourceEnvironmentId: z.string(), -}); - /** @internal */ export type ProjectDuplicateRequest$Outbound = { description?: string | undefined; @@ -149,19 +82,6 @@ export const ProjectDuplicateRequest$outboundSchema: z.ZodType< sourceEnvironmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectDuplicateRequest$ { - /** @deprecated use `ProjectDuplicateRequest$inboundSchema` instead. */ - export const inboundSchema = ProjectDuplicateRequest$inboundSchema; - /** @deprecated use `ProjectDuplicateRequest$outboundSchema` instead. */ - export const outboundSchema = ProjectDuplicateRequest$outboundSchema; - /** @deprecated use `ProjectDuplicateRequest$Outbound` instead. */ - export type Outbound = ProjectDuplicateRequest$Outbound; -} - export function projectDuplicateRequestToJSON( projectDuplicateRequest: ProjectDuplicateRequest, ): string { @@ -169,13 +89,3 @@ export function projectDuplicateRequestToJSON( ProjectDuplicateRequest$outboundSchema.parse(projectDuplicateRequest), ); } - -export function projectDuplicateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProjectDuplicateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectDuplicateRequest' from JSON`, - ); -} diff --git a/src/models/operations/projectone.ts b/src/models/operations/projectone.ts index 28951ad..f7a2a32 100644 --- a/src/models/operations/projectone.ts +++ b/src/models/operations/projectone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -43,15 +43,6 @@ export type ProjectOneResponseBody = { export type ProjectOneResponse = ProjectOneResponseBody | models.ErrorT; -/** @internal */ -export const ProjectOneRequest$inboundSchema: z.ZodType< - ProjectOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - projectId: z.string(), -}); - /** @internal */ export type ProjectOneRequest$Outbound = { projectId: string; @@ -66,19 +57,6 @@ export const ProjectOneRequest$outboundSchema: z.ZodType< projectId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectOneRequest$ { - /** @deprecated use `ProjectOneRequest$inboundSchema` instead. */ - export const inboundSchema = ProjectOneRequest$inboundSchema; - /** @deprecated use `ProjectOneRequest$outboundSchema` instead. */ - export const outboundSchema = ProjectOneRequest$outboundSchema; - /** @deprecated use `ProjectOneRequest$Outbound` instead. */ - export type Outbound = ProjectOneRequest$Outbound; -} - export function projectOneRequestToJSON( projectOneRequest: ProjectOneRequest, ): string { @@ -87,16 +65,6 @@ export function projectOneRequestToJSON( ); } -export function projectOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProjectOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectOneRequest' from JSON`, - ); -} - /** @internal */ export const ProjectOneEnvironment$inboundSchema: z.ZodType< ProjectOneEnvironment, @@ -118,65 +86,6 @@ export const ProjectOneEnvironment$inboundSchema: z.ZodType< redis: z.array(z.any()).optional(), }); -/** @internal */ -export type ProjectOneEnvironment$Outbound = { - applications?: Array | undefined; - compose?: Array | undefined; - createdAt: string; - description: string | null; - env: string; - environmentId: string; - mariadb?: Array | undefined; - mongo?: Array | undefined; - mysql?: Array | undefined; - name: string; - postgres?: Array | undefined; - projectId: string; - redis?: Array | undefined; -}; - -/** @internal */ -export const ProjectOneEnvironment$outboundSchema: z.ZodType< - ProjectOneEnvironment$Outbound, - z.ZodTypeDef, - ProjectOneEnvironment -> = z.object({ - applications: z.array(z.any()).optional(), - compose: z.array(z.any()).optional(), - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - mariadb: z.array(z.any()).optional(), - mongo: z.array(z.any()).optional(), - mysql: z.array(z.any()).optional(), - name: z.string(), - postgres: z.array(z.any()).optional(), - projectId: z.string(), - redis: z.array(z.any()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectOneEnvironment$ { - /** @deprecated use `ProjectOneEnvironment$inboundSchema` instead. */ - export const inboundSchema = ProjectOneEnvironment$inboundSchema; - /** @deprecated use `ProjectOneEnvironment$outboundSchema` instead. */ - export const outboundSchema = ProjectOneEnvironment$outboundSchema; - /** @deprecated use `ProjectOneEnvironment$Outbound` instead. */ - export type Outbound = ProjectOneEnvironment$Outbound; -} - -export function projectOneEnvironmentToJSON( - projectOneEnvironment: ProjectOneEnvironment, -): string { - return JSON.stringify( - ProjectOneEnvironment$outboundSchema.parse(projectOneEnvironment), - ); -} - export function projectOneEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -202,53 +111,6 @@ export const ProjectOneResponseBody$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ProjectOneResponseBody$Outbound = { - createdAt: string; - description: string | null; - env: string; - environments: Array; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ProjectOneResponseBody$outboundSchema: z.ZodType< - ProjectOneResponseBody$Outbound, - z.ZodTypeDef, - ProjectOneResponseBody -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environments: z.array(z.lazy(() => ProjectOneEnvironment$outboundSchema)), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectOneResponseBody$ { - /** @deprecated use `ProjectOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = ProjectOneResponseBody$inboundSchema; - /** @deprecated use `ProjectOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = ProjectOneResponseBody$outboundSchema; - /** @deprecated use `ProjectOneResponseBody$Outbound` instead. */ - export type Outbound = ProjectOneResponseBody$Outbound; -} - -export function projectOneResponseBodyToJSON( - projectOneResponseBody: ProjectOneResponseBody, -): string { - return JSON.stringify( - ProjectOneResponseBody$outboundSchema.parse(projectOneResponseBody), - ); -} - export function projectOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -269,42 +131,6 @@ export const ProjectOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ProjectOneResponse$Outbound = - | ProjectOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ProjectOneResponse$outboundSchema: z.ZodType< - ProjectOneResponse$Outbound, - z.ZodTypeDef, - ProjectOneResponse -> = z.union([ - z.lazy(() => ProjectOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectOneResponse$ { - /** @deprecated use `ProjectOneResponse$inboundSchema` instead. */ - export const inboundSchema = ProjectOneResponse$inboundSchema; - /** @deprecated use `ProjectOneResponse$outboundSchema` instead. */ - export const outboundSchema = ProjectOneResponse$outboundSchema; - /** @deprecated use `ProjectOneResponse$Outbound` instead. */ - export type Outbound = ProjectOneResponse$Outbound; -} - -export function projectOneResponseToJSON( - projectOneResponse: ProjectOneResponse, -): string { - return JSON.stringify( - ProjectOneResponse$outboundSchema.parse(projectOneResponse), - ); -} - export function projectOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/projectremove.ts b/src/models/operations/projectremove.ts index d76dd8c..75b401c 100644 --- a/src/models/operations/projectremove.ts +++ b/src/models/operations/projectremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -26,15 +26,6 @@ export type ProjectRemoveResponseBody = { export type ProjectRemoveResponse = ProjectRemoveResponseBody | models.ErrorT; -/** @internal */ -export const ProjectRemoveRequest$inboundSchema: z.ZodType< - ProjectRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - projectId: z.string(), -}); - /** @internal */ export type ProjectRemoveRequest$Outbound = { projectId: string; @@ -49,19 +40,6 @@ export const ProjectRemoveRequest$outboundSchema: z.ZodType< projectId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectRemoveRequest$ { - /** @deprecated use `ProjectRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = ProjectRemoveRequest$inboundSchema; - /** @deprecated use `ProjectRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = ProjectRemoveRequest$outboundSchema; - /** @deprecated use `ProjectRemoveRequest$Outbound` instead. */ - export type Outbound = ProjectRemoveRequest$Outbound; -} - export function projectRemoveRequestToJSON( projectRemoveRequest: ProjectRemoveRequest, ): string { @@ -70,16 +48,6 @@ export function projectRemoveRequestToJSON( ); } -export function projectRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProjectRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectRemoveRequest' from JSON`, - ); -} - /** @internal */ export const ProjectRemoveResponseBody$inboundSchema: z.ZodType< ProjectRemoveResponseBody, @@ -94,51 +62,6 @@ export const ProjectRemoveResponseBody$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ProjectRemoveResponseBody$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ProjectRemoveResponseBody$outboundSchema: z.ZodType< - ProjectRemoveResponseBody$Outbound, - z.ZodTypeDef, - ProjectRemoveResponseBody -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectRemoveResponseBody$ { - /** @deprecated use `ProjectRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = ProjectRemoveResponseBody$inboundSchema; - /** @deprecated use `ProjectRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = ProjectRemoveResponseBody$outboundSchema; - /** @deprecated use `ProjectRemoveResponseBody$Outbound` instead. */ - export type Outbound = ProjectRemoveResponseBody$Outbound; -} - -export function projectRemoveResponseBodyToJSON( - projectRemoveResponseBody: ProjectRemoveResponseBody, -): string { - return JSON.stringify( - ProjectRemoveResponseBody$outboundSchema.parse(projectRemoveResponseBody), - ); -} - export function projectRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -159,42 +82,6 @@ export const ProjectRemoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ProjectRemoveResponse$Outbound = - | ProjectRemoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ProjectRemoveResponse$outboundSchema: z.ZodType< - ProjectRemoveResponse$Outbound, - z.ZodTypeDef, - ProjectRemoveResponse -> = z.union([ - z.lazy(() => ProjectRemoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectRemoveResponse$ { - /** @deprecated use `ProjectRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = ProjectRemoveResponse$inboundSchema; - /** @deprecated use `ProjectRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = ProjectRemoveResponse$outboundSchema; - /** @deprecated use `ProjectRemoveResponse$Outbound` instead. */ - export type Outbound = ProjectRemoveResponse$Outbound; -} - -export function projectRemoveResponseToJSON( - projectRemoveResponse: ProjectRemoveResponse, -): string { - return JSON.stringify( - ProjectRemoveResponse$outboundSchema.parse(projectRemoveResponse), - ); -} - export function projectRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/projectupdate.ts b/src/models/operations/projectupdate.ts index 462a94e..c9b2bb6 100644 --- a/src/models/operations/projectupdate.ts +++ b/src/models/operations/projectupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -31,20 +31,6 @@ export type ProjectUpdateResponseBody = { export type ProjectUpdateResponse = ProjectUpdateResponseBody | models.ErrorT; -/** @internal */ -export const ProjectUpdateRequest$inboundSchema: z.ZodType< - ProjectUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - createdAt: z.string().optional(), - description: z.nullable(z.string()).optional(), - env: z.string().optional(), - name: z.string().optional(), - organizationId: z.string().optional(), - projectId: z.string(), -}); - /** @internal */ export type ProjectUpdateRequest$Outbound = { createdAt?: string | undefined; @@ -69,19 +55,6 @@ export const ProjectUpdateRequest$outboundSchema: z.ZodType< projectId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectUpdateRequest$ { - /** @deprecated use `ProjectUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = ProjectUpdateRequest$inboundSchema; - /** @deprecated use `ProjectUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = ProjectUpdateRequest$outboundSchema; - /** @deprecated use `ProjectUpdateRequest$Outbound` instead. */ - export type Outbound = ProjectUpdateRequest$Outbound; -} - export function projectUpdateRequestToJSON( projectUpdateRequest: ProjectUpdateRequest, ): string { @@ -90,16 +63,6 @@ export function projectUpdateRequestToJSON( ); } -export function projectUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProjectUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectUpdateRequest' from JSON`, - ); -} - /** @internal */ export const ProjectUpdateResponseBody$inboundSchema: z.ZodType< ProjectUpdateResponseBody, @@ -114,51 +77,6 @@ export const ProjectUpdateResponseBody$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type ProjectUpdateResponseBody$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const ProjectUpdateResponseBody$outboundSchema: z.ZodType< - ProjectUpdateResponseBody$Outbound, - z.ZodTypeDef, - ProjectUpdateResponseBody -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectUpdateResponseBody$ { - /** @deprecated use `ProjectUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = ProjectUpdateResponseBody$inboundSchema; - /** @deprecated use `ProjectUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = ProjectUpdateResponseBody$outboundSchema; - /** @deprecated use `ProjectUpdateResponseBody$Outbound` instead. */ - export type Outbound = ProjectUpdateResponseBody$Outbound; -} - -export function projectUpdateResponseBodyToJSON( - projectUpdateResponseBody: ProjectUpdateResponseBody, -): string { - return JSON.stringify( - ProjectUpdateResponseBody$outboundSchema.parse(projectUpdateResponseBody), - ); -} - export function projectUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -179,42 +97,6 @@ export const ProjectUpdateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type ProjectUpdateResponse$Outbound = - | ProjectUpdateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const ProjectUpdateResponse$outboundSchema: z.ZodType< - ProjectUpdateResponse$Outbound, - z.ZodTypeDef, - ProjectUpdateResponse -> = z.union([ - z.lazy(() => ProjectUpdateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectUpdateResponse$ { - /** @deprecated use `ProjectUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = ProjectUpdateResponse$inboundSchema; - /** @deprecated use `ProjectUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = ProjectUpdateResponse$outboundSchema; - /** @deprecated use `ProjectUpdateResponse$Outbound` instead. */ - export type Outbound = ProjectUpdateResponse$Outbound; -} - -export function projectUpdateResponseToJSON( - projectUpdateResponse: ProjectUpdateResponse, -): string { - return JSON.stringify( - ProjectUpdateResponse$outboundSchema.parse(projectUpdateResponse), - ); -} - export function projectUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redirectscreate.ts b/src/models/operations/redirectscreate.ts index 9035c0a..c6ef24d 100644 --- a/src/models/operations/redirectscreate.ts +++ b/src/models/operations/redirectscreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -32,18 +32,6 @@ export type RedirectsCreateResponse = | RedirectsCreateResponseBody | models.ErrorT; -/** @internal */ -export const RedirectsCreateRequest$inboundSchema: z.ZodType< - RedirectsCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - permanent: z.boolean(), - regex: z.string(), - replacement: z.string(), -}); - /** @internal */ export type RedirectsCreateRequest$Outbound = { applicationId: string; @@ -64,19 +52,6 @@ export const RedirectsCreateRequest$outboundSchema: z.ZodType< replacement: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsCreateRequest$ { - /** @deprecated use `RedirectsCreateRequest$inboundSchema` instead. */ - export const inboundSchema = RedirectsCreateRequest$inboundSchema; - /** @deprecated use `RedirectsCreateRequest$outboundSchema` instead. */ - export const outboundSchema = RedirectsCreateRequest$outboundSchema; - /** @deprecated use `RedirectsCreateRequest$Outbound` instead. */ - export type Outbound = RedirectsCreateRequest$Outbound; -} - export function redirectsCreateRequestToJSON( redirectsCreateRequest: RedirectsCreateRequest, ): string { @@ -85,16 +60,6 @@ export function redirectsCreateRequestToJSON( ); } -export function redirectsCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedirectsCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedirectsCreateRequest' from JSON`, - ); -} - /** @internal */ export const RedirectsCreateResponseBody$inboundSchema: z.ZodType< RedirectsCreateResponseBody, @@ -110,55 +75,6 @@ export const RedirectsCreateResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type RedirectsCreateResponseBody$Outbound = { - applicationId: string; - createdAt: string; - permanent: boolean; - redirectId: string; - regex: string; - replacement: string; - uniqueConfigKey: number; -}; - -/** @internal */ -export const RedirectsCreateResponseBody$outboundSchema: z.ZodType< - RedirectsCreateResponseBody$Outbound, - z.ZodTypeDef, - RedirectsCreateResponseBody -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsCreateResponseBody$ { - /** @deprecated use `RedirectsCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedirectsCreateResponseBody$inboundSchema; - /** @deprecated use `RedirectsCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedirectsCreateResponseBody$outboundSchema; - /** @deprecated use `RedirectsCreateResponseBody$Outbound` instead. */ - export type Outbound = RedirectsCreateResponseBody$Outbound; -} - -export function redirectsCreateResponseBodyToJSON( - redirectsCreateResponseBody: RedirectsCreateResponseBody, -): string { - return JSON.stringify( - RedirectsCreateResponseBody$outboundSchema.parse( - redirectsCreateResponseBody, - ), - ); -} - export function redirectsCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -179,42 +95,6 @@ export const RedirectsCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedirectsCreateResponse$Outbound = - | RedirectsCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedirectsCreateResponse$outboundSchema: z.ZodType< - RedirectsCreateResponse$Outbound, - z.ZodTypeDef, - RedirectsCreateResponse -> = z.union([ - z.lazy(() => RedirectsCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsCreateResponse$ { - /** @deprecated use `RedirectsCreateResponse$inboundSchema` instead. */ - export const inboundSchema = RedirectsCreateResponse$inboundSchema; - /** @deprecated use `RedirectsCreateResponse$outboundSchema` instead. */ - export const outboundSchema = RedirectsCreateResponse$outboundSchema; - /** @deprecated use `RedirectsCreateResponse$Outbound` instead. */ - export type Outbound = RedirectsCreateResponse$Outbound; -} - -export function redirectsCreateResponseToJSON( - redirectsCreateResponse: RedirectsCreateResponse, -): string { - return JSON.stringify( - RedirectsCreateResponse$outboundSchema.parse(redirectsCreateResponse), - ); -} - export function redirectsCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redirectsdelete.ts b/src/models/operations/redirectsdelete.ts index 26b3c13..57bfbb4 100644 --- a/src/models/operations/redirectsdelete.ts +++ b/src/models/operations/redirectsdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -29,15 +29,6 @@ export type RedirectsDeleteResponse = | RedirectsDeleteResponseBody | models.ErrorT; -/** @internal */ -export const RedirectsDeleteRequest$inboundSchema: z.ZodType< - RedirectsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redirectId: z.string(), -}); - /** @internal */ export type RedirectsDeleteRequest$Outbound = { redirectId: string; @@ -52,19 +43,6 @@ export const RedirectsDeleteRequest$outboundSchema: z.ZodType< redirectId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsDeleteRequest$ { - /** @deprecated use `RedirectsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = RedirectsDeleteRequest$inboundSchema; - /** @deprecated use `RedirectsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = RedirectsDeleteRequest$outboundSchema; - /** @deprecated use `RedirectsDeleteRequest$Outbound` instead. */ - export type Outbound = RedirectsDeleteRequest$Outbound; -} - export function redirectsDeleteRequestToJSON( redirectsDeleteRequest: RedirectsDeleteRequest, ): string { @@ -73,16 +51,6 @@ export function redirectsDeleteRequestToJSON( ); } -export function redirectsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedirectsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedirectsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const RedirectsDeleteResponseBody$inboundSchema: z.ZodType< RedirectsDeleteResponseBody, @@ -98,55 +66,6 @@ export const RedirectsDeleteResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type RedirectsDeleteResponseBody$Outbound = { - applicationId: string; - createdAt: string; - permanent: boolean; - redirectId: string; - regex: string; - replacement: string; - uniqueConfigKey: number; -}; - -/** @internal */ -export const RedirectsDeleteResponseBody$outboundSchema: z.ZodType< - RedirectsDeleteResponseBody$Outbound, - z.ZodTypeDef, - RedirectsDeleteResponseBody -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsDeleteResponseBody$ { - /** @deprecated use `RedirectsDeleteResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedirectsDeleteResponseBody$inboundSchema; - /** @deprecated use `RedirectsDeleteResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedirectsDeleteResponseBody$outboundSchema; - /** @deprecated use `RedirectsDeleteResponseBody$Outbound` instead. */ - export type Outbound = RedirectsDeleteResponseBody$Outbound; -} - -export function redirectsDeleteResponseBodyToJSON( - redirectsDeleteResponseBody: RedirectsDeleteResponseBody, -): string { - return JSON.stringify( - RedirectsDeleteResponseBody$outboundSchema.parse( - redirectsDeleteResponseBody, - ), - ); -} - export function redirectsDeleteResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -167,42 +86,6 @@ export const RedirectsDeleteResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedirectsDeleteResponse$Outbound = - | RedirectsDeleteResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedirectsDeleteResponse$outboundSchema: z.ZodType< - RedirectsDeleteResponse$Outbound, - z.ZodTypeDef, - RedirectsDeleteResponse -> = z.union([ - z.lazy(() => RedirectsDeleteResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsDeleteResponse$ { - /** @deprecated use `RedirectsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = RedirectsDeleteResponse$inboundSchema; - /** @deprecated use `RedirectsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = RedirectsDeleteResponse$outboundSchema; - /** @deprecated use `RedirectsDeleteResponse$Outbound` instead. */ - export type Outbound = RedirectsDeleteResponse$Outbound; -} - -export function redirectsDeleteResponseToJSON( - redirectsDeleteResponse: RedirectsDeleteResponse, -): string { - return JSON.stringify( - RedirectsDeleteResponse$outboundSchema.parse(redirectsDeleteResponse), - ); -} - export function redirectsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redirectsone.ts b/src/models/operations/redirectsone.ts index 0139491..595265b 100644 --- a/src/models/operations/redirectsone.ts +++ b/src/models/operations/redirectsone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -27,15 +27,6 @@ export type RedirectsOneResponseBody = { export type RedirectsOneResponse = RedirectsOneResponseBody | models.ErrorT; -/** @internal */ -export const RedirectsOneRequest$inboundSchema: z.ZodType< - RedirectsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redirectId: z.string(), -}); - /** @internal */ export type RedirectsOneRequest$Outbound = { redirectId: string; @@ -50,19 +41,6 @@ export const RedirectsOneRequest$outboundSchema: z.ZodType< redirectId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsOneRequest$ { - /** @deprecated use `RedirectsOneRequest$inboundSchema` instead. */ - export const inboundSchema = RedirectsOneRequest$inboundSchema; - /** @deprecated use `RedirectsOneRequest$outboundSchema` instead. */ - export const outboundSchema = RedirectsOneRequest$outboundSchema; - /** @deprecated use `RedirectsOneRequest$Outbound` instead. */ - export type Outbound = RedirectsOneRequest$Outbound; -} - export function redirectsOneRequestToJSON( redirectsOneRequest: RedirectsOneRequest, ): string { @@ -71,16 +49,6 @@ export function redirectsOneRequestToJSON( ); } -export function redirectsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedirectsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedirectsOneRequest' from JSON`, - ); -} - /** @internal */ export const RedirectsOneResponseBody$inboundSchema: z.ZodType< RedirectsOneResponseBody, @@ -96,53 +64,6 @@ export const RedirectsOneResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type RedirectsOneResponseBody$Outbound = { - applicationId: string; - createdAt: string; - permanent: boolean; - redirectId: string; - regex: string; - replacement: string; - uniqueConfigKey: number; -}; - -/** @internal */ -export const RedirectsOneResponseBody$outboundSchema: z.ZodType< - RedirectsOneResponseBody$Outbound, - z.ZodTypeDef, - RedirectsOneResponseBody -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsOneResponseBody$ { - /** @deprecated use `RedirectsOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedirectsOneResponseBody$inboundSchema; - /** @deprecated use `RedirectsOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedirectsOneResponseBody$outboundSchema; - /** @deprecated use `RedirectsOneResponseBody$Outbound` instead. */ - export type Outbound = RedirectsOneResponseBody$Outbound; -} - -export function redirectsOneResponseBodyToJSON( - redirectsOneResponseBody: RedirectsOneResponseBody, -): string { - return JSON.stringify( - RedirectsOneResponseBody$outboundSchema.parse(redirectsOneResponseBody), - ); -} - export function redirectsOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -163,42 +84,6 @@ export const RedirectsOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedirectsOneResponse$Outbound = - | RedirectsOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedirectsOneResponse$outboundSchema: z.ZodType< - RedirectsOneResponse$Outbound, - z.ZodTypeDef, - RedirectsOneResponse -> = z.union([ - z.lazy(() => RedirectsOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsOneResponse$ { - /** @deprecated use `RedirectsOneResponse$inboundSchema` instead. */ - export const inboundSchema = RedirectsOneResponse$inboundSchema; - /** @deprecated use `RedirectsOneResponse$outboundSchema` instead. */ - export const outboundSchema = RedirectsOneResponse$outboundSchema; - /** @deprecated use `RedirectsOneResponse$Outbound` instead. */ - export type Outbound = RedirectsOneResponse$Outbound; -} - -export function redirectsOneResponseToJSON( - redirectsOneResponse: RedirectsOneResponse, -): string { - return JSON.stringify( - RedirectsOneResponse$outboundSchema.parse(redirectsOneResponse), - ); -} - export function redirectsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redirectsupdate.ts b/src/models/operations/redirectsupdate.ts index 802528f..2929318 100644 --- a/src/models/operations/redirectsupdate.ts +++ b/src/models/operations/redirectsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -32,18 +32,6 @@ export type RedirectsUpdateResponse = | RedirectsUpdateResponseBody | models.ErrorT; -/** @internal */ -export const RedirectsUpdateRequest$inboundSchema: z.ZodType< - RedirectsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), -}); - /** @internal */ export type RedirectsUpdateRequest$Outbound = { permanent: boolean; @@ -64,19 +52,6 @@ export const RedirectsUpdateRequest$outboundSchema: z.ZodType< replacement: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsUpdateRequest$ { - /** @deprecated use `RedirectsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = RedirectsUpdateRequest$inboundSchema; - /** @deprecated use `RedirectsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = RedirectsUpdateRequest$outboundSchema; - /** @deprecated use `RedirectsUpdateRequest$Outbound` instead. */ - export type Outbound = RedirectsUpdateRequest$Outbound; -} - export function redirectsUpdateRequestToJSON( redirectsUpdateRequest: RedirectsUpdateRequest, ): string { @@ -85,16 +60,6 @@ export function redirectsUpdateRequestToJSON( ); } -export function redirectsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedirectsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedirectsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const RedirectsUpdateResponseBody$inboundSchema: z.ZodType< RedirectsUpdateResponseBody, @@ -110,55 +75,6 @@ export const RedirectsUpdateResponseBody$inboundSchema: z.ZodType< uniqueConfigKey: z.number(), }); -/** @internal */ -export type RedirectsUpdateResponseBody$Outbound = { - applicationId: string; - createdAt: string; - permanent: boolean; - redirectId: string; - regex: string; - replacement: string; - uniqueConfigKey: number; -}; - -/** @internal */ -export const RedirectsUpdateResponseBody$outboundSchema: z.ZodType< - RedirectsUpdateResponseBody$Outbound, - z.ZodTypeDef, - RedirectsUpdateResponseBody -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - permanent: z.boolean(), - redirectId: z.string(), - regex: z.string(), - replacement: z.string(), - uniqueConfigKey: z.number(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsUpdateResponseBody$ { - /** @deprecated use `RedirectsUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedirectsUpdateResponseBody$inboundSchema; - /** @deprecated use `RedirectsUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedirectsUpdateResponseBody$outboundSchema; - /** @deprecated use `RedirectsUpdateResponseBody$Outbound` instead. */ - export type Outbound = RedirectsUpdateResponseBody$Outbound; -} - -export function redirectsUpdateResponseBodyToJSON( - redirectsUpdateResponseBody: RedirectsUpdateResponseBody, -): string { - return JSON.stringify( - RedirectsUpdateResponseBody$outboundSchema.parse( - redirectsUpdateResponseBody, - ), - ); -} - export function redirectsUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -179,42 +95,6 @@ export const RedirectsUpdateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedirectsUpdateResponse$Outbound = - | RedirectsUpdateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedirectsUpdateResponse$outboundSchema: z.ZodType< - RedirectsUpdateResponse$Outbound, - z.ZodTypeDef, - RedirectsUpdateResponse -> = z.union([ - z.lazy(() => RedirectsUpdateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedirectsUpdateResponse$ { - /** @deprecated use `RedirectsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = RedirectsUpdateResponse$inboundSchema; - /** @deprecated use `RedirectsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = RedirectsUpdateResponse$outboundSchema; - /** @deprecated use `RedirectsUpdateResponse$Outbound` instead. */ - export type Outbound = RedirectsUpdateResponse$Outbound; -} - -export function redirectsUpdateResponseToJSON( - redirectsUpdateResponse: RedirectsUpdateResponse, -): string { - return JSON.stringify( - RedirectsUpdateResponse$outboundSchema.parse(redirectsUpdateResponse), - ); -} - export function redirectsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redischangestatus.ts b/src/models/operations/redischangestatus.ts index d379bf5..3000e46 100644 --- a/src/models/operations/redischangestatus.ts +++ b/src/models/operations/redischangestatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -265,38 +265,10 @@ export type RedisChangeStatusResponse = | models.ErrorT; /** @internal */ -export const RedisChangeStatusApplicationStatusRequest$inboundSchema: +export const RedisChangeStatusApplicationStatusRequest$outboundSchema: z.ZodNativeEnum = z .nativeEnum(RedisChangeStatusApplicationStatusRequest); -/** @internal */ -export const RedisChangeStatusApplicationStatusRequest$outboundSchema: - z.ZodNativeEnum = - RedisChangeStatusApplicationStatusRequest$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusApplicationStatusRequest$ { - /** @deprecated use `RedisChangeStatusApplicationStatusRequest$inboundSchema` instead. */ - export const inboundSchema = - RedisChangeStatusApplicationStatusRequest$inboundSchema; - /** @deprecated use `RedisChangeStatusApplicationStatusRequest$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusApplicationStatusRequest$outboundSchema; -} - -/** @internal */ -export const RedisChangeStatusRequest$inboundSchema: z.ZodType< - RedisChangeStatusRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationStatus: RedisChangeStatusApplicationStatusRequest$inboundSchema, - redisId: z.string(), -}); - /** @internal */ export type RedisChangeStatusRequest$Outbound = { applicationStatus: string; @@ -313,19 +285,6 @@ export const RedisChangeStatusRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusRequest$ { - /** @deprecated use `RedisChangeStatusRequest$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusRequest$inboundSchema; - /** @deprecated use `RedisChangeStatusRequest$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusRequest$outboundSchema; - /** @deprecated use `RedisChangeStatusRequest$Outbound` instead. */ - export type Outbound = RedisChangeStatusRequest$Outbound; -} - export function redisChangeStatusRequestToJSON( redisChangeStatusRequest: RedisChangeStatusRequest, ): string { @@ -334,39 +293,11 @@ export function redisChangeStatusRequestToJSON( ); } -export function redisChangeStatusRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisChangeStatusRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisChangeStatusRequest' from JSON`, - ); -} - /** @internal */ export const RedisChangeStatusApplicationStatusResponse$inboundSchema: z.ZodNativeEnum = z .nativeEnum(RedisChangeStatusApplicationStatusResponse); -/** @internal */ -export const RedisChangeStatusApplicationStatusResponse$outboundSchema: - z.ZodNativeEnum = - RedisChangeStatusApplicationStatusResponse$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusApplicationStatusResponse$ { - /** @deprecated use `RedisChangeStatusApplicationStatusResponse$inboundSchema` instead. */ - export const inboundSchema = - RedisChangeStatusApplicationStatusResponse$inboundSchema; - /** @deprecated use `RedisChangeStatusApplicationStatusResponse$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusApplicationStatusResponse$outboundSchema; -} - /** @internal */ export const RedisChangeStatusProject$inboundSchema: z.ZodType< RedisChangeStatusProject, @@ -381,51 +312,6 @@ export const RedisChangeStatusProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisChangeStatusProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const RedisChangeStatusProject$outboundSchema: z.ZodType< - RedisChangeStatusProject$Outbound, - z.ZodTypeDef, - RedisChangeStatusProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusProject$ { - /** @deprecated use `RedisChangeStatusProject$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusProject$inboundSchema; - /** @deprecated use `RedisChangeStatusProject$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusProject$outboundSchema; - /** @deprecated use `RedisChangeStatusProject$Outbound` instead. */ - export type Outbound = RedisChangeStatusProject$Outbound; -} - -export function redisChangeStatusProjectToJSON( - redisChangeStatusProject: RedisChangeStatusProject, -): string { - return JSON.stringify( - RedisChangeStatusProject$outboundSchema.parse(redisChangeStatusProject), - ); -} - export function redisChangeStatusProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -451,55 +337,6 @@ export const RedisChangeStatusEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisChangeStatusEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: RedisChangeStatusProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const RedisChangeStatusEnvironment$outboundSchema: z.ZodType< - RedisChangeStatusEnvironment$Outbound, - z.ZodTypeDef, - RedisChangeStatusEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => RedisChangeStatusProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusEnvironment$ { - /** @deprecated use `RedisChangeStatusEnvironment$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusEnvironment$inboundSchema; - /** @deprecated use `RedisChangeStatusEnvironment$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusEnvironment$outboundSchema; - /** @deprecated use `RedisChangeStatusEnvironment$Outbound` instead. */ - export type Outbound = RedisChangeStatusEnvironment$Outbound; -} - -export function redisChangeStatusEnvironmentToJSON( - redisChangeStatusEnvironment: RedisChangeStatusEnvironment, -): string { - return JSON.stringify( - RedisChangeStatusEnvironment$outboundSchema.parse( - redisChangeStatusEnvironment, - ), - ); -} - export function redisChangeStatusEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -531,60 +368,6 @@ export const RedisChangeStatusHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisChangeStatusHealthCheckSwarm$outboundSchema: z.ZodType< - RedisChangeStatusHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisChangeStatusHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusHealthCheckSwarm$ { - /** @deprecated use `RedisChangeStatusHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisChangeStatusHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisChangeStatusHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisChangeStatusHealthCheckSwarm$Outbound; -} - -export function redisChangeStatusHealthCheckSwarmToJSON( - redisChangeStatusHealthCheckSwarm: RedisChangeStatusHealthCheckSwarm, -): string { - return JSON.stringify( - RedisChangeStatusHealthCheckSwarm$outboundSchema.parse( - redisChangeStatusHealthCheckSwarm, - ), - ); -} - export function redisChangeStatusHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -602,37 +385,6 @@ export const RedisChangeStatusGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisChangeStatusGlobal$Outbound = {}; - -/** @internal */ -export const RedisChangeStatusGlobal$outboundSchema: z.ZodType< - RedisChangeStatusGlobal$Outbound, - z.ZodTypeDef, - RedisChangeStatusGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusGlobal$ { - /** @deprecated use `RedisChangeStatusGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusGlobal$inboundSchema; - /** @deprecated use `RedisChangeStatusGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusGlobal$outboundSchema; - /** @deprecated use `RedisChangeStatusGlobal$Outbound` instead. */ - export type Outbound = RedisChangeStatusGlobal$Outbound; -} - -export function redisChangeStatusGlobalToJSON( - redisChangeStatusGlobal: RedisChangeStatusGlobal, -): string { - return JSON.stringify( - RedisChangeStatusGlobal$outboundSchema.parse(redisChangeStatusGlobal), - ); -} - export function redisChangeStatusGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -650,37 +402,6 @@ export const RedisChangeStatusGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisChangeStatusGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisChangeStatusGlobalJob$outboundSchema: z.ZodType< - RedisChangeStatusGlobalJob$Outbound, - z.ZodTypeDef, - RedisChangeStatusGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusGlobalJob$ { - /** @deprecated use `RedisChangeStatusGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusGlobalJob$inboundSchema; - /** @deprecated use `RedisChangeStatusGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusGlobalJob$outboundSchema; - /** @deprecated use `RedisChangeStatusGlobalJob$Outbound` instead. */ - export type Outbound = RedisChangeStatusGlobalJob$Outbound; -} - -export function redisChangeStatusGlobalJobToJSON( - redisChangeStatusGlobalJob: RedisChangeStatusGlobalJob, -): string { - return JSON.stringify( - RedisChangeStatusGlobalJob$outboundSchema.parse(redisChangeStatusGlobalJob), - ); -} - export function redisChangeStatusGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -704,47 +425,6 @@ export const RedisChangeStatusReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisChangeStatusReplicated$outboundSchema: z.ZodType< - RedisChangeStatusReplicated$Outbound, - z.ZodTypeDef, - RedisChangeStatusReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusReplicated$ { - /** @deprecated use `RedisChangeStatusReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusReplicated$inboundSchema; - /** @deprecated use `RedisChangeStatusReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusReplicated$outboundSchema; - /** @deprecated use `RedisChangeStatusReplicated$Outbound` instead. */ - export type Outbound = RedisChangeStatusReplicated$Outbound; -} - -export function redisChangeStatusReplicatedToJSON( - redisChangeStatusReplicated: RedisChangeStatusReplicated, -): string { - return JSON.stringify( - RedisChangeStatusReplicated$outboundSchema.parse( - redisChangeStatusReplicated, - ), - ); -} - export function redisChangeStatusReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -770,50 +450,6 @@ export const RedisChangeStatusReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisChangeStatusReplicatedJob$outboundSchema: z.ZodType< - RedisChangeStatusReplicatedJob$Outbound, - z.ZodTypeDef, - RedisChangeStatusReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusReplicatedJob$ { - /** @deprecated use `RedisChangeStatusReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusReplicatedJob$inboundSchema; - /** @deprecated use `RedisChangeStatusReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusReplicatedJob$outboundSchema; - /** @deprecated use `RedisChangeStatusReplicatedJob$Outbound` instead. */ - export type Outbound = RedisChangeStatusReplicatedJob$Outbound; -} - -export function redisChangeStatusReplicatedJobToJSON( - redisChangeStatusReplicatedJob: RedisChangeStatusReplicatedJob, -): string { - return JSON.stringify( - RedisChangeStatusReplicatedJob$outboundSchema.parse( - redisChangeStatusReplicatedJob, - ), - ); -} - export function redisChangeStatusReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -845,56 +481,6 @@ export const RedisChangeStatusModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusModeSwarm$Outbound = { - Global?: RedisChangeStatusGlobal$Outbound | undefined; - GlobalJob?: RedisChangeStatusGlobalJob$Outbound | undefined; - Replicated?: RedisChangeStatusReplicated$Outbound | undefined; - ReplicatedJob?: RedisChangeStatusReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisChangeStatusModeSwarm$outboundSchema: z.ZodType< - RedisChangeStatusModeSwarm$Outbound, - z.ZodTypeDef, - RedisChangeStatusModeSwarm -> = z.object({ - global: z.lazy(() => RedisChangeStatusGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisChangeStatusGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => RedisChangeStatusReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => RedisChangeStatusReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusModeSwarm$ { - /** @deprecated use `RedisChangeStatusModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusModeSwarm$inboundSchema; - /** @deprecated use `RedisChangeStatusModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusModeSwarm$outboundSchema; - /** @deprecated use `RedisChangeStatusModeSwarm$Outbound` instead. */ - export type Outbound = RedisChangeStatusModeSwarm$Outbound; -} - -export function redisChangeStatusModeSwarmToJSON( - redisChangeStatusModeSwarm: RedisChangeStatusModeSwarm, -): string { - return JSON.stringify( - RedisChangeStatusModeSwarm$outboundSchema.parse(redisChangeStatusModeSwarm), - ); -} - export function redisChangeStatusModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -910,43 +496,11 @@ export const RedisChangeStatusServiceType$inboundSchema: z.ZodNativeEnum< typeof RedisChangeStatusServiceType > = z.nativeEnum(RedisChangeStatusServiceType); -/** @internal */ -export const RedisChangeStatusServiceType$outboundSchema: z.ZodNativeEnum< - typeof RedisChangeStatusServiceType -> = RedisChangeStatusServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusServiceType$ { - /** @deprecated use `RedisChangeStatusServiceType$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusServiceType$inboundSchema; - /** @deprecated use `RedisChangeStatusServiceType$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusServiceType$outboundSchema; -} - /** @internal */ export const RedisChangeStatusType$inboundSchema: z.ZodNativeEnum< typeof RedisChangeStatusType > = z.nativeEnum(RedisChangeStatusType); -/** @internal */ -export const RedisChangeStatusType$outboundSchema: z.ZodNativeEnum< - typeof RedisChangeStatusType -> = RedisChangeStatusType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusType$ { - /** @deprecated use `RedisChangeStatusType$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusType$inboundSchema; - /** @deprecated use `RedisChangeStatusType$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusType$outboundSchema; -} - /** @internal */ export const RedisChangeStatusMount$inboundSchema: z.ZodType< RedisChangeStatusMount, @@ -970,132 +524,36 @@ export const RedisChangeStatusMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); +export function redisChangeStatusMountFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RedisChangeStatusMount$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RedisChangeStatusMount' from JSON`, + ); +} + /** @internal */ -export type RedisChangeStatusMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; +export const RedisChangeStatusDriverOpts$inboundSchema: z.ZodType< + RedisChangeStatusDriverOpts, + z.ZodTypeDef, + unknown +> = z.object({}); + +export function redisChangeStatusDriverOptsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RedisChangeStatusDriverOpts$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RedisChangeStatusDriverOpts' from JSON`, + ); +} /** @internal */ -export const RedisChangeStatusMount$outboundSchema: z.ZodType< - RedisChangeStatusMount$Outbound, - z.ZodTypeDef, - RedisChangeStatusMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: RedisChangeStatusServiceType$outboundSchema, - type: RedisChangeStatusType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusMount$ { - /** @deprecated use `RedisChangeStatusMount$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusMount$inboundSchema; - /** @deprecated use `RedisChangeStatusMount$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusMount$outboundSchema; - /** @deprecated use `RedisChangeStatusMount$Outbound` instead. */ - export type Outbound = RedisChangeStatusMount$Outbound; -} - -export function redisChangeStatusMountToJSON( - redisChangeStatusMount: RedisChangeStatusMount, -): string { - return JSON.stringify( - RedisChangeStatusMount$outboundSchema.parse(redisChangeStatusMount), - ); -} - -export function redisChangeStatusMountFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisChangeStatusMount$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisChangeStatusMount' from JSON`, - ); -} - -/** @internal */ -export const RedisChangeStatusDriverOpts$inboundSchema: z.ZodType< - RedisChangeStatusDriverOpts, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type RedisChangeStatusDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisChangeStatusDriverOpts$outboundSchema: z.ZodType< - RedisChangeStatusDriverOpts$Outbound, - z.ZodTypeDef, - RedisChangeStatusDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusDriverOpts$ { - /** @deprecated use `RedisChangeStatusDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusDriverOpts$inboundSchema; - /** @deprecated use `RedisChangeStatusDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusDriverOpts$outboundSchema; - /** @deprecated use `RedisChangeStatusDriverOpts$Outbound` instead. */ - export type Outbound = RedisChangeStatusDriverOpts$Outbound; -} - -export function redisChangeStatusDriverOptsToJSON( - redisChangeStatusDriverOpts: RedisChangeStatusDriverOpts, -): string { - return JSON.stringify( - RedisChangeStatusDriverOpts$outboundSchema.parse( - redisChangeStatusDriverOpts, - ), - ); -} - -export function redisChangeStatusDriverOptsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisChangeStatusDriverOpts$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisChangeStatusDriverOpts' from JSON`, - ); -} - -/** @internal */ -export const RedisChangeStatusNetworkSwarm$inboundSchema: z.ZodType< - RedisChangeStatusNetworkSwarm, +export const RedisChangeStatusNetworkSwarm$inboundSchema: z.ZodType< + RedisChangeStatusNetworkSwarm, z.ZodTypeDef, unknown > = z.object({ @@ -1111,54 +569,6 @@ export const RedisChangeStatusNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisChangeStatusDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisChangeStatusNetworkSwarm$outboundSchema: z.ZodType< - RedisChangeStatusNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisChangeStatusNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisChangeStatusDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusNetworkSwarm$ { - /** @deprecated use `RedisChangeStatusNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusNetworkSwarm$inboundSchema; - /** @deprecated use `RedisChangeStatusNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusNetworkSwarm$outboundSchema; - /** @deprecated use `RedisChangeStatusNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisChangeStatusNetworkSwarm$Outbound; -} - -export function redisChangeStatusNetworkSwarmToJSON( - redisChangeStatusNetworkSwarm: RedisChangeStatusNetworkSwarm, -): string { - return JSON.stringify( - RedisChangeStatusNetworkSwarm$outboundSchema.parse( - redisChangeStatusNetworkSwarm, - ), - ); -} - export function redisChangeStatusNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1184,48 +594,6 @@ export const RedisChangeStatusPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisChangeStatusPlatform$outboundSchema: z.ZodType< - RedisChangeStatusPlatform$Outbound, - z.ZodTypeDef, - RedisChangeStatusPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusPlatform$ { - /** @deprecated use `RedisChangeStatusPlatform$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusPlatform$inboundSchema; - /** @deprecated use `RedisChangeStatusPlatform$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusPlatform$outboundSchema; - /** @deprecated use `RedisChangeStatusPlatform$Outbound` instead. */ - export type Outbound = RedisChangeStatusPlatform$Outbound; -} - -export function redisChangeStatusPlatformToJSON( - redisChangeStatusPlatform: RedisChangeStatusPlatform, -): string { - return JSON.stringify( - RedisChangeStatusPlatform$outboundSchema.parse(redisChangeStatusPlatform), - ); -} - export function redisChangeStatusPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1249,45 +617,6 @@ export const RedisChangeStatusSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisChangeStatusSpread$outboundSchema: z.ZodType< - RedisChangeStatusSpread$Outbound, - z.ZodTypeDef, - RedisChangeStatusSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusSpread$ { - /** @deprecated use `RedisChangeStatusSpread$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusSpread$inboundSchema; - /** @deprecated use `RedisChangeStatusSpread$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusSpread$outboundSchema; - /** @deprecated use `RedisChangeStatusSpread$Outbound` instead. */ - export type Outbound = RedisChangeStatusSpread$Outbound; -} - -export function redisChangeStatusSpreadToJSON( - redisChangeStatusSpread: RedisChangeStatusSpread, -): string { - return JSON.stringify( - RedisChangeStatusSpread$outboundSchema.parse(redisChangeStatusSpread), - ); -} - export function redisChangeStatusSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1311,47 +640,6 @@ export const RedisChangeStatusPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusPreference$Outbound = { - Spread: RedisChangeStatusSpread$Outbound; -}; - -/** @internal */ -export const RedisChangeStatusPreference$outboundSchema: z.ZodType< - RedisChangeStatusPreference$Outbound, - z.ZodTypeDef, - RedisChangeStatusPreference -> = z.object({ - spread: z.lazy(() => RedisChangeStatusSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusPreference$ { - /** @deprecated use `RedisChangeStatusPreference$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusPreference$inboundSchema; - /** @deprecated use `RedisChangeStatusPreference$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusPreference$outboundSchema; - /** @deprecated use `RedisChangeStatusPreference$Outbound` instead. */ - export type Outbound = RedisChangeStatusPreference$Outbound; -} - -export function redisChangeStatusPreferenceToJSON( - redisChangeStatusPreference: RedisChangeStatusPreference, -): string { - return JSON.stringify( - RedisChangeStatusPreference$outboundSchema.parse( - redisChangeStatusPreference, - ), - ); -} - export function redisChangeStatusPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1383,58 +671,6 @@ export const RedisChangeStatusPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisChangeStatusPlacementSwarm$outboundSchema: z.ZodType< - RedisChangeStatusPlacementSwarm$Outbound, - z.ZodTypeDef, - RedisChangeStatusPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisChangeStatusPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => RedisChangeStatusPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusPlacementSwarm$ { - /** @deprecated use `RedisChangeStatusPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusPlacementSwarm$inboundSchema; - /** @deprecated use `RedisChangeStatusPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusPlacementSwarm$outboundSchema; - /** @deprecated use `RedisChangeStatusPlacementSwarm$Outbound` instead. */ - export type Outbound = RedisChangeStatusPlacementSwarm$Outbound; -} - -export function redisChangeStatusPlacementSwarmToJSON( - redisChangeStatusPlacementSwarm: RedisChangeStatusPlacementSwarm, -): string { - return JSON.stringify( - RedisChangeStatusPlacementSwarm$outboundSchema.parse( - redisChangeStatusPlacementSwarm, - ), - ); -} - export function redisChangeStatusPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1464,58 +700,6 @@ export const RedisChangeStatusRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisChangeStatusRestartPolicySwarm$outboundSchema: z.ZodType< - RedisChangeStatusRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisChangeStatusRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusRestartPolicySwarm$ { - /** @deprecated use `RedisChangeStatusRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - RedisChangeStatusRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisChangeStatusRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisChangeStatusRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisChangeStatusRestartPolicySwarm$Outbound; -} - -export function redisChangeStatusRestartPolicySwarmToJSON( - redisChangeStatusRestartPolicySwarm: RedisChangeStatusRestartPolicySwarm, -): string { - return JSON.stringify( - RedisChangeStatusRestartPolicySwarm$outboundSchema.parse( - redisChangeStatusRestartPolicySwarm, - ), - ); -} - export function redisChangeStatusRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1550,64 +734,6 @@ export const RedisChangeStatusRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisChangeStatusRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisChangeStatusRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisChangeStatusRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusRollbackConfigSwarm$ { - /** @deprecated use `RedisChangeStatusRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - RedisChangeStatusRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisChangeStatusRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisChangeStatusRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisChangeStatusRollbackConfigSwarm$Outbound; -} - -export function redisChangeStatusRollbackConfigSwarmToJSON( - redisChangeStatusRollbackConfigSwarm: RedisChangeStatusRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisChangeStatusRollbackConfigSwarm$outboundSchema.parse( - redisChangeStatusRollbackConfigSwarm, - ), - ); -} - export function redisChangeStatusRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1624,23 +750,6 @@ export const RedisChangeStatusMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof RedisChangeStatusMetricsConfigEnum > = z.nativeEnum(RedisChangeStatusMetricsConfigEnum); -/** @internal */ -export const RedisChangeStatusMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof RedisChangeStatusMetricsConfigEnum -> = RedisChangeStatusMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusMetricsConfigEnum$ { - /** @deprecated use `RedisChangeStatusMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusMetricsConfigEnum$inboundSchema; - /** @deprecated use `RedisChangeStatusMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const RedisChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< RedisChangeStatusMetricsConfigUnion1, @@ -1653,50 +762,6 @@ export const RedisChangeStatusMetricsConfigUnion1$inboundSchema: z.ZodType< RedisChangeStatusMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type RedisChangeStatusMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const RedisChangeStatusMetricsConfigUnion1$outboundSchema: z.ZodType< - RedisChangeStatusMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - RedisChangeStatusMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - RedisChangeStatusMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusMetricsConfigUnion1$ { - /** @deprecated use `RedisChangeStatusMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - RedisChangeStatusMetricsConfigUnion1$inboundSchema; - /** @deprecated use `RedisChangeStatusMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusMetricsConfigUnion1$outboundSchema; - /** @deprecated use `RedisChangeStatusMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = RedisChangeStatusMetricsConfigUnion1$Outbound; -} - -export function redisChangeStatusMetricsConfigUnion1ToJSON( - redisChangeStatusMetricsConfigUnion1: RedisChangeStatusMetricsConfigUnion1, -): string { - return JSON.stringify( - RedisChangeStatusMetricsConfigUnion1$outboundSchema.parse( - redisChangeStatusMetricsConfigUnion1, - ), - ); -} - export function redisChangeStatusMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -1724,56 +789,6 @@ export const RedisChangeStatusMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type RedisChangeStatusMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const RedisChangeStatusMetricsConfigUnion2$outboundSchema: z.ZodType< - RedisChangeStatusMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - RedisChangeStatusMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusMetricsConfigUnion2$ { - /** @deprecated use `RedisChangeStatusMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - RedisChangeStatusMetricsConfigUnion2$inboundSchema; - /** @deprecated use `RedisChangeStatusMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusMetricsConfigUnion2$outboundSchema; - /** @deprecated use `RedisChangeStatusMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = RedisChangeStatusMetricsConfigUnion2$Outbound; -} - -export function redisChangeStatusMetricsConfigUnion2ToJSON( - redisChangeStatusMetricsConfigUnion2: RedisChangeStatusMetricsConfigUnion2, -): string { - return JSON.stringify( - RedisChangeStatusMetricsConfigUnion2$outboundSchema.parse( - redisChangeStatusMetricsConfigUnion2, - ), - ); -} - export function redisChangeStatusMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -1790,22 +805,6 @@ export const RedisChangeStatusServerStatus$inboundSchema: z.ZodNativeEnum< typeof RedisChangeStatusServerStatus > = z.nativeEnum(RedisChangeStatusServerStatus); -/** @internal */ -export const RedisChangeStatusServerStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisChangeStatusServerStatus -> = RedisChangeStatusServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusServerStatus$ { - /** @deprecated use `RedisChangeStatusServerStatus$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusServerStatus$inboundSchema; - /** @deprecated use `RedisChangeStatusServerStatus$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusServerStatus$outboundSchema; -} - /** @internal */ export const RedisChangeStatusServer$inboundSchema: z.ZodType< RedisChangeStatusServer, @@ -1837,78 +836,6 @@ export const RedisChangeStatusServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type RedisChangeStatusServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const RedisChangeStatusServer$outboundSchema: z.ZodType< - RedisChangeStatusServer$Outbound, - z.ZodTypeDef, - RedisChangeStatusServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisChangeStatusMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: RedisChangeStatusServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusServer$ { - /** @deprecated use `RedisChangeStatusServer$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusServer$inboundSchema; - /** @deprecated use `RedisChangeStatusServer$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusServer$outboundSchema; - /** @deprecated use `RedisChangeStatusServer$Outbound` instead. */ - export type Outbound = RedisChangeStatusServer$Outbound; -} - -export function redisChangeStatusServerToJSON( - redisChangeStatusServer: RedisChangeStatusServer, -): string { - return JSON.stringify( - RedisChangeStatusServer$outboundSchema.parse(redisChangeStatusServer), - ); -} - export function redisChangeStatusServerFromJSON( jsonString: string, ): SafeParseResult { @@ -1942,63 +869,6 @@ export const RedisChangeStatusUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisChangeStatusUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisChangeStatusUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisChangeStatusUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisChangeStatusUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusUpdateConfigSwarm$ { - /** @deprecated use `RedisChangeStatusUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisChangeStatusUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisChangeStatusUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisChangeStatusUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisChangeStatusUpdateConfigSwarm$Outbound; -} - -export function redisChangeStatusUpdateConfigSwarmToJSON( - redisChangeStatusUpdateConfigSwarm: RedisChangeStatusUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisChangeStatusUpdateConfigSwarm$outboundSchema.parse( - redisChangeStatusUpdateConfigSwarm, - ), - ); -} - export function redisChangeStatusUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2059,113 +929,6 @@ export const RedisChangeStatusResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisChangeStatusResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: RedisChangeStatusEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisChangeStatusHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisChangeStatusModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisChangeStatusPlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisChangeStatusRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisChangeStatusRollbackConfigSwarm$Outbound | null; - server: RedisChangeStatusServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisChangeStatusUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisChangeStatusResponseBody$outboundSchema: z.ZodType< - RedisChangeStatusResponseBody$Outbound, - z.ZodTypeDef, - RedisChangeStatusResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisChangeStatusApplicationStatusResponse$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => RedisChangeStatusEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisChangeStatusHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => RedisChangeStatusModeSwarm$outboundSchema), - ), - mounts: z.array(z.lazy(() => RedisChangeStatusMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisChangeStatusNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisChangeStatusPlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisChangeStatusRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisChangeStatusRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => RedisChangeStatusServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisChangeStatusUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusResponseBody$ { - /** @deprecated use `RedisChangeStatusResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusResponseBody$inboundSchema; - /** @deprecated use `RedisChangeStatusResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusResponseBody$outboundSchema; - /** @deprecated use `RedisChangeStatusResponseBody$Outbound` instead. */ - export type Outbound = RedisChangeStatusResponseBody$Outbound; -} - -export function redisChangeStatusResponseBodyToJSON( - redisChangeStatusResponseBody: RedisChangeStatusResponseBody, -): string { - return JSON.stringify( - RedisChangeStatusResponseBody$outboundSchema.parse( - redisChangeStatusResponseBody, - ), - ); -} - export function redisChangeStatusResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2186,42 +949,6 @@ export const RedisChangeStatusResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisChangeStatusResponse$Outbound = - | RedisChangeStatusResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisChangeStatusResponse$outboundSchema: z.ZodType< - RedisChangeStatusResponse$Outbound, - z.ZodTypeDef, - RedisChangeStatusResponse -> = z.union([ - z.lazy(() => RedisChangeStatusResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisChangeStatusResponse$ { - /** @deprecated use `RedisChangeStatusResponse$inboundSchema` instead. */ - export const inboundSchema = RedisChangeStatusResponse$inboundSchema; - /** @deprecated use `RedisChangeStatusResponse$outboundSchema` instead. */ - export const outboundSchema = RedisChangeStatusResponse$outboundSchema; - /** @deprecated use `RedisChangeStatusResponse$Outbound` instead. */ - export type Outbound = RedisChangeStatusResponse$Outbound; -} - -export function redisChangeStatusResponseToJSON( - redisChangeStatusResponse: RedisChangeStatusResponse, -): string { - return JSON.stringify( - RedisChangeStatusResponse$outboundSchema.parse(redisChangeStatusResponse), - ); -} - export function redisChangeStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/rediscreate.ts b/src/models/operations/rediscreate.ts index 77e813a..5f345f0 100644 --- a/src/models/operations/rediscreate.ts +++ b/src/models/operations/rediscreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -145,21 +145,6 @@ export type RedisCreateResponseBody = { export type RedisCreateResponse = RedisCreateResponseBody | models.ErrorT; -/** @internal */ -export const RedisCreateRequest$inboundSchema: z.ZodType< - RedisCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("redis:8"), - environmentId: z.string(), - name: z.string(), - serverId: z.nullable(z.string()).optional(), -}); - /** @internal */ export type RedisCreateRequest$Outbound = { appName: string; @@ -186,19 +171,6 @@ export const RedisCreateRequest$outboundSchema: z.ZodType< serverId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateRequest$ { - /** @deprecated use `RedisCreateRequest$inboundSchema` instead. */ - export const inboundSchema = RedisCreateRequest$inboundSchema; - /** @deprecated use `RedisCreateRequest$outboundSchema` instead. */ - export const outboundSchema = RedisCreateRequest$outboundSchema; - /** @deprecated use `RedisCreateRequest$Outbound` instead. */ - export type Outbound = RedisCreateRequest$Outbound; -} - export function redisCreateRequestToJSON( redisCreateRequest: RedisCreateRequest, ): string { @@ -207,37 +179,11 @@ export function redisCreateRequestToJSON( ); } -export function redisCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisCreateRequest' from JSON`, - ); -} - /** @internal */ export const RedisCreateApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof RedisCreateApplicationStatus > = z.nativeEnum(RedisCreateApplicationStatus); -/** @internal */ -export const RedisCreateApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisCreateApplicationStatus -> = RedisCreateApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateApplicationStatus$ { - /** @deprecated use `RedisCreateApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = RedisCreateApplicationStatus$inboundSchema; - /** @deprecated use `RedisCreateApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = RedisCreateApplicationStatus$outboundSchema; -} - /** @internal */ export const RedisCreateHealthCheckSwarm$inboundSchema: z.ZodType< RedisCreateHealthCheckSwarm, @@ -259,59 +205,6 @@ export const RedisCreateHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisCreateHealthCheckSwarm$outboundSchema: z.ZodType< - RedisCreateHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisCreateHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateHealthCheckSwarm$ { - /** @deprecated use `RedisCreateHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisCreateHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisCreateHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisCreateHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisCreateHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisCreateHealthCheckSwarm$Outbound; -} - -export function redisCreateHealthCheckSwarmToJSON( - redisCreateHealthCheckSwarm: RedisCreateHealthCheckSwarm, -): string { - return JSON.stringify( - RedisCreateHealthCheckSwarm$outboundSchema.parse( - redisCreateHealthCheckSwarm, - ), - ); -} - export function redisCreateHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -329,37 +222,6 @@ export const RedisCreateGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisCreateGlobal$Outbound = {}; - -/** @internal */ -export const RedisCreateGlobal$outboundSchema: z.ZodType< - RedisCreateGlobal$Outbound, - z.ZodTypeDef, - RedisCreateGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateGlobal$ { - /** @deprecated use `RedisCreateGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisCreateGlobal$inboundSchema; - /** @deprecated use `RedisCreateGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisCreateGlobal$outboundSchema; - /** @deprecated use `RedisCreateGlobal$Outbound` instead. */ - export type Outbound = RedisCreateGlobal$Outbound; -} - -export function redisCreateGlobalToJSON( - redisCreateGlobal: RedisCreateGlobal, -): string { - return JSON.stringify( - RedisCreateGlobal$outboundSchema.parse(redisCreateGlobal), - ); -} - export function redisCreateGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -377,37 +239,6 @@ export const RedisCreateGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisCreateGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisCreateGlobalJob$outboundSchema: z.ZodType< - RedisCreateGlobalJob$Outbound, - z.ZodTypeDef, - RedisCreateGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateGlobalJob$ { - /** @deprecated use `RedisCreateGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisCreateGlobalJob$inboundSchema; - /** @deprecated use `RedisCreateGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisCreateGlobalJob$outboundSchema; - /** @deprecated use `RedisCreateGlobalJob$Outbound` instead. */ - export type Outbound = RedisCreateGlobalJob$Outbound; -} - -export function redisCreateGlobalJobToJSON( - redisCreateGlobalJob: RedisCreateGlobalJob, -): string { - return JSON.stringify( - RedisCreateGlobalJob$outboundSchema.parse(redisCreateGlobalJob), - ); -} - export function redisCreateGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -431,45 +262,6 @@ export const RedisCreateReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisCreateReplicated$outboundSchema: z.ZodType< - RedisCreateReplicated$Outbound, - z.ZodTypeDef, - RedisCreateReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateReplicated$ { - /** @deprecated use `RedisCreateReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisCreateReplicated$inboundSchema; - /** @deprecated use `RedisCreateReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisCreateReplicated$outboundSchema; - /** @deprecated use `RedisCreateReplicated$Outbound` instead. */ - export type Outbound = RedisCreateReplicated$Outbound; -} - -export function redisCreateReplicatedToJSON( - redisCreateReplicated: RedisCreateReplicated, -): string { - return JSON.stringify( - RedisCreateReplicated$outboundSchema.parse(redisCreateReplicated), - ); -} - export function redisCreateReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -495,48 +287,6 @@ export const RedisCreateReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisCreateReplicatedJob$outboundSchema: z.ZodType< - RedisCreateReplicatedJob$Outbound, - z.ZodTypeDef, - RedisCreateReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateReplicatedJob$ { - /** @deprecated use `RedisCreateReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisCreateReplicatedJob$inboundSchema; - /** @deprecated use `RedisCreateReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisCreateReplicatedJob$outboundSchema; - /** @deprecated use `RedisCreateReplicatedJob$Outbound` instead. */ - export type Outbound = RedisCreateReplicatedJob$Outbound; -} - -export function redisCreateReplicatedJobToJSON( - redisCreateReplicatedJob: RedisCreateReplicatedJob, -): string { - return JSON.stringify( - RedisCreateReplicatedJob$outboundSchema.parse(redisCreateReplicatedJob), - ); -} - export function redisCreateReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -567,55 +317,6 @@ export const RedisCreateModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateModeSwarm$Outbound = { - Global?: RedisCreateGlobal$Outbound | undefined; - GlobalJob?: RedisCreateGlobalJob$Outbound | undefined; - Replicated?: RedisCreateReplicated$Outbound | undefined; - ReplicatedJob?: RedisCreateReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisCreateModeSwarm$outboundSchema: z.ZodType< - RedisCreateModeSwarm$Outbound, - z.ZodTypeDef, - RedisCreateModeSwarm -> = z.object({ - global: z.lazy(() => RedisCreateGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisCreateGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => RedisCreateReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => RedisCreateReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateModeSwarm$ { - /** @deprecated use `RedisCreateModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisCreateModeSwarm$inboundSchema; - /** @deprecated use `RedisCreateModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisCreateModeSwarm$outboundSchema; - /** @deprecated use `RedisCreateModeSwarm$Outbound` instead. */ - export type Outbound = RedisCreateModeSwarm$Outbound; -} - -export function redisCreateModeSwarmToJSON( - redisCreateModeSwarm: RedisCreateModeSwarm, -): string { - return JSON.stringify( - RedisCreateModeSwarm$outboundSchema.parse(redisCreateModeSwarm), - ); -} - export function redisCreateModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -633,37 +334,6 @@ export const RedisCreateDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisCreateDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisCreateDriverOpts$outboundSchema: z.ZodType< - RedisCreateDriverOpts$Outbound, - z.ZodTypeDef, - RedisCreateDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateDriverOpts$ { - /** @deprecated use `RedisCreateDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisCreateDriverOpts$inboundSchema; - /** @deprecated use `RedisCreateDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisCreateDriverOpts$outboundSchema; - /** @deprecated use `RedisCreateDriverOpts$Outbound` instead. */ - export type Outbound = RedisCreateDriverOpts$Outbound; -} - -export function redisCreateDriverOptsToJSON( - redisCreateDriverOpts: RedisCreateDriverOpts, -): string { - return JSON.stringify( - RedisCreateDriverOpts$outboundSchema.parse(redisCreateDriverOpts), - ); -} - export function redisCreateDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -691,51 +361,6 @@ export const RedisCreateNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisCreateDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisCreateNetworkSwarm$outboundSchema: z.ZodType< - RedisCreateNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisCreateNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisCreateDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateNetworkSwarm$ { - /** @deprecated use `RedisCreateNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisCreateNetworkSwarm$inboundSchema; - /** @deprecated use `RedisCreateNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisCreateNetworkSwarm$outboundSchema; - /** @deprecated use `RedisCreateNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisCreateNetworkSwarm$Outbound; -} - -export function redisCreateNetworkSwarmToJSON( - redisCreateNetworkSwarm: RedisCreateNetworkSwarm, -): string { - return JSON.stringify( - RedisCreateNetworkSwarm$outboundSchema.parse(redisCreateNetworkSwarm), - ); -} - export function redisCreateNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -761,48 +386,6 @@ export const RedisCreatePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreatePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisCreatePlatform$outboundSchema: z.ZodType< - RedisCreatePlatform$Outbound, - z.ZodTypeDef, - RedisCreatePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreatePlatform$ { - /** @deprecated use `RedisCreatePlatform$inboundSchema` instead. */ - export const inboundSchema = RedisCreatePlatform$inboundSchema; - /** @deprecated use `RedisCreatePlatform$outboundSchema` instead. */ - export const outboundSchema = RedisCreatePlatform$outboundSchema; - /** @deprecated use `RedisCreatePlatform$Outbound` instead. */ - export type Outbound = RedisCreatePlatform$Outbound; -} - -export function redisCreatePlatformToJSON( - redisCreatePlatform: RedisCreatePlatform, -): string { - return JSON.stringify( - RedisCreatePlatform$outboundSchema.parse(redisCreatePlatform), - ); -} - export function redisCreatePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -826,45 +409,6 @@ export const RedisCreateSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisCreateSpread$outboundSchema: z.ZodType< - RedisCreateSpread$Outbound, - z.ZodTypeDef, - RedisCreateSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateSpread$ { - /** @deprecated use `RedisCreateSpread$inboundSchema` instead. */ - export const inboundSchema = RedisCreateSpread$inboundSchema; - /** @deprecated use `RedisCreateSpread$outboundSchema` instead. */ - export const outboundSchema = RedisCreateSpread$outboundSchema; - /** @deprecated use `RedisCreateSpread$Outbound` instead. */ - export type Outbound = RedisCreateSpread$Outbound; -} - -export function redisCreateSpreadToJSON( - redisCreateSpread: RedisCreateSpread, -): string { - return JSON.stringify( - RedisCreateSpread$outboundSchema.parse(redisCreateSpread), - ); -} - export function redisCreateSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -888,45 +432,6 @@ export const RedisCreatePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreatePreference$Outbound = { - Spread: RedisCreateSpread$Outbound; -}; - -/** @internal */ -export const RedisCreatePreference$outboundSchema: z.ZodType< - RedisCreatePreference$Outbound, - z.ZodTypeDef, - RedisCreatePreference -> = z.object({ - spread: z.lazy(() => RedisCreateSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreatePreference$ { - /** @deprecated use `RedisCreatePreference$inboundSchema` instead. */ - export const inboundSchema = RedisCreatePreference$inboundSchema; - /** @deprecated use `RedisCreatePreference$outboundSchema` instead. */ - export const outboundSchema = RedisCreatePreference$outboundSchema; - /** @deprecated use `RedisCreatePreference$Outbound` instead. */ - export type Outbound = RedisCreatePreference$Outbound; -} - -export function redisCreatePreferenceToJSON( - redisCreatePreference: RedisCreatePreference, -): string { - return JSON.stringify( - RedisCreatePreference$outboundSchema.parse(redisCreatePreference), - ); -} - export function redisCreatePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -958,56 +463,6 @@ export const RedisCreatePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreatePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisCreatePlacementSwarm$outboundSchema: z.ZodType< - RedisCreatePlacementSwarm$Outbound, - z.ZodTypeDef, - RedisCreatePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisCreatePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => RedisCreatePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreatePlacementSwarm$ { - /** @deprecated use `RedisCreatePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisCreatePlacementSwarm$inboundSchema; - /** @deprecated use `RedisCreatePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisCreatePlacementSwarm$outboundSchema; - /** @deprecated use `RedisCreatePlacementSwarm$Outbound` instead. */ - export type Outbound = RedisCreatePlacementSwarm$Outbound; -} - -export function redisCreatePlacementSwarmToJSON( - redisCreatePlacementSwarm: RedisCreatePlacementSwarm, -): string { - return JSON.stringify( - RedisCreatePlacementSwarm$outboundSchema.parse(redisCreatePlacementSwarm), - ); -} - export function redisCreatePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1037,56 +492,6 @@ export const RedisCreateRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisCreateRestartPolicySwarm$outboundSchema: z.ZodType< - RedisCreateRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisCreateRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateRestartPolicySwarm$ { - /** @deprecated use `RedisCreateRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = RedisCreateRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisCreateRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = RedisCreateRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisCreateRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisCreateRestartPolicySwarm$Outbound; -} - -export function redisCreateRestartPolicySwarmToJSON( - redisCreateRestartPolicySwarm: RedisCreateRestartPolicySwarm, -): string { - return JSON.stringify( - RedisCreateRestartPolicySwarm$outboundSchema.parse( - redisCreateRestartPolicySwarm, - ), - ); -} - export function redisCreateRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1120,62 +525,6 @@ export const RedisCreateRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisCreateRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisCreateRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisCreateRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateRollbackConfigSwarm$ { - /** @deprecated use `RedisCreateRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisCreateRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisCreateRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisCreateRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisCreateRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisCreateRollbackConfigSwarm$Outbound; -} - -export function redisCreateRollbackConfigSwarmToJSON( - redisCreateRollbackConfigSwarm: RedisCreateRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisCreateRollbackConfigSwarm$outboundSchema.parse( - redisCreateRollbackConfigSwarm, - ), - ); -} - export function redisCreateRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1209,62 +558,6 @@ export const RedisCreateUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisCreateUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisCreateUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisCreateUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisCreateUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateUpdateConfigSwarm$ { - /** @deprecated use `RedisCreateUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisCreateUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisCreateUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisCreateUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisCreateUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisCreateUpdateConfigSwarm$Outbound; -} - -export function redisCreateUpdateConfigSwarmToJSON( - redisCreateUpdateConfigSwarm: RedisCreateUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisCreateUpdateConfigSwarm$outboundSchema.parse( - redisCreateUpdateConfigSwarm, - ), - ); -} - export function redisCreateUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1321,103 +614,6 @@ export const RedisCreateResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisCreateResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisCreateHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisCreateModeSwarm$Outbound | null; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisCreatePlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisCreateRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisCreateRollbackConfigSwarm$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisCreateUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisCreateResponseBody$outboundSchema: z.ZodType< - RedisCreateResponseBody$Outbound, - z.ZodTypeDef, - RedisCreateResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisCreateApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisCreateHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => RedisCreateModeSwarm$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisCreateNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisCreatePlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisCreateRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisCreateRollbackConfigSwarm$outboundSchema), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisCreateUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateResponseBody$ { - /** @deprecated use `RedisCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisCreateResponseBody$inboundSchema; - /** @deprecated use `RedisCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedisCreateResponseBody$outboundSchema; - /** @deprecated use `RedisCreateResponseBody$Outbound` instead. */ - export type Outbound = RedisCreateResponseBody$Outbound; -} - -export function redisCreateResponseBodyToJSON( - redisCreateResponseBody: RedisCreateResponseBody, -): string { - return JSON.stringify( - RedisCreateResponseBody$outboundSchema.parse(redisCreateResponseBody), - ); -} - export function redisCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1438,42 +634,6 @@ export const RedisCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisCreateResponse$Outbound = - | RedisCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisCreateResponse$outboundSchema: z.ZodType< - RedisCreateResponse$Outbound, - z.ZodTypeDef, - RedisCreateResponse -> = z.union([ - z.lazy(() => RedisCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisCreateResponse$ { - /** @deprecated use `RedisCreateResponse$inboundSchema` instead. */ - export const inboundSchema = RedisCreateResponse$inboundSchema; - /** @deprecated use `RedisCreateResponse$outboundSchema` instead. */ - export const outboundSchema = RedisCreateResponse$outboundSchema; - /** @deprecated use `RedisCreateResponse$Outbound` instead. */ - export type Outbound = RedisCreateResponse$Outbound; -} - -export function redisCreateResponseToJSON( - redisCreateResponse: RedisCreateResponse, -): string { - return JSON.stringify( - RedisCreateResponse$outboundSchema.parse(redisCreateResponse), - ); -} - export function redisCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redisdeploy.ts b/src/models/operations/redisdeploy.ts index 1f28c49..04af3fa 100644 --- a/src/models/operations/redisdeploy.ts +++ b/src/models/operations/redisdeploy.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -249,15 +249,6 @@ export type RedisDeployResponseBody = { export type RedisDeployResponse = RedisDeployResponseBody | models.ErrorT; -/** @internal */ -export const RedisDeployRequest$inboundSchema: z.ZodType< - RedisDeployRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redisId: z.string(), -}); - /** @internal */ export type RedisDeployRequest$Outbound = { redisId: string; @@ -272,19 +263,6 @@ export const RedisDeployRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployRequest$ { - /** @deprecated use `RedisDeployRequest$inboundSchema` instead. */ - export const inboundSchema = RedisDeployRequest$inboundSchema; - /** @deprecated use `RedisDeployRequest$outboundSchema` instead. */ - export const outboundSchema = RedisDeployRequest$outboundSchema; - /** @deprecated use `RedisDeployRequest$Outbound` instead. */ - export type Outbound = RedisDeployRequest$Outbound; -} - export function redisDeployRequestToJSON( redisDeployRequest: RedisDeployRequest, ): string { @@ -293,37 +271,11 @@ export function redisDeployRequestToJSON( ); } -export function redisDeployRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisDeployRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisDeployRequest' from JSON`, - ); -} - /** @internal */ export const RedisDeployApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof RedisDeployApplicationStatus > = z.nativeEnum(RedisDeployApplicationStatus); -/** @internal */ -export const RedisDeployApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisDeployApplicationStatus -> = RedisDeployApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployApplicationStatus$ { - /** @deprecated use `RedisDeployApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = RedisDeployApplicationStatus$inboundSchema; - /** @deprecated use `RedisDeployApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = RedisDeployApplicationStatus$outboundSchema; -} - /** @internal */ export const RedisDeployProject$inboundSchema: z.ZodType< RedisDeployProject, @@ -338,51 +290,6 @@ export const RedisDeployProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisDeployProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const RedisDeployProject$outboundSchema: z.ZodType< - RedisDeployProject$Outbound, - z.ZodTypeDef, - RedisDeployProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployProject$ { - /** @deprecated use `RedisDeployProject$inboundSchema` instead. */ - export const inboundSchema = RedisDeployProject$inboundSchema; - /** @deprecated use `RedisDeployProject$outboundSchema` instead. */ - export const outboundSchema = RedisDeployProject$outboundSchema; - /** @deprecated use `RedisDeployProject$Outbound` instead. */ - export type Outbound = RedisDeployProject$Outbound; -} - -export function redisDeployProjectToJSON( - redisDeployProject: RedisDeployProject, -): string { - return JSON.stringify( - RedisDeployProject$outboundSchema.parse(redisDeployProject), - ); -} - export function redisDeployProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -408,53 +315,6 @@ export const RedisDeployEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisDeployEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: RedisDeployProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const RedisDeployEnvironment$outboundSchema: z.ZodType< - RedisDeployEnvironment$Outbound, - z.ZodTypeDef, - RedisDeployEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => RedisDeployProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployEnvironment$ { - /** @deprecated use `RedisDeployEnvironment$inboundSchema` instead. */ - export const inboundSchema = RedisDeployEnvironment$inboundSchema; - /** @deprecated use `RedisDeployEnvironment$outboundSchema` instead. */ - export const outboundSchema = RedisDeployEnvironment$outboundSchema; - /** @deprecated use `RedisDeployEnvironment$Outbound` instead. */ - export type Outbound = RedisDeployEnvironment$Outbound; -} - -export function redisDeployEnvironmentToJSON( - redisDeployEnvironment: RedisDeployEnvironment, -): string { - return JSON.stringify( - RedisDeployEnvironment$outboundSchema.parse(redisDeployEnvironment), - ); -} - export function redisDeployEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -486,59 +346,6 @@ export const RedisDeployHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisDeployHealthCheckSwarm$outboundSchema: z.ZodType< - RedisDeployHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisDeployHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployHealthCheckSwarm$ { - /** @deprecated use `RedisDeployHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisDeployHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisDeployHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisDeployHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisDeployHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisDeployHealthCheckSwarm$Outbound; -} - -export function redisDeployHealthCheckSwarmToJSON( - redisDeployHealthCheckSwarm: RedisDeployHealthCheckSwarm, -): string { - return JSON.stringify( - RedisDeployHealthCheckSwarm$outboundSchema.parse( - redisDeployHealthCheckSwarm, - ), - ); -} - export function redisDeployHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -556,37 +363,6 @@ export const RedisDeployGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisDeployGlobal$Outbound = {}; - -/** @internal */ -export const RedisDeployGlobal$outboundSchema: z.ZodType< - RedisDeployGlobal$Outbound, - z.ZodTypeDef, - RedisDeployGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployGlobal$ { - /** @deprecated use `RedisDeployGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisDeployGlobal$inboundSchema; - /** @deprecated use `RedisDeployGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisDeployGlobal$outboundSchema; - /** @deprecated use `RedisDeployGlobal$Outbound` instead. */ - export type Outbound = RedisDeployGlobal$Outbound; -} - -export function redisDeployGlobalToJSON( - redisDeployGlobal: RedisDeployGlobal, -): string { - return JSON.stringify( - RedisDeployGlobal$outboundSchema.parse(redisDeployGlobal), - ); -} - export function redisDeployGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -604,37 +380,6 @@ export const RedisDeployGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisDeployGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisDeployGlobalJob$outboundSchema: z.ZodType< - RedisDeployGlobalJob$Outbound, - z.ZodTypeDef, - RedisDeployGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployGlobalJob$ { - /** @deprecated use `RedisDeployGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisDeployGlobalJob$inboundSchema; - /** @deprecated use `RedisDeployGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisDeployGlobalJob$outboundSchema; - /** @deprecated use `RedisDeployGlobalJob$Outbound` instead. */ - export type Outbound = RedisDeployGlobalJob$Outbound; -} - -export function redisDeployGlobalJobToJSON( - redisDeployGlobalJob: RedisDeployGlobalJob, -): string { - return JSON.stringify( - RedisDeployGlobalJob$outboundSchema.parse(redisDeployGlobalJob), - ); -} - export function redisDeployGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -658,45 +403,6 @@ export const RedisDeployReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisDeployReplicated$outboundSchema: z.ZodType< - RedisDeployReplicated$Outbound, - z.ZodTypeDef, - RedisDeployReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployReplicated$ { - /** @deprecated use `RedisDeployReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisDeployReplicated$inboundSchema; - /** @deprecated use `RedisDeployReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisDeployReplicated$outboundSchema; - /** @deprecated use `RedisDeployReplicated$Outbound` instead. */ - export type Outbound = RedisDeployReplicated$Outbound; -} - -export function redisDeployReplicatedToJSON( - redisDeployReplicated: RedisDeployReplicated, -): string { - return JSON.stringify( - RedisDeployReplicated$outboundSchema.parse(redisDeployReplicated), - ); -} - export function redisDeployReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -722,48 +428,6 @@ export const RedisDeployReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisDeployReplicatedJob$outboundSchema: z.ZodType< - RedisDeployReplicatedJob$Outbound, - z.ZodTypeDef, - RedisDeployReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployReplicatedJob$ { - /** @deprecated use `RedisDeployReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisDeployReplicatedJob$inboundSchema; - /** @deprecated use `RedisDeployReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisDeployReplicatedJob$outboundSchema; - /** @deprecated use `RedisDeployReplicatedJob$Outbound` instead. */ - export type Outbound = RedisDeployReplicatedJob$Outbound; -} - -export function redisDeployReplicatedJobToJSON( - redisDeployReplicatedJob: RedisDeployReplicatedJob, -): string { - return JSON.stringify( - RedisDeployReplicatedJob$outboundSchema.parse(redisDeployReplicatedJob), - ); -} - export function redisDeployReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -794,55 +458,6 @@ export const RedisDeployModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployModeSwarm$Outbound = { - Global?: RedisDeployGlobal$Outbound | undefined; - GlobalJob?: RedisDeployGlobalJob$Outbound | undefined; - Replicated?: RedisDeployReplicated$Outbound | undefined; - ReplicatedJob?: RedisDeployReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisDeployModeSwarm$outboundSchema: z.ZodType< - RedisDeployModeSwarm$Outbound, - z.ZodTypeDef, - RedisDeployModeSwarm -> = z.object({ - global: z.lazy(() => RedisDeployGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisDeployGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => RedisDeployReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => RedisDeployReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployModeSwarm$ { - /** @deprecated use `RedisDeployModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisDeployModeSwarm$inboundSchema; - /** @deprecated use `RedisDeployModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisDeployModeSwarm$outboundSchema; - /** @deprecated use `RedisDeployModeSwarm$Outbound` instead. */ - export type Outbound = RedisDeployModeSwarm$Outbound; -} - -export function redisDeployModeSwarmToJSON( - redisDeployModeSwarm: RedisDeployModeSwarm, -): string { - return JSON.stringify( - RedisDeployModeSwarm$outboundSchema.parse(redisDeployModeSwarm), - ); -} - export function redisDeployModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -858,43 +473,11 @@ export const RedisDeployServiceType$inboundSchema: z.ZodNativeEnum< typeof RedisDeployServiceType > = z.nativeEnum(RedisDeployServiceType); -/** @internal */ -export const RedisDeployServiceType$outboundSchema: z.ZodNativeEnum< - typeof RedisDeployServiceType -> = RedisDeployServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployServiceType$ { - /** @deprecated use `RedisDeployServiceType$inboundSchema` instead. */ - export const inboundSchema = RedisDeployServiceType$inboundSchema; - /** @deprecated use `RedisDeployServiceType$outboundSchema` instead. */ - export const outboundSchema = RedisDeployServiceType$outboundSchema; -} - /** @internal */ export const RedisDeployType$inboundSchema: z.ZodNativeEnum< typeof RedisDeployType > = z.nativeEnum(RedisDeployType); -/** @internal */ -export const RedisDeployType$outboundSchema: z.ZodNativeEnum< - typeof RedisDeployType -> = RedisDeployType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployType$ { - /** @deprecated use `RedisDeployType$inboundSchema` instead. */ - export const inboundSchema = RedisDeployType$inboundSchema; - /** @deprecated use `RedisDeployType$outboundSchema` instead. */ - export const outboundSchema = RedisDeployType$outboundSchema; -} - /** @internal */ export const RedisDeployMount$inboundSchema: z.ZodType< RedisDeployMount, @@ -918,69 +501,6 @@ export const RedisDeployMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type RedisDeployMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const RedisDeployMount$outboundSchema: z.ZodType< - RedisDeployMount$Outbound, - z.ZodTypeDef, - RedisDeployMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: RedisDeployServiceType$outboundSchema, - type: RedisDeployType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployMount$ { - /** @deprecated use `RedisDeployMount$inboundSchema` instead. */ - export const inboundSchema = RedisDeployMount$inboundSchema; - /** @deprecated use `RedisDeployMount$outboundSchema` instead. */ - export const outboundSchema = RedisDeployMount$outboundSchema; - /** @deprecated use `RedisDeployMount$Outbound` instead. */ - export type Outbound = RedisDeployMount$Outbound; -} - -export function redisDeployMountToJSON( - redisDeployMount: RedisDeployMount, -): string { - return JSON.stringify( - RedisDeployMount$outboundSchema.parse(redisDeployMount), - ); -} - export function redisDeployMountFromJSON( jsonString: string, ): SafeParseResult { @@ -998,37 +518,6 @@ export const RedisDeployDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisDeployDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisDeployDriverOpts$outboundSchema: z.ZodType< - RedisDeployDriverOpts$Outbound, - z.ZodTypeDef, - RedisDeployDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployDriverOpts$ { - /** @deprecated use `RedisDeployDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisDeployDriverOpts$inboundSchema; - /** @deprecated use `RedisDeployDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisDeployDriverOpts$outboundSchema; - /** @deprecated use `RedisDeployDriverOpts$Outbound` instead. */ - export type Outbound = RedisDeployDriverOpts$Outbound; -} - -export function redisDeployDriverOptsToJSON( - redisDeployDriverOpts: RedisDeployDriverOpts, -): string { - return JSON.stringify( - RedisDeployDriverOpts$outboundSchema.parse(redisDeployDriverOpts), - ); -} - export function redisDeployDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1056,51 +545,6 @@ export const RedisDeployNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisDeployDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisDeployNetworkSwarm$outboundSchema: z.ZodType< - RedisDeployNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisDeployNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisDeployDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployNetworkSwarm$ { - /** @deprecated use `RedisDeployNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisDeployNetworkSwarm$inboundSchema; - /** @deprecated use `RedisDeployNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisDeployNetworkSwarm$outboundSchema; - /** @deprecated use `RedisDeployNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisDeployNetworkSwarm$Outbound; -} - -export function redisDeployNetworkSwarmToJSON( - redisDeployNetworkSwarm: RedisDeployNetworkSwarm, -): string { - return JSON.stringify( - RedisDeployNetworkSwarm$outboundSchema.parse(redisDeployNetworkSwarm), - ); -} - export function redisDeployNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1126,48 +570,6 @@ export const RedisDeployPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisDeployPlatform$outboundSchema: z.ZodType< - RedisDeployPlatform$Outbound, - z.ZodTypeDef, - RedisDeployPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployPlatform$ { - /** @deprecated use `RedisDeployPlatform$inboundSchema` instead. */ - export const inboundSchema = RedisDeployPlatform$inboundSchema; - /** @deprecated use `RedisDeployPlatform$outboundSchema` instead. */ - export const outboundSchema = RedisDeployPlatform$outboundSchema; - /** @deprecated use `RedisDeployPlatform$Outbound` instead. */ - export type Outbound = RedisDeployPlatform$Outbound; -} - -export function redisDeployPlatformToJSON( - redisDeployPlatform: RedisDeployPlatform, -): string { - return JSON.stringify( - RedisDeployPlatform$outboundSchema.parse(redisDeployPlatform), - ); -} - export function redisDeployPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1191,45 +593,6 @@ export const RedisDeploySpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeploySpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisDeploySpread$outboundSchema: z.ZodType< - RedisDeploySpread$Outbound, - z.ZodTypeDef, - RedisDeploySpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeploySpread$ { - /** @deprecated use `RedisDeploySpread$inboundSchema` instead. */ - export const inboundSchema = RedisDeploySpread$inboundSchema; - /** @deprecated use `RedisDeploySpread$outboundSchema` instead. */ - export const outboundSchema = RedisDeploySpread$outboundSchema; - /** @deprecated use `RedisDeploySpread$Outbound` instead. */ - export type Outbound = RedisDeploySpread$Outbound; -} - -export function redisDeploySpreadToJSON( - redisDeploySpread: RedisDeploySpread, -): string { - return JSON.stringify( - RedisDeploySpread$outboundSchema.parse(redisDeploySpread), - ); -} - export function redisDeploySpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1253,45 +616,6 @@ export const RedisDeployPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployPreference$Outbound = { - Spread: RedisDeploySpread$Outbound; -}; - -/** @internal */ -export const RedisDeployPreference$outboundSchema: z.ZodType< - RedisDeployPreference$Outbound, - z.ZodTypeDef, - RedisDeployPreference -> = z.object({ - spread: z.lazy(() => RedisDeploySpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployPreference$ { - /** @deprecated use `RedisDeployPreference$inboundSchema` instead. */ - export const inboundSchema = RedisDeployPreference$inboundSchema; - /** @deprecated use `RedisDeployPreference$outboundSchema` instead. */ - export const outboundSchema = RedisDeployPreference$outboundSchema; - /** @deprecated use `RedisDeployPreference$Outbound` instead. */ - export type Outbound = RedisDeployPreference$Outbound; -} - -export function redisDeployPreferenceToJSON( - redisDeployPreference: RedisDeployPreference, -): string { - return JSON.stringify( - RedisDeployPreference$outboundSchema.parse(redisDeployPreference), - ); -} - export function redisDeployPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1323,56 +647,6 @@ export const RedisDeployPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisDeployPlacementSwarm$outboundSchema: z.ZodType< - RedisDeployPlacementSwarm$Outbound, - z.ZodTypeDef, - RedisDeployPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisDeployPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => RedisDeployPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployPlacementSwarm$ { - /** @deprecated use `RedisDeployPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisDeployPlacementSwarm$inboundSchema; - /** @deprecated use `RedisDeployPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisDeployPlacementSwarm$outboundSchema; - /** @deprecated use `RedisDeployPlacementSwarm$Outbound` instead. */ - export type Outbound = RedisDeployPlacementSwarm$Outbound; -} - -export function redisDeployPlacementSwarmToJSON( - redisDeployPlacementSwarm: RedisDeployPlacementSwarm, -): string { - return JSON.stringify( - RedisDeployPlacementSwarm$outboundSchema.parse(redisDeployPlacementSwarm), - ); -} - export function redisDeployPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1402,56 +676,6 @@ export const RedisDeployRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisDeployRestartPolicySwarm$outboundSchema: z.ZodType< - RedisDeployRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisDeployRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployRestartPolicySwarm$ { - /** @deprecated use `RedisDeployRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = RedisDeployRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisDeployRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = RedisDeployRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisDeployRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisDeployRestartPolicySwarm$Outbound; -} - -export function redisDeployRestartPolicySwarmToJSON( - redisDeployRestartPolicySwarm: RedisDeployRestartPolicySwarm, -): string { - return JSON.stringify( - RedisDeployRestartPolicySwarm$outboundSchema.parse( - redisDeployRestartPolicySwarm, - ), - ); -} - export function redisDeployRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1485,62 +709,6 @@ export const RedisDeployRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisDeployRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisDeployRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisDeployRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployRollbackConfigSwarm$ { - /** @deprecated use `RedisDeployRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisDeployRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisDeployRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisDeployRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisDeployRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisDeployRollbackConfigSwarm$Outbound; -} - -export function redisDeployRollbackConfigSwarmToJSON( - redisDeployRollbackConfigSwarm: RedisDeployRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisDeployRollbackConfigSwarm$outboundSchema.parse( - redisDeployRollbackConfigSwarm, - ), - ); -} - export function redisDeployRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1556,22 +724,6 @@ export const RedisDeployMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof RedisDeployMetricsConfigEnum > = z.nativeEnum(RedisDeployMetricsConfigEnum); -/** @internal */ -export const RedisDeployMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof RedisDeployMetricsConfigEnum -> = RedisDeployMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployMetricsConfigEnum$ { - /** @deprecated use `RedisDeployMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = RedisDeployMetricsConfigEnum$inboundSchema; - /** @deprecated use `RedisDeployMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = RedisDeployMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const RedisDeployMetricsConfigUnion1$inboundSchema: z.ZodType< RedisDeployMetricsConfigUnion1, @@ -1584,48 +736,6 @@ export const RedisDeployMetricsConfigUnion1$inboundSchema: z.ZodType< RedisDeployMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type RedisDeployMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const RedisDeployMetricsConfigUnion1$outboundSchema: z.ZodType< - RedisDeployMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - RedisDeployMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - RedisDeployMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployMetricsConfigUnion1$ { - /** @deprecated use `RedisDeployMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = RedisDeployMetricsConfigUnion1$inboundSchema; - /** @deprecated use `RedisDeployMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = RedisDeployMetricsConfigUnion1$outboundSchema; - /** @deprecated use `RedisDeployMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = RedisDeployMetricsConfigUnion1$Outbound; -} - -export function redisDeployMetricsConfigUnion1ToJSON( - redisDeployMetricsConfigUnion1: RedisDeployMetricsConfigUnion1, -): string { - return JSON.stringify( - RedisDeployMetricsConfigUnion1$outboundSchema.parse( - redisDeployMetricsConfigUnion1, - ), - ); -} - export function redisDeployMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -1652,54 +762,6 @@ export const RedisDeployMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type RedisDeployMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const RedisDeployMetricsConfigUnion2$outboundSchema: z.ZodType< - RedisDeployMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - RedisDeployMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployMetricsConfigUnion2$ { - /** @deprecated use `RedisDeployMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = RedisDeployMetricsConfigUnion2$inboundSchema; - /** @deprecated use `RedisDeployMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = RedisDeployMetricsConfigUnion2$outboundSchema; - /** @deprecated use `RedisDeployMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = RedisDeployMetricsConfigUnion2$Outbound; -} - -export function redisDeployMetricsConfigUnion2ToJSON( - redisDeployMetricsConfigUnion2: RedisDeployMetricsConfigUnion2, -): string { - return JSON.stringify( - RedisDeployMetricsConfigUnion2$outboundSchema.parse( - redisDeployMetricsConfigUnion2, - ), - ); -} - export function redisDeployMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -1715,22 +777,6 @@ export const RedisDeployServerStatus$inboundSchema: z.ZodNativeEnum< typeof RedisDeployServerStatus > = z.nativeEnum(RedisDeployServerStatus); -/** @internal */ -export const RedisDeployServerStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisDeployServerStatus -> = RedisDeployServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployServerStatus$ { - /** @deprecated use `RedisDeployServerStatus$inboundSchema` instead. */ - export const inboundSchema = RedisDeployServerStatus$inboundSchema; - /** @deprecated use `RedisDeployServerStatus$outboundSchema` instead. */ - export const outboundSchema = RedisDeployServerStatus$outboundSchema; -} - /** @internal */ export const RedisDeployServer$inboundSchema: z.ZodType< RedisDeployServer, @@ -1762,78 +808,6 @@ export const RedisDeployServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type RedisDeployServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const RedisDeployServer$outboundSchema: z.ZodType< - RedisDeployServer$Outbound, - z.ZodTypeDef, - RedisDeployServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisDeployMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: RedisDeployServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployServer$ { - /** @deprecated use `RedisDeployServer$inboundSchema` instead. */ - export const inboundSchema = RedisDeployServer$inboundSchema; - /** @deprecated use `RedisDeployServer$outboundSchema` instead. */ - export const outboundSchema = RedisDeployServer$outboundSchema; - /** @deprecated use `RedisDeployServer$Outbound` instead. */ - export type Outbound = RedisDeployServer$Outbound; -} - -export function redisDeployServerToJSON( - redisDeployServer: RedisDeployServer, -): string { - return JSON.stringify( - RedisDeployServer$outboundSchema.parse(redisDeployServer), - ); -} - export function redisDeployServerFromJSON( jsonString: string, ): SafeParseResult { @@ -1867,62 +841,6 @@ export const RedisDeployUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisDeployUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisDeployUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisDeployUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisDeployUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployUpdateConfigSwarm$ { - /** @deprecated use `RedisDeployUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisDeployUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisDeployUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisDeployUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisDeployUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisDeployUpdateConfigSwarm$Outbound; -} - -export function redisDeployUpdateConfigSwarmToJSON( - redisDeployUpdateConfigSwarm: RedisDeployUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisDeployUpdateConfigSwarm$outboundSchema.parse( - redisDeployUpdateConfigSwarm, - ), - ); -} - export function redisDeployUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1982,109 +900,6 @@ export const RedisDeployResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisDeployResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: RedisDeployEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisDeployHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisDeployModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisDeployPlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisDeployRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisDeployRollbackConfigSwarm$Outbound | null; - server: RedisDeployServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisDeployUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisDeployResponseBody$outboundSchema: z.ZodType< - RedisDeployResponseBody$Outbound, - z.ZodTypeDef, - RedisDeployResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisDeployApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => RedisDeployEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisDeployHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => RedisDeployModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => RedisDeployMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisDeployNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisDeployPlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisDeployRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisDeployRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => RedisDeployServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisDeployUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployResponseBody$ { - /** @deprecated use `RedisDeployResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisDeployResponseBody$inboundSchema; - /** @deprecated use `RedisDeployResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedisDeployResponseBody$outboundSchema; - /** @deprecated use `RedisDeployResponseBody$Outbound` instead. */ - export type Outbound = RedisDeployResponseBody$Outbound; -} - -export function redisDeployResponseBodyToJSON( - redisDeployResponseBody: RedisDeployResponseBody, -): string { - return JSON.stringify( - RedisDeployResponseBody$outboundSchema.parse(redisDeployResponseBody), - ); -} - export function redisDeployResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2105,42 +920,6 @@ export const RedisDeployResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisDeployResponse$Outbound = - | RedisDeployResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisDeployResponse$outboundSchema: z.ZodType< - RedisDeployResponse$Outbound, - z.ZodTypeDef, - RedisDeployResponse -> = z.union([ - z.lazy(() => RedisDeployResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisDeployResponse$ { - /** @deprecated use `RedisDeployResponse$inboundSchema` instead. */ - export const inboundSchema = RedisDeployResponse$inboundSchema; - /** @deprecated use `RedisDeployResponse$outboundSchema` instead. */ - export const outboundSchema = RedisDeployResponse$outboundSchema; - /** @deprecated use `RedisDeployResponse$Outbound` instead. */ - export type Outbound = RedisDeployResponse$Outbound; -} - -export function redisDeployResponseToJSON( - redisDeployResponse: RedisDeployResponse, -): string { - return JSON.stringify( - RedisDeployResponse$outboundSchema.parse(redisDeployResponse), - ); -} - export function redisDeployResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redismove.ts b/src/models/operations/redismove.ts index 6105bf7..af023cb 100644 --- a/src/models/operations/redismove.ts +++ b/src/models/operations/redismove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -140,16 +140,6 @@ export type RedisMoveResponseBody = { export type RedisMoveResponse = RedisMoveResponseBody | models.ErrorT; -/** @internal */ -export const RedisMoveRequest$inboundSchema: z.ZodType< - RedisMoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redisId: z.string(), - targetEnvironmentId: z.string(), -}); - /** @internal */ export type RedisMoveRequest$Outbound = { redisId: string; @@ -166,19 +156,6 @@ export const RedisMoveRequest$outboundSchema: z.ZodType< targetEnvironmentId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveRequest$ { - /** @deprecated use `RedisMoveRequest$inboundSchema` instead. */ - export const inboundSchema = RedisMoveRequest$inboundSchema; - /** @deprecated use `RedisMoveRequest$outboundSchema` instead. */ - export const outboundSchema = RedisMoveRequest$outboundSchema; - /** @deprecated use `RedisMoveRequest$Outbound` instead. */ - export type Outbound = RedisMoveRequest$Outbound; -} - export function redisMoveRequestToJSON( redisMoveRequest: RedisMoveRequest, ): string { @@ -187,37 +164,11 @@ export function redisMoveRequestToJSON( ); } -export function redisMoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisMoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisMoveRequest' from JSON`, - ); -} - /** @internal */ export const RedisMoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof RedisMoveApplicationStatus > = z.nativeEnum(RedisMoveApplicationStatus); -/** @internal */ -export const RedisMoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisMoveApplicationStatus -> = RedisMoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveApplicationStatus$ { - /** @deprecated use `RedisMoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = RedisMoveApplicationStatus$inboundSchema; - /** @deprecated use `RedisMoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = RedisMoveApplicationStatus$outboundSchema; -} - /** @internal */ export const RedisMoveHealthCheckSwarm$inboundSchema: z.ZodType< RedisMoveHealthCheckSwarm, @@ -239,57 +190,6 @@ export const RedisMoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisMoveHealthCheckSwarm$outboundSchema: z.ZodType< - RedisMoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisMoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveHealthCheckSwarm$ { - /** @deprecated use `RedisMoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisMoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisMoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisMoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisMoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisMoveHealthCheckSwarm$Outbound; -} - -export function redisMoveHealthCheckSwarmToJSON( - redisMoveHealthCheckSwarm: RedisMoveHealthCheckSwarm, -): string { - return JSON.stringify( - RedisMoveHealthCheckSwarm$outboundSchema.parse(redisMoveHealthCheckSwarm), - ); -} - export function redisMoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -307,35 +207,6 @@ export const RedisMoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisMoveGlobal$Outbound = {}; - -/** @internal */ -export const RedisMoveGlobal$outboundSchema: z.ZodType< - RedisMoveGlobal$Outbound, - z.ZodTypeDef, - RedisMoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveGlobal$ { - /** @deprecated use `RedisMoveGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisMoveGlobal$inboundSchema; - /** @deprecated use `RedisMoveGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisMoveGlobal$outboundSchema; - /** @deprecated use `RedisMoveGlobal$Outbound` instead. */ - export type Outbound = RedisMoveGlobal$Outbound; -} - -export function redisMoveGlobalToJSON( - redisMoveGlobal: RedisMoveGlobal, -): string { - return JSON.stringify(RedisMoveGlobal$outboundSchema.parse(redisMoveGlobal)); -} - export function redisMoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -353,37 +224,6 @@ export const RedisMoveGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisMoveGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisMoveGlobalJob$outboundSchema: z.ZodType< - RedisMoveGlobalJob$Outbound, - z.ZodTypeDef, - RedisMoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveGlobalJob$ { - /** @deprecated use `RedisMoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisMoveGlobalJob$inboundSchema; - /** @deprecated use `RedisMoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisMoveGlobalJob$outboundSchema; - /** @deprecated use `RedisMoveGlobalJob$Outbound` instead. */ - export type Outbound = RedisMoveGlobalJob$Outbound; -} - -export function redisMoveGlobalJobToJSON( - redisMoveGlobalJob: RedisMoveGlobalJob, -): string { - return JSON.stringify( - RedisMoveGlobalJob$outboundSchema.parse(redisMoveGlobalJob), - ); -} - export function redisMoveGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -407,45 +247,6 @@ export const RedisMoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisMoveReplicated$outboundSchema: z.ZodType< - RedisMoveReplicated$Outbound, - z.ZodTypeDef, - RedisMoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveReplicated$ { - /** @deprecated use `RedisMoveReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisMoveReplicated$inboundSchema; - /** @deprecated use `RedisMoveReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisMoveReplicated$outboundSchema; - /** @deprecated use `RedisMoveReplicated$Outbound` instead. */ - export type Outbound = RedisMoveReplicated$Outbound; -} - -export function redisMoveReplicatedToJSON( - redisMoveReplicated: RedisMoveReplicated, -): string { - return JSON.stringify( - RedisMoveReplicated$outboundSchema.parse(redisMoveReplicated), - ); -} - export function redisMoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -471,48 +272,6 @@ export const RedisMoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisMoveReplicatedJob$outboundSchema: z.ZodType< - RedisMoveReplicatedJob$Outbound, - z.ZodTypeDef, - RedisMoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveReplicatedJob$ { - /** @deprecated use `RedisMoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisMoveReplicatedJob$inboundSchema; - /** @deprecated use `RedisMoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisMoveReplicatedJob$outboundSchema; - /** @deprecated use `RedisMoveReplicatedJob$Outbound` instead. */ - export type Outbound = RedisMoveReplicatedJob$Outbound; -} - -export function redisMoveReplicatedJobToJSON( - redisMoveReplicatedJob: RedisMoveReplicatedJob, -): string { - return JSON.stringify( - RedisMoveReplicatedJob$outboundSchema.parse(redisMoveReplicatedJob), - ); -} - export function redisMoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -542,54 +301,6 @@ export const RedisMoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveModeSwarm$Outbound = { - Global?: RedisMoveGlobal$Outbound | undefined; - GlobalJob?: RedisMoveGlobalJob$Outbound | undefined; - Replicated?: RedisMoveReplicated$Outbound | undefined; - ReplicatedJob?: RedisMoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisMoveModeSwarm$outboundSchema: z.ZodType< - RedisMoveModeSwarm$Outbound, - z.ZodTypeDef, - RedisMoveModeSwarm -> = z.object({ - global: z.lazy(() => RedisMoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisMoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => RedisMoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => RedisMoveReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveModeSwarm$ { - /** @deprecated use `RedisMoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisMoveModeSwarm$inboundSchema; - /** @deprecated use `RedisMoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisMoveModeSwarm$outboundSchema; - /** @deprecated use `RedisMoveModeSwarm$Outbound` instead. */ - export type Outbound = RedisMoveModeSwarm$Outbound; -} - -export function redisMoveModeSwarmToJSON( - redisMoveModeSwarm: RedisMoveModeSwarm, -): string { - return JSON.stringify( - RedisMoveModeSwarm$outboundSchema.parse(redisMoveModeSwarm), - ); -} - export function redisMoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -607,37 +318,6 @@ export const RedisMoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisMoveDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisMoveDriverOpts$outboundSchema: z.ZodType< - RedisMoveDriverOpts$Outbound, - z.ZodTypeDef, - RedisMoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveDriverOpts$ { - /** @deprecated use `RedisMoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisMoveDriverOpts$inboundSchema; - /** @deprecated use `RedisMoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisMoveDriverOpts$outboundSchema; - /** @deprecated use `RedisMoveDriverOpts$Outbound` instead. */ - export type Outbound = RedisMoveDriverOpts$Outbound; -} - -export function redisMoveDriverOptsToJSON( - redisMoveDriverOpts: RedisMoveDriverOpts, -): string { - return JSON.stringify( - RedisMoveDriverOpts$outboundSchema.parse(redisMoveDriverOpts), - ); -} - export function redisMoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -665,51 +345,6 @@ export const RedisMoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisMoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisMoveNetworkSwarm$outboundSchema: z.ZodType< - RedisMoveNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisMoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisMoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveNetworkSwarm$ { - /** @deprecated use `RedisMoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisMoveNetworkSwarm$inboundSchema; - /** @deprecated use `RedisMoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisMoveNetworkSwarm$outboundSchema; - /** @deprecated use `RedisMoveNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisMoveNetworkSwarm$Outbound; -} - -export function redisMoveNetworkSwarmToJSON( - redisMoveNetworkSwarm: RedisMoveNetworkSwarm, -): string { - return JSON.stringify( - RedisMoveNetworkSwarm$outboundSchema.parse(redisMoveNetworkSwarm), - ); -} - export function redisMoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -735,48 +370,6 @@ export const RedisMovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisMovePlatform$outboundSchema: z.ZodType< - RedisMovePlatform$Outbound, - z.ZodTypeDef, - RedisMovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMovePlatform$ { - /** @deprecated use `RedisMovePlatform$inboundSchema` instead. */ - export const inboundSchema = RedisMovePlatform$inboundSchema; - /** @deprecated use `RedisMovePlatform$outboundSchema` instead. */ - export const outboundSchema = RedisMovePlatform$outboundSchema; - /** @deprecated use `RedisMovePlatform$Outbound` instead. */ - export type Outbound = RedisMovePlatform$Outbound; -} - -export function redisMovePlatformToJSON( - redisMovePlatform: RedisMovePlatform, -): string { - return JSON.stringify( - RedisMovePlatform$outboundSchema.parse(redisMovePlatform), - ); -} - export function redisMovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -800,43 +393,6 @@ export const RedisMoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisMoveSpread$outboundSchema: z.ZodType< - RedisMoveSpread$Outbound, - z.ZodTypeDef, - RedisMoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveSpread$ { - /** @deprecated use `RedisMoveSpread$inboundSchema` instead. */ - export const inboundSchema = RedisMoveSpread$inboundSchema; - /** @deprecated use `RedisMoveSpread$outboundSchema` instead. */ - export const outboundSchema = RedisMoveSpread$outboundSchema; - /** @deprecated use `RedisMoveSpread$Outbound` instead. */ - export type Outbound = RedisMoveSpread$Outbound; -} - -export function redisMoveSpreadToJSON( - redisMoveSpread: RedisMoveSpread, -): string { - return JSON.stringify(RedisMoveSpread$outboundSchema.parse(redisMoveSpread)); -} - export function redisMoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -860,45 +416,6 @@ export const RedisMovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMovePreference$Outbound = { - Spread: RedisMoveSpread$Outbound; -}; - -/** @internal */ -export const RedisMovePreference$outboundSchema: z.ZodType< - RedisMovePreference$Outbound, - z.ZodTypeDef, - RedisMovePreference -> = z.object({ - spread: z.lazy(() => RedisMoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMovePreference$ { - /** @deprecated use `RedisMovePreference$inboundSchema` instead. */ - export const inboundSchema = RedisMovePreference$inboundSchema; - /** @deprecated use `RedisMovePreference$outboundSchema` instead. */ - export const outboundSchema = RedisMovePreference$outboundSchema; - /** @deprecated use `RedisMovePreference$Outbound` instead. */ - export type Outbound = RedisMovePreference$Outbound; -} - -export function redisMovePreferenceToJSON( - redisMovePreference: RedisMovePreference, -): string { - return JSON.stringify( - RedisMovePreference$outboundSchema.parse(redisMovePreference), - ); -} - export function redisMovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -929,55 +446,6 @@ export const RedisMovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisMovePlacementSwarm$outboundSchema: z.ZodType< - RedisMovePlacementSwarm$Outbound, - z.ZodTypeDef, - RedisMovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisMovePlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => RedisMovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMovePlacementSwarm$ { - /** @deprecated use `RedisMovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisMovePlacementSwarm$inboundSchema; - /** @deprecated use `RedisMovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisMovePlacementSwarm$outboundSchema; - /** @deprecated use `RedisMovePlacementSwarm$Outbound` instead. */ - export type Outbound = RedisMovePlacementSwarm$Outbound; -} - -export function redisMovePlacementSwarmToJSON( - redisMovePlacementSwarm: RedisMovePlacementSwarm, -): string { - return JSON.stringify( - RedisMovePlacementSwarm$outboundSchema.parse(redisMovePlacementSwarm), - ); -} - export function redisMovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1007,56 +475,6 @@ export const RedisMoveRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisMoveRestartPolicySwarm$outboundSchema: z.ZodType< - RedisMoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisMoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveRestartPolicySwarm$ { - /** @deprecated use `RedisMoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = RedisMoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisMoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = RedisMoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisMoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisMoveRestartPolicySwarm$Outbound; -} - -export function redisMoveRestartPolicySwarmToJSON( - redisMoveRestartPolicySwarm: RedisMoveRestartPolicySwarm, -): string { - return JSON.stringify( - RedisMoveRestartPolicySwarm$outboundSchema.parse( - redisMoveRestartPolicySwarm, - ), - ); -} - export function redisMoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1090,62 +508,6 @@ export const RedisMoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisMoveRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisMoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisMoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveRollbackConfigSwarm$ { - /** @deprecated use `RedisMoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisMoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisMoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisMoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisMoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisMoveRollbackConfigSwarm$Outbound; -} - -export function redisMoveRollbackConfigSwarmToJSON( - redisMoveRollbackConfigSwarm: RedisMoveRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisMoveRollbackConfigSwarm$outboundSchema.parse( - redisMoveRollbackConfigSwarm, - ), - ); -} - export function redisMoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1179,60 +541,6 @@ export const RedisMoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisMoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisMoveUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisMoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisMoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveUpdateConfigSwarm$ { - /** @deprecated use `RedisMoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisMoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisMoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisMoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisMoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisMoveUpdateConfigSwarm$Outbound; -} - -export function redisMoveUpdateConfigSwarmToJSON( - redisMoveUpdateConfigSwarm: RedisMoveUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisMoveUpdateConfigSwarm$outboundSchema.parse(redisMoveUpdateConfigSwarm), - ); -} - export function redisMoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1289,103 +597,6 @@ export const RedisMoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisMoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisMoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisMoveModeSwarm$Outbound | null; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisMovePlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisMoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisMoveRollbackConfigSwarm$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisMoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisMoveResponseBody$outboundSchema: z.ZodType< - RedisMoveResponseBody$Outbound, - z.ZodTypeDef, - RedisMoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisMoveApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisMoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => RedisMoveModeSwarm$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisMoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisMovePlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisMoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisMoveRollbackConfigSwarm$outboundSchema), - ), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisMoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveResponseBody$ { - /** @deprecated use `RedisMoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisMoveResponseBody$inboundSchema; - /** @deprecated use `RedisMoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedisMoveResponseBody$outboundSchema; - /** @deprecated use `RedisMoveResponseBody$Outbound` instead. */ - export type Outbound = RedisMoveResponseBody$Outbound; -} - -export function redisMoveResponseBodyToJSON( - redisMoveResponseBody: RedisMoveResponseBody, -): string { - return JSON.stringify( - RedisMoveResponseBody$outboundSchema.parse(redisMoveResponseBody), - ); -} - export function redisMoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -1406,42 +617,6 @@ export const RedisMoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisMoveResponse$Outbound = - | RedisMoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisMoveResponse$outboundSchema: z.ZodType< - RedisMoveResponse$Outbound, - z.ZodTypeDef, - RedisMoveResponse -> = z.union([ - z.lazy(() => RedisMoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisMoveResponse$ { - /** @deprecated use `RedisMoveResponse$inboundSchema` instead. */ - export const inboundSchema = RedisMoveResponse$inboundSchema; - /** @deprecated use `RedisMoveResponse$outboundSchema` instead. */ - export const outboundSchema = RedisMoveResponse$outboundSchema; - /** @deprecated use `RedisMoveResponse$Outbound` instead. */ - export type Outbound = RedisMoveResponse$Outbound; -} - -export function redisMoveResponseToJSON( - redisMoveResponse: RedisMoveResponse, -): string { - return JSON.stringify( - RedisMoveResponse$outboundSchema.parse(redisMoveResponse), - ); -} - export function redisMoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redisone.ts b/src/models/operations/redisone.ts index 79c63fd..70a64eb 100644 --- a/src/models/operations/redisone.ts +++ b/src/models/operations/redisone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -247,15 +247,6 @@ export type RedisOneResponseBody = { export type RedisOneResponse = RedisOneResponseBody | models.ErrorT; -/** @internal */ -export const RedisOneRequest$inboundSchema: z.ZodType< - RedisOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redisId: z.string(), -}); - /** @internal */ export type RedisOneRequest$Outbound = { redisId: string; @@ -270,56 +261,17 @@ export const RedisOneRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneRequest$ { - /** @deprecated use `RedisOneRequest$inboundSchema` instead. */ - export const inboundSchema = RedisOneRequest$inboundSchema; - /** @deprecated use `RedisOneRequest$outboundSchema` instead. */ - export const outboundSchema = RedisOneRequest$outboundSchema; - /** @deprecated use `RedisOneRequest$Outbound` instead. */ - export type Outbound = RedisOneRequest$Outbound; -} - export function redisOneRequestToJSON( redisOneRequest: RedisOneRequest, ): string { return JSON.stringify(RedisOneRequest$outboundSchema.parse(redisOneRequest)); } -export function redisOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisOneRequest' from JSON`, - ); -} - /** @internal */ export const RedisOneApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof RedisOneApplicationStatus > = z.nativeEnum(RedisOneApplicationStatus); -/** @internal */ -export const RedisOneApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisOneApplicationStatus -> = RedisOneApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneApplicationStatus$ { - /** @deprecated use `RedisOneApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = RedisOneApplicationStatus$inboundSchema; - /** @deprecated use `RedisOneApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = RedisOneApplicationStatus$outboundSchema; -} - /** @internal */ export const RedisOneProject$inboundSchema: z.ZodType< RedisOneProject, @@ -334,49 +286,6 @@ export const RedisOneProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisOneProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const RedisOneProject$outboundSchema: z.ZodType< - RedisOneProject$Outbound, - z.ZodTypeDef, - RedisOneProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneProject$ { - /** @deprecated use `RedisOneProject$inboundSchema` instead. */ - export const inboundSchema = RedisOneProject$inboundSchema; - /** @deprecated use `RedisOneProject$outboundSchema` instead. */ - export const outboundSchema = RedisOneProject$outboundSchema; - /** @deprecated use `RedisOneProject$Outbound` instead. */ - export type Outbound = RedisOneProject$Outbound; -} - -export function redisOneProjectToJSON( - redisOneProject: RedisOneProject, -): string { - return JSON.stringify(RedisOneProject$outboundSchema.parse(redisOneProject)); -} - export function redisOneProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -402,53 +311,6 @@ export const RedisOneEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisOneEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: RedisOneProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const RedisOneEnvironment$outboundSchema: z.ZodType< - RedisOneEnvironment$Outbound, - z.ZodTypeDef, - RedisOneEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => RedisOneProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneEnvironment$ { - /** @deprecated use `RedisOneEnvironment$inboundSchema` instead. */ - export const inboundSchema = RedisOneEnvironment$inboundSchema; - /** @deprecated use `RedisOneEnvironment$outboundSchema` instead. */ - export const outboundSchema = RedisOneEnvironment$outboundSchema; - /** @deprecated use `RedisOneEnvironment$Outbound` instead. */ - export type Outbound = RedisOneEnvironment$Outbound; -} - -export function redisOneEnvironmentToJSON( - redisOneEnvironment: RedisOneEnvironment, -): string { - return JSON.stringify( - RedisOneEnvironment$outboundSchema.parse(redisOneEnvironment), - ); -} - export function redisOneEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -480,57 +342,6 @@ export const RedisOneHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisOneHealthCheckSwarm$outboundSchema: z.ZodType< - RedisOneHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisOneHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneHealthCheckSwarm$ { - /** @deprecated use `RedisOneHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisOneHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisOneHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisOneHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisOneHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisOneHealthCheckSwarm$Outbound; -} - -export function redisOneHealthCheckSwarmToJSON( - redisOneHealthCheckSwarm: RedisOneHealthCheckSwarm, -): string { - return JSON.stringify( - RedisOneHealthCheckSwarm$outboundSchema.parse(redisOneHealthCheckSwarm), - ); -} - export function redisOneHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -548,33 +359,6 @@ export const RedisOneGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisOneGlobal$Outbound = {}; - -/** @internal */ -export const RedisOneGlobal$outboundSchema: z.ZodType< - RedisOneGlobal$Outbound, - z.ZodTypeDef, - RedisOneGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneGlobal$ { - /** @deprecated use `RedisOneGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisOneGlobal$inboundSchema; - /** @deprecated use `RedisOneGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisOneGlobal$outboundSchema; - /** @deprecated use `RedisOneGlobal$Outbound` instead. */ - export type Outbound = RedisOneGlobal$Outbound; -} - -export function redisOneGlobalToJSON(redisOneGlobal: RedisOneGlobal): string { - return JSON.stringify(RedisOneGlobal$outboundSchema.parse(redisOneGlobal)); -} - export function redisOneGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -592,37 +376,6 @@ export const RedisOneGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisOneGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisOneGlobalJob$outboundSchema: z.ZodType< - RedisOneGlobalJob$Outbound, - z.ZodTypeDef, - RedisOneGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneGlobalJob$ { - /** @deprecated use `RedisOneGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisOneGlobalJob$inboundSchema; - /** @deprecated use `RedisOneGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisOneGlobalJob$outboundSchema; - /** @deprecated use `RedisOneGlobalJob$Outbound` instead. */ - export type Outbound = RedisOneGlobalJob$Outbound; -} - -export function redisOneGlobalJobToJSON( - redisOneGlobalJob: RedisOneGlobalJob, -): string { - return JSON.stringify( - RedisOneGlobalJob$outboundSchema.parse(redisOneGlobalJob), - ); -} - export function redisOneGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -646,45 +399,6 @@ export const RedisOneReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisOneReplicated$outboundSchema: z.ZodType< - RedisOneReplicated$Outbound, - z.ZodTypeDef, - RedisOneReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneReplicated$ { - /** @deprecated use `RedisOneReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisOneReplicated$inboundSchema; - /** @deprecated use `RedisOneReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisOneReplicated$outboundSchema; - /** @deprecated use `RedisOneReplicated$Outbound` instead. */ - export type Outbound = RedisOneReplicated$Outbound; -} - -export function redisOneReplicatedToJSON( - redisOneReplicated: RedisOneReplicated, -): string { - return JSON.stringify( - RedisOneReplicated$outboundSchema.parse(redisOneReplicated), - ); -} - export function redisOneReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -710,48 +424,6 @@ export const RedisOneReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisOneReplicatedJob$outboundSchema: z.ZodType< - RedisOneReplicatedJob$Outbound, - z.ZodTypeDef, - RedisOneReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneReplicatedJob$ { - /** @deprecated use `RedisOneReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisOneReplicatedJob$inboundSchema; - /** @deprecated use `RedisOneReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisOneReplicatedJob$outboundSchema; - /** @deprecated use `RedisOneReplicatedJob$Outbound` instead. */ - export type Outbound = RedisOneReplicatedJob$Outbound; -} - -export function redisOneReplicatedJobToJSON( - redisOneReplicatedJob: RedisOneReplicatedJob, -): string { - return JSON.stringify( - RedisOneReplicatedJob$outboundSchema.parse(redisOneReplicatedJob), - ); -} - export function redisOneReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -781,54 +453,6 @@ export const RedisOneModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneModeSwarm$Outbound = { - Global?: RedisOneGlobal$Outbound | undefined; - GlobalJob?: RedisOneGlobalJob$Outbound | undefined; - Replicated?: RedisOneReplicated$Outbound | undefined; - ReplicatedJob?: RedisOneReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisOneModeSwarm$outboundSchema: z.ZodType< - RedisOneModeSwarm$Outbound, - z.ZodTypeDef, - RedisOneModeSwarm -> = z.object({ - global: z.lazy(() => RedisOneGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisOneGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => RedisOneReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => RedisOneReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneModeSwarm$ { - /** @deprecated use `RedisOneModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisOneModeSwarm$inboundSchema; - /** @deprecated use `RedisOneModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisOneModeSwarm$outboundSchema; - /** @deprecated use `RedisOneModeSwarm$Outbound` instead. */ - export type Outbound = RedisOneModeSwarm$Outbound; -} - -export function redisOneModeSwarmToJSON( - redisOneModeSwarm: RedisOneModeSwarm, -): string { - return JSON.stringify( - RedisOneModeSwarm$outboundSchema.parse(redisOneModeSwarm), - ); -} - export function redisOneModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -844,41 +468,10 @@ export const RedisOneServiceType$inboundSchema: z.ZodNativeEnum< typeof RedisOneServiceType > = z.nativeEnum(RedisOneServiceType); -/** @internal */ -export const RedisOneServiceType$outboundSchema: z.ZodNativeEnum< - typeof RedisOneServiceType -> = RedisOneServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneServiceType$ { - /** @deprecated use `RedisOneServiceType$inboundSchema` instead. */ - export const inboundSchema = RedisOneServiceType$inboundSchema; - /** @deprecated use `RedisOneServiceType$outboundSchema` instead. */ - export const outboundSchema = RedisOneServiceType$outboundSchema; -} - /** @internal */ export const RedisOneType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(RedisOneType); -/** @internal */ -export const RedisOneType$outboundSchema: z.ZodNativeEnum = - RedisOneType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneType$ { - /** @deprecated use `RedisOneType$inboundSchema` instead. */ - export const inboundSchema = RedisOneType$inboundSchema; - /** @deprecated use `RedisOneType$outboundSchema` instead. */ - export const outboundSchema = RedisOneType$outboundSchema; -} - /** @internal */ export const RedisOneMount$inboundSchema: z.ZodType< RedisOneMount, @@ -902,65 +495,6 @@ export const RedisOneMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type RedisOneMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const RedisOneMount$outboundSchema: z.ZodType< - RedisOneMount$Outbound, - z.ZodTypeDef, - RedisOneMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: RedisOneServiceType$outboundSchema, - type: RedisOneType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneMount$ { - /** @deprecated use `RedisOneMount$inboundSchema` instead. */ - export const inboundSchema = RedisOneMount$inboundSchema; - /** @deprecated use `RedisOneMount$outboundSchema` instead. */ - export const outboundSchema = RedisOneMount$outboundSchema; - /** @deprecated use `RedisOneMount$Outbound` instead. */ - export type Outbound = RedisOneMount$Outbound; -} - -export function redisOneMountToJSON(redisOneMount: RedisOneMount): string { - return JSON.stringify(RedisOneMount$outboundSchema.parse(redisOneMount)); -} - export function redisOneMountFromJSON( jsonString: string, ): SafeParseResult { @@ -978,37 +512,6 @@ export const RedisOneDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisOneDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisOneDriverOpts$outboundSchema: z.ZodType< - RedisOneDriverOpts$Outbound, - z.ZodTypeDef, - RedisOneDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneDriverOpts$ { - /** @deprecated use `RedisOneDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisOneDriverOpts$inboundSchema; - /** @deprecated use `RedisOneDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisOneDriverOpts$outboundSchema; - /** @deprecated use `RedisOneDriverOpts$Outbound` instead. */ - export type Outbound = RedisOneDriverOpts$Outbound; -} - -export function redisOneDriverOptsToJSON( - redisOneDriverOpts: RedisOneDriverOpts, -): string { - return JSON.stringify( - RedisOneDriverOpts$outboundSchema.parse(redisOneDriverOpts), - ); -} - export function redisOneDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1036,51 +539,6 @@ export const RedisOneNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisOneDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisOneNetworkSwarm$outboundSchema: z.ZodType< - RedisOneNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisOneNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisOneDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneNetworkSwarm$ { - /** @deprecated use `RedisOneNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisOneNetworkSwarm$inboundSchema; - /** @deprecated use `RedisOneNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisOneNetworkSwarm$outboundSchema; - /** @deprecated use `RedisOneNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisOneNetworkSwarm$Outbound; -} - -export function redisOneNetworkSwarmToJSON( - redisOneNetworkSwarm: RedisOneNetworkSwarm, -): string { - return JSON.stringify( - RedisOneNetworkSwarm$outboundSchema.parse(redisOneNetworkSwarm), - ); -} - export function redisOneNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1106,48 +564,6 @@ export const RedisOnePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOnePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisOnePlatform$outboundSchema: z.ZodType< - RedisOnePlatform$Outbound, - z.ZodTypeDef, - RedisOnePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOnePlatform$ { - /** @deprecated use `RedisOnePlatform$inboundSchema` instead. */ - export const inboundSchema = RedisOnePlatform$inboundSchema; - /** @deprecated use `RedisOnePlatform$outboundSchema` instead. */ - export const outboundSchema = RedisOnePlatform$outboundSchema; - /** @deprecated use `RedisOnePlatform$Outbound` instead. */ - export type Outbound = RedisOnePlatform$Outbound; -} - -export function redisOnePlatformToJSON( - redisOnePlatform: RedisOnePlatform, -): string { - return JSON.stringify( - RedisOnePlatform$outboundSchema.parse(redisOnePlatform), - ); -} - export function redisOnePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1171,41 +587,6 @@ export const RedisOneSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisOneSpread$outboundSchema: z.ZodType< - RedisOneSpread$Outbound, - z.ZodTypeDef, - RedisOneSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneSpread$ { - /** @deprecated use `RedisOneSpread$inboundSchema` instead. */ - export const inboundSchema = RedisOneSpread$inboundSchema; - /** @deprecated use `RedisOneSpread$outboundSchema` instead. */ - export const outboundSchema = RedisOneSpread$outboundSchema; - /** @deprecated use `RedisOneSpread$Outbound` instead. */ - export type Outbound = RedisOneSpread$Outbound; -} - -export function redisOneSpreadToJSON(redisOneSpread: RedisOneSpread): string { - return JSON.stringify(RedisOneSpread$outboundSchema.parse(redisOneSpread)); -} - export function redisOneSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1229,45 +610,6 @@ export const RedisOnePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOnePreference$Outbound = { - Spread: RedisOneSpread$Outbound; -}; - -/** @internal */ -export const RedisOnePreference$outboundSchema: z.ZodType< - RedisOnePreference$Outbound, - z.ZodTypeDef, - RedisOnePreference -> = z.object({ - spread: z.lazy(() => RedisOneSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOnePreference$ { - /** @deprecated use `RedisOnePreference$inboundSchema` instead. */ - export const inboundSchema = RedisOnePreference$inboundSchema; - /** @deprecated use `RedisOnePreference$outboundSchema` instead. */ - export const outboundSchema = RedisOnePreference$outboundSchema; - /** @deprecated use `RedisOnePreference$Outbound` instead. */ - export type Outbound = RedisOnePreference$Outbound; -} - -export function redisOnePreferenceToJSON( - redisOnePreference: RedisOnePreference, -): string { - return JSON.stringify( - RedisOnePreference$outboundSchema.parse(redisOnePreference), - ); -} - export function redisOnePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1298,55 +640,6 @@ export const RedisOnePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOnePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisOnePlacementSwarm$outboundSchema: z.ZodType< - RedisOnePlacementSwarm$Outbound, - z.ZodTypeDef, - RedisOnePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisOnePlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => RedisOnePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOnePlacementSwarm$ { - /** @deprecated use `RedisOnePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisOnePlacementSwarm$inboundSchema; - /** @deprecated use `RedisOnePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisOnePlacementSwarm$outboundSchema; - /** @deprecated use `RedisOnePlacementSwarm$Outbound` instead. */ - export type Outbound = RedisOnePlacementSwarm$Outbound; -} - -export function redisOnePlacementSwarmToJSON( - redisOnePlacementSwarm: RedisOnePlacementSwarm, -): string { - return JSON.stringify( - RedisOnePlacementSwarm$outboundSchema.parse(redisOnePlacementSwarm), - ); -} - export function redisOnePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1376,54 +669,6 @@ export const RedisOneRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisOneRestartPolicySwarm$outboundSchema: z.ZodType< - RedisOneRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisOneRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneRestartPolicySwarm$ { - /** @deprecated use `RedisOneRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = RedisOneRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisOneRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = RedisOneRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisOneRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisOneRestartPolicySwarm$Outbound; -} - -export function redisOneRestartPolicySwarmToJSON( - redisOneRestartPolicySwarm: RedisOneRestartPolicySwarm, -): string { - return JSON.stringify( - RedisOneRestartPolicySwarm$outboundSchema.parse(redisOneRestartPolicySwarm), - ); -} - export function redisOneRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1457,62 +702,6 @@ export const RedisOneRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisOneRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisOneRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisOneRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneRollbackConfigSwarm$ { - /** @deprecated use `RedisOneRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisOneRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisOneRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisOneRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisOneRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisOneRollbackConfigSwarm$Outbound; -} - -export function redisOneRollbackConfigSwarmToJSON( - redisOneRollbackConfigSwarm: RedisOneRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisOneRollbackConfigSwarm$outboundSchema.parse( - redisOneRollbackConfigSwarm, - ), - ); -} - export function redisOneRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1528,22 +717,6 @@ export const RedisOneMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof RedisOneMetricsConfigEnum > = z.nativeEnum(RedisOneMetricsConfigEnum); -/** @internal */ -export const RedisOneMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof RedisOneMetricsConfigEnum -> = RedisOneMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneMetricsConfigEnum$ { - /** @deprecated use `RedisOneMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = RedisOneMetricsConfigEnum$inboundSchema; - /** @deprecated use `RedisOneMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = RedisOneMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const RedisOneMetricsConfigUnion1$inboundSchema: z.ZodType< RedisOneMetricsConfigUnion1, @@ -1556,48 +729,6 @@ export const RedisOneMetricsConfigUnion1$inboundSchema: z.ZodType< RedisOneMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type RedisOneMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const RedisOneMetricsConfigUnion1$outboundSchema: z.ZodType< - RedisOneMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - RedisOneMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - RedisOneMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneMetricsConfigUnion1$ { - /** @deprecated use `RedisOneMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = RedisOneMetricsConfigUnion1$inboundSchema; - /** @deprecated use `RedisOneMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = RedisOneMetricsConfigUnion1$outboundSchema; - /** @deprecated use `RedisOneMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = RedisOneMetricsConfigUnion1$Outbound; -} - -export function redisOneMetricsConfigUnion1ToJSON( - redisOneMetricsConfigUnion1: RedisOneMetricsConfigUnion1, -): string { - return JSON.stringify( - RedisOneMetricsConfigUnion1$outboundSchema.parse( - redisOneMetricsConfigUnion1, - ), - ); -} - export function redisOneMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -1624,54 +755,6 @@ export const RedisOneMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type RedisOneMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const RedisOneMetricsConfigUnion2$outboundSchema: z.ZodType< - RedisOneMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - RedisOneMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneMetricsConfigUnion2$ { - /** @deprecated use `RedisOneMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = RedisOneMetricsConfigUnion2$inboundSchema; - /** @deprecated use `RedisOneMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = RedisOneMetricsConfigUnion2$outboundSchema; - /** @deprecated use `RedisOneMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = RedisOneMetricsConfigUnion2$Outbound; -} - -export function redisOneMetricsConfigUnion2ToJSON( - redisOneMetricsConfigUnion2: RedisOneMetricsConfigUnion2, -): string { - return JSON.stringify( - RedisOneMetricsConfigUnion2$outboundSchema.parse( - redisOneMetricsConfigUnion2, - ), - ); -} - export function redisOneMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -1687,22 +770,6 @@ export const RedisOneServerStatus$inboundSchema: z.ZodNativeEnum< typeof RedisOneServerStatus > = z.nativeEnum(RedisOneServerStatus); -/** @internal */ -export const RedisOneServerStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisOneServerStatus -> = RedisOneServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneServerStatus$ { - /** @deprecated use `RedisOneServerStatus$inboundSchema` instead. */ - export const inboundSchema = RedisOneServerStatus$inboundSchema; - /** @deprecated use `RedisOneServerStatus$outboundSchema` instead. */ - export const outboundSchema = RedisOneServerStatus$outboundSchema; -} - /** @internal */ export const RedisOneServer$inboundSchema: z.ZodType< RedisOneServer, @@ -1734,74 +801,6 @@ export const RedisOneServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type RedisOneServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const RedisOneServer$outboundSchema: z.ZodType< - RedisOneServer$Outbound, - z.ZodTypeDef, - RedisOneServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisOneMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: RedisOneServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneServer$ { - /** @deprecated use `RedisOneServer$inboundSchema` instead. */ - export const inboundSchema = RedisOneServer$inboundSchema; - /** @deprecated use `RedisOneServer$outboundSchema` instead. */ - export const outboundSchema = RedisOneServer$outboundSchema; - /** @deprecated use `RedisOneServer$Outbound` instead. */ - export type Outbound = RedisOneServer$Outbound; -} - -export function redisOneServerToJSON(redisOneServer: RedisOneServer): string { - return JSON.stringify(RedisOneServer$outboundSchema.parse(redisOneServer)); -} - export function redisOneServerFromJSON( jsonString: string, ): SafeParseResult { @@ -1835,60 +834,6 @@ export const RedisOneUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisOneUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisOneUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisOneUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisOneUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneUpdateConfigSwarm$ { - /** @deprecated use `RedisOneUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisOneUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisOneUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisOneUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisOneUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisOneUpdateConfigSwarm$Outbound; -} - -export function redisOneUpdateConfigSwarmToJSON( - redisOneUpdateConfigSwarm: RedisOneUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisOneUpdateConfigSwarm$outboundSchema.parse(redisOneUpdateConfigSwarm), - ); -} - export function redisOneUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1948,109 +893,6 @@ export const RedisOneResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisOneResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: RedisOneEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisOneHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisOneModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisOnePlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisOneRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisOneRollbackConfigSwarm$Outbound | null; - server: RedisOneServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisOneUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisOneResponseBody$outboundSchema: z.ZodType< - RedisOneResponseBody$Outbound, - z.ZodTypeDef, - RedisOneResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisOneApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => RedisOneEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisOneHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => RedisOneModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => RedisOneMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisOneNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisOnePlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisOneRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisOneRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => RedisOneServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisOneUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneResponseBody$ { - /** @deprecated use `RedisOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisOneResponseBody$inboundSchema; - /** @deprecated use `RedisOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedisOneResponseBody$outboundSchema; - /** @deprecated use `RedisOneResponseBody$Outbound` instead. */ - export type Outbound = RedisOneResponseBody$Outbound; -} - -export function redisOneResponseBodyToJSON( - redisOneResponseBody: RedisOneResponseBody, -): string { - return JSON.stringify( - RedisOneResponseBody$outboundSchema.parse(redisOneResponseBody), - ); -} - export function redisOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2071,42 +913,6 @@ export const RedisOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisOneResponse$Outbound = - | RedisOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisOneResponse$outboundSchema: z.ZodType< - RedisOneResponse$Outbound, - z.ZodTypeDef, - RedisOneResponse -> = z.union([ - z.lazy(() => RedisOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisOneResponse$ { - /** @deprecated use `RedisOneResponse$inboundSchema` instead. */ - export const inboundSchema = RedisOneResponse$inboundSchema; - /** @deprecated use `RedisOneResponse$outboundSchema` instead. */ - export const outboundSchema = RedisOneResponse$outboundSchema; - /** @deprecated use `RedisOneResponse$Outbound` instead. */ - export type Outbound = RedisOneResponse$Outbound; -} - -export function redisOneResponseToJSON( - redisOneResponse: RedisOneResponse, -): string { - return JSON.stringify( - RedisOneResponse$outboundSchema.parse(redisOneResponse), - ); -} - export function redisOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redisrebuild.ts b/src/models/operations/redisrebuild.ts index fb6253f..085af93 100644 --- a/src/models/operations/redisrebuild.ts +++ b/src/models/operations/redisrebuild.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,15 +14,6 @@ export type RedisRebuildRequest = { export type RedisRebuildResponse = models.ErrorT | boolean; -/** @internal */ -export const RedisRebuildRequest$inboundSchema: z.ZodType< - RedisRebuildRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redisId: z.string(), -}); - /** @internal */ export type RedisRebuildRequest$Outbound = { redisId: string; @@ -37,19 +28,6 @@ export const RedisRebuildRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRebuildRequest$ { - /** @deprecated use `RedisRebuildRequest$inboundSchema` instead. */ - export const inboundSchema = RedisRebuildRequest$inboundSchema; - /** @deprecated use `RedisRebuildRequest$outboundSchema` instead. */ - export const outboundSchema = RedisRebuildRequest$outboundSchema; - /** @deprecated use `RedisRebuildRequest$Outbound` instead. */ - export type Outbound = RedisRebuildRequest$Outbound; -} - export function redisRebuildRequestToJSON( redisRebuildRequest: RedisRebuildRequest, ): string { @@ -58,16 +36,6 @@ export function redisRebuildRequestToJSON( ); } -export function redisRebuildRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisRebuildRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisRebuildRequest' from JSON`, - ); -} - /** @internal */ export const RedisRebuildResponse$inboundSchema: z.ZodType< RedisRebuildResponse, @@ -75,37 +43,6 @@ export const RedisRebuildResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type RedisRebuildResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const RedisRebuildResponse$outboundSchema: z.ZodType< - RedisRebuildResponse$Outbound, - z.ZodTypeDef, - RedisRebuildResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRebuildResponse$ { - /** @deprecated use `RedisRebuildResponse$inboundSchema` instead. */ - export const inboundSchema = RedisRebuildResponse$inboundSchema; - /** @deprecated use `RedisRebuildResponse$outboundSchema` instead. */ - export const outboundSchema = RedisRebuildResponse$outboundSchema; - /** @deprecated use `RedisRebuildResponse$Outbound` instead. */ - export type Outbound = RedisRebuildResponse$Outbound; -} - -export function redisRebuildResponseToJSON( - redisRebuildResponse: RedisRebuildResponse, -): string { - return JSON.stringify( - RedisRebuildResponse$outboundSchema.parse(redisRebuildResponse), - ); -} - export function redisRebuildResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redisreload.ts b/src/models/operations/redisreload.ts index bc2440b..d8a1978 100644 --- a/src/models/operations/redisreload.ts +++ b/src/models/operations/redisreload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type RedisReloadRequest = { export type RedisReloadResponse = models.ErrorT | boolean; -/** @internal */ -export const RedisReloadRequest$inboundSchema: z.ZodType< - RedisReloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string(), - redisId: z.string(), -}); - /** @internal */ export type RedisReloadRequest$Outbound = { appName: string; @@ -41,19 +31,6 @@ export const RedisReloadRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisReloadRequest$ { - /** @deprecated use `RedisReloadRequest$inboundSchema` instead. */ - export const inboundSchema = RedisReloadRequest$inboundSchema; - /** @deprecated use `RedisReloadRequest$outboundSchema` instead. */ - export const outboundSchema = RedisReloadRequest$outboundSchema; - /** @deprecated use `RedisReloadRequest$Outbound` instead. */ - export type Outbound = RedisReloadRequest$Outbound; -} - export function redisReloadRequestToJSON( redisReloadRequest: RedisReloadRequest, ): string { @@ -62,16 +39,6 @@ export function redisReloadRequestToJSON( ); } -export function redisReloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisReloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisReloadRequest' from JSON`, - ); -} - /** @internal */ export const RedisReloadResponse$inboundSchema: z.ZodType< RedisReloadResponse, @@ -79,37 +46,6 @@ export const RedisReloadResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type RedisReloadResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const RedisReloadResponse$outboundSchema: z.ZodType< - RedisReloadResponse$Outbound, - z.ZodTypeDef, - RedisReloadResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisReloadResponse$ { - /** @deprecated use `RedisReloadResponse$inboundSchema` instead. */ - export const inboundSchema = RedisReloadResponse$inboundSchema; - /** @deprecated use `RedisReloadResponse$outboundSchema` instead. */ - export const outboundSchema = RedisReloadResponse$outboundSchema; - /** @deprecated use `RedisReloadResponse$Outbound` instead. */ - export type Outbound = RedisReloadResponse$Outbound; -} - -export function redisReloadResponseToJSON( - redisReloadResponse: RedisReloadResponse, -): string { - return JSON.stringify( - RedisReloadResponse$outboundSchema.parse(redisReloadResponse), - ); -} - export function redisReloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redisremove.ts b/src/models/operations/redisremove.ts index c36e8d6..ffc5a86 100644 --- a/src/models/operations/redisremove.ts +++ b/src/models/operations/redisremove.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -249,15 +249,6 @@ export type RedisRemoveResponseBody = { export type RedisRemoveResponse = RedisRemoveResponseBody | models.ErrorT; -/** @internal */ -export const RedisRemoveRequest$inboundSchema: z.ZodType< - RedisRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redisId: z.string(), -}); - /** @internal */ export type RedisRemoveRequest$Outbound = { redisId: string; @@ -272,19 +263,6 @@ export const RedisRemoveRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveRequest$ { - /** @deprecated use `RedisRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveRequest$inboundSchema; - /** @deprecated use `RedisRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveRequest$outboundSchema; - /** @deprecated use `RedisRemoveRequest$Outbound` instead. */ - export type Outbound = RedisRemoveRequest$Outbound; -} - export function redisRemoveRequestToJSON( redisRemoveRequest: RedisRemoveRequest, ): string { @@ -293,37 +271,11 @@ export function redisRemoveRequestToJSON( ); } -export function redisRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisRemoveRequest' from JSON`, - ); -} - /** @internal */ export const RedisRemoveApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof RedisRemoveApplicationStatus > = z.nativeEnum(RedisRemoveApplicationStatus); -/** @internal */ -export const RedisRemoveApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisRemoveApplicationStatus -> = RedisRemoveApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveApplicationStatus$ { - /** @deprecated use `RedisRemoveApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveApplicationStatus$inboundSchema; - /** @deprecated use `RedisRemoveApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveApplicationStatus$outboundSchema; -} - /** @internal */ export const RedisRemoveProject$inboundSchema: z.ZodType< RedisRemoveProject, @@ -338,51 +290,6 @@ export const RedisRemoveProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisRemoveProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const RedisRemoveProject$outboundSchema: z.ZodType< - RedisRemoveProject$Outbound, - z.ZodTypeDef, - RedisRemoveProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveProject$ { - /** @deprecated use `RedisRemoveProject$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveProject$inboundSchema; - /** @deprecated use `RedisRemoveProject$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveProject$outboundSchema; - /** @deprecated use `RedisRemoveProject$Outbound` instead. */ - export type Outbound = RedisRemoveProject$Outbound; -} - -export function redisRemoveProjectToJSON( - redisRemoveProject: RedisRemoveProject, -): string { - return JSON.stringify( - RedisRemoveProject$outboundSchema.parse(redisRemoveProject), - ); -} - export function redisRemoveProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -408,53 +315,6 @@ export const RedisRemoveEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisRemoveEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: RedisRemoveProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const RedisRemoveEnvironment$outboundSchema: z.ZodType< - RedisRemoveEnvironment$Outbound, - z.ZodTypeDef, - RedisRemoveEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => RedisRemoveProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveEnvironment$ { - /** @deprecated use `RedisRemoveEnvironment$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveEnvironment$inboundSchema; - /** @deprecated use `RedisRemoveEnvironment$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveEnvironment$outboundSchema; - /** @deprecated use `RedisRemoveEnvironment$Outbound` instead. */ - export type Outbound = RedisRemoveEnvironment$Outbound; -} - -export function redisRemoveEnvironmentToJSON( - redisRemoveEnvironment: RedisRemoveEnvironment, -): string { - return JSON.stringify( - RedisRemoveEnvironment$outboundSchema.parse(redisRemoveEnvironment), - ); -} - export function redisRemoveEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -486,59 +346,6 @@ export const RedisRemoveHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisRemoveHealthCheckSwarm$outboundSchema: z.ZodType< - RedisRemoveHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisRemoveHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveHealthCheckSwarm$ { - /** @deprecated use `RedisRemoveHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisRemoveHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisRemoveHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisRemoveHealthCheckSwarm$Outbound; -} - -export function redisRemoveHealthCheckSwarmToJSON( - redisRemoveHealthCheckSwarm: RedisRemoveHealthCheckSwarm, -): string { - return JSON.stringify( - RedisRemoveHealthCheckSwarm$outboundSchema.parse( - redisRemoveHealthCheckSwarm, - ), - ); -} - export function redisRemoveHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -556,37 +363,6 @@ export const RedisRemoveGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisRemoveGlobal$Outbound = {}; - -/** @internal */ -export const RedisRemoveGlobal$outboundSchema: z.ZodType< - RedisRemoveGlobal$Outbound, - z.ZodTypeDef, - RedisRemoveGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveGlobal$ { - /** @deprecated use `RedisRemoveGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveGlobal$inboundSchema; - /** @deprecated use `RedisRemoveGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveGlobal$outboundSchema; - /** @deprecated use `RedisRemoveGlobal$Outbound` instead. */ - export type Outbound = RedisRemoveGlobal$Outbound; -} - -export function redisRemoveGlobalToJSON( - redisRemoveGlobal: RedisRemoveGlobal, -): string { - return JSON.stringify( - RedisRemoveGlobal$outboundSchema.parse(redisRemoveGlobal), - ); -} - export function redisRemoveGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -604,37 +380,6 @@ export const RedisRemoveGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisRemoveGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisRemoveGlobalJob$outboundSchema: z.ZodType< - RedisRemoveGlobalJob$Outbound, - z.ZodTypeDef, - RedisRemoveGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveGlobalJob$ { - /** @deprecated use `RedisRemoveGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveGlobalJob$inboundSchema; - /** @deprecated use `RedisRemoveGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveGlobalJob$outboundSchema; - /** @deprecated use `RedisRemoveGlobalJob$Outbound` instead. */ - export type Outbound = RedisRemoveGlobalJob$Outbound; -} - -export function redisRemoveGlobalJobToJSON( - redisRemoveGlobalJob: RedisRemoveGlobalJob, -): string { - return JSON.stringify( - RedisRemoveGlobalJob$outboundSchema.parse(redisRemoveGlobalJob), - ); -} - export function redisRemoveGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -658,45 +403,6 @@ export const RedisRemoveReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisRemoveReplicated$outboundSchema: z.ZodType< - RedisRemoveReplicated$Outbound, - z.ZodTypeDef, - RedisRemoveReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveReplicated$ { - /** @deprecated use `RedisRemoveReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveReplicated$inboundSchema; - /** @deprecated use `RedisRemoveReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveReplicated$outboundSchema; - /** @deprecated use `RedisRemoveReplicated$Outbound` instead. */ - export type Outbound = RedisRemoveReplicated$Outbound; -} - -export function redisRemoveReplicatedToJSON( - redisRemoveReplicated: RedisRemoveReplicated, -): string { - return JSON.stringify( - RedisRemoveReplicated$outboundSchema.parse(redisRemoveReplicated), - ); -} - export function redisRemoveReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -722,48 +428,6 @@ export const RedisRemoveReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisRemoveReplicatedJob$outboundSchema: z.ZodType< - RedisRemoveReplicatedJob$Outbound, - z.ZodTypeDef, - RedisRemoveReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveReplicatedJob$ { - /** @deprecated use `RedisRemoveReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveReplicatedJob$inboundSchema; - /** @deprecated use `RedisRemoveReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveReplicatedJob$outboundSchema; - /** @deprecated use `RedisRemoveReplicatedJob$Outbound` instead. */ - export type Outbound = RedisRemoveReplicatedJob$Outbound; -} - -export function redisRemoveReplicatedJobToJSON( - redisRemoveReplicatedJob: RedisRemoveReplicatedJob, -): string { - return JSON.stringify( - RedisRemoveReplicatedJob$outboundSchema.parse(redisRemoveReplicatedJob), - ); -} - export function redisRemoveReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -794,55 +458,6 @@ export const RedisRemoveModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveModeSwarm$Outbound = { - Global?: RedisRemoveGlobal$Outbound | undefined; - GlobalJob?: RedisRemoveGlobalJob$Outbound | undefined; - Replicated?: RedisRemoveReplicated$Outbound | undefined; - ReplicatedJob?: RedisRemoveReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisRemoveModeSwarm$outboundSchema: z.ZodType< - RedisRemoveModeSwarm$Outbound, - z.ZodTypeDef, - RedisRemoveModeSwarm -> = z.object({ - global: z.lazy(() => RedisRemoveGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisRemoveGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => RedisRemoveReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => RedisRemoveReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveModeSwarm$ { - /** @deprecated use `RedisRemoveModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveModeSwarm$inboundSchema; - /** @deprecated use `RedisRemoveModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveModeSwarm$outboundSchema; - /** @deprecated use `RedisRemoveModeSwarm$Outbound` instead. */ - export type Outbound = RedisRemoveModeSwarm$Outbound; -} - -export function redisRemoveModeSwarmToJSON( - redisRemoveModeSwarm: RedisRemoveModeSwarm, -): string { - return JSON.stringify( - RedisRemoveModeSwarm$outboundSchema.parse(redisRemoveModeSwarm), - ); -} - export function redisRemoveModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -858,43 +473,11 @@ export const RedisRemoveServiceType$inboundSchema: z.ZodNativeEnum< typeof RedisRemoveServiceType > = z.nativeEnum(RedisRemoveServiceType); -/** @internal */ -export const RedisRemoveServiceType$outboundSchema: z.ZodNativeEnum< - typeof RedisRemoveServiceType -> = RedisRemoveServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveServiceType$ { - /** @deprecated use `RedisRemoveServiceType$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveServiceType$inboundSchema; - /** @deprecated use `RedisRemoveServiceType$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveServiceType$outboundSchema; -} - /** @internal */ export const RedisRemoveType$inboundSchema: z.ZodNativeEnum< typeof RedisRemoveType > = z.nativeEnum(RedisRemoveType); -/** @internal */ -export const RedisRemoveType$outboundSchema: z.ZodNativeEnum< - typeof RedisRemoveType -> = RedisRemoveType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveType$ { - /** @deprecated use `RedisRemoveType$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveType$inboundSchema; - /** @deprecated use `RedisRemoveType$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveType$outboundSchema; -} - /** @internal */ export const RedisRemoveMount$inboundSchema: z.ZodType< RedisRemoveMount, @@ -918,69 +501,6 @@ export const RedisRemoveMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type RedisRemoveMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const RedisRemoveMount$outboundSchema: z.ZodType< - RedisRemoveMount$Outbound, - z.ZodTypeDef, - RedisRemoveMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: RedisRemoveServiceType$outboundSchema, - type: RedisRemoveType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveMount$ { - /** @deprecated use `RedisRemoveMount$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveMount$inboundSchema; - /** @deprecated use `RedisRemoveMount$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveMount$outboundSchema; - /** @deprecated use `RedisRemoveMount$Outbound` instead. */ - export type Outbound = RedisRemoveMount$Outbound; -} - -export function redisRemoveMountToJSON( - redisRemoveMount: RedisRemoveMount, -): string { - return JSON.stringify( - RedisRemoveMount$outboundSchema.parse(redisRemoveMount), - ); -} - export function redisRemoveMountFromJSON( jsonString: string, ): SafeParseResult { @@ -998,37 +518,6 @@ export const RedisRemoveDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisRemoveDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisRemoveDriverOpts$outboundSchema: z.ZodType< - RedisRemoveDriverOpts$Outbound, - z.ZodTypeDef, - RedisRemoveDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveDriverOpts$ { - /** @deprecated use `RedisRemoveDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveDriverOpts$inboundSchema; - /** @deprecated use `RedisRemoveDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveDriverOpts$outboundSchema; - /** @deprecated use `RedisRemoveDriverOpts$Outbound` instead. */ - export type Outbound = RedisRemoveDriverOpts$Outbound; -} - -export function redisRemoveDriverOptsToJSON( - redisRemoveDriverOpts: RedisRemoveDriverOpts, -): string { - return JSON.stringify( - RedisRemoveDriverOpts$outboundSchema.parse(redisRemoveDriverOpts), - ); -} - export function redisRemoveDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1056,51 +545,6 @@ export const RedisRemoveNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisRemoveDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisRemoveNetworkSwarm$outboundSchema: z.ZodType< - RedisRemoveNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisRemoveNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisRemoveDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveNetworkSwarm$ { - /** @deprecated use `RedisRemoveNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveNetworkSwarm$inboundSchema; - /** @deprecated use `RedisRemoveNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveNetworkSwarm$outboundSchema; - /** @deprecated use `RedisRemoveNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisRemoveNetworkSwarm$Outbound; -} - -export function redisRemoveNetworkSwarmToJSON( - redisRemoveNetworkSwarm: RedisRemoveNetworkSwarm, -): string { - return JSON.stringify( - RedisRemoveNetworkSwarm$outboundSchema.parse(redisRemoveNetworkSwarm), - ); -} - export function redisRemoveNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1126,48 +570,6 @@ export const RedisRemovePlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemovePlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisRemovePlatform$outboundSchema: z.ZodType< - RedisRemovePlatform$Outbound, - z.ZodTypeDef, - RedisRemovePlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemovePlatform$ { - /** @deprecated use `RedisRemovePlatform$inboundSchema` instead. */ - export const inboundSchema = RedisRemovePlatform$inboundSchema; - /** @deprecated use `RedisRemovePlatform$outboundSchema` instead. */ - export const outboundSchema = RedisRemovePlatform$outboundSchema; - /** @deprecated use `RedisRemovePlatform$Outbound` instead. */ - export type Outbound = RedisRemovePlatform$Outbound; -} - -export function redisRemovePlatformToJSON( - redisRemovePlatform: RedisRemovePlatform, -): string { - return JSON.stringify( - RedisRemovePlatform$outboundSchema.parse(redisRemovePlatform), - ); -} - export function redisRemovePlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1191,45 +593,6 @@ export const RedisRemoveSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisRemoveSpread$outboundSchema: z.ZodType< - RedisRemoveSpread$Outbound, - z.ZodTypeDef, - RedisRemoveSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveSpread$ { - /** @deprecated use `RedisRemoveSpread$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveSpread$inboundSchema; - /** @deprecated use `RedisRemoveSpread$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveSpread$outboundSchema; - /** @deprecated use `RedisRemoveSpread$Outbound` instead. */ - export type Outbound = RedisRemoveSpread$Outbound; -} - -export function redisRemoveSpreadToJSON( - redisRemoveSpread: RedisRemoveSpread, -): string { - return JSON.stringify( - RedisRemoveSpread$outboundSchema.parse(redisRemoveSpread), - ); -} - export function redisRemoveSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1253,45 +616,6 @@ export const RedisRemovePreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemovePreference$Outbound = { - Spread: RedisRemoveSpread$Outbound; -}; - -/** @internal */ -export const RedisRemovePreference$outboundSchema: z.ZodType< - RedisRemovePreference$Outbound, - z.ZodTypeDef, - RedisRemovePreference -> = z.object({ - spread: z.lazy(() => RedisRemoveSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemovePreference$ { - /** @deprecated use `RedisRemovePreference$inboundSchema` instead. */ - export const inboundSchema = RedisRemovePreference$inboundSchema; - /** @deprecated use `RedisRemovePreference$outboundSchema` instead. */ - export const outboundSchema = RedisRemovePreference$outboundSchema; - /** @deprecated use `RedisRemovePreference$Outbound` instead. */ - export type Outbound = RedisRemovePreference$Outbound; -} - -export function redisRemovePreferenceToJSON( - redisRemovePreference: RedisRemovePreference, -): string { - return JSON.stringify( - RedisRemovePreference$outboundSchema.parse(redisRemovePreference), - ); -} - export function redisRemovePreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1323,56 +647,6 @@ export const RedisRemovePlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemovePlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisRemovePlacementSwarm$outboundSchema: z.ZodType< - RedisRemovePlacementSwarm$Outbound, - z.ZodTypeDef, - RedisRemovePlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisRemovePlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => RedisRemovePreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemovePlacementSwarm$ { - /** @deprecated use `RedisRemovePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisRemovePlacementSwarm$inboundSchema; - /** @deprecated use `RedisRemovePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisRemovePlacementSwarm$outboundSchema; - /** @deprecated use `RedisRemovePlacementSwarm$Outbound` instead. */ - export type Outbound = RedisRemovePlacementSwarm$Outbound; -} - -export function redisRemovePlacementSwarmToJSON( - redisRemovePlacementSwarm: RedisRemovePlacementSwarm, -): string { - return JSON.stringify( - RedisRemovePlacementSwarm$outboundSchema.parse(redisRemovePlacementSwarm), - ); -} - export function redisRemovePlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1402,56 +676,6 @@ export const RedisRemoveRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisRemoveRestartPolicySwarm$outboundSchema: z.ZodType< - RedisRemoveRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisRemoveRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveRestartPolicySwarm$ { - /** @deprecated use `RedisRemoveRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisRemoveRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisRemoveRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisRemoveRestartPolicySwarm$Outbound; -} - -export function redisRemoveRestartPolicySwarmToJSON( - redisRemoveRestartPolicySwarm: RedisRemoveRestartPolicySwarm, -): string { - return JSON.stringify( - RedisRemoveRestartPolicySwarm$outboundSchema.parse( - redisRemoveRestartPolicySwarm, - ), - ); -} - export function redisRemoveRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1485,62 +709,6 @@ export const RedisRemoveRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisRemoveRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisRemoveRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisRemoveRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveRollbackConfigSwarm$ { - /** @deprecated use `RedisRemoveRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisRemoveRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisRemoveRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisRemoveRollbackConfigSwarm$Outbound; -} - -export function redisRemoveRollbackConfigSwarmToJSON( - redisRemoveRollbackConfigSwarm: RedisRemoveRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisRemoveRollbackConfigSwarm$outboundSchema.parse( - redisRemoveRollbackConfigSwarm, - ), - ); -} - export function redisRemoveRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1556,22 +724,6 @@ export const RedisRemoveMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof RedisRemoveMetricsConfigEnum > = z.nativeEnum(RedisRemoveMetricsConfigEnum); -/** @internal */ -export const RedisRemoveMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof RedisRemoveMetricsConfigEnum -> = RedisRemoveMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveMetricsConfigEnum$ { - /** @deprecated use `RedisRemoveMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveMetricsConfigEnum$inboundSchema; - /** @deprecated use `RedisRemoveMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const RedisRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< RedisRemoveMetricsConfigUnion1, @@ -1584,48 +736,6 @@ export const RedisRemoveMetricsConfigUnion1$inboundSchema: z.ZodType< RedisRemoveMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type RedisRemoveMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const RedisRemoveMetricsConfigUnion1$outboundSchema: z.ZodType< - RedisRemoveMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - RedisRemoveMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - RedisRemoveMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveMetricsConfigUnion1$ { - /** @deprecated use `RedisRemoveMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveMetricsConfigUnion1$inboundSchema; - /** @deprecated use `RedisRemoveMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveMetricsConfigUnion1$outboundSchema; - /** @deprecated use `RedisRemoveMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = RedisRemoveMetricsConfigUnion1$Outbound; -} - -export function redisRemoveMetricsConfigUnion1ToJSON( - redisRemoveMetricsConfigUnion1: RedisRemoveMetricsConfigUnion1, -): string { - return JSON.stringify( - RedisRemoveMetricsConfigUnion1$outboundSchema.parse( - redisRemoveMetricsConfigUnion1, - ), - ); -} - export function redisRemoveMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -1652,54 +762,6 @@ export const RedisRemoveMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type RedisRemoveMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const RedisRemoveMetricsConfigUnion2$outboundSchema: z.ZodType< - RedisRemoveMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - RedisRemoveMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveMetricsConfigUnion2$ { - /** @deprecated use `RedisRemoveMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveMetricsConfigUnion2$inboundSchema; - /** @deprecated use `RedisRemoveMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveMetricsConfigUnion2$outboundSchema; - /** @deprecated use `RedisRemoveMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = RedisRemoveMetricsConfigUnion2$Outbound; -} - -export function redisRemoveMetricsConfigUnion2ToJSON( - redisRemoveMetricsConfigUnion2: RedisRemoveMetricsConfigUnion2, -): string { - return JSON.stringify( - RedisRemoveMetricsConfigUnion2$outboundSchema.parse( - redisRemoveMetricsConfigUnion2, - ), - ); -} - export function redisRemoveMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -1715,22 +777,6 @@ export const RedisRemoveServerStatus$inboundSchema: z.ZodNativeEnum< typeof RedisRemoveServerStatus > = z.nativeEnum(RedisRemoveServerStatus); -/** @internal */ -export const RedisRemoveServerStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisRemoveServerStatus -> = RedisRemoveServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveServerStatus$ { - /** @deprecated use `RedisRemoveServerStatus$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveServerStatus$inboundSchema; - /** @deprecated use `RedisRemoveServerStatus$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveServerStatus$outboundSchema; -} - /** @internal */ export const RedisRemoveServer$inboundSchema: z.ZodType< RedisRemoveServer, @@ -1762,78 +808,6 @@ export const RedisRemoveServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type RedisRemoveServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const RedisRemoveServer$outboundSchema: z.ZodType< - RedisRemoveServer$Outbound, - z.ZodTypeDef, - RedisRemoveServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisRemoveMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: RedisRemoveServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveServer$ { - /** @deprecated use `RedisRemoveServer$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveServer$inboundSchema; - /** @deprecated use `RedisRemoveServer$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveServer$outboundSchema; - /** @deprecated use `RedisRemoveServer$Outbound` instead. */ - export type Outbound = RedisRemoveServer$Outbound; -} - -export function redisRemoveServerToJSON( - redisRemoveServer: RedisRemoveServer, -): string { - return JSON.stringify( - RedisRemoveServer$outboundSchema.parse(redisRemoveServer), - ); -} - export function redisRemoveServerFromJSON( jsonString: string, ): SafeParseResult { @@ -1867,62 +841,6 @@ export const RedisRemoveUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisRemoveUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisRemoveUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisRemoveUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisRemoveUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveUpdateConfigSwarm$ { - /** @deprecated use `RedisRemoveUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisRemoveUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisRemoveUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisRemoveUpdateConfigSwarm$Outbound; -} - -export function redisRemoveUpdateConfigSwarmToJSON( - redisRemoveUpdateConfigSwarm: RedisRemoveUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisRemoveUpdateConfigSwarm$outboundSchema.parse( - redisRemoveUpdateConfigSwarm, - ), - ); -} - export function redisRemoveUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1982,109 +900,6 @@ export const RedisRemoveResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisRemoveResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: RedisRemoveEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisRemoveHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisRemoveModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisRemovePlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisRemoveRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisRemoveRollbackConfigSwarm$Outbound | null; - server: RedisRemoveServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisRemoveUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisRemoveResponseBody$outboundSchema: z.ZodType< - RedisRemoveResponseBody$Outbound, - z.ZodTypeDef, - RedisRemoveResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisRemoveApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => RedisRemoveEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisRemoveHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => RedisRemoveModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => RedisRemoveMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisRemoveNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisRemovePlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisRemoveRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisRemoveRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => RedisRemoveServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisRemoveUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveResponseBody$ { - /** @deprecated use `RedisRemoveResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveResponseBody$inboundSchema; - /** @deprecated use `RedisRemoveResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveResponseBody$outboundSchema; - /** @deprecated use `RedisRemoveResponseBody$Outbound` instead. */ - export type Outbound = RedisRemoveResponseBody$Outbound; -} - -export function redisRemoveResponseBodyToJSON( - redisRemoveResponseBody: RedisRemoveResponseBody, -): string { - return JSON.stringify( - RedisRemoveResponseBody$outboundSchema.parse(redisRemoveResponseBody), - ); -} - export function redisRemoveResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2105,42 +920,6 @@ export const RedisRemoveResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisRemoveResponse$Outbound = - | RedisRemoveResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisRemoveResponse$outboundSchema: z.ZodType< - RedisRemoveResponse$Outbound, - z.ZodTypeDef, - RedisRemoveResponse -> = z.union([ - z.lazy(() => RedisRemoveResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisRemoveResponse$ { - /** @deprecated use `RedisRemoveResponse$inboundSchema` instead. */ - export const inboundSchema = RedisRemoveResponse$inboundSchema; - /** @deprecated use `RedisRemoveResponse$outboundSchema` instead. */ - export const outboundSchema = RedisRemoveResponse$outboundSchema; - /** @deprecated use `RedisRemoveResponse$Outbound` instead. */ - export type Outbound = RedisRemoveResponse$Outbound; -} - -export function redisRemoveResponseToJSON( - redisRemoveResponse: RedisRemoveResponse, -): string { - return JSON.stringify( - RedisRemoveResponse$outboundSchema.parse(redisRemoveResponse), - ); -} - export function redisRemoveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redissaveenvironment.ts b/src/models/operations/redissaveenvironment.ts index 99d14c1..afe0a69 100644 --- a/src/models/operations/redissaveenvironment.ts +++ b/src/models/operations/redissaveenvironment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,16 +15,6 @@ export type RedisSaveEnvironmentRequest = { export type RedisSaveEnvironmentResponse = models.ErrorT | boolean; -/** @internal */ -export const RedisSaveEnvironmentRequest$inboundSchema: z.ZodType< - RedisSaveEnvironmentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - env: z.nullable(z.string()).optional(), - redisId: z.string(), -}); - /** @internal */ export type RedisSaveEnvironmentRequest$Outbound = { env?: string | null | undefined; @@ -41,19 +31,6 @@ export const RedisSaveEnvironmentRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveEnvironmentRequest$ { - /** @deprecated use `RedisSaveEnvironmentRequest$inboundSchema` instead. */ - export const inboundSchema = RedisSaveEnvironmentRequest$inboundSchema; - /** @deprecated use `RedisSaveEnvironmentRequest$outboundSchema` instead. */ - export const outboundSchema = RedisSaveEnvironmentRequest$outboundSchema; - /** @deprecated use `RedisSaveEnvironmentRequest$Outbound` instead. */ - export type Outbound = RedisSaveEnvironmentRequest$Outbound; -} - export function redisSaveEnvironmentRequestToJSON( redisSaveEnvironmentRequest: RedisSaveEnvironmentRequest, ): string { @@ -64,16 +41,6 @@ export function redisSaveEnvironmentRequestToJSON( ); } -export function redisSaveEnvironmentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisSaveEnvironmentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisSaveEnvironmentRequest' from JSON`, - ); -} - /** @internal */ export const RedisSaveEnvironmentResponse$inboundSchema: z.ZodType< RedisSaveEnvironmentResponse, @@ -81,41 +48,6 @@ export const RedisSaveEnvironmentResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type RedisSaveEnvironmentResponse$Outbound = - | models.ErrorT$Outbound - | boolean; - -/** @internal */ -export const RedisSaveEnvironmentResponse$outboundSchema: z.ZodType< - RedisSaveEnvironmentResponse$Outbound, - z.ZodTypeDef, - RedisSaveEnvironmentResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveEnvironmentResponse$ { - /** @deprecated use `RedisSaveEnvironmentResponse$inboundSchema` instead. */ - export const inboundSchema = RedisSaveEnvironmentResponse$inboundSchema; - /** @deprecated use `RedisSaveEnvironmentResponse$outboundSchema` instead. */ - export const outboundSchema = RedisSaveEnvironmentResponse$outboundSchema; - /** @deprecated use `RedisSaveEnvironmentResponse$Outbound` instead. */ - export type Outbound = RedisSaveEnvironmentResponse$Outbound; -} - -export function redisSaveEnvironmentResponseToJSON( - redisSaveEnvironmentResponse: RedisSaveEnvironmentResponse, -): string { - return JSON.stringify( - RedisSaveEnvironmentResponse$outboundSchema.parse( - redisSaveEnvironmentResponse, - ), - ); -} - export function redisSaveEnvironmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redissaveexternalport.ts b/src/models/operations/redissaveexternalport.ts index d1500bc..a17328e 100644 --- a/src/models/operations/redissaveexternalport.ts +++ b/src/models/operations/redissaveexternalport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -256,16 +256,6 @@ export type RedisSaveExternalPortResponse = | RedisSaveExternalPortResponseBody | models.ErrorT; -/** @internal */ -export const RedisSaveExternalPortRequest$inboundSchema: z.ZodType< - RedisSaveExternalPortRequest, - z.ZodTypeDef, - unknown -> = z.object({ - externalPort: z.nullable(z.number()), - redisId: z.string(), -}); - /** @internal */ export type RedisSaveExternalPortRequest$Outbound = { externalPort: number | null; @@ -282,19 +272,6 @@ export const RedisSaveExternalPortRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortRequest$ { - /** @deprecated use `RedisSaveExternalPortRequest$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortRequest$inboundSchema; - /** @deprecated use `RedisSaveExternalPortRequest$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortRequest$outboundSchema; - /** @deprecated use `RedisSaveExternalPortRequest$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortRequest$Outbound; -} - export function redisSaveExternalPortRequestToJSON( redisSaveExternalPortRequest: RedisSaveExternalPortRequest, ): string { @@ -305,40 +282,12 @@ export function redisSaveExternalPortRequestToJSON( ); } -export function redisSaveExternalPortRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisSaveExternalPortRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisSaveExternalPortRequest' from JSON`, - ); -} - /** @internal */ export const RedisSaveExternalPortApplicationStatus$inboundSchema: z.ZodNativeEnum = z.nativeEnum( RedisSaveExternalPortApplicationStatus, ); -/** @internal */ -export const RedisSaveExternalPortApplicationStatus$outboundSchema: - z.ZodNativeEnum = - RedisSaveExternalPortApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortApplicationStatus$ { - /** @deprecated use `RedisSaveExternalPortApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortApplicationStatus$inboundSchema; - /** @deprecated use `RedisSaveExternalPortApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortApplicationStatus$outboundSchema; -} - /** @internal */ export const RedisSaveExternalPortProject$inboundSchema: z.ZodType< RedisSaveExternalPortProject, @@ -353,53 +302,6 @@ export const RedisSaveExternalPortProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisSaveExternalPortProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const RedisSaveExternalPortProject$outboundSchema: z.ZodType< - RedisSaveExternalPortProject$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortProject$ { - /** @deprecated use `RedisSaveExternalPortProject$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortProject$inboundSchema; - /** @deprecated use `RedisSaveExternalPortProject$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortProject$outboundSchema; - /** @deprecated use `RedisSaveExternalPortProject$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortProject$Outbound; -} - -export function redisSaveExternalPortProjectToJSON( - redisSaveExternalPortProject: RedisSaveExternalPortProject, -): string { - return JSON.stringify( - RedisSaveExternalPortProject$outboundSchema.parse( - redisSaveExternalPortProject, - ), - ); -} - export function redisSaveExternalPortProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -425,55 +327,6 @@ export const RedisSaveExternalPortEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisSaveExternalPortEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: RedisSaveExternalPortProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const RedisSaveExternalPortEnvironment$outboundSchema: z.ZodType< - RedisSaveExternalPortEnvironment$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => RedisSaveExternalPortProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortEnvironment$ { - /** @deprecated use `RedisSaveExternalPortEnvironment$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortEnvironment$inboundSchema; - /** @deprecated use `RedisSaveExternalPortEnvironment$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortEnvironment$outboundSchema; - /** @deprecated use `RedisSaveExternalPortEnvironment$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortEnvironment$Outbound; -} - -export function redisSaveExternalPortEnvironmentToJSON( - redisSaveExternalPortEnvironment: RedisSaveExternalPortEnvironment, -): string { - return JSON.stringify( - RedisSaveExternalPortEnvironment$outboundSchema.parse( - redisSaveExternalPortEnvironment, - ), - ); -} - export function redisSaveExternalPortEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -505,61 +358,6 @@ export const RedisSaveExternalPortHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisSaveExternalPortHealthCheckSwarm$outboundSchema: z.ZodType< - RedisSaveExternalPortHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortHealthCheckSwarm$ { - /** @deprecated use `RedisSaveExternalPortHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisSaveExternalPortHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisSaveExternalPortHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortHealthCheckSwarm$Outbound; -} - -export function redisSaveExternalPortHealthCheckSwarmToJSON( - redisSaveExternalPortHealthCheckSwarm: RedisSaveExternalPortHealthCheckSwarm, -): string { - return JSON.stringify( - RedisSaveExternalPortHealthCheckSwarm$outboundSchema.parse( - redisSaveExternalPortHealthCheckSwarm, - ), - ); -} - export function redisSaveExternalPortHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -578,39 +376,6 @@ export const RedisSaveExternalPortGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisSaveExternalPortGlobal$Outbound = {}; - -/** @internal */ -export const RedisSaveExternalPortGlobal$outboundSchema: z.ZodType< - RedisSaveExternalPortGlobal$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortGlobal$ { - /** @deprecated use `RedisSaveExternalPortGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortGlobal$inboundSchema; - /** @deprecated use `RedisSaveExternalPortGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortGlobal$outboundSchema; - /** @deprecated use `RedisSaveExternalPortGlobal$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortGlobal$Outbound; -} - -export function redisSaveExternalPortGlobalToJSON( - redisSaveExternalPortGlobal: RedisSaveExternalPortGlobal, -): string { - return JSON.stringify( - RedisSaveExternalPortGlobal$outboundSchema.parse( - redisSaveExternalPortGlobal, - ), - ); -} - export function redisSaveExternalPortGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -628,39 +393,6 @@ export const RedisSaveExternalPortGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisSaveExternalPortGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisSaveExternalPortGlobalJob$outboundSchema: z.ZodType< - RedisSaveExternalPortGlobalJob$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortGlobalJob$ { - /** @deprecated use `RedisSaveExternalPortGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortGlobalJob$inboundSchema; - /** @deprecated use `RedisSaveExternalPortGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortGlobalJob$outboundSchema; - /** @deprecated use `RedisSaveExternalPortGlobalJob$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortGlobalJob$Outbound; -} - -export function redisSaveExternalPortGlobalJobToJSON( - redisSaveExternalPortGlobalJob: RedisSaveExternalPortGlobalJob, -): string { - return JSON.stringify( - RedisSaveExternalPortGlobalJob$outboundSchema.parse( - redisSaveExternalPortGlobalJob, - ), - ); -} - export function redisSaveExternalPortGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -684,47 +416,6 @@ export const RedisSaveExternalPortReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisSaveExternalPortReplicated$outboundSchema: z.ZodType< - RedisSaveExternalPortReplicated$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortReplicated$ { - /** @deprecated use `RedisSaveExternalPortReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortReplicated$inboundSchema; - /** @deprecated use `RedisSaveExternalPortReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortReplicated$outboundSchema; - /** @deprecated use `RedisSaveExternalPortReplicated$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortReplicated$Outbound; -} - -export function redisSaveExternalPortReplicatedToJSON( - redisSaveExternalPortReplicated: RedisSaveExternalPortReplicated, -): string { - return JSON.stringify( - RedisSaveExternalPortReplicated$outboundSchema.parse( - redisSaveExternalPortReplicated, - ), - ); -} - export function redisSaveExternalPortReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -750,51 +441,6 @@ export const RedisSaveExternalPortReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisSaveExternalPortReplicatedJob$outboundSchema: z.ZodType< - RedisSaveExternalPortReplicatedJob$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortReplicatedJob$ { - /** @deprecated use `RedisSaveExternalPortReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortReplicatedJob$inboundSchema; - /** @deprecated use `RedisSaveExternalPortReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortReplicatedJob$outboundSchema; - /** @deprecated use `RedisSaveExternalPortReplicatedJob$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortReplicatedJob$Outbound; -} - -export function redisSaveExternalPortReplicatedJobToJSON( - redisSaveExternalPortReplicatedJob: RedisSaveExternalPortReplicatedJob, -): string { - return JSON.stringify( - RedisSaveExternalPortReplicatedJob$outboundSchema.parse( - redisSaveExternalPortReplicatedJob, - ), - ); -} - export function redisSaveExternalPortReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -828,59 +474,6 @@ export const RedisSaveExternalPortModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortModeSwarm$Outbound = { - Global?: RedisSaveExternalPortGlobal$Outbound | undefined; - GlobalJob?: RedisSaveExternalPortGlobalJob$Outbound | undefined; - Replicated?: RedisSaveExternalPortReplicated$Outbound | undefined; - ReplicatedJob?: RedisSaveExternalPortReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisSaveExternalPortModeSwarm$outboundSchema: z.ZodType< - RedisSaveExternalPortModeSwarm$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortModeSwarm -> = z.object({ - global: z.lazy(() => RedisSaveExternalPortGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisSaveExternalPortGlobalJob$outboundSchema) - .optional(), - replicated: z.lazy(() => RedisSaveExternalPortReplicated$outboundSchema) - .optional(), - replicatedJob: z.lazy(() => RedisSaveExternalPortReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortModeSwarm$ { - /** @deprecated use `RedisSaveExternalPortModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortModeSwarm$inboundSchema; - /** @deprecated use `RedisSaveExternalPortModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortModeSwarm$outboundSchema; - /** @deprecated use `RedisSaveExternalPortModeSwarm$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortModeSwarm$Outbound; -} - -export function redisSaveExternalPortModeSwarmToJSON( - redisSaveExternalPortModeSwarm: RedisSaveExternalPortModeSwarm, -): string { - return JSON.stringify( - RedisSaveExternalPortModeSwarm$outboundSchema.parse( - redisSaveExternalPortModeSwarm, - ), - ); -} - export function redisSaveExternalPortModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -896,43 +489,11 @@ export const RedisSaveExternalPortServiceType$inboundSchema: z.ZodNativeEnum< typeof RedisSaveExternalPortServiceType > = z.nativeEnum(RedisSaveExternalPortServiceType); -/** @internal */ -export const RedisSaveExternalPortServiceType$outboundSchema: z.ZodNativeEnum< - typeof RedisSaveExternalPortServiceType -> = RedisSaveExternalPortServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortServiceType$ { - /** @deprecated use `RedisSaveExternalPortServiceType$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortServiceType$inboundSchema; - /** @deprecated use `RedisSaveExternalPortServiceType$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortServiceType$outboundSchema; -} - /** @internal */ export const RedisSaveExternalPortType$inboundSchema: z.ZodNativeEnum< typeof RedisSaveExternalPortType > = z.nativeEnum(RedisSaveExternalPortType); -/** @internal */ -export const RedisSaveExternalPortType$outboundSchema: z.ZodNativeEnum< - typeof RedisSaveExternalPortType -> = RedisSaveExternalPortType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortType$ { - /** @deprecated use `RedisSaveExternalPortType$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortType$inboundSchema; - /** @deprecated use `RedisSaveExternalPortType$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortType$outboundSchema; -} - /** @internal */ export const RedisSaveExternalPortMount$inboundSchema: z.ZodType< RedisSaveExternalPortMount, @@ -956,69 +517,6 @@ export const RedisSaveExternalPortMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type RedisSaveExternalPortMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const RedisSaveExternalPortMount$outboundSchema: z.ZodType< - RedisSaveExternalPortMount$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: RedisSaveExternalPortServiceType$outboundSchema, - type: RedisSaveExternalPortType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortMount$ { - /** @deprecated use `RedisSaveExternalPortMount$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortMount$inboundSchema; - /** @deprecated use `RedisSaveExternalPortMount$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortMount$outboundSchema; - /** @deprecated use `RedisSaveExternalPortMount$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortMount$Outbound; -} - -export function redisSaveExternalPortMountToJSON( - redisSaveExternalPortMount: RedisSaveExternalPortMount, -): string { - return JSON.stringify( - RedisSaveExternalPortMount$outboundSchema.parse(redisSaveExternalPortMount), - ); -} - export function redisSaveExternalPortMountFromJSON( jsonString: string, ): SafeParseResult { @@ -1036,39 +534,6 @@ export const RedisSaveExternalPortDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisSaveExternalPortDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisSaveExternalPortDriverOpts$outboundSchema: z.ZodType< - RedisSaveExternalPortDriverOpts$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortDriverOpts$ { - /** @deprecated use `RedisSaveExternalPortDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortDriverOpts$inboundSchema; - /** @deprecated use `RedisSaveExternalPortDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortDriverOpts$outboundSchema; - /** @deprecated use `RedisSaveExternalPortDriverOpts$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortDriverOpts$Outbound; -} - -export function redisSaveExternalPortDriverOptsToJSON( - redisSaveExternalPortDriverOpts: RedisSaveExternalPortDriverOpts, -): string { - return JSON.stringify( - RedisSaveExternalPortDriverOpts$outboundSchema.parse( - redisSaveExternalPortDriverOpts, - ), - ); -} - export function redisSaveExternalPortDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1097,55 +562,6 @@ export const RedisSaveExternalPortNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisSaveExternalPortDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisSaveExternalPortNetworkSwarm$outboundSchema: z.ZodType< - RedisSaveExternalPortNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisSaveExternalPortDriverOpts$outboundSchema) - .optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortNetworkSwarm$ { - /** @deprecated use `RedisSaveExternalPortNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortNetworkSwarm$inboundSchema; - /** @deprecated use `RedisSaveExternalPortNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortNetworkSwarm$outboundSchema; - /** @deprecated use `RedisSaveExternalPortNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortNetworkSwarm$Outbound; -} - -export function redisSaveExternalPortNetworkSwarmToJSON( - redisSaveExternalPortNetworkSwarm: RedisSaveExternalPortNetworkSwarm, -): string { - return JSON.stringify( - RedisSaveExternalPortNetworkSwarm$outboundSchema.parse( - redisSaveExternalPortNetworkSwarm, - ), - ); -} - export function redisSaveExternalPortNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1171,50 +587,6 @@ export const RedisSaveExternalPortPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisSaveExternalPortPlatform$outboundSchema: z.ZodType< - RedisSaveExternalPortPlatform$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortPlatform$ { - /** @deprecated use `RedisSaveExternalPortPlatform$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortPlatform$inboundSchema; - /** @deprecated use `RedisSaveExternalPortPlatform$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortPlatform$outboundSchema; - /** @deprecated use `RedisSaveExternalPortPlatform$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortPlatform$Outbound; -} - -export function redisSaveExternalPortPlatformToJSON( - redisSaveExternalPortPlatform: RedisSaveExternalPortPlatform, -): string { - return JSON.stringify( - RedisSaveExternalPortPlatform$outboundSchema.parse( - redisSaveExternalPortPlatform, - ), - ); -} - export function redisSaveExternalPortPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1238,47 +610,6 @@ export const RedisSaveExternalPortSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisSaveExternalPortSpread$outboundSchema: z.ZodType< - RedisSaveExternalPortSpread$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortSpread$ { - /** @deprecated use `RedisSaveExternalPortSpread$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortSpread$inboundSchema; - /** @deprecated use `RedisSaveExternalPortSpread$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortSpread$outboundSchema; - /** @deprecated use `RedisSaveExternalPortSpread$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortSpread$Outbound; -} - -export function redisSaveExternalPortSpreadToJSON( - redisSaveExternalPortSpread: RedisSaveExternalPortSpread, -): string { - return JSON.stringify( - RedisSaveExternalPortSpread$outboundSchema.parse( - redisSaveExternalPortSpread, - ), - ); -} - export function redisSaveExternalPortSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1302,47 +633,6 @@ export const RedisSaveExternalPortPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortPreference$Outbound = { - Spread: RedisSaveExternalPortSpread$Outbound; -}; - -/** @internal */ -export const RedisSaveExternalPortPreference$outboundSchema: z.ZodType< - RedisSaveExternalPortPreference$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortPreference -> = z.object({ - spread: z.lazy(() => RedisSaveExternalPortSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortPreference$ { - /** @deprecated use `RedisSaveExternalPortPreference$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortPreference$inboundSchema; - /** @deprecated use `RedisSaveExternalPortPreference$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortPreference$outboundSchema; - /** @deprecated use `RedisSaveExternalPortPreference$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortPreference$Outbound; -} - -export function redisSaveExternalPortPreferenceToJSON( - redisSaveExternalPortPreference: RedisSaveExternalPortPreference, -): string { - return JSON.stringify( - RedisSaveExternalPortPreference$outboundSchema.parse( - redisSaveExternalPortPreference, - ), - ); -} - export function redisSaveExternalPortPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1375,61 +665,6 @@ export const RedisSaveExternalPortPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisSaveExternalPortPlacementSwarm$outboundSchema: z.ZodType< - RedisSaveExternalPortPlacementSwarm$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisSaveExternalPortPlatform$outboundSchema)) - .optional(), - preferences: z.array( - z.lazy(() => RedisSaveExternalPortPreference$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortPlacementSwarm$ { - /** @deprecated use `RedisSaveExternalPortPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortPlacementSwarm$inboundSchema; - /** @deprecated use `RedisSaveExternalPortPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortPlacementSwarm$outboundSchema; - /** @deprecated use `RedisSaveExternalPortPlacementSwarm$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortPlacementSwarm$Outbound; -} - -export function redisSaveExternalPortPlacementSwarmToJSON( - redisSaveExternalPortPlacementSwarm: RedisSaveExternalPortPlacementSwarm, -): string { - return JSON.stringify( - RedisSaveExternalPortPlacementSwarm$outboundSchema.parse( - redisSaveExternalPortPlacementSwarm, - ), - ); -} - export function redisSaveExternalPortPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1455,64 +690,11 @@ export const RedisSaveExternalPortRestartPolicySwarm$inboundSchema: z.ZodType< return remap$(v, { "Condition": "condition", "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - -/** @internal */ -export type RedisSaveExternalPortRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisSaveExternalPortRestartPolicySwarm$outboundSchema: z.ZodType< - RedisSaveExternalPortRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", + "MaxAttempts": "maxAttempts", + "Window": "window", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortRestartPolicySwarm$ { - /** @deprecated use `RedisSaveExternalPortRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisSaveExternalPortRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisSaveExternalPortRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortRestartPolicySwarm$Outbound; -} - -export function redisSaveExternalPortRestartPolicySwarmToJSON( - redisSaveExternalPortRestartPolicySwarm: - RedisSaveExternalPortRestartPolicySwarm, -): string { - return JSON.stringify( - RedisSaveExternalPortRestartPolicySwarm$outboundSchema.parse( - redisSaveExternalPortRestartPolicySwarm, - ), - ); -} - export function redisSaveExternalPortRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -1552,65 +734,6 @@ export const RedisSaveExternalPortRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisSaveExternalPortRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisSaveExternalPortRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortRollbackConfigSwarm$ { - /** @deprecated use `RedisSaveExternalPortRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisSaveExternalPortRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisSaveExternalPortRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortRollbackConfigSwarm$Outbound; -} - -export function redisSaveExternalPortRollbackConfigSwarmToJSON( - redisSaveExternalPortRollbackConfigSwarm: - RedisSaveExternalPortRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisSaveExternalPortRollbackConfigSwarm$outboundSchema.parse( - redisSaveExternalPortRollbackConfigSwarm, - ), - ); -} - export function redisSaveExternalPortRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult< @@ -1633,24 +756,6 @@ export const RedisSaveExternalPortMetricsConfigEnum$inboundSchema: RedisSaveExternalPortMetricsConfigEnum, ); -/** @internal */ -export const RedisSaveExternalPortMetricsConfigEnum$outboundSchema: - z.ZodNativeEnum = - RedisSaveExternalPortMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortMetricsConfigEnum$ { - /** @deprecated use `RedisSaveExternalPortMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortMetricsConfigEnum$inboundSchema; - /** @deprecated use `RedisSaveExternalPortMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const RedisSaveExternalPortMetricsConfigUnion1$inboundSchema: z.ZodType< RedisSaveExternalPortMetricsConfigUnion1, @@ -1663,51 +768,6 @@ export const RedisSaveExternalPortMetricsConfigUnion1$inboundSchema: z.ZodType< RedisSaveExternalPortMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type RedisSaveExternalPortMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const RedisSaveExternalPortMetricsConfigUnion1$outboundSchema: z.ZodType< - RedisSaveExternalPortMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - RedisSaveExternalPortMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortMetricsConfigUnion1$ { - /** @deprecated use `RedisSaveExternalPortMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortMetricsConfigUnion1$inboundSchema; - /** @deprecated use `RedisSaveExternalPortMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortMetricsConfigUnion1$outboundSchema; - /** @deprecated use `RedisSaveExternalPortMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortMetricsConfigUnion1$Outbound; -} - -export function redisSaveExternalPortMetricsConfigUnion1ToJSON( - redisSaveExternalPortMetricsConfigUnion1: - RedisSaveExternalPortMetricsConfigUnion1, -): string { - return JSON.stringify( - RedisSaveExternalPortMetricsConfigUnion1$outboundSchema.parse( - redisSaveExternalPortMetricsConfigUnion1, - ), - ); -} - export function redisSaveExternalPortMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult< @@ -1740,57 +800,6 @@ export const RedisSaveExternalPortMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type RedisSaveExternalPortMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const RedisSaveExternalPortMetricsConfigUnion2$outboundSchema: z.ZodType< - RedisSaveExternalPortMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortMetricsConfigUnion2$ { - /** @deprecated use `RedisSaveExternalPortMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortMetricsConfigUnion2$inboundSchema; - /** @deprecated use `RedisSaveExternalPortMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortMetricsConfigUnion2$outboundSchema; - /** @deprecated use `RedisSaveExternalPortMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortMetricsConfigUnion2$Outbound; -} - -export function redisSaveExternalPortMetricsConfigUnion2ToJSON( - redisSaveExternalPortMetricsConfigUnion2: - RedisSaveExternalPortMetricsConfigUnion2, -): string { - return JSON.stringify( - RedisSaveExternalPortMetricsConfigUnion2$outboundSchema.parse( - redisSaveExternalPortMetricsConfigUnion2, - ), - ); -} - export function redisSaveExternalPortMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult< @@ -1812,23 +821,6 @@ export const RedisSaveExternalPortServerStatus$inboundSchema: z.ZodNativeEnum< typeof RedisSaveExternalPortServerStatus > = z.nativeEnum(RedisSaveExternalPortServerStatus); -/** @internal */ -export const RedisSaveExternalPortServerStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisSaveExternalPortServerStatus -> = RedisSaveExternalPortServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortServerStatus$ { - /** @deprecated use `RedisSaveExternalPortServerStatus$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortServerStatus$inboundSchema; - /** @deprecated use `RedisSaveExternalPortServerStatus$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortServerStatus$outboundSchema; -} - /** @internal */ export const RedisSaveExternalPortServer$inboundSchema: z.ZodType< RedisSaveExternalPortServer, @@ -1860,80 +852,6 @@ export const RedisSaveExternalPortServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type RedisSaveExternalPortServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const RedisSaveExternalPortServer$outboundSchema: z.ZodType< - RedisSaveExternalPortServer$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisSaveExternalPortMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: RedisSaveExternalPortServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortServer$ { - /** @deprecated use `RedisSaveExternalPortServer$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortServer$inboundSchema; - /** @deprecated use `RedisSaveExternalPortServer$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortServer$outboundSchema; - /** @deprecated use `RedisSaveExternalPortServer$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortServer$Outbound; -} - -export function redisSaveExternalPortServerToJSON( - redisSaveExternalPortServer: RedisSaveExternalPortServer, -): string { - return JSON.stringify( - RedisSaveExternalPortServer$outboundSchema.parse( - redisSaveExternalPortServer, - ), - ); -} - export function redisSaveExternalPortServerFromJSON( jsonString: string, ): SafeParseResult { @@ -1967,65 +885,6 @@ export const RedisSaveExternalPortUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisSaveExternalPortUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisSaveExternalPortUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisSaveExternalPortUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortUpdateConfigSwarm$ { - /** @deprecated use `RedisSaveExternalPortUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = - RedisSaveExternalPortUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisSaveExternalPortUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisSaveExternalPortUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortUpdateConfigSwarm$Outbound; -} - -export function redisSaveExternalPortUpdateConfigSwarmToJSON( - redisSaveExternalPortUpdateConfigSwarm: - RedisSaveExternalPortUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisSaveExternalPortUpdateConfigSwarm$outboundSchema.parse( - redisSaveExternalPortUpdateConfigSwarm, - ), - ); -} - export function redisSaveExternalPortUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -2088,114 +947,6 @@ export const RedisSaveExternalPortResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisSaveExternalPortResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: RedisSaveExternalPortEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisSaveExternalPortHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisSaveExternalPortModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisSaveExternalPortPlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisSaveExternalPortRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisSaveExternalPortRollbackConfigSwarm$Outbound | null; - server: RedisSaveExternalPortServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisSaveExternalPortUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisSaveExternalPortResponseBody$outboundSchema: z.ZodType< - RedisSaveExternalPortResponseBody$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisSaveExternalPortApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => RedisSaveExternalPortEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisSaveExternalPortHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable( - z.lazy(() => RedisSaveExternalPortModeSwarm$outboundSchema), - ), - mounts: z.array(z.lazy(() => RedisSaveExternalPortMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisSaveExternalPortNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisSaveExternalPortPlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisSaveExternalPortRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisSaveExternalPortRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => RedisSaveExternalPortServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisSaveExternalPortUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortResponseBody$ { - /** @deprecated use `RedisSaveExternalPortResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortResponseBody$inboundSchema; - /** @deprecated use `RedisSaveExternalPortResponseBody$outboundSchema` instead. */ - export const outboundSchema = - RedisSaveExternalPortResponseBody$outboundSchema; - /** @deprecated use `RedisSaveExternalPortResponseBody$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortResponseBody$Outbound; -} - -export function redisSaveExternalPortResponseBodyToJSON( - redisSaveExternalPortResponseBody: RedisSaveExternalPortResponseBody, -): string { - return JSON.stringify( - RedisSaveExternalPortResponseBody$outboundSchema.parse( - redisSaveExternalPortResponseBody, - ), - ); -} - export function redisSaveExternalPortResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2216,44 +967,6 @@ export const RedisSaveExternalPortResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisSaveExternalPortResponse$Outbound = - | RedisSaveExternalPortResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisSaveExternalPortResponse$outboundSchema: z.ZodType< - RedisSaveExternalPortResponse$Outbound, - z.ZodTypeDef, - RedisSaveExternalPortResponse -> = z.union([ - z.lazy(() => RedisSaveExternalPortResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisSaveExternalPortResponse$ { - /** @deprecated use `RedisSaveExternalPortResponse$inboundSchema` instead. */ - export const inboundSchema = RedisSaveExternalPortResponse$inboundSchema; - /** @deprecated use `RedisSaveExternalPortResponse$outboundSchema` instead. */ - export const outboundSchema = RedisSaveExternalPortResponse$outboundSchema; - /** @deprecated use `RedisSaveExternalPortResponse$Outbound` instead. */ - export type Outbound = RedisSaveExternalPortResponse$Outbound; -} - -export function redisSaveExternalPortResponseToJSON( - redisSaveExternalPortResponse: RedisSaveExternalPortResponse, -): string { - return JSON.stringify( - RedisSaveExternalPortResponse$outboundSchema.parse( - redisSaveExternalPortResponse, - ), - ); -} - export function redisSaveExternalPortResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redisstart.ts b/src/models/operations/redisstart.ts index f620c67..e84c057 100644 --- a/src/models/operations/redisstart.ts +++ b/src/models/operations/redisstart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -247,15 +247,6 @@ export type RedisStartResponseBody = { export type RedisStartResponse = RedisStartResponseBody | models.ErrorT; -/** @internal */ -export const RedisStartRequest$inboundSchema: z.ZodType< - RedisStartRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redisId: z.string(), -}); - /** @internal */ export type RedisStartRequest$Outbound = { redisId: string; @@ -270,19 +261,6 @@ export const RedisStartRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartRequest$ { - /** @deprecated use `RedisStartRequest$inboundSchema` instead. */ - export const inboundSchema = RedisStartRequest$inboundSchema; - /** @deprecated use `RedisStartRequest$outboundSchema` instead. */ - export const outboundSchema = RedisStartRequest$outboundSchema; - /** @deprecated use `RedisStartRequest$Outbound` instead. */ - export type Outbound = RedisStartRequest$Outbound; -} - export function redisStartRequestToJSON( redisStartRequest: RedisStartRequest, ): string { @@ -291,37 +269,11 @@ export function redisStartRequestToJSON( ); } -export function redisStartRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisStartRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisStartRequest' from JSON`, - ); -} - /** @internal */ export const RedisStartApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof RedisStartApplicationStatus > = z.nativeEnum(RedisStartApplicationStatus); -/** @internal */ -export const RedisStartApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisStartApplicationStatus -> = RedisStartApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartApplicationStatus$ { - /** @deprecated use `RedisStartApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = RedisStartApplicationStatus$inboundSchema; - /** @deprecated use `RedisStartApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = RedisStartApplicationStatus$outboundSchema; -} - /** @internal */ export const RedisStartProject$inboundSchema: z.ZodType< RedisStartProject, @@ -336,51 +288,6 @@ export const RedisStartProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisStartProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const RedisStartProject$outboundSchema: z.ZodType< - RedisStartProject$Outbound, - z.ZodTypeDef, - RedisStartProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartProject$ { - /** @deprecated use `RedisStartProject$inboundSchema` instead. */ - export const inboundSchema = RedisStartProject$inboundSchema; - /** @deprecated use `RedisStartProject$outboundSchema` instead. */ - export const outboundSchema = RedisStartProject$outboundSchema; - /** @deprecated use `RedisStartProject$Outbound` instead. */ - export type Outbound = RedisStartProject$Outbound; -} - -export function redisStartProjectToJSON( - redisStartProject: RedisStartProject, -): string { - return JSON.stringify( - RedisStartProject$outboundSchema.parse(redisStartProject), - ); -} - export function redisStartProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -406,53 +313,6 @@ export const RedisStartEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisStartEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: RedisStartProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const RedisStartEnvironment$outboundSchema: z.ZodType< - RedisStartEnvironment$Outbound, - z.ZodTypeDef, - RedisStartEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => RedisStartProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartEnvironment$ { - /** @deprecated use `RedisStartEnvironment$inboundSchema` instead. */ - export const inboundSchema = RedisStartEnvironment$inboundSchema; - /** @deprecated use `RedisStartEnvironment$outboundSchema` instead. */ - export const outboundSchema = RedisStartEnvironment$outboundSchema; - /** @deprecated use `RedisStartEnvironment$Outbound` instead. */ - export type Outbound = RedisStartEnvironment$Outbound; -} - -export function redisStartEnvironmentToJSON( - redisStartEnvironment: RedisStartEnvironment, -): string { - return JSON.stringify( - RedisStartEnvironment$outboundSchema.parse(redisStartEnvironment), - ); -} - export function redisStartEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -484,57 +344,6 @@ export const RedisStartHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisStartHealthCheckSwarm$outboundSchema: z.ZodType< - RedisStartHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisStartHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartHealthCheckSwarm$ { - /** @deprecated use `RedisStartHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStartHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisStartHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStartHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisStartHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisStartHealthCheckSwarm$Outbound; -} - -export function redisStartHealthCheckSwarmToJSON( - redisStartHealthCheckSwarm: RedisStartHealthCheckSwarm, -): string { - return JSON.stringify( - RedisStartHealthCheckSwarm$outboundSchema.parse(redisStartHealthCheckSwarm), - ); -} - export function redisStartHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -552,37 +361,6 @@ export const RedisStartGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisStartGlobal$Outbound = {}; - -/** @internal */ -export const RedisStartGlobal$outboundSchema: z.ZodType< - RedisStartGlobal$Outbound, - z.ZodTypeDef, - RedisStartGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartGlobal$ { - /** @deprecated use `RedisStartGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisStartGlobal$inboundSchema; - /** @deprecated use `RedisStartGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisStartGlobal$outboundSchema; - /** @deprecated use `RedisStartGlobal$Outbound` instead. */ - export type Outbound = RedisStartGlobal$Outbound; -} - -export function redisStartGlobalToJSON( - redisStartGlobal: RedisStartGlobal, -): string { - return JSON.stringify( - RedisStartGlobal$outboundSchema.parse(redisStartGlobal), - ); -} - export function redisStartGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -600,37 +378,6 @@ export const RedisStartGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisStartGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisStartGlobalJob$outboundSchema: z.ZodType< - RedisStartGlobalJob$Outbound, - z.ZodTypeDef, - RedisStartGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartGlobalJob$ { - /** @deprecated use `RedisStartGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisStartGlobalJob$inboundSchema; - /** @deprecated use `RedisStartGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisStartGlobalJob$outboundSchema; - /** @deprecated use `RedisStartGlobalJob$Outbound` instead. */ - export type Outbound = RedisStartGlobalJob$Outbound; -} - -export function redisStartGlobalJobToJSON( - redisStartGlobalJob: RedisStartGlobalJob, -): string { - return JSON.stringify( - RedisStartGlobalJob$outboundSchema.parse(redisStartGlobalJob), - ); -} - export function redisStartGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -654,45 +401,6 @@ export const RedisStartReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisStartReplicated$outboundSchema: z.ZodType< - RedisStartReplicated$Outbound, - z.ZodTypeDef, - RedisStartReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartReplicated$ { - /** @deprecated use `RedisStartReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisStartReplicated$inboundSchema; - /** @deprecated use `RedisStartReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisStartReplicated$outboundSchema; - /** @deprecated use `RedisStartReplicated$Outbound` instead. */ - export type Outbound = RedisStartReplicated$Outbound; -} - -export function redisStartReplicatedToJSON( - redisStartReplicated: RedisStartReplicated, -): string { - return JSON.stringify( - RedisStartReplicated$outboundSchema.parse(redisStartReplicated), - ); -} - export function redisStartReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -718,48 +426,6 @@ export const RedisStartReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisStartReplicatedJob$outboundSchema: z.ZodType< - RedisStartReplicatedJob$Outbound, - z.ZodTypeDef, - RedisStartReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartReplicatedJob$ { - /** @deprecated use `RedisStartReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisStartReplicatedJob$inboundSchema; - /** @deprecated use `RedisStartReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisStartReplicatedJob$outboundSchema; - /** @deprecated use `RedisStartReplicatedJob$Outbound` instead. */ - export type Outbound = RedisStartReplicatedJob$Outbound; -} - -export function redisStartReplicatedJobToJSON( - redisStartReplicatedJob: RedisStartReplicatedJob, -): string { - return JSON.stringify( - RedisStartReplicatedJob$outboundSchema.parse(redisStartReplicatedJob), - ); -} - export function redisStartReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -789,55 +455,6 @@ export const RedisStartModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartModeSwarm$Outbound = { - Global?: RedisStartGlobal$Outbound | undefined; - GlobalJob?: RedisStartGlobalJob$Outbound | undefined; - Replicated?: RedisStartReplicated$Outbound | undefined; - ReplicatedJob?: RedisStartReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisStartModeSwarm$outboundSchema: z.ZodType< - RedisStartModeSwarm$Outbound, - z.ZodTypeDef, - RedisStartModeSwarm -> = z.object({ - global: z.lazy(() => RedisStartGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisStartGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => RedisStartReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => RedisStartReplicatedJob$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartModeSwarm$ { - /** @deprecated use `RedisStartModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStartModeSwarm$inboundSchema; - /** @deprecated use `RedisStartModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStartModeSwarm$outboundSchema; - /** @deprecated use `RedisStartModeSwarm$Outbound` instead. */ - export type Outbound = RedisStartModeSwarm$Outbound; -} - -export function redisStartModeSwarmToJSON( - redisStartModeSwarm: RedisStartModeSwarm, -): string { - return JSON.stringify( - RedisStartModeSwarm$outboundSchema.parse(redisStartModeSwarm), - ); -} - export function redisStartModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -853,43 +470,11 @@ export const RedisStartServiceType$inboundSchema: z.ZodNativeEnum< typeof RedisStartServiceType > = z.nativeEnum(RedisStartServiceType); -/** @internal */ -export const RedisStartServiceType$outboundSchema: z.ZodNativeEnum< - typeof RedisStartServiceType -> = RedisStartServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartServiceType$ { - /** @deprecated use `RedisStartServiceType$inboundSchema` instead. */ - export const inboundSchema = RedisStartServiceType$inboundSchema; - /** @deprecated use `RedisStartServiceType$outboundSchema` instead. */ - export const outboundSchema = RedisStartServiceType$outboundSchema; -} - /** @internal */ export const RedisStartType$inboundSchema: z.ZodNativeEnum< typeof RedisStartType > = z.nativeEnum(RedisStartType); -/** @internal */ -export const RedisStartType$outboundSchema: z.ZodNativeEnum< - typeof RedisStartType -> = RedisStartType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartType$ { - /** @deprecated use `RedisStartType$inboundSchema` instead. */ - export const inboundSchema = RedisStartType$inboundSchema; - /** @deprecated use `RedisStartType$outboundSchema` instead. */ - export const outboundSchema = RedisStartType$outboundSchema; -} - /** @internal */ export const RedisStartMount$inboundSchema: z.ZodType< RedisStartMount, @@ -913,67 +498,6 @@ export const RedisStartMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type RedisStartMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const RedisStartMount$outboundSchema: z.ZodType< - RedisStartMount$Outbound, - z.ZodTypeDef, - RedisStartMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: RedisStartServiceType$outboundSchema, - type: RedisStartType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartMount$ { - /** @deprecated use `RedisStartMount$inboundSchema` instead. */ - export const inboundSchema = RedisStartMount$inboundSchema; - /** @deprecated use `RedisStartMount$outboundSchema` instead. */ - export const outboundSchema = RedisStartMount$outboundSchema; - /** @deprecated use `RedisStartMount$Outbound` instead. */ - export type Outbound = RedisStartMount$Outbound; -} - -export function redisStartMountToJSON( - redisStartMount: RedisStartMount, -): string { - return JSON.stringify(RedisStartMount$outboundSchema.parse(redisStartMount)); -} - export function redisStartMountFromJSON( jsonString: string, ): SafeParseResult { @@ -991,37 +515,6 @@ export const RedisStartDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisStartDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisStartDriverOpts$outboundSchema: z.ZodType< - RedisStartDriverOpts$Outbound, - z.ZodTypeDef, - RedisStartDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartDriverOpts$ { - /** @deprecated use `RedisStartDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisStartDriverOpts$inboundSchema; - /** @deprecated use `RedisStartDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisStartDriverOpts$outboundSchema; - /** @deprecated use `RedisStartDriverOpts$Outbound` instead. */ - export type Outbound = RedisStartDriverOpts$Outbound; -} - -export function redisStartDriverOptsToJSON( - redisStartDriverOpts: RedisStartDriverOpts, -): string { - return JSON.stringify( - RedisStartDriverOpts$outboundSchema.parse(redisStartDriverOpts), - ); -} - export function redisStartDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1049,51 +542,6 @@ export const RedisStartNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisStartDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisStartNetworkSwarm$outboundSchema: z.ZodType< - RedisStartNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisStartNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisStartDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartNetworkSwarm$ { - /** @deprecated use `RedisStartNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStartNetworkSwarm$inboundSchema; - /** @deprecated use `RedisStartNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStartNetworkSwarm$outboundSchema; - /** @deprecated use `RedisStartNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisStartNetworkSwarm$Outbound; -} - -export function redisStartNetworkSwarmToJSON( - redisStartNetworkSwarm: RedisStartNetworkSwarm, -): string { - return JSON.stringify( - RedisStartNetworkSwarm$outboundSchema.parse(redisStartNetworkSwarm), - ); -} - export function redisStartNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1119,48 +567,6 @@ export const RedisStartPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisStartPlatform$outboundSchema: z.ZodType< - RedisStartPlatform$Outbound, - z.ZodTypeDef, - RedisStartPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartPlatform$ { - /** @deprecated use `RedisStartPlatform$inboundSchema` instead. */ - export const inboundSchema = RedisStartPlatform$inboundSchema; - /** @deprecated use `RedisStartPlatform$outboundSchema` instead. */ - export const outboundSchema = RedisStartPlatform$outboundSchema; - /** @deprecated use `RedisStartPlatform$Outbound` instead. */ - export type Outbound = RedisStartPlatform$Outbound; -} - -export function redisStartPlatformToJSON( - redisStartPlatform: RedisStartPlatform, -): string { - return JSON.stringify( - RedisStartPlatform$outboundSchema.parse(redisStartPlatform), - ); -} - export function redisStartPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1184,45 +590,6 @@ export const RedisStartSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisStartSpread$outboundSchema: z.ZodType< - RedisStartSpread$Outbound, - z.ZodTypeDef, - RedisStartSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartSpread$ { - /** @deprecated use `RedisStartSpread$inboundSchema` instead. */ - export const inboundSchema = RedisStartSpread$inboundSchema; - /** @deprecated use `RedisStartSpread$outboundSchema` instead. */ - export const outboundSchema = RedisStartSpread$outboundSchema; - /** @deprecated use `RedisStartSpread$Outbound` instead. */ - export type Outbound = RedisStartSpread$Outbound; -} - -export function redisStartSpreadToJSON( - redisStartSpread: RedisStartSpread, -): string { - return JSON.stringify( - RedisStartSpread$outboundSchema.parse(redisStartSpread), - ); -} - export function redisStartSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1246,45 +613,6 @@ export const RedisStartPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartPreference$Outbound = { - Spread: RedisStartSpread$Outbound; -}; - -/** @internal */ -export const RedisStartPreference$outboundSchema: z.ZodType< - RedisStartPreference$Outbound, - z.ZodTypeDef, - RedisStartPreference -> = z.object({ - spread: z.lazy(() => RedisStartSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartPreference$ { - /** @deprecated use `RedisStartPreference$inboundSchema` instead. */ - export const inboundSchema = RedisStartPreference$inboundSchema; - /** @deprecated use `RedisStartPreference$outboundSchema` instead. */ - export const outboundSchema = RedisStartPreference$outboundSchema; - /** @deprecated use `RedisStartPreference$Outbound` instead. */ - export type Outbound = RedisStartPreference$Outbound; -} - -export function redisStartPreferenceToJSON( - redisStartPreference: RedisStartPreference, -): string { - return JSON.stringify( - RedisStartPreference$outboundSchema.parse(redisStartPreference), - ); -} - export function redisStartPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1315,56 +643,6 @@ export const RedisStartPlacementSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisStartPlacementSwarm$outboundSchema: z.ZodType< - RedisStartPlacementSwarm$Outbound, - z.ZodTypeDef, - RedisStartPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisStartPlatform$outboundSchema)) - .optional(), - preferences: z.array(z.lazy(() => RedisStartPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartPlacementSwarm$ { - /** @deprecated use `RedisStartPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStartPlacementSwarm$inboundSchema; - /** @deprecated use `RedisStartPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStartPlacementSwarm$outboundSchema; - /** @deprecated use `RedisStartPlacementSwarm$Outbound` instead. */ - export type Outbound = RedisStartPlacementSwarm$Outbound; -} - -export function redisStartPlacementSwarmToJSON( - redisStartPlacementSwarm: RedisStartPlacementSwarm, -): string { - return JSON.stringify( - RedisStartPlacementSwarm$outboundSchema.parse(redisStartPlacementSwarm), - ); -} - export function redisStartPlacementSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1394,56 +672,6 @@ export const RedisStartRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisStartRestartPolicySwarm$outboundSchema: z.ZodType< - RedisStartRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisStartRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartRestartPolicySwarm$ { - /** @deprecated use `RedisStartRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStartRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisStartRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStartRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisStartRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisStartRestartPolicySwarm$Outbound; -} - -export function redisStartRestartPolicySwarmToJSON( - redisStartRestartPolicySwarm: RedisStartRestartPolicySwarm, -): string { - return JSON.stringify( - RedisStartRestartPolicySwarm$outboundSchema.parse( - redisStartRestartPolicySwarm, - ), - ); -} - export function redisStartRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1477,62 +705,6 @@ export const RedisStartRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisStartRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisStartRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisStartRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartRollbackConfigSwarm$ { - /** @deprecated use `RedisStartRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStartRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisStartRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStartRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisStartRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisStartRollbackConfigSwarm$Outbound; -} - -export function redisStartRollbackConfigSwarmToJSON( - redisStartRollbackConfigSwarm: RedisStartRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisStartRollbackConfigSwarm$outboundSchema.parse( - redisStartRollbackConfigSwarm, - ), - ); -} - export function redisStartRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1548,22 +720,6 @@ export const RedisStartMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof RedisStartMetricsConfigEnum > = z.nativeEnum(RedisStartMetricsConfigEnum); -/** @internal */ -export const RedisStartMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof RedisStartMetricsConfigEnum -> = RedisStartMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartMetricsConfigEnum$ { - /** @deprecated use `RedisStartMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = RedisStartMetricsConfigEnum$inboundSchema; - /** @deprecated use `RedisStartMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = RedisStartMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const RedisStartMetricsConfigUnion1$inboundSchema: z.ZodType< RedisStartMetricsConfigUnion1, @@ -1576,48 +732,6 @@ export const RedisStartMetricsConfigUnion1$inboundSchema: z.ZodType< RedisStartMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type RedisStartMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const RedisStartMetricsConfigUnion1$outboundSchema: z.ZodType< - RedisStartMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - RedisStartMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - RedisStartMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartMetricsConfigUnion1$ { - /** @deprecated use `RedisStartMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = RedisStartMetricsConfigUnion1$inboundSchema; - /** @deprecated use `RedisStartMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = RedisStartMetricsConfigUnion1$outboundSchema; - /** @deprecated use `RedisStartMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = RedisStartMetricsConfigUnion1$Outbound; -} - -export function redisStartMetricsConfigUnion1ToJSON( - redisStartMetricsConfigUnion1: RedisStartMetricsConfigUnion1, -): string { - return JSON.stringify( - RedisStartMetricsConfigUnion1$outboundSchema.parse( - redisStartMetricsConfigUnion1, - ), - ); -} - export function redisStartMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -1644,54 +758,6 @@ export const RedisStartMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type RedisStartMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const RedisStartMetricsConfigUnion2$outboundSchema: z.ZodType< - RedisStartMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - RedisStartMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartMetricsConfigUnion2$ { - /** @deprecated use `RedisStartMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = RedisStartMetricsConfigUnion2$inboundSchema; - /** @deprecated use `RedisStartMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = RedisStartMetricsConfigUnion2$outboundSchema; - /** @deprecated use `RedisStartMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = RedisStartMetricsConfigUnion2$Outbound; -} - -export function redisStartMetricsConfigUnion2ToJSON( - redisStartMetricsConfigUnion2: RedisStartMetricsConfigUnion2, -): string { - return JSON.stringify( - RedisStartMetricsConfigUnion2$outboundSchema.parse( - redisStartMetricsConfigUnion2, - ), - ); -} - export function redisStartMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -1707,22 +773,6 @@ export const RedisStartServerStatus$inboundSchema: z.ZodNativeEnum< typeof RedisStartServerStatus > = z.nativeEnum(RedisStartServerStatus); -/** @internal */ -export const RedisStartServerStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisStartServerStatus -> = RedisStartServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartServerStatus$ { - /** @deprecated use `RedisStartServerStatus$inboundSchema` instead. */ - export const inboundSchema = RedisStartServerStatus$inboundSchema; - /** @deprecated use `RedisStartServerStatus$outboundSchema` instead. */ - export const outboundSchema = RedisStartServerStatus$outboundSchema; -} - /** @internal */ export const RedisStartServer$inboundSchema: z.ZodType< RedisStartServer, @@ -1754,78 +804,6 @@ export const RedisStartServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type RedisStartServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const RedisStartServer$outboundSchema: z.ZodType< - RedisStartServer$Outbound, - z.ZodTypeDef, - RedisStartServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisStartMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: RedisStartServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartServer$ { - /** @deprecated use `RedisStartServer$inboundSchema` instead. */ - export const inboundSchema = RedisStartServer$inboundSchema; - /** @deprecated use `RedisStartServer$outboundSchema` instead. */ - export const outboundSchema = RedisStartServer$outboundSchema; - /** @deprecated use `RedisStartServer$Outbound` instead. */ - export type Outbound = RedisStartServer$Outbound; -} - -export function redisStartServerToJSON( - redisStartServer: RedisStartServer, -): string { - return JSON.stringify( - RedisStartServer$outboundSchema.parse(redisStartServer), - ); -} - export function redisStartServerFromJSON( jsonString: string, ): SafeParseResult { @@ -1859,62 +837,6 @@ export const RedisStartUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStartUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisStartUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisStartUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisStartUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartUpdateConfigSwarm$ { - /** @deprecated use `RedisStartUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStartUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisStartUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStartUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisStartUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisStartUpdateConfigSwarm$Outbound; -} - -export function redisStartUpdateConfigSwarmToJSON( - redisStartUpdateConfigSwarm: RedisStartUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisStartUpdateConfigSwarm$outboundSchema.parse( - redisStartUpdateConfigSwarm, - ), - ); -} - export function redisStartUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1974,109 +896,6 @@ export const RedisStartResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisStartResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: RedisStartEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisStartHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisStartModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisStartPlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisStartRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisStartRollbackConfigSwarm$Outbound | null; - server: RedisStartServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisStartUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisStartResponseBody$outboundSchema: z.ZodType< - RedisStartResponseBody$Outbound, - z.ZodTypeDef, - RedisStartResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisStartApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => RedisStartEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisStartHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => RedisStartModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => RedisStartMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisStartNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisStartPlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisStartRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisStartRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => RedisStartServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisStartUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartResponseBody$ { - /** @deprecated use `RedisStartResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisStartResponseBody$inboundSchema; - /** @deprecated use `RedisStartResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedisStartResponseBody$outboundSchema; - /** @deprecated use `RedisStartResponseBody$Outbound` instead. */ - export type Outbound = RedisStartResponseBody$Outbound; -} - -export function redisStartResponseBodyToJSON( - redisStartResponseBody: RedisStartResponseBody, -): string { - return JSON.stringify( - RedisStartResponseBody$outboundSchema.parse(redisStartResponseBody), - ); -} - export function redisStartResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2097,42 +916,6 @@ export const RedisStartResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisStartResponse$Outbound = - | RedisStartResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisStartResponse$outboundSchema: z.ZodType< - RedisStartResponse$Outbound, - z.ZodTypeDef, - RedisStartResponse -> = z.union([ - z.lazy(() => RedisStartResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStartResponse$ { - /** @deprecated use `RedisStartResponse$inboundSchema` instead. */ - export const inboundSchema = RedisStartResponse$inboundSchema; - /** @deprecated use `RedisStartResponse$outboundSchema` instead. */ - export const outboundSchema = RedisStartResponse$outboundSchema; - /** @deprecated use `RedisStartResponse$Outbound` instead. */ - export type Outbound = RedisStartResponse$Outbound; -} - -export function redisStartResponseToJSON( - redisStartResponse: RedisStartResponse, -): string { - return JSON.stringify( - RedisStartResponse$outboundSchema.parse(redisStartResponse), - ); -} - export function redisStartResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redisstop.ts b/src/models/operations/redisstop.ts index 86328e3..8abecd6 100644 --- a/src/models/operations/redisstop.ts +++ b/src/models/operations/redisstop.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -247,15 +247,6 @@ export type RedisStopResponseBody = { export type RedisStopResponse = RedisStopResponseBody | models.ErrorT; -/** @internal */ -export const RedisStopRequest$inboundSchema: z.ZodType< - RedisStopRequest, - z.ZodTypeDef, - unknown -> = z.object({ - redisId: z.string(), -}); - /** @internal */ export type RedisStopRequest$Outbound = { redisId: string; @@ -270,19 +261,6 @@ export const RedisStopRequest$outboundSchema: z.ZodType< redisId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopRequest$ { - /** @deprecated use `RedisStopRequest$inboundSchema` instead. */ - export const inboundSchema = RedisStopRequest$inboundSchema; - /** @deprecated use `RedisStopRequest$outboundSchema` instead. */ - export const outboundSchema = RedisStopRequest$outboundSchema; - /** @deprecated use `RedisStopRequest$Outbound` instead. */ - export type Outbound = RedisStopRequest$Outbound; -} - export function redisStopRequestToJSON( redisStopRequest: RedisStopRequest, ): string { @@ -291,37 +269,11 @@ export function redisStopRequestToJSON( ); } -export function redisStopRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisStopRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisStopRequest' from JSON`, - ); -} - /** @internal */ export const RedisStopApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof RedisStopApplicationStatus > = z.nativeEnum(RedisStopApplicationStatus); -/** @internal */ -export const RedisStopApplicationStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisStopApplicationStatus -> = RedisStopApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopApplicationStatus$ { - /** @deprecated use `RedisStopApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = RedisStopApplicationStatus$inboundSchema; - /** @deprecated use `RedisStopApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = RedisStopApplicationStatus$outboundSchema; -} - /** @internal */ export const RedisStopProject$inboundSchema: z.ZodType< RedisStopProject, @@ -336,51 +288,6 @@ export const RedisStopProject$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisStopProject$Outbound = { - createdAt: string; - description: string | null; - env: string; - name: string; - organizationId: string; - projectId: string; -}; - -/** @internal */ -export const RedisStopProject$outboundSchema: z.ZodType< - RedisStopProject$Outbound, - z.ZodTypeDef, - RedisStopProject -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - name: z.string(), - organizationId: z.string(), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopProject$ { - /** @deprecated use `RedisStopProject$inboundSchema` instead. */ - export const inboundSchema = RedisStopProject$inboundSchema; - /** @deprecated use `RedisStopProject$outboundSchema` instead. */ - export const outboundSchema = RedisStopProject$outboundSchema; - /** @deprecated use `RedisStopProject$Outbound` instead. */ - export type Outbound = RedisStopProject$Outbound; -} - -export function redisStopProjectToJSON( - redisStopProject: RedisStopProject, -): string { - return JSON.stringify( - RedisStopProject$outboundSchema.parse(redisStopProject), - ); -} - export function redisStopProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -406,53 +313,6 @@ export const RedisStopEnvironment$inboundSchema: z.ZodType< projectId: z.string(), }); -/** @internal */ -export type RedisStopEnvironment$Outbound = { - createdAt: string; - description: string | null; - env: string; - environmentId: string; - name: string; - project: RedisStopProject$Outbound; - projectId: string; -}; - -/** @internal */ -export const RedisStopEnvironment$outboundSchema: z.ZodType< - RedisStopEnvironment$Outbound, - z.ZodTypeDef, - RedisStopEnvironment -> = z.object({ - createdAt: z.string(), - description: z.nullable(z.string()), - env: z.string(), - environmentId: z.string(), - name: z.string(), - project: z.lazy(() => RedisStopProject$outboundSchema), - projectId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopEnvironment$ { - /** @deprecated use `RedisStopEnvironment$inboundSchema` instead. */ - export const inboundSchema = RedisStopEnvironment$inboundSchema; - /** @deprecated use `RedisStopEnvironment$outboundSchema` instead. */ - export const outboundSchema = RedisStopEnvironment$outboundSchema; - /** @deprecated use `RedisStopEnvironment$Outbound` instead. */ - export type Outbound = RedisStopEnvironment$Outbound; -} - -export function redisStopEnvironmentToJSON( - redisStopEnvironment: RedisStopEnvironment, -): string { - return JSON.stringify( - RedisStopEnvironment$outboundSchema.parse(redisStopEnvironment), - ); -} - export function redisStopEnvironmentFromJSON( jsonString: string, ): SafeParseResult { @@ -484,57 +344,6 @@ export const RedisStopHealthCheckSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopHealthCheckSwarm$Outbound = { - Interval?: number | undefined; - Retries?: number | undefined; - StartPeriod?: number | undefined; - Test?: Array | undefined; - Timeout?: number | undefined; -}; - -/** @internal */ -export const RedisStopHealthCheckSwarm$outboundSchema: z.ZodType< - RedisStopHealthCheckSwarm$Outbound, - z.ZodTypeDef, - RedisStopHealthCheckSwarm -> = z.object({ - interval: z.number().optional(), - retries: z.number().optional(), - startPeriod: z.number().optional(), - test: z.array(z.string()).optional(), - timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - interval: "Interval", - retries: "Retries", - startPeriod: "StartPeriod", - test: "Test", - timeout: "Timeout", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopHealthCheckSwarm$ { - /** @deprecated use `RedisStopHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStopHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisStopHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStopHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisStopHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisStopHealthCheckSwarm$Outbound; -} - -export function redisStopHealthCheckSwarmToJSON( - redisStopHealthCheckSwarm: RedisStopHealthCheckSwarm, -): string { - return JSON.stringify( - RedisStopHealthCheckSwarm$outboundSchema.parse(redisStopHealthCheckSwarm), - ); -} - export function redisStopHealthCheckSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -552,35 +361,6 @@ export const RedisStopGlobal$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisStopGlobal$Outbound = {}; - -/** @internal */ -export const RedisStopGlobal$outboundSchema: z.ZodType< - RedisStopGlobal$Outbound, - z.ZodTypeDef, - RedisStopGlobal -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopGlobal$ { - /** @deprecated use `RedisStopGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisStopGlobal$inboundSchema; - /** @deprecated use `RedisStopGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisStopGlobal$outboundSchema; - /** @deprecated use `RedisStopGlobal$Outbound` instead. */ - export type Outbound = RedisStopGlobal$Outbound; -} - -export function redisStopGlobalToJSON( - redisStopGlobal: RedisStopGlobal, -): string { - return JSON.stringify(RedisStopGlobal$outboundSchema.parse(redisStopGlobal)); -} - export function redisStopGlobalFromJSON( jsonString: string, ): SafeParseResult { @@ -598,37 +378,6 @@ export const RedisStopGlobalJob$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisStopGlobalJob$Outbound = {}; - -/** @internal */ -export const RedisStopGlobalJob$outboundSchema: z.ZodType< - RedisStopGlobalJob$Outbound, - z.ZodTypeDef, - RedisStopGlobalJob -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopGlobalJob$ { - /** @deprecated use `RedisStopGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisStopGlobalJob$inboundSchema; - /** @deprecated use `RedisStopGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisStopGlobalJob$outboundSchema; - /** @deprecated use `RedisStopGlobalJob$Outbound` instead. */ - export type Outbound = RedisStopGlobalJob$Outbound; -} - -export function redisStopGlobalJobToJSON( - redisStopGlobalJob: RedisStopGlobalJob, -): string { - return JSON.stringify( - RedisStopGlobalJob$outboundSchema.parse(redisStopGlobalJob), - ); -} - export function redisStopGlobalJobFromJSON( jsonString: string, ): SafeParseResult { @@ -652,45 +401,6 @@ export const RedisStopReplicated$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopReplicated$Outbound = { - Replicas?: number | undefined; -}; - -/** @internal */ -export const RedisStopReplicated$outboundSchema: z.ZodType< - RedisStopReplicated$Outbound, - z.ZodTypeDef, - RedisStopReplicated -> = z.object({ - replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - replicas: "Replicas", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopReplicated$ { - /** @deprecated use `RedisStopReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisStopReplicated$inboundSchema; - /** @deprecated use `RedisStopReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisStopReplicated$outboundSchema; - /** @deprecated use `RedisStopReplicated$Outbound` instead. */ - export type Outbound = RedisStopReplicated$Outbound; -} - -export function redisStopReplicatedToJSON( - redisStopReplicated: RedisStopReplicated, -): string { - return JSON.stringify( - RedisStopReplicated$outboundSchema.parse(redisStopReplicated), - ); -} - export function redisStopReplicatedFromJSON( jsonString: string, ): SafeParseResult { @@ -716,48 +426,6 @@ export const RedisStopReplicatedJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopReplicatedJob$Outbound = { - MaxConcurrent?: number | undefined; - TotalCompletions?: number | undefined; -}; - -/** @internal */ -export const RedisStopReplicatedJob$outboundSchema: z.ZodType< - RedisStopReplicatedJob$Outbound, - z.ZodTypeDef, - RedisStopReplicatedJob -> = z.object({ - maxConcurrent: z.number().optional(), - totalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - maxConcurrent: "MaxConcurrent", - totalCompletions: "TotalCompletions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopReplicatedJob$ { - /** @deprecated use `RedisStopReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisStopReplicatedJob$inboundSchema; - /** @deprecated use `RedisStopReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisStopReplicatedJob$outboundSchema; - /** @deprecated use `RedisStopReplicatedJob$Outbound` instead. */ - export type Outbound = RedisStopReplicatedJob$Outbound; -} - -export function redisStopReplicatedJobToJSON( - redisStopReplicatedJob: RedisStopReplicatedJob, -): string { - return JSON.stringify( - RedisStopReplicatedJob$outboundSchema.parse(redisStopReplicatedJob), - ); -} - export function redisStopReplicatedJobFromJSON( jsonString: string, ): SafeParseResult { @@ -787,54 +455,6 @@ export const RedisStopModeSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopModeSwarm$Outbound = { - Global?: RedisStopGlobal$Outbound | undefined; - GlobalJob?: RedisStopGlobalJob$Outbound | undefined; - Replicated?: RedisStopReplicated$Outbound | undefined; - ReplicatedJob?: RedisStopReplicatedJob$Outbound | undefined; -}; - -/** @internal */ -export const RedisStopModeSwarm$outboundSchema: z.ZodType< - RedisStopModeSwarm$Outbound, - z.ZodTypeDef, - RedisStopModeSwarm -> = z.object({ - global: z.lazy(() => RedisStopGlobal$outboundSchema).optional(), - globalJob: z.lazy(() => RedisStopGlobalJob$outboundSchema).optional(), - replicated: z.lazy(() => RedisStopReplicated$outboundSchema).optional(), - replicatedJob: z.lazy(() => RedisStopReplicatedJob$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - global: "Global", - globalJob: "GlobalJob", - replicated: "Replicated", - replicatedJob: "ReplicatedJob", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopModeSwarm$ { - /** @deprecated use `RedisStopModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStopModeSwarm$inboundSchema; - /** @deprecated use `RedisStopModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStopModeSwarm$outboundSchema; - /** @deprecated use `RedisStopModeSwarm$Outbound` instead. */ - export type Outbound = RedisStopModeSwarm$Outbound; -} - -export function redisStopModeSwarmToJSON( - redisStopModeSwarm: RedisStopModeSwarm, -): string { - return JSON.stringify( - RedisStopModeSwarm$outboundSchema.parse(redisStopModeSwarm), - ); -} - export function redisStopModeSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -850,43 +470,11 @@ export const RedisStopServiceType$inboundSchema: z.ZodNativeEnum< typeof RedisStopServiceType > = z.nativeEnum(RedisStopServiceType); -/** @internal */ -export const RedisStopServiceType$outboundSchema: z.ZodNativeEnum< - typeof RedisStopServiceType -> = RedisStopServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopServiceType$ { - /** @deprecated use `RedisStopServiceType$inboundSchema` instead. */ - export const inboundSchema = RedisStopServiceType$inboundSchema; - /** @deprecated use `RedisStopServiceType$outboundSchema` instead. */ - export const outboundSchema = RedisStopServiceType$outboundSchema; -} - /** @internal */ export const RedisStopType$inboundSchema: z.ZodNativeEnum< typeof RedisStopType > = z.nativeEnum(RedisStopType); -/** @internal */ -export const RedisStopType$outboundSchema: z.ZodNativeEnum< - typeof RedisStopType -> = RedisStopType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopType$ { - /** @deprecated use `RedisStopType$inboundSchema` instead. */ - export const inboundSchema = RedisStopType$inboundSchema; - /** @deprecated use `RedisStopType$outboundSchema` instead. */ - export const outboundSchema = RedisStopType$outboundSchema; -} - /** @internal */ export const RedisStopMount$inboundSchema: z.ZodType< RedisStopMount, @@ -910,65 +498,6 @@ export const RedisStopMount$inboundSchema: z.ZodType< volumeName: z.nullable(z.string()), }); -/** @internal */ -export type RedisStopMount$Outbound = { - applicationId: string | null; - composeId: string | null; - content: string | null; - filePath: string | null; - hostPath: string | null; - mariadbId: string | null; - mongoId: string | null; - mountId: string; - mountPath: string; - mysqlId: string | null; - postgresId: string | null; - redisId: string | null; - serviceType: string; - type: string; - volumeName: string | null; -}; - -/** @internal */ -export const RedisStopMount$outboundSchema: z.ZodType< - RedisStopMount$Outbound, - z.ZodTypeDef, - RedisStopMount -> = z.object({ - applicationId: z.nullable(z.string()), - composeId: z.nullable(z.string()), - content: z.nullable(z.string()), - filePath: z.nullable(z.string()), - hostPath: z.nullable(z.string()), - mariadbId: z.nullable(z.string()), - mongoId: z.nullable(z.string()), - mountId: z.string(), - mountPath: z.string(), - mysqlId: z.nullable(z.string()), - postgresId: z.nullable(z.string()), - redisId: z.nullable(z.string()), - serviceType: RedisStopServiceType$outboundSchema, - type: RedisStopType$outboundSchema, - volumeName: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopMount$ { - /** @deprecated use `RedisStopMount$inboundSchema` instead. */ - export const inboundSchema = RedisStopMount$inboundSchema; - /** @deprecated use `RedisStopMount$outboundSchema` instead. */ - export const outboundSchema = RedisStopMount$outboundSchema; - /** @deprecated use `RedisStopMount$Outbound` instead. */ - export type Outbound = RedisStopMount$Outbound; -} - -export function redisStopMountToJSON(redisStopMount: RedisStopMount): string { - return JSON.stringify(RedisStopMount$outboundSchema.parse(redisStopMount)); -} - export function redisStopMountFromJSON( jsonString: string, ): SafeParseResult { @@ -986,37 +515,6 @@ export const RedisStopDriverOpts$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RedisStopDriverOpts$Outbound = {}; - -/** @internal */ -export const RedisStopDriverOpts$outboundSchema: z.ZodType< - RedisStopDriverOpts$Outbound, - z.ZodTypeDef, - RedisStopDriverOpts -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopDriverOpts$ { - /** @deprecated use `RedisStopDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisStopDriverOpts$inboundSchema; - /** @deprecated use `RedisStopDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisStopDriverOpts$outboundSchema; - /** @deprecated use `RedisStopDriverOpts$Outbound` instead. */ - export type Outbound = RedisStopDriverOpts$Outbound; -} - -export function redisStopDriverOptsToJSON( - redisStopDriverOpts: RedisStopDriverOpts, -): string { - return JSON.stringify( - RedisStopDriverOpts$outboundSchema.parse(redisStopDriverOpts), - ); -} - export function redisStopDriverOptsFromJSON( jsonString: string, ): SafeParseResult { @@ -1044,51 +542,6 @@ export const RedisStopNetworkSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopNetworkSwarm$Outbound = { - Aliases?: Array | undefined; - DriverOpts?: RedisStopDriverOpts$Outbound | undefined; - Target?: string | undefined; -}; - -/** @internal */ -export const RedisStopNetworkSwarm$outboundSchema: z.ZodType< - RedisStopNetworkSwarm$Outbound, - z.ZodTypeDef, - RedisStopNetworkSwarm -> = z.object({ - aliases: z.array(z.string()).optional(), - driverOpts: z.lazy(() => RedisStopDriverOpts$outboundSchema).optional(), - target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - aliases: "Aliases", - driverOpts: "DriverOpts", - target: "Target", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopNetworkSwarm$ { - /** @deprecated use `RedisStopNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStopNetworkSwarm$inboundSchema; - /** @deprecated use `RedisStopNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStopNetworkSwarm$outboundSchema; - /** @deprecated use `RedisStopNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisStopNetworkSwarm$Outbound; -} - -export function redisStopNetworkSwarmToJSON( - redisStopNetworkSwarm: RedisStopNetworkSwarm, -): string { - return JSON.stringify( - RedisStopNetworkSwarm$outboundSchema.parse(redisStopNetworkSwarm), - ); -} - export function redisStopNetworkSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1114,48 +567,6 @@ export const RedisStopPlatform$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopPlatform$Outbound = { - Architecture: string; - OS: string; -}; - -/** @internal */ -export const RedisStopPlatform$outboundSchema: z.ZodType< - RedisStopPlatform$Outbound, - z.ZodTypeDef, - RedisStopPlatform -> = z.object({ - architecture: z.string(), - os: z.string(), -}).transform((v) => { - return remap$(v, { - architecture: "Architecture", - os: "OS", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopPlatform$ { - /** @deprecated use `RedisStopPlatform$inboundSchema` instead. */ - export const inboundSchema = RedisStopPlatform$inboundSchema; - /** @deprecated use `RedisStopPlatform$outboundSchema` instead. */ - export const outboundSchema = RedisStopPlatform$outboundSchema; - /** @deprecated use `RedisStopPlatform$Outbound` instead. */ - export type Outbound = RedisStopPlatform$Outbound; -} - -export function redisStopPlatformToJSON( - redisStopPlatform: RedisStopPlatform, -): string { - return JSON.stringify( - RedisStopPlatform$outboundSchema.parse(redisStopPlatform), - ); -} - export function redisStopPlatformFromJSON( jsonString: string, ): SafeParseResult { @@ -1179,43 +590,6 @@ export const RedisStopSpread$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopSpread$Outbound = { - SpreadDescriptor: string; -}; - -/** @internal */ -export const RedisStopSpread$outboundSchema: z.ZodType< - RedisStopSpread$Outbound, - z.ZodTypeDef, - RedisStopSpread -> = z.object({ - spreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - spreadDescriptor: "SpreadDescriptor", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopSpread$ { - /** @deprecated use `RedisStopSpread$inboundSchema` instead. */ - export const inboundSchema = RedisStopSpread$inboundSchema; - /** @deprecated use `RedisStopSpread$outboundSchema` instead. */ - export const outboundSchema = RedisStopSpread$outboundSchema; - /** @deprecated use `RedisStopSpread$Outbound` instead. */ - export type Outbound = RedisStopSpread$Outbound; -} - -export function redisStopSpreadToJSON( - redisStopSpread: RedisStopSpread, -): string { - return JSON.stringify(RedisStopSpread$outboundSchema.parse(redisStopSpread)); -} - export function redisStopSpreadFromJSON( jsonString: string, ): SafeParseResult { @@ -1239,45 +613,6 @@ export const RedisStopPreference$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopPreference$Outbound = { - Spread: RedisStopSpread$Outbound; -}; - -/** @internal */ -export const RedisStopPreference$outboundSchema: z.ZodType< - RedisStopPreference$Outbound, - z.ZodTypeDef, - RedisStopPreference -> = z.object({ - spread: z.lazy(() => RedisStopSpread$outboundSchema), -}).transform((v) => { - return remap$(v, { - spread: "Spread", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopPreference$ { - /** @deprecated use `RedisStopPreference$inboundSchema` instead. */ - export const inboundSchema = RedisStopPreference$inboundSchema; - /** @deprecated use `RedisStopPreference$outboundSchema` instead. */ - export const outboundSchema = RedisStopPreference$outboundSchema; - /** @deprecated use `RedisStopPreference$Outbound` instead. */ - export type Outbound = RedisStopPreference$Outbound; -} - -export function redisStopPreferenceToJSON( - redisStopPreference: RedisStopPreference, -): string { - return JSON.stringify( - RedisStopPreference$outboundSchema.parse(redisStopPreference), - ); -} - export function redisStopPreferenceFromJSON( jsonString: string, ): SafeParseResult { @@ -1305,57 +640,8 @@ export const RedisStopPlacementSwarm$inboundSchema: z.ZodType< "MaxReplicas": "maxReplicas", "Platforms": "platforms", "Preferences": "preferences", - }); -}); - -/** @internal */ -export type RedisStopPlacementSwarm$Outbound = { - Constraints?: Array | undefined; - MaxReplicas?: number | undefined; - Platforms?: Array | undefined; - Preferences?: Array | undefined; -}; - -/** @internal */ -export const RedisStopPlacementSwarm$outboundSchema: z.ZodType< - RedisStopPlacementSwarm$Outbound, - z.ZodTypeDef, - RedisStopPlacementSwarm -> = z.object({ - constraints: z.array(z.string()).optional(), - maxReplicas: z.number().optional(), - platforms: z.array(z.lazy(() => RedisStopPlatform$outboundSchema)).optional(), - preferences: z.array(z.lazy(() => RedisStopPreference$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - constraints: "Constraints", - maxReplicas: "MaxReplicas", - platforms: "Platforms", - preferences: "Preferences", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopPlacementSwarm$ { - /** @deprecated use `RedisStopPlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStopPlacementSwarm$inboundSchema; - /** @deprecated use `RedisStopPlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStopPlacementSwarm$outboundSchema; - /** @deprecated use `RedisStopPlacementSwarm$Outbound` instead. */ - export type Outbound = RedisStopPlacementSwarm$Outbound; -} - -export function redisStopPlacementSwarmToJSON( - redisStopPlacementSwarm: RedisStopPlacementSwarm, -): string { - return JSON.stringify( - RedisStopPlacementSwarm$outboundSchema.parse(redisStopPlacementSwarm), - ); -} + }); +}); export function redisStopPlacementSwarmFromJSON( jsonString: string, @@ -1386,56 +672,6 @@ export const RedisStopRestartPolicySwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopRestartPolicySwarm$Outbound = { - Condition?: string | undefined; - Delay?: number | undefined; - MaxAttempts?: number | undefined; - Window?: number | undefined; -}; - -/** @internal */ -export const RedisStopRestartPolicySwarm$outboundSchema: z.ZodType< - RedisStopRestartPolicySwarm$Outbound, - z.ZodTypeDef, - RedisStopRestartPolicySwarm -> = z.object({ - condition: z.string().optional(), - delay: z.number().optional(), - maxAttempts: z.number().optional(), - window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - condition: "Condition", - delay: "Delay", - maxAttempts: "MaxAttempts", - window: "Window", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopRestartPolicySwarm$ { - /** @deprecated use `RedisStopRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStopRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisStopRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStopRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisStopRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisStopRestartPolicySwarm$Outbound; -} - -export function redisStopRestartPolicySwarmToJSON( - redisStopRestartPolicySwarm: RedisStopRestartPolicySwarm, -): string { - return JSON.stringify( - RedisStopRestartPolicySwarm$outboundSchema.parse( - redisStopRestartPolicySwarm, - ), - ); -} - export function redisStopRestartPolicySwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1469,62 +705,6 @@ export const RedisStopRollbackConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopRollbackConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisStopRollbackConfigSwarm$outboundSchema: z.ZodType< - RedisStopRollbackConfigSwarm$Outbound, - z.ZodTypeDef, - RedisStopRollbackConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopRollbackConfigSwarm$ { - /** @deprecated use `RedisStopRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStopRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisStopRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStopRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisStopRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisStopRollbackConfigSwarm$Outbound; -} - -export function redisStopRollbackConfigSwarmToJSON( - redisStopRollbackConfigSwarm: RedisStopRollbackConfigSwarm, -): string { - return JSON.stringify( - RedisStopRollbackConfigSwarm$outboundSchema.parse( - redisStopRollbackConfigSwarm, - ), - ); -} - export function redisStopRollbackConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1540,22 +720,6 @@ export const RedisStopMetricsConfigEnum$inboundSchema: z.ZodNativeEnum< typeof RedisStopMetricsConfigEnum > = z.nativeEnum(RedisStopMetricsConfigEnum); -/** @internal */ -export const RedisStopMetricsConfigEnum$outboundSchema: z.ZodNativeEnum< - typeof RedisStopMetricsConfigEnum -> = RedisStopMetricsConfigEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopMetricsConfigEnum$ { - /** @deprecated use `RedisStopMetricsConfigEnum$inboundSchema` instead. */ - export const inboundSchema = RedisStopMetricsConfigEnum$inboundSchema; - /** @deprecated use `RedisStopMetricsConfigEnum$outboundSchema` instead. */ - export const outboundSchema = RedisStopMetricsConfigEnum$outboundSchema; -} - /** @internal */ export const RedisStopMetricsConfigUnion1$inboundSchema: z.ZodType< RedisStopMetricsConfigUnion1, @@ -1568,48 +732,6 @@ export const RedisStopMetricsConfigUnion1$inboundSchema: z.ZodType< RedisStopMetricsConfigEnum$inboundSchema, ]); -/** @internal */ -export type RedisStopMetricsConfigUnion1$Outbound = - | string - | number - | boolean - | string; - -/** @internal */ -export const RedisStopMetricsConfigUnion1$outboundSchema: z.ZodType< - RedisStopMetricsConfigUnion1$Outbound, - z.ZodTypeDef, - RedisStopMetricsConfigUnion1 -> = z.union([ - z.string(), - z.number(), - z.boolean(), - RedisStopMetricsConfigEnum$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopMetricsConfigUnion1$ { - /** @deprecated use `RedisStopMetricsConfigUnion1$inboundSchema` instead. */ - export const inboundSchema = RedisStopMetricsConfigUnion1$inboundSchema; - /** @deprecated use `RedisStopMetricsConfigUnion1$outboundSchema` instead. */ - export const outboundSchema = RedisStopMetricsConfigUnion1$outboundSchema; - /** @deprecated use `RedisStopMetricsConfigUnion1$Outbound` instead. */ - export type Outbound = RedisStopMetricsConfigUnion1$Outbound; -} - -export function redisStopMetricsConfigUnion1ToJSON( - redisStopMetricsConfigUnion1: RedisStopMetricsConfigUnion1, -): string { - return JSON.stringify( - RedisStopMetricsConfigUnion1$outboundSchema.parse( - redisStopMetricsConfigUnion1, - ), - ); -} - export function redisStopMetricsConfigUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -1636,54 +758,6 @@ export const RedisStopMetricsConfigUnion2$inboundSchema: z.ZodType< z.record(z.any()), ]); -/** @internal */ -export type RedisStopMetricsConfigUnion2$Outbound = - | string - | number - | boolean - | string - | Array - | { [k: string]: any }; - -/** @internal */ -export const RedisStopMetricsConfigUnion2$outboundSchema: z.ZodType< - RedisStopMetricsConfigUnion2$Outbound, - z.ZodTypeDef, - RedisStopMetricsConfigUnion2 -> = z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopMetricsConfigUnion2$ { - /** @deprecated use `RedisStopMetricsConfigUnion2$inboundSchema` instead. */ - export const inboundSchema = RedisStopMetricsConfigUnion2$inboundSchema; - /** @deprecated use `RedisStopMetricsConfigUnion2$outboundSchema` instead. */ - export const outboundSchema = RedisStopMetricsConfigUnion2$outboundSchema; - /** @deprecated use `RedisStopMetricsConfigUnion2$Outbound` instead. */ - export type Outbound = RedisStopMetricsConfigUnion2$Outbound; -} - -export function redisStopMetricsConfigUnion2ToJSON( - redisStopMetricsConfigUnion2: RedisStopMetricsConfigUnion2, -): string { - return JSON.stringify( - RedisStopMetricsConfigUnion2$outboundSchema.parse( - redisStopMetricsConfigUnion2, - ), - ); -} - export function redisStopMetricsConfigUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -1699,22 +773,6 @@ export const RedisStopServerStatus$inboundSchema: z.ZodNativeEnum< typeof RedisStopServerStatus > = z.nativeEnum(RedisStopServerStatus); -/** @internal */ -export const RedisStopServerStatus$outboundSchema: z.ZodNativeEnum< - typeof RedisStopServerStatus -> = RedisStopServerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopServerStatus$ { - /** @deprecated use `RedisStopServerStatus$inboundSchema` instead. */ - export const inboundSchema = RedisStopServerStatus$inboundSchema; - /** @deprecated use `RedisStopServerStatus$outboundSchema` instead. */ - export const outboundSchema = RedisStopServerStatus$outboundSchema; -} - /** @internal */ export const RedisStopServer$inboundSchema: z.ZodType< RedisStopServer, @@ -1746,76 +804,6 @@ export const RedisStopServer$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type RedisStopServer$Outbound = { - appName: string; - command: string; - createdAt: string; - description: string | null; - enableDockerCleanup: boolean; - ipAddress: string; - metricsConfig: string | number | boolean | string | Array | { - [k: string]: any; - }; - name: string; - organizationId: string; - port: number; - serverId: string; - serverStatus: string; - sshKeyId: string | null; - username: string; -}; - -/** @internal */ -export const RedisStopServer$outboundSchema: z.ZodType< - RedisStopServer$Outbound, - z.ZodTypeDef, - RedisStopServer -> = z.object({ - appName: z.string(), - command: z.string(), - createdAt: z.string(), - description: z.nullable(z.string()), - enableDockerCleanup: z.boolean(), - ipAddress: z.string(), - metricsConfig: z.union([ - z.union([ - z.string(), - z.number(), - z.boolean(), - RedisStopMetricsConfigEnum$outboundSchema, - ]), - z.array(z.any()), - z.record(z.any()), - ]), - name: z.string(), - organizationId: z.string(), - port: z.number(), - serverId: z.string(), - serverStatus: RedisStopServerStatus$outboundSchema, - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopServer$ { - /** @deprecated use `RedisStopServer$inboundSchema` instead. */ - export const inboundSchema = RedisStopServer$inboundSchema; - /** @deprecated use `RedisStopServer$outboundSchema` instead. */ - export const outboundSchema = RedisStopServer$outboundSchema; - /** @deprecated use `RedisStopServer$Outbound` instead. */ - export type Outbound = RedisStopServer$Outbound; -} - -export function redisStopServerToJSON( - redisStopServer: RedisStopServer, -): string { - return JSON.stringify(RedisStopServer$outboundSchema.parse(redisStopServer)); -} - export function redisStopServerFromJSON( jsonString: string, ): SafeParseResult { @@ -1849,60 +837,6 @@ export const RedisStopUpdateConfigSwarm$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type RedisStopUpdateConfigSwarm$Outbound = { - Delay?: number | undefined; - FailureAction?: string | undefined; - MaxFailureRatio?: number | undefined; - Monitor?: number | undefined; - Order: string; - Parallelism: number; -}; - -/** @internal */ -export const RedisStopUpdateConfigSwarm$outboundSchema: z.ZodType< - RedisStopUpdateConfigSwarm$Outbound, - z.ZodTypeDef, - RedisStopUpdateConfigSwarm -> = z.object({ - delay: z.number().optional(), - failureAction: z.string().optional(), - maxFailureRatio: z.number().optional(), - monitor: z.number().optional(), - order: z.string(), - parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - delay: "Delay", - failureAction: "FailureAction", - maxFailureRatio: "MaxFailureRatio", - monitor: "Monitor", - order: "Order", - parallelism: "Parallelism", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopUpdateConfigSwarm$ { - /** @deprecated use `RedisStopUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisStopUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisStopUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisStopUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisStopUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisStopUpdateConfigSwarm$Outbound; -} - -export function redisStopUpdateConfigSwarmToJSON( - redisStopUpdateConfigSwarm: RedisStopUpdateConfigSwarm, -): string { - return JSON.stringify( - RedisStopUpdateConfigSwarm$outboundSchema.parse(redisStopUpdateConfigSwarm), - ); -} - export function redisStopUpdateConfigSwarmFromJSON( jsonString: string, ): SafeParseResult { @@ -1962,109 +896,6 @@ export const RedisStopResponseBody$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type RedisStopResponseBody$Outbound = { - appName: string; - applicationStatus: string; - command: string | null; - cpuLimit: string | null; - cpuReservation: string | null; - createdAt: string; - databasePassword: string; - description: string | null; - dockerImage: string; - env: string | null; - environment: RedisStopEnvironment$Outbound; - environmentId: string; - externalPort: number | null; - healthCheckSwarm: RedisStopHealthCheckSwarm$Outbound | null; - labelsSwarm: { [k: string]: string } | null; - memoryLimit: string | null; - memoryReservation: string | null; - modeSwarm: RedisStopModeSwarm$Outbound | null; - mounts: Array; - name: string; - networkSwarm: Array | null; - placementSwarm: RedisStopPlacementSwarm$Outbound | null; - redisId: string; - replicas: number; - restartPolicySwarm: RedisStopRestartPolicySwarm$Outbound | null; - rollbackConfigSwarm: RedisStopRollbackConfigSwarm$Outbound | null; - server: RedisStopServer$Outbound | null; - serverId: string | null; - updateConfigSwarm: RedisStopUpdateConfigSwarm$Outbound | null; -}; - -/** @internal */ -export const RedisStopResponseBody$outboundSchema: z.ZodType< - RedisStopResponseBody$Outbound, - z.ZodTypeDef, - RedisStopResponseBody -> = z.object({ - appName: z.string(), - applicationStatus: RedisStopApplicationStatus$outboundSchema, - command: z.nullable(z.string()), - cpuLimit: z.nullable(z.string()), - cpuReservation: z.nullable(z.string()), - createdAt: z.string(), - databasePassword: z.string(), - description: z.nullable(z.string()), - dockerImage: z.string(), - env: z.nullable(z.string()), - environment: z.lazy(() => RedisStopEnvironment$outboundSchema), - environmentId: z.string(), - externalPort: z.nullable(z.number()), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisStopHealthCheckSwarm$outboundSchema), - ), - labelsSwarm: z.nullable(z.record(z.string())), - memoryLimit: z.nullable(z.string()), - memoryReservation: z.nullable(z.string()), - modeSwarm: z.nullable(z.lazy(() => RedisStopModeSwarm$outboundSchema)), - mounts: z.array(z.lazy(() => RedisStopMount$outboundSchema)), - name: z.string(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisStopNetworkSwarm$outboundSchema)), - ), - placementSwarm: z.nullable( - z.lazy(() => RedisStopPlacementSwarm$outboundSchema), - ), - redisId: z.string(), - replicas: z.number(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisStopRestartPolicySwarm$outboundSchema), - ), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisStopRollbackConfigSwarm$outboundSchema), - ), - server: z.nullable(z.lazy(() => RedisStopServer$outboundSchema)), - serverId: z.nullable(z.string()), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisStopUpdateConfigSwarm$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopResponseBody$ { - /** @deprecated use `RedisStopResponseBody$inboundSchema` instead. */ - export const inboundSchema = RedisStopResponseBody$inboundSchema; - /** @deprecated use `RedisStopResponseBody$outboundSchema` instead. */ - export const outboundSchema = RedisStopResponseBody$outboundSchema; - /** @deprecated use `RedisStopResponseBody$Outbound` instead. */ - export type Outbound = RedisStopResponseBody$Outbound; -} - -export function redisStopResponseBodyToJSON( - redisStopResponseBody: RedisStopResponseBody, -): string { - return JSON.stringify( - RedisStopResponseBody$outboundSchema.parse(redisStopResponseBody), - ); -} - export function redisStopResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -2085,42 +916,6 @@ export const RedisStopResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type RedisStopResponse$Outbound = - | RedisStopResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const RedisStopResponse$outboundSchema: z.ZodType< - RedisStopResponse$Outbound, - z.ZodTypeDef, - RedisStopResponse -> = z.union([ - z.lazy(() => RedisStopResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisStopResponse$ { - /** @deprecated use `RedisStopResponse$inboundSchema` instead. */ - export const inboundSchema = RedisStopResponse$inboundSchema; - /** @deprecated use `RedisStopResponse$outboundSchema` instead. */ - export const outboundSchema = RedisStopResponse$outboundSchema; - /** @deprecated use `RedisStopResponse$Outbound` instead. */ - export type Outbound = RedisStopResponse$Outbound; -} - -export function redisStopResponseToJSON( - redisStopResponse: RedisStopResponse, -): string { - return JSON.stringify( - RedisStopResponse$outboundSchema.parse(redisStopResponse), - ); -} - export function redisStopResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/redisupdate.ts b/src/models/operations/redisupdate.ts index 9ced6c0..8fb37b5 100644 --- a/src/models/operations/redisupdate.ts +++ b/src/models/operations/redisupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -131,47 +131,10 @@ export type RedisUpdateRequest = { export type RedisUpdateResponse = models.ErrorT | boolean; -/** @internal */ -export const RedisUpdateApplicationStatus$inboundSchema: z.ZodNativeEnum< - typeof RedisUpdateApplicationStatus -> = z.nativeEnum(RedisUpdateApplicationStatus); - /** @internal */ export const RedisUpdateApplicationStatus$outboundSchema: z.ZodNativeEnum< typeof RedisUpdateApplicationStatus -> = RedisUpdateApplicationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateApplicationStatus$ { - /** @deprecated use `RedisUpdateApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateApplicationStatus$inboundSchema; - /** @deprecated use `RedisUpdateApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateApplicationStatus$outboundSchema; -} - -/** @internal */ -export const RedisUpdateHealthCheckSwarm$inboundSchema: z.ZodType< - RedisUpdateHealthCheckSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Interval: z.number().optional(), - Retries: z.number().optional(), - StartPeriod: z.number().optional(), - Test: z.array(z.string()).optional(), - Timeout: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Interval": "interval", - "Retries": "retries", - "StartPeriod": "startPeriod", - "Test": "test", - "Timeout": "timeout", - }); -}); +> = z.nativeEnum(RedisUpdateApplicationStatus); /** @internal */ export type RedisUpdateHealthCheckSwarm$Outbound = { @@ -203,19 +166,6 @@ export const RedisUpdateHealthCheckSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateHealthCheckSwarm$ { - /** @deprecated use `RedisUpdateHealthCheckSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateHealthCheckSwarm$inboundSchema; - /** @deprecated use `RedisUpdateHealthCheckSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateHealthCheckSwarm$outboundSchema; - /** @deprecated use `RedisUpdateHealthCheckSwarm$Outbound` instead. */ - export type Outbound = RedisUpdateHealthCheckSwarm$Outbound; -} - export function redisUpdateHealthCheckSwarmToJSON( redisUpdateHealthCheckSwarm: RedisUpdateHealthCheckSwarm, ): string { @@ -226,23 +176,6 @@ export function redisUpdateHealthCheckSwarmToJSON( ); } -export function redisUpdateHealthCheckSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateHealthCheckSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateHealthCheckSwarm' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateGlobal$inboundSchema: z.ZodType< - RedisUpdateGlobal, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type RedisUpdateGlobal$Outbound = {}; @@ -253,19 +186,6 @@ export const RedisUpdateGlobal$outboundSchema: z.ZodType< RedisUpdateGlobal > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateGlobal$ { - /** @deprecated use `RedisUpdateGlobal$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateGlobal$inboundSchema; - /** @deprecated use `RedisUpdateGlobal$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateGlobal$outboundSchema; - /** @deprecated use `RedisUpdateGlobal$Outbound` instead. */ - export type Outbound = RedisUpdateGlobal$Outbound; -} - export function redisUpdateGlobalToJSON( redisUpdateGlobal: RedisUpdateGlobal, ): string { @@ -274,23 +194,6 @@ export function redisUpdateGlobalToJSON( ); } -export function redisUpdateGlobalFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateGlobal$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateGlobal' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateGlobalJob$inboundSchema: z.ZodType< - RedisUpdateGlobalJob, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type RedisUpdateGlobalJob$Outbound = {}; @@ -301,19 +204,6 @@ export const RedisUpdateGlobalJob$outboundSchema: z.ZodType< RedisUpdateGlobalJob > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateGlobalJob$ { - /** @deprecated use `RedisUpdateGlobalJob$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateGlobalJob$inboundSchema; - /** @deprecated use `RedisUpdateGlobalJob$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateGlobalJob$outboundSchema; - /** @deprecated use `RedisUpdateGlobalJob$Outbound` instead. */ - export type Outbound = RedisUpdateGlobalJob$Outbound; -} - export function redisUpdateGlobalJobToJSON( redisUpdateGlobalJob: RedisUpdateGlobalJob, ): string { @@ -322,29 +212,6 @@ export function redisUpdateGlobalJobToJSON( ); } -export function redisUpdateGlobalJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateGlobalJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateGlobalJob' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateReplicated$inboundSchema: z.ZodType< - RedisUpdateReplicated, - z.ZodTypeDef, - unknown -> = z.object({ - Replicas: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Replicas": "replicas", - }); -}); - /** @internal */ export type RedisUpdateReplicated$Outbound = { Replicas?: number | undefined; @@ -363,19 +230,6 @@ export const RedisUpdateReplicated$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateReplicated$ { - /** @deprecated use `RedisUpdateReplicated$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateReplicated$inboundSchema; - /** @deprecated use `RedisUpdateReplicated$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateReplicated$outboundSchema; - /** @deprecated use `RedisUpdateReplicated$Outbound` instead. */ - export type Outbound = RedisUpdateReplicated$Outbound; -} - export function redisUpdateReplicatedToJSON( redisUpdateReplicated: RedisUpdateReplicated, ): string { @@ -384,31 +238,6 @@ export function redisUpdateReplicatedToJSON( ); } -export function redisUpdateReplicatedFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateReplicated$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateReplicated' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateReplicatedJob$inboundSchema: z.ZodType< - RedisUpdateReplicatedJob, - z.ZodTypeDef, - unknown -> = z.object({ - MaxConcurrent: z.number().optional(), - TotalCompletions: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "MaxConcurrent": "maxConcurrent", - "TotalCompletions": "totalCompletions", - }); -}); - /** @internal */ export type RedisUpdateReplicatedJob$Outbound = { MaxConcurrent?: number | undefined; @@ -430,19 +259,6 @@ export const RedisUpdateReplicatedJob$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateReplicatedJob$ { - /** @deprecated use `RedisUpdateReplicatedJob$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateReplicatedJob$inboundSchema; - /** @deprecated use `RedisUpdateReplicatedJob$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateReplicatedJob$outboundSchema; - /** @deprecated use `RedisUpdateReplicatedJob$Outbound` instead. */ - export type Outbound = RedisUpdateReplicatedJob$Outbound; -} - export function redisUpdateReplicatedJobToJSON( redisUpdateReplicatedJob: RedisUpdateReplicatedJob, ): string { @@ -451,36 +267,6 @@ export function redisUpdateReplicatedJobToJSON( ); } -export function redisUpdateReplicatedJobFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateReplicatedJob$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateReplicatedJob' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateModeSwarm$inboundSchema: z.ZodType< - RedisUpdateModeSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Global: z.lazy(() => RedisUpdateGlobal$inboundSchema).optional(), - GlobalJob: z.lazy(() => RedisUpdateGlobalJob$inboundSchema).optional(), - Replicated: z.lazy(() => RedisUpdateReplicated$inboundSchema).optional(), - ReplicatedJob: z.lazy(() => RedisUpdateReplicatedJob$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "Global": "global", - "GlobalJob": "globalJob", - "Replicated": "replicated", - "ReplicatedJob": "replicatedJob", - }); -}); - /** @internal */ export type RedisUpdateModeSwarm$Outbound = { Global?: RedisUpdateGlobal$Outbound | undefined; @@ -509,19 +295,6 @@ export const RedisUpdateModeSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateModeSwarm$ { - /** @deprecated use `RedisUpdateModeSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateModeSwarm$inboundSchema; - /** @deprecated use `RedisUpdateModeSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateModeSwarm$outboundSchema; - /** @deprecated use `RedisUpdateModeSwarm$Outbound` instead. */ - export type Outbound = RedisUpdateModeSwarm$Outbound; -} - export function redisUpdateModeSwarmToJSON( redisUpdateModeSwarm: RedisUpdateModeSwarm, ): string { @@ -530,23 +303,6 @@ export function redisUpdateModeSwarmToJSON( ); } -export function redisUpdateModeSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateModeSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateModeSwarm' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateDriverOpts$inboundSchema: z.ZodType< - RedisUpdateDriverOpts, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type RedisUpdateDriverOpts$Outbound = {}; @@ -557,19 +313,6 @@ export const RedisUpdateDriverOpts$outboundSchema: z.ZodType< RedisUpdateDriverOpts > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateDriverOpts$ { - /** @deprecated use `RedisUpdateDriverOpts$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateDriverOpts$inboundSchema; - /** @deprecated use `RedisUpdateDriverOpts$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateDriverOpts$outboundSchema; - /** @deprecated use `RedisUpdateDriverOpts$Outbound` instead. */ - export type Outbound = RedisUpdateDriverOpts$Outbound; -} - export function redisUpdateDriverOptsToJSON( redisUpdateDriverOpts: RedisUpdateDriverOpts, ): string { @@ -578,33 +321,6 @@ export function redisUpdateDriverOptsToJSON( ); } -export function redisUpdateDriverOptsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateDriverOpts$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateDriverOpts' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateNetworkSwarm$inboundSchema: z.ZodType< - RedisUpdateNetworkSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Aliases: z.array(z.string()).optional(), - DriverOpts: z.lazy(() => RedisUpdateDriverOpts$inboundSchema).optional(), - Target: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Aliases": "aliases", - "DriverOpts": "driverOpts", - "Target": "target", - }); -}); - /** @internal */ export type RedisUpdateNetworkSwarm$Outbound = { Aliases?: Array | undefined; @@ -629,19 +345,6 @@ export const RedisUpdateNetworkSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateNetworkSwarm$ { - /** @deprecated use `RedisUpdateNetworkSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateNetworkSwarm$inboundSchema; - /** @deprecated use `RedisUpdateNetworkSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateNetworkSwarm$outboundSchema; - /** @deprecated use `RedisUpdateNetworkSwarm$Outbound` instead. */ - export type Outbound = RedisUpdateNetworkSwarm$Outbound; -} - export function redisUpdateNetworkSwarmToJSON( redisUpdateNetworkSwarm: RedisUpdateNetworkSwarm, ): string { @@ -650,31 +353,6 @@ export function redisUpdateNetworkSwarmToJSON( ); } -export function redisUpdateNetworkSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateNetworkSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateNetworkSwarm' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdatePlatform$inboundSchema: z.ZodType< - RedisUpdatePlatform, - z.ZodTypeDef, - unknown -> = z.object({ - Architecture: z.string(), - OS: z.string(), -}).transform((v) => { - return remap$(v, { - "Architecture": "architecture", - "OS": "os", - }); -}); - /** @internal */ export type RedisUpdatePlatform$Outbound = { Architecture: string; @@ -696,19 +374,6 @@ export const RedisUpdatePlatform$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdatePlatform$ { - /** @deprecated use `RedisUpdatePlatform$inboundSchema` instead. */ - export const inboundSchema = RedisUpdatePlatform$inboundSchema; - /** @deprecated use `RedisUpdatePlatform$outboundSchema` instead. */ - export const outboundSchema = RedisUpdatePlatform$outboundSchema; - /** @deprecated use `RedisUpdatePlatform$Outbound` instead. */ - export type Outbound = RedisUpdatePlatform$Outbound; -} - export function redisUpdatePlatformToJSON( redisUpdatePlatform: RedisUpdatePlatform, ): string { @@ -717,29 +382,6 @@ export function redisUpdatePlatformToJSON( ); } -export function redisUpdatePlatformFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdatePlatform$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdatePlatform' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateSpread$inboundSchema: z.ZodType< - RedisUpdateSpread, - z.ZodTypeDef, - unknown -> = z.object({ - SpreadDescriptor: z.string(), -}).transform((v) => { - return remap$(v, { - "SpreadDescriptor": "spreadDescriptor", - }); -}); - /** @internal */ export type RedisUpdateSpread$Outbound = { SpreadDescriptor: string; @@ -758,19 +400,6 @@ export const RedisUpdateSpread$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateSpread$ { - /** @deprecated use `RedisUpdateSpread$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateSpread$inboundSchema; - /** @deprecated use `RedisUpdateSpread$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateSpread$outboundSchema; - /** @deprecated use `RedisUpdateSpread$Outbound` instead. */ - export type Outbound = RedisUpdateSpread$Outbound; -} - export function redisUpdateSpreadToJSON( redisUpdateSpread: RedisUpdateSpread, ): string { @@ -779,29 +408,6 @@ export function redisUpdateSpreadToJSON( ); } -export function redisUpdateSpreadFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateSpread$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateSpread' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdatePreference$inboundSchema: z.ZodType< - RedisUpdatePreference, - z.ZodTypeDef, - unknown -> = z.object({ - Spread: z.lazy(() => RedisUpdateSpread$inboundSchema), -}).transform((v) => { - return remap$(v, { - "Spread": "spread", - }); -}); - /** @internal */ export type RedisUpdatePreference$Outbound = { Spread: RedisUpdateSpread$Outbound; @@ -820,19 +426,6 @@ export const RedisUpdatePreference$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdatePreference$ { - /** @deprecated use `RedisUpdatePreference$inboundSchema` instead. */ - export const inboundSchema = RedisUpdatePreference$inboundSchema; - /** @deprecated use `RedisUpdatePreference$outboundSchema` instead. */ - export const outboundSchema = RedisUpdatePreference$outboundSchema; - /** @deprecated use `RedisUpdatePreference$Outbound` instead. */ - export type Outbound = RedisUpdatePreference$Outbound; -} - export function redisUpdatePreferenceToJSON( redisUpdatePreference: RedisUpdatePreference, ): string { @@ -841,37 +434,6 @@ export function redisUpdatePreferenceToJSON( ); } -export function redisUpdatePreferenceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdatePreference$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdatePreference' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdatePlacementSwarm$inboundSchema: z.ZodType< - RedisUpdatePlacementSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Constraints: z.array(z.string()).optional(), - MaxReplicas: z.number().optional(), - Platforms: z.array(z.lazy(() => RedisUpdatePlatform$inboundSchema)) - .optional(), - Preferences: z.array(z.lazy(() => RedisUpdatePreference$inboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - "Constraints": "constraints", - "MaxReplicas": "maxReplicas", - "Platforms": "platforms", - "Preferences": "preferences", - }); -}); - /** @internal */ export type RedisUpdatePlacementSwarm$Outbound = { Constraints?: Array | undefined; @@ -901,19 +463,6 @@ export const RedisUpdatePlacementSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdatePlacementSwarm$ { - /** @deprecated use `RedisUpdatePlacementSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisUpdatePlacementSwarm$inboundSchema; - /** @deprecated use `RedisUpdatePlacementSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisUpdatePlacementSwarm$outboundSchema; - /** @deprecated use `RedisUpdatePlacementSwarm$Outbound` instead. */ - export type Outbound = RedisUpdatePlacementSwarm$Outbound; -} - export function redisUpdatePlacementSwarmToJSON( redisUpdatePlacementSwarm: RedisUpdatePlacementSwarm, ): string { @@ -922,35 +471,6 @@ export function redisUpdatePlacementSwarmToJSON( ); } -export function redisUpdatePlacementSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdatePlacementSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdatePlacementSwarm' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateRestartPolicySwarm$inboundSchema: z.ZodType< - RedisUpdateRestartPolicySwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Condition: z.string().optional(), - Delay: z.number().optional(), - MaxAttempts: z.number().optional(), - Window: z.number().optional(), -}).transform((v) => { - return remap$(v, { - "Condition": "condition", - "Delay": "delay", - "MaxAttempts": "maxAttempts", - "Window": "window", - }); -}); - /** @internal */ export type RedisUpdateRestartPolicySwarm$Outbound = { Condition?: string | undefined; @@ -978,19 +498,6 @@ export const RedisUpdateRestartPolicySwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateRestartPolicySwarm$ { - /** @deprecated use `RedisUpdateRestartPolicySwarm$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateRestartPolicySwarm$inboundSchema; - /** @deprecated use `RedisUpdateRestartPolicySwarm$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateRestartPolicySwarm$outboundSchema; - /** @deprecated use `RedisUpdateRestartPolicySwarm$Outbound` instead. */ - export type Outbound = RedisUpdateRestartPolicySwarm$Outbound; -} - export function redisUpdateRestartPolicySwarmToJSON( redisUpdateRestartPolicySwarm: RedisUpdateRestartPolicySwarm, ): string { @@ -1001,39 +508,6 @@ export function redisUpdateRestartPolicySwarmToJSON( ); } -export function redisUpdateRestartPolicySwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateRestartPolicySwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateRestartPolicySwarm' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateRollbackConfigSwarm$inboundSchema: z.ZodType< - RedisUpdateRollbackConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type RedisUpdateRollbackConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1067,19 +541,6 @@ export const RedisUpdateRollbackConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateRollbackConfigSwarm$ { - /** @deprecated use `RedisUpdateRollbackConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateRollbackConfigSwarm$inboundSchema; - /** @deprecated use `RedisUpdateRollbackConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateRollbackConfigSwarm$outboundSchema; - /** @deprecated use `RedisUpdateRollbackConfigSwarm$Outbound` instead. */ - export type Outbound = RedisUpdateRollbackConfigSwarm$Outbound; -} - export function redisUpdateRollbackConfigSwarmToJSON( redisUpdateRollbackConfigSwarm: RedisUpdateRollbackConfigSwarm, ): string { @@ -1090,39 +551,6 @@ export function redisUpdateRollbackConfigSwarmToJSON( ); } -export function redisUpdateRollbackConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateRollbackConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateRollbackConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateUpdateConfigSwarm$inboundSchema: z.ZodType< - RedisUpdateUpdateConfigSwarm, - z.ZodTypeDef, - unknown -> = z.object({ - Delay: z.number().optional(), - FailureAction: z.string().optional(), - MaxFailureRatio: z.number().optional(), - Monitor: z.number().optional(), - Order: z.string(), - Parallelism: z.number(), -}).transform((v) => { - return remap$(v, { - "Delay": "delay", - "FailureAction": "failureAction", - "MaxFailureRatio": "maxFailureRatio", - "Monitor": "monitor", - "Order": "order", - "Parallelism": "parallelism", - }); -}); - /** @internal */ export type RedisUpdateUpdateConfigSwarm$Outbound = { Delay?: number | undefined; @@ -1156,19 +584,6 @@ export const RedisUpdateUpdateConfigSwarm$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateUpdateConfigSwarm$ { - /** @deprecated use `RedisUpdateUpdateConfigSwarm$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateUpdateConfigSwarm$inboundSchema; - /** @deprecated use `RedisUpdateUpdateConfigSwarm$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateUpdateConfigSwarm$outboundSchema; - /** @deprecated use `RedisUpdateUpdateConfigSwarm$Outbound` instead. */ - export type Outbound = RedisUpdateUpdateConfigSwarm$Outbound; -} - export function redisUpdateUpdateConfigSwarmToJSON( redisUpdateUpdateConfigSwarm: RedisUpdateUpdateConfigSwarm, ): string { @@ -1179,62 +594,6 @@ export function redisUpdateUpdateConfigSwarmToJSON( ); } -export function redisUpdateUpdateConfigSwarmFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateUpdateConfigSwarm$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateUpdateConfigSwarm' from JSON`, - ); -} - -/** @internal */ -export const RedisUpdateRequest$inboundSchema: z.ZodType< - RedisUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationStatus: RedisUpdateApplicationStatus$inboundSchema.optional(), - command: z.nullable(z.string()).optional(), - cpuLimit: z.nullable(z.string()).optional(), - cpuReservation: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - databasePassword: z.string().optional(), - description: z.nullable(z.string()).optional(), - dockerImage: z.string().default("redis:8"), - env: z.nullable(z.string()).optional(), - environmentId: z.string().optional(), - externalPort: z.nullable(z.number()).optional(), - healthCheckSwarm: z.nullable( - z.lazy(() => RedisUpdateHealthCheckSwarm$inboundSchema), - ).optional(), - labelsSwarm: z.nullable(z.record(z.string())).optional(), - memoryLimit: z.nullable(z.string()).optional(), - memoryReservation: z.nullable(z.string()).optional(), - modeSwarm: z.nullable(z.lazy(() => RedisUpdateModeSwarm$inboundSchema)) - .optional(), - name: z.string().optional(), - networkSwarm: z.nullable( - z.array(z.lazy(() => RedisUpdateNetworkSwarm$inboundSchema)), - ).optional(), - placementSwarm: z.nullable( - z.lazy(() => RedisUpdatePlacementSwarm$inboundSchema), - ).optional(), - redisId: z.string(), - replicas: z.number().optional(), - restartPolicySwarm: z.nullable( - z.lazy(() => RedisUpdateRestartPolicySwarm$inboundSchema), - ).optional(), - rollbackConfigSwarm: z.nullable( - z.lazy(() => RedisUpdateRollbackConfigSwarm$inboundSchema), - ).optional(), - updateConfigSwarm: z.nullable( - z.lazy(() => RedisUpdateUpdateConfigSwarm$inboundSchema), - ).optional(), -}); - /** @internal */ export type RedisUpdateRequest$Outbound = { appName?: string | undefined; @@ -1316,19 +675,6 @@ export const RedisUpdateRequest$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateRequest$ { - /** @deprecated use `RedisUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateRequest$inboundSchema; - /** @deprecated use `RedisUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateRequest$outboundSchema; - /** @deprecated use `RedisUpdateRequest$Outbound` instead. */ - export type Outbound = RedisUpdateRequest$Outbound; -} - export function redisUpdateRequestToJSON( redisUpdateRequest: RedisUpdateRequest, ): string { @@ -1337,16 +683,6 @@ export function redisUpdateRequestToJSON( ); } -export function redisUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RedisUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RedisUpdateRequest' from JSON`, - ); -} - /** @internal */ export const RedisUpdateResponse$inboundSchema: z.ZodType< RedisUpdateResponse, @@ -1354,37 +690,6 @@ export const RedisUpdateResponse$inboundSchema: z.ZodType< unknown > = z.union([models.ErrorT$inboundSchema, z.boolean()]); -/** @internal */ -export type RedisUpdateResponse$Outbound = models.ErrorT$Outbound | boolean; - -/** @internal */ -export const RedisUpdateResponse$outboundSchema: z.ZodType< - RedisUpdateResponse$Outbound, - z.ZodTypeDef, - RedisUpdateResponse -> = z.union([models.ErrorT$outboundSchema, z.boolean()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RedisUpdateResponse$ { - /** @deprecated use `RedisUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = RedisUpdateResponse$inboundSchema; - /** @deprecated use `RedisUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = RedisUpdateResponse$outboundSchema; - /** @deprecated use `RedisUpdateResponse$Outbound` instead. */ - export type Outbound = RedisUpdateResponse$Outbound; -} - -export function redisUpdateResponseToJSON( - redisUpdateResponse: RedisUpdateResponse, -): string { - return JSON.stringify( - RedisUpdateResponse$outboundSchema.parse(redisUpdateResponse), - ); -} - export function redisUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/registrycreate.ts b/src/models/operations/registrycreate.ts index e3d541f..3040bf9 100644 --- a/src/models/operations/registrycreate.ts +++ b/src/models/operations/registrycreate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const RegistryCreateRegistryType = { Cloud: "cloud", @@ -25,41 +22,10 @@ export type RegistryCreateRequest = { username: string; }; -/** @internal */ -export const RegistryCreateRegistryType$inboundSchema: z.ZodNativeEnum< - typeof RegistryCreateRegistryType -> = z.nativeEnum(RegistryCreateRegistryType); - /** @internal */ export const RegistryCreateRegistryType$outboundSchema: z.ZodNativeEnum< typeof RegistryCreateRegistryType -> = RegistryCreateRegistryType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RegistryCreateRegistryType$ { - /** @deprecated use `RegistryCreateRegistryType$inboundSchema` instead. */ - export const inboundSchema = RegistryCreateRegistryType$inboundSchema; - /** @deprecated use `RegistryCreateRegistryType$outboundSchema` instead. */ - export const outboundSchema = RegistryCreateRegistryType$outboundSchema; -} - -/** @internal */ -export const RegistryCreateRequest$inboundSchema: z.ZodType< - RegistryCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - imagePrefix: z.nullable(z.string()), - password: z.string(), - registryName: z.string(), - registryType: RegistryCreateRegistryType$inboundSchema, - registryUrl: z.string(), - serverId: z.string().optional(), - username: z.string(), -}); +> = z.nativeEnum(RegistryCreateRegistryType); /** @internal */ export type RegistryCreateRequest$Outbound = { @@ -87,19 +53,6 @@ export const RegistryCreateRequest$outboundSchema: z.ZodType< username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RegistryCreateRequest$ { - /** @deprecated use `RegistryCreateRequest$inboundSchema` instead. */ - export const inboundSchema = RegistryCreateRequest$inboundSchema; - /** @deprecated use `RegistryCreateRequest$outboundSchema` instead. */ - export const outboundSchema = RegistryCreateRequest$outboundSchema; - /** @deprecated use `RegistryCreateRequest$Outbound` instead. */ - export type Outbound = RegistryCreateRequest$Outbound; -} - export function registryCreateRequestToJSON( registryCreateRequest: RegistryCreateRequest, ): string { @@ -107,13 +60,3 @@ export function registryCreateRequestToJSON( RegistryCreateRequest$outboundSchema.parse(registryCreateRequest), ); } - -export function registryCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RegistryCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RegistryCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/registryone.ts b/src/models/operations/registryone.ts index ff63a2e..a547499 100644 --- a/src/models/operations/registryone.ts +++ b/src/models/operations/registryone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type RegistryOneRequest = { registryId: string; }; -/** @internal */ -export const RegistryOneRequest$inboundSchema: z.ZodType< - RegistryOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - registryId: z.string(), -}); - /** @internal */ export type RegistryOneRequest$Outbound = { registryId: string; @@ -34,19 +22,6 @@ export const RegistryOneRequest$outboundSchema: z.ZodType< registryId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RegistryOneRequest$ { - /** @deprecated use `RegistryOneRequest$inboundSchema` instead. */ - export const inboundSchema = RegistryOneRequest$inboundSchema; - /** @deprecated use `RegistryOneRequest$outboundSchema` instead. */ - export const outboundSchema = RegistryOneRequest$outboundSchema; - /** @deprecated use `RegistryOneRequest$Outbound` instead. */ - export type Outbound = RegistryOneRequest$Outbound; -} - export function registryOneRequestToJSON( registryOneRequest: RegistryOneRequest, ): string { @@ -54,13 +29,3 @@ export function registryOneRequestToJSON( RegistryOneRequest$outboundSchema.parse(registryOneRequest), ); } - -export function registryOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RegistryOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RegistryOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/registryremove.ts b/src/models/operations/registryremove.ts index 7bb8a4f..5c227cc 100644 --- a/src/models/operations/registryremove.ts +++ b/src/models/operations/registryremove.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type RegistryRemoveRequest = { registryId: string; }; -/** @internal */ -export const RegistryRemoveRequest$inboundSchema: z.ZodType< - RegistryRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - registryId: z.string(), -}); - /** @internal */ export type RegistryRemoveRequest$Outbound = { registryId: string; @@ -34,19 +22,6 @@ export const RegistryRemoveRequest$outboundSchema: z.ZodType< registryId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RegistryRemoveRequest$ { - /** @deprecated use `RegistryRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = RegistryRemoveRequest$inboundSchema; - /** @deprecated use `RegistryRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = RegistryRemoveRequest$outboundSchema; - /** @deprecated use `RegistryRemoveRequest$Outbound` instead. */ - export type Outbound = RegistryRemoveRequest$Outbound; -} - export function registryRemoveRequestToJSON( registryRemoveRequest: RegistryRemoveRequest, ): string { @@ -54,13 +29,3 @@ export function registryRemoveRequestToJSON( RegistryRemoveRequest$outboundSchema.parse(registryRemoveRequest), ); } - -export function registryRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RegistryRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RegistryRemoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/registrytestregistry.ts b/src/models/operations/registrytestregistry.ts index e52bf48..aeaaf7d 100644 --- a/src/models/operations/registrytestregistry.ts +++ b/src/models/operations/registrytestregistry.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const RegistryTestRegistryRegistryType = { Cloud: "cloud", @@ -25,41 +22,10 @@ export type RegistryTestRegistryRequest = { username: string; }; -/** @internal */ -export const RegistryTestRegistryRegistryType$inboundSchema: z.ZodNativeEnum< - typeof RegistryTestRegistryRegistryType -> = z.nativeEnum(RegistryTestRegistryRegistryType); - /** @internal */ export const RegistryTestRegistryRegistryType$outboundSchema: z.ZodNativeEnum< typeof RegistryTestRegistryRegistryType -> = RegistryTestRegistryRegistryType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RegistryTestRegistryRegistryType$ { - /** @deprecated use `RegistryTestRegistryRegistryType$inboundSchema` instead. */ - export const inboundSchema = RegistryTestRegistryRegistryType$inboundSchema; - /** @deprecated use `RegistryTestRegistryRegistryType$outboundSchema` instead. */ - export const outboundSchema = RegistryTestRegistryRegistryType$outboundSchema; -} - -/** @internal */ -export const RegistryTestRegistryRequest$inboundSchema: z.ZodType< - RegistryTestRegistryRequest, - z.ZodTypeDef, - unknown -> = z.object({ - imagePrefix: z.nullable(z.string()).optional(), - password: z.string(), - registryName: z.string().optional(), - registryType: RegistryTestRegistryRegistryType$inboundSchema, - registryUrl: z.string(), - serverId: z.string().optional(), - username: z.string(), -}); +> = z.nativeEnum(RegistryTestRegistryRegistryType); /** @internal */ export type RegistryTestRegistryRequest$Outbound = { @@ -87,19 +53,6 @@ export const RegistryTestRegistryRequest$outboundSchema: z.ZodType< username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RegistryTestRegistryRequest$ { - /** @deprecated use `RegistryTestRegistryRequest$inboundSchema` instead. */ - export const inboundSchema = RegistryTestRegistryRequest$inboundSchema; - /** @deprecated use `RegistryTestRegistryRequest$outboundSchema` instead. */ - export const outboundSchema = RegistryTestRegistryRequest$outboundSchema; - /** @deprecated use `RegistryTestRegistryRequest$Outbound` instead. */ - export type Outbound = RegistryTestRegistryRequest$Outbound; -} - export function registryTestRegistryRequestToJSON( registryTestRegistryRequest: RegistryTestRegistryRequest, ): string { @@ -109,13 +62,3 @@ export function registryTestRegistryRequestToJSON( ), ); } - -export function registryTestRegistryRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RegistryTestRegistryRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RegistryTestRegistryRequest' from JSON`, - ); -} diff --git a/src/models/operations/registryupdate.ts b/src/models/operations/registryupdate.ts index 855c12d..9e1dd9b 100644 --- a/src/models/operations/registryupdate.ts +++ b/src/models/operations/registryupdate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const RegistryUpdateRegistryType = { Cloud: "cloud", @@ -28,44 +25,10 @@ export type RegistryUpdateRequest = { username?: string | undefined; }; -/** @internal */ -export const RegistryUpdateRegistryType$inboundSchema: z.ZodNativeEnum< - typeof RegistryUpdateRegistryType -> = z.nativeEnum(RegistryUpdateRegistryType); - /** @internal */ export const RegistryUpdateRegistryType$outboundSchema: z.ZodNativeEnum< typeof RegistryUpdateRegistryType -> = RegistryUpdateRegistryType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RegistryUpdateRegistryType$ { - /** @deprecated use `RegistryUpdateRegistryType$inboundSchema` instead. */ - export const inboundSchema = RegistryUpdateRegistryType$inboundSchema; - /** @deprecated use `RegistryUpdateRegistryType$outboundSchema` instead. */ - export const outboundSchema = RegistryUpdateRegistryType$outboundSchema; -} - -/** @internal */ -export const RegistryUpdateRequest$inboundSchema: z.ZodType< - RegistryUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - createdAt: z.string().optional(), - imagePrefix: z.nullable(z.string()).optional(), - organizationId: z.string().optional(), - password: z.string().optional(), - registryId: z.string(), - registryName: z.string().optional(), - registryType: RegistryUpdateRegistryType$inboundSchema.optional(), - registryUrl: z.string().optional(), - serverId: z.string().optional(), - username: z.string().optional(), -}); +> = z.nativeEnum(RegistryUpdateRegistryType); /** @internal */ export type RegistryUpdateRequest$Outbound = { @@ -99,19 +62,6 @@ export const RegistryUpdateRequest$outboundSchema: z.ZodType< username: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RegistryUpdateRequest$ { - /** @deprecated use `RegistryUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = RegistryUpdateRequest$inboundSchema; - /** @deprecated use `RegistryUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = RegistryUpdateRequest$outboundSchema; - /** @deprecated use `RegistryUpdateRequest$Outbound` instead. */ - export type Outbound = RegistryUpdateRequest$Outbound; -} - export function registryUpdateRequestToJSON( registryUpdateRequest: RegistryUpdateRequest, ): string { @@ -119,13 +69,3 @@ export function registryUpdateRequestToJSON( RegistryUpdateRequest$outboundSchema.parse(registryUpdateRequest), ); } - -export function registryUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RegistryUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RegistryUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/rollbackdelete.ts b/src/models/operations/rollbackdelete.ts index 5ae5eab..dfee1ab 100644 --- a/src/models/operations/rollbackdelete.ts +++ b/src/models/operations/rollbackdelete.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type RollbackDeleteRequest = { rollbackId: string; }; -/** @internal */ -export const RollbackDeleteRequest$inboundSchema: z.ZodType< - RollbackDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - rollbackId: z.string(), -}); - /** @internal */ export type RollbackDeleteRequest$Outbound = { rollbackId: string; @@ -34,19 +22,6 @@ export const RollbackDeleteRequest$outboundSchema: z.ZodType< rollbackId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RollbackDeleteRequest$ { - /** @deprecated use `RollbackDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = RollbackDeleteRequest$inboundSchema; - /** @deprecated use `RollbackDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = RollbackDeleteRequest$outboundSchema; - /** @deprecated use `RollbackDeleteRequest$Outbound` instead. */ - export type Outbound = RollbackDeleteRequest$Outbound; -} - export function rollbackDeleteRequestToJSON( rollbackDeleteRequest: RollbackDeleteRequest, ): string { @@ -54,13 +29,3 @@ export function rollbackDeleteRequestToJSON( RollbackDeleteRequest$outboundSchema.parse(rollbackDeleteRequest), ); } - -export function rollbackDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RollbackDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RollbackDeleteRequest' from JSON`, - ); -} diff --git a/src/models/operations/rollbackrollback.ts b/src/models/operations/rollbackrollback.ts index c2e5610..d8b7838 100644 --- a/src/models/operations/rollbackrollback.ts +++ b/src/models/operations/rollbackrollback.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type RollbackRollbackRequest = { rollbackId: string; }; -/** @internal */ -export const RollbackRollbackRequest$inboundSchema: z.ZodType< - RollbackRollbackRequest, - z.ZodTypeDef, - unknown -> = z.object({ - rollbackId: z.string(), -}); - /** @internal */ export type RollbackRollbackRequest$Outbound = { rollbackId: string; @@ -34,19 +22,6 @@ export const RollbackRollbackRequest$outboundSchema: z.ZodType< rollbackId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RollbackRollbackRequest$ { - /** @deprecated use `RollbackRollbackRequest$inboundSchema` instead. */ - export const inboundSchema = RollbackRollbackRequest$inboundSchema; - /** @deprecated use `RollbackRollbackRequest$outboundSchema` instead. */ - export const outboundSchema = RollbackRollbackRequest$outboundSchema; - /** @deprecated use `RollbackRollbackRequest$Outbound` instead. */ - export type Outbound = RollbackRollbackRequest$Outbound; -} - export function rollbackRollbackRequestToJSON( rollbackRollbackRequest: RollbackRollbackRequest, ): string { @@ -54,13 +29,3 @@ export function rollbackRollbackRequestToJSON( RollbackRollbackRequest$outboundSchema.parse(rollbackRollbackRequest), ); } - -export function rollbackRollbackRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RollbackRollbackRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RollbackRollbackRequest' from JSON`, - ); -} diff --git a/src/models/operations/schedulecreate.ts b/src/models/operations/schedulecreate.ts index ad8ac04..9425298 100644 --- a/src/models/operations/schedulecreate.ts +++ b/src/models/operations/schedulecreate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ScheduleCreateScheduleType = { Application: "application", @@ -44,70 +41,15 @@ export type ScheduleCreateRequest = { userId?: string | null | undefined; }; -/** @internal */ -export const ScheduleCreateScheduleType$inboundSchema: z.ZodNativeEnum< - typeof ScheduleCreateScheduleType -> = z.nativeEnum(ScheduleCreateScheduleType); - /** @internal */ export const ScheduleCreateScheduleType$outboundSchema: z.ZodNativeEnum< typeof ScheduleCreateScheduleType -> = ScheduleCreateScheduleType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleCreateScheduleType$ { - /** @deprecated use `ScheduleCreateScheduleType$inboundSchema` instead. */ - export const inboundSchema = ScheduleCreateScheduleType$inboundSchema; - /** @deprecated use `ScheduleCreateScheduleType$outboundSchema` instead. */ - export const outboundSchema = ScheduleCreateScheduleType$outboundSchema; -} - -/** @internal */ -export const ScheduleCreateShellType$inboundSchema: z.ZodNativeEnum< - typeof ScheduleCreateShellType -> = z.nativeEnum(ScheduleCreateShellType); +> = z.nativeEnum(ScheduleCreateScheduleType); /** @internal */ export const ScheduleCreateShellType$outboundSchema: z.ZodNativeEnum< typeof ScheduleCreateShellType -> = ScheduleCreateShellType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleCreateShellType$ { - /** @deprecated use `ScheduleCreateShellType$inboundSchema` instead. */ - export const inboundSchema = ScheduleCreateShellType$inboundSchema; - /** @deprecated use `ScheduleCreateShellType$outboundSchema` instead. */ - export const outboundSchema = ScheduleCreateShellType$outboundSchema; -} - -/** @internal */ -export const ScheduleCreateRequest$inboundSchema: z.ZodType< - ScheduleCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationId: z.nullable(z.string()).optional(), - command: z.string(), - composeId: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - cronExpression: z.string(), - enabled: z.boolean().optional(), - name: z.string(), - scheduleId: z.string().optional(), - scheduleType: ScheduleCreateScheduleType$inboundSchema.optional(), - script: z.nullable(z.string()).optional(), - serverId: z.nullable(z.string()).optional(), - serviceName: z.nullable(z.string()).optional(), - shellType: ScheduleCreateShellType$inboundSchema.optional(), - userId: z.nullable(z.string()).optional(), -}); +> = z.nativeEnum(ScheduleCreateShellType); /** @internal */ export type ScheduleCreateRequest$Outbound = { @@ -151,19 +93,6 @@ export const ScheduleCreateRequest$outboundSchema: z.ZodType< userId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleCreateRequest$ { - /** @deprecated use `ScheduleCreateRequest$inboundSchema` instead. */ - export const inboundSchema = ScheduleCreateRequest$inboundSchema; - /** @deprecated use `ScheduleCreateRequest$outboundSchema` instead. */ - export const outboundSchema = ScheduleCreateRequest$outboundSchema; - /** @deprecated use `ScheduleCreateRequest$Outbound` instead. */ - export type Outbound = ScheduleCreateRequest$Outbound; -} - export function scheduleCreateRequestToJSON( scheduleCreateRequest: ScheduleCreateRequest, ): string { @@ -171,13 +100,3 @@ export function scheduleCreateRequestToJSON( ScheduleCreateRequest$outboundSchema.parse(scheduleCreateRequest), ); } - -export function scheduleCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ScheduleCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ScheduleCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/scheduledelete.ts b/src/models/operations/scheduledelete.ts index 4eed3dc..0f56438 100644 --- a/src/models/operations/scheduledelete.ts +++ b/src/models/operations/scheduledelete.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ScheduleDeleteRequest = { scheduleId: string; }; -/** @internal */ -export const ScheduleDeleteRequest$inboundSchema: z.ZodType< - ScheduleDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - scheduleId: z.string(), -}); - /** @internal */ export type ScheduleDeleteRequest$Outbound = { scheduleId: string; @@ -34,19 +22,6 @@ export const ScheduleDeleteRequest$outboundSchema: z.ZodType< scheduleId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleDeleteRequest$ { - /** @deprecated use `ScheduleDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = ScheduleDeleteRequest$inboundSchema; - /** @deprecated use `ScheduleDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = ScheduleDeleteRequest$outboundSchema; - /** @deprecated use `ScheduleDeleteRequest$Outbound` instead. */ - export type Outbound = ScheduleDeleteRequest$Outbound; -} - export function scheduleDeleteRequestToJSON( scheduleDeleteRequest: ScheduleDeleteRequest, ): string { @@ -54,13 +29,3 @@ export function scheduleDeleteRequestToJSON( ScheduleDeleteRequest$outboundSchema.parse(scheduleDeleteRequest), ); } - -export function scheduleDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ScheduleDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ScheduleDeleteRequest' from JSON`, - ); -} diff --git a/src/models/operations/schedulelist.ts b/src/models/operations/schedulelist.ts index 835cdf5..dc5ed6c 100644 --- a/src/models/operations/schedulelist.ts +++ b/src/models/operations/schedulelist.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ScheduleListScheduleType = { Application: "application", @@ -23,36 +20,10 @@ export type ScheduleListRequest = { scheduleType: ScheduleListScheduleType; }; -/** @internal */ -export const ScheduleListScheduleType$inboundSchema: z.ZodNativeEnum< - typeof ScheduleListScheduleType -> = z.nativeEnum(ScheduleListScheduleType); - /** @internal */ export const ScheduleListScheduleType$outboundSchema: z.ZodNativeEnum< typeof ScheduleListScheduleType -> = ScheduleListScheduleType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleListScheduleType$ { - /** @deprecated use `ScheduleListScheduleType$inboundSchema` instead. */ - export const inboundSchema = ScheduleListScheduleType$inboundSchema; - /** @deprecated use `ScheduleListScheduleType$outboundSchema` instead. */ - export const outboundSchema = ScheduleListScheduleType$outboundSchema; -} - -/** @internal */ -export const ScheduleListRequest$inboundSchema: z.ZodType< - ScheduleListRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - scheduleType: ScheduleListScheduleType$inboundSchema, -}); +> = z.nativeEnum(ScheduleListScheduleType); /** @internal */ export type ScheduleListRequest$Outbound = { @@ -70,19 +41,6 @@ export const ScheduleListRequest$outboundSchema: z.ZodType< scheduleType: ScheduleListScheduleType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleListRequest$ { - /** @deprecated use `ScheduleListRequest$inboundSchema` instead. */ - export const inboundSchema = ScheduleListRequest$inboundSchema; - /** @deprecated use `ScheduleListRequest$outboundSchema` instead. */ - export const outboundSchema = ScheduleListRequest$outboundSchema; - /** @deprecated use `ScheduleListRequest$Outbound` instead. */ - export type Outbound = ScheduleListRequest$Outbound; -} - export function scheduleListRequestToJSON( scheduleListRequest: ScheduleListRequest, ): string { @@ -90,13 +48,3 @@ export function scheduleListRequestToJSON( ScheduleListRequest$outboundSchema.parse(scheduleListRequest), ); } - -export function scheduleListRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ScheduleListRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ScheduleListRequest' from JSON`, - ); -} diff --git a/src/models/operations/scheduleone.ts b/src/models/operations/scheduleone.ts index ad515d7..0e9722a 100644 --- a/src/models/operations/scheduleone.ts +++ b/src/models/operations/scheduleone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ScheduleOneRequest = { scheduleId: string; }; -/** @internal */ -export const ScheduleOneRequest$inboundSchema: z.ZodType< - ScheduleOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - scheduleId: z.string(), -}); - /** @internal */ export type ScheduleOneRequest$Outbound = { scheduleId: string; @@ -34,19 +22,6 @@ export const ScheduleOneRequest$outboundSchema: z.ZodType< scheduleId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleOneRequest$ { - /** @deprecated use `ScheduleOneRequest$inboundSchema` instead. */ - export const inboundSchema = ScheduleOneRequest$inboundSchema; - /** @deprecated use `ScheduleOneRequest$outboundSchema` instead. */ - export const outboundSchema = ScheduleOneRequest$outboundSchema; - /** @deprecated use `ScheduleOneRequest$Outbound` instead. */ - export type Outbound = ScheduleOneRequest$Outbound; -} - export function scheduleOneRequestToJSON( scheduleOneRequest: ScheduleOneRequest, ): string { @@ -54,13 +29,3 @@ export function scheduleOneRequestToJSON( ScheduleOneRequest$outboundSchema.parse(scheduleOneRequest), ); } - -export function scheduleOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ScheduleOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ScheduleOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/schedulerunmanually.ts b/src/models/operations/schedulerunmanually.ts index 2a5b67c..75e2a5e 100644 --- a/src/models/operations/schedulerunmanually.ts +++ b/src/models/operations/schedulerunmanually.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ScheduleRunManuallyRequest = { scheduleId: string; }; -/** @internal */ -export const ScheduleRunManuallyRequest$inboundSchema: z.ZodType< - ScheduleRunManuallyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - scheduleId: z.string(), -}); - /** @internal */ export type ScheduleRunManuallyRequest$Outbound = { scheduleId: string; @@ -34,19 +22,6 @@ export const ScheduleRunManuallyRequest$outboundSchema: z.ZodType< scheduleId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleRunManuallyRequest$ { - /** @deprecated use `ScheduleRunManuallyRequest$inboundSchema` instead. */ - export const inboundSchema = ScheduleRunManuallyRequest$inboundSchema; - /** @deprecated use `ScheduleRunManuallyRequest$outboundSchema` instead. */ - export const outboundSchema = ScheduleRunManuallyRequest$outboundSchema; - /** @deprecated use `ScheduleRunManuallyRequest$Outbound` instead. */ - export type Outbound = ScheduleRunManuallyRequest$Outbound; -} - export function scheduleRunManuallyRequestToJSON( scheduleRunManuallyRequest: ScheduleRunManuallyRequest, ): string { @@ -54,13 +29,3 @@ export function scheduleRunManuallyRequestToJSON( ScheduleRunManuallyRequest$outboundSchema.parse(scheduleRunManuallyRequest), ); } - -export function scheduleRunManuallyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ScheduleRunManuallyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ScheduleRunManuallyRequest' from JSON`, - ); -} diff --git a/src/models/operations/scheduleupdate.ts b/src/models/operations/scheduleupdate.ts index e7d544e..44536cd 100644 --- a/src/models/operations/scheduleupdate.ts +++ b/src/models/operations/scheduleupdate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ScheduleUpdateScheduleType = { Application: "application", @@ -44,70 +41,15 @@ export type ScheduleUpdateRequest = { userId?: string | null | undefined; }; -/** @internal */ -export const ScheduleUpdateScheduleType$inboundSchema: z.ZodNativeEnum< - typeof ScheduleUpdateScheduleType -> = z.nativeEnum(ScheduleUpdateScheduleType); - /** @internal */ export const ScheduleUpdateScheduleType$outboundSchema: z.ZodNativeEnum< typeof ScheduleUpdateScheduleType -> = ScheduleUpdateScheduleType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleUpdateScheduleType$ { - /** @deprecated use `ScheduleUpdateScheduleType$inboundSchema` instead. */ - export const inboundSchema = ScheduleUpdateScheduleType$inboundSchema; - /** @deprecated use `ScheduleUpdateScheduleType$outboundSchema` instead. */ - export const outboundSchema = ScheduleUpdateScheduleType$outboundSchema; -} - -/** @internal */ -export const ScheduleUpdateShellType$inboundSchema: z.ZodNativeEnum< - typeof ScheduleUpdateShellType -> = z.nativeEnum(ScheduleUpdateShellType); +> = z.nativeEnum(ScheduleUpdateScheduleType); /** @internal */ export const ScheduleUpdateShellType$outboundSchema: z.ZodNativeEnum< typeof ScheduleUpdateShellType -> = ScheduleUpdateShellType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleUpdateShellType$ { - /** @deprecated use `ScheduleUpdateShellType$inboundSchema` instead. */ - export const inboundSchema = ScheduleUpdateShellType$inboundSchema; - /** @deprecated use `ScheduleUpdateShellType$outboundSchema` instead. */ - export const outboundSchema = ScheduleUpdateShellType$outboundSchema; -} - -/** @internal */ -export const ScheduleUpdateRequest$inboundSchema: z.ZodType< - ScheduleUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationId: z.nullable(z.string()).optional(), - command: z.string(), - composeId: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - cronExpression: z.string(), - enabled: z.boolean().optional(), - name: z.string(), - scheduleId: z.string(), - scheduleType: ScheduleUpdateScheduleType$inboundSchema.optional(), - script: z.nullable(z.string()).optional(), - serverId: z.nullable(z.string()).optional(), - serviceName: z.nullable(z.string()).optional(), - shellType: ScheduleUpdateShellType$inboundSchema.optional(), - userId: z.nullable(z.string()).optional(), -}); +> = z.nativeEnum(ScheduleUpdateShellType); /** @internal */ export type ScheduleUpdateRequest$Outbound = { @@ -151,19 +93,6 @@ export const ScheduleUpdateRequest$outboundSchema: z.ZodType< userId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleUpdateRequest$ { - /** @deprecated use `ScheduleUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = ScheduleUpdateRequest$inboundSchema; - /** @deprecated use `ScheduleUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = ScheduleUpdateRequest$outboundSchema; - /** @deprecated use `ScheduleUpdateRequest$Outbound` instead. */ - export type Outbound = ScheduleUpdateRequest$Outbound; -} - export function scheduleUpdateRequestToJSON( scheduleUpdateRequest: ScheduleUpdateRequest, ): string { @@ -171,13 +100,3 @@ export function scheduleUpdateRequestToJSON( ScheduleUpdateRequest$outboundSchema.parse(scheduleUpdateRequest), ); } - -export function scheduleUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ScheduleUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ScheduleUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/securitycreate.ts b/src/models/operations/securitycreate.ts index 107b54d..fe33be9 100644 --- a/src/models/operations/securitycreate.ts +++ b/src/models/operations/securitycreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -27,17 +27,6 @@ export type SecurityCreateResponseBody = { export type SecurityCreateResponse = SecurityCreateResponseBody | models.ErrorT; -/** @internal */ -export const SecurityCreateRequest$inboundSchema: z.ZodType< - SecurityCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - applicationId: z.string(), - password: z.string(), - username: z.string(), -}); - /** @internal */ export type SecurityCreateRequest$Outbound = { applicationId: string; @@ -56,19 +45,6 @@ export const SecurityCreateRequest$outboundSchema: z.ZodType< username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityCreateRequest$ { - /** @deprecated use `SecurityCreateRequest$inboundSchema` instead. */ - export const inboundSchema = SecurityCreateRequest$inboundSchema; - /** @deprecated use `SecurityCreateRequest$outboundSchema` instead. */ - export const outboundSchema = SecurityCreateRequest$outboundSchema; - /** @deprecated use `SecurityCreateRequest$Outbound` instead. */ - export type Outbound = SecurityCreateRequest$Outbound; -} - export function securityCreateRequestToJSON( securityCreateRequest: SecurityCreateRequest, ): string { @@ -77,16 +53,6 @@ export function securityCreateRequestToJSON( ); } -export function securityCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SecurityCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SecurityCreateRequest' from JSON`, - ); -} - /** @internal */ export const SecurityCreateResponseBody$inboundSchema: z.ZodType< SecurityCreateResponseBody, @@ -100,49 +66,6 @@ export const SecurityCreateResponseBody$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type SecurityCreateResponseBody$Outbound = { - applicationId: string; - createdAt: string; - password: string; - securityId: string; - username: string; -}; - -/** @internal */ -export const SecurityCreateResponseBody$outboundSchema: z.ZodType< - SecurityCreateResponseBody$Outbound, - z.ZodTypeDef, - SecurityCreateResponseBody -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityCreateResponseBody$ { - /** @deprecated use `SecurityCreateResponseBody$inboundSchema` instead. */ - export const inboundSchema = SecurityCreateResponseBody$inboundSchema; - /** @deprecated use `SecurityCreateResponseBody$outboundSchema` instead. */ - export const outboundSchema = SecurityCreateResponseBody$outboundSchema; - /** @deprecated use `SecurityCreateResponseBody$Outbound` instead. */ - export type Outbound = SecurityCreateResponseBody$Outbound; -} - -export function securityCreateResponseBodyToJSON( - securityCreateResponseBody: SecurityCreateResponseBody, -): string { - return JSON.stringify( - SecurityCreateResponseBody$outboundSchema.parse(securityCreateResponseBody), - ); -} - export function securityCreateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -163,42 +86,6 @@ export const SecurityCreateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type SecurityCreateResponse$Outbound = - | SecurityCreateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const SecurityCreateResponse$outboundSchema: z.ZodType< - SecurityCreateResponse$Outbound, - z.ZodTypeDef, - SecurityCreateResponse -> = z.union([ - z.lazy(() => SecurityCreateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityCreateResponse$ { - /** @deprecated use `SecurityCreateResponse$inboundSchema` instead. */ - export const inboundSchema = SecurityCreateResponse$inboundSchema; - /** @deprecated use `SecurityCreateResponse$outboundSchema` instead. */ - export const outboundSchema = SecurityCreateResponse$outboundSchema; - /** @deprecated use `SecurityCreateResponse$Outbound` instead. */ - export type Outbound = SecurityCreateResponse$Outbound; -} - -export function securityCreateResponseToJSON( - securityCreateResponse: SecurityCreateResponse, -): string { - return JSON.stringify( - SecurityCreateResponse$outboundSchema.parse(securityCreateResponse), - ); -} - export function securityCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/securitydelete.ts b/src/models/operations/securitydelete.ts index 800df45..0cd456f 100644 --- a/src/models/operations/securitydelete.ts +++ b/src/models/operations/securitydelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,15 +25,6 @@ export type SecurityDeleteResponseBody = { export type SecurityDeleteResponse = SecurityDeleteResponseBody | models.ErrorT; -/** @internal */ -export const SecurityDeleteRequest$inboundSchema: z.ZodType< - SecurityDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - securityId: z.string(), -}); - /** @internal */ export type SecurityDeleteRequest$Outbound = { securityId: string; @@ -48,19 +39,6 @@ export const SecurityDeleteRequest$outboundSchema: z.ZodType< securityId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityDeleteRequest$ { - /** @deprecated use `SecurityDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = SecurityDeleteRequest$inboundSchema; - /** @deprecated use `SecurityDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = SecurityDeleteRequest$outboundSchema; - /** @deprecated use `SecurityDeleteRequest$Outbound` instead. */ - export type Outbound = SecurityDeleteRequest$Outbound; -} - export function securityDeleteRequestToJSON( securityDeleteRequest: SecurityDeleteRequest, ): string { @@ -69,16 +47,6 @@ export function securityDeleteRequestToJSON( ); } -export function securityDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SecurityDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SecurityDeleteRequest' from JSON`, - ); -} - /** @internal */ export const SecurityDeleteResponseBody$inboundSchema: z.ZodType< SecurityDeleteResponseBody, @@ -92,49 +60,6 @@ export const SecurityDeleteResponseBody$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type SecurityDeleteResponseBody$Outbound = { - applicationId: string; - createdAt: string; - password: string; - securityId: string; - username: string; -}; - -/** @internal */ -export const SecurityDeleteResponseBody$outboundSchema: z.ZodType< - SecurityDeleteResponseBody$Outbound, - z.ZodTypeDef, - SecurityDeleteResponseBody -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityDeleteResponseBody$ { - /** @deprecated use `SecurityDeleteResponseBody$inboundSchema` instead. */ - export const inboundSchema = SecurityDeleteResponseBody$inboundSchema; - /** @deprecated use `SecurityDeleteResponseBody$outboundSchema` instead. */ - export const outboundSchema = SecurityDeleteResponseBody$outboundSchema; - /** @deprecated use `SecurityDeleteResponseBody$Outbound` instead. */ - export type Outbound = SecurityDeleteResponseBody$Outbound; -} - -export function securityDeleteResponseBodyToJSON( - securityDeleteResponseBody: SecurityDeleteResponseBody, -): string { - return JSON.stringify( - SecurityDeleteResponseBody$outboundSchema.parse(securityDeleteResponseBody), - ); -} - export function securityDeleteResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -155,42 +80,6 @@ export const SecurityDeleteResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type SecurityDeleteResponse$Outbound = - | SecurityDeleteResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const SecurityDeleteResponse$outboundSchema: z.ZodType< - SecurityDeleteResponse$Outbound, - z.ZodTypeDef, - SecurityDeleteResponse -> = z.union([ - z.lazy(() => SecurityDeleteResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityDeleteResponse$ { - /** @deprecated use `SecurityDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = SecurityDeleteResponse$inboundSchema; - /** @deprecated use `SecurityDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = SecurityDeleteResponse$outboundSchema; - /** @deprecated use `SecurityDeleteResponse$Outbound` instead. */ - export type Outbound = SecurityDeleteResponse$Outbound; -} - -export function securityDeleteResponseToJSON( - securityDeleteResponse: SecurityDeleteResponse, -): string { - return JSON.stringify( - SecurityDeleteResponse$outboundSchema.parse(securityDeleteResponse), - ); -} - export function securityDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/securityone.ts b/src/models/operations/securityone.ts index 0940882..663c543 100644 --- a/src/models/operations/securityone.ts +++ b/src/models/operations/securityone.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,15 +25,6 @@ export type SecurityOneResponseBody = { export type SecurityOneResponse = SecurityOneResponseBody | models.ErrorT; -/** @internal */ -export const SecurityOneRequest$inboundSchema: z.ZodType< - SecurityOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - securityId: z.string(), -}); - /** @internal */ export type SecurityOneRequest$Outbound = { securityId: string; @@ -48,19 +39,6 @@ export const SecurityOneRequest$outboundSchema: z.ZodType< securityId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityOneRequest$ { - /** @deprecated use `SecurityOneRequest$inboundSchema` instead. */ - export const inboundSchema = SecurityOneRequest$inboundSchema; - /** @deprecated use `SecurityOneRequest$outboundSchema` instead. */ - export const outboundSchema = SecurityOneRequest$outboundSchema; - /** @deprecated use `SecurityOneRequest$Outbound` instead. */ - export type Outbound = SecurityOneRequest$Outbound; -} - export function securityOneRequestToJSON( securityOneRequest: SecurityOneRequest, ): string { @@ -69,16 +47,6 @@ export function securityOneRequestToJSON( ); } -export function securityOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SecurityOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SecurityOneRequest' from JSON`, - ); -} - /** @internal */ export const SecurityOneResponseBody$inboundSchema: z.ZodType< SecurityOneResponseBody, @@ -92,49 +60,6 @@ export const SecurityOneResponseBody$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type SecurityOneResponseBody$Outbound = { - applicationId: string; - createdAt: string; - password: string; - securityId: string; - username: string; -}; - -/** @internal */ -export const SecurityOneResponseBody$outboundSchema: z.ZodType< - SecurityOneResponseBody$Outbound, - z.ZodTypeDef, - SecurityOneResponseBody -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityOneResponseBody$ { - /** @deprecated use `SecurityOneResponseBody$inboundSchema` instead. */ - export const inboundSchema = SecurityOneResponseBody$inboundSchema; - /** @deprecated use `SecurityOneResponseBody$outboundSchema` instead. */ - export const outboundSchema = SecurityOneResponseBody$outboundSchema; - /** @deprecated use `SecurityOneResponseBody$Outbound` instead. */ - export type Outbound = SecurityOneResponseBody$Outbound; -} - -export function securityOneResponseBodyToJSON( - securityOneResponseBody: SecurityOneResponseBody, -): string { - return JSON.stringify( - SecurityOneResponseBody$outboundSchema.parse(securityOneResponseBody), - ); -} - export function securityOneResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -155,42 +80,6 @@ export const SecurityOneResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type SecurityOneResponse$Outbound = - | SecurityOneResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const SecurityOneResponse$outboundSchema: z.ZodType< - SecurityOneResponse$Outbound, - z.ZodTypeDef, - SecurityOneResponse -> = z.union([ - z.lazy(() => SecurityOneResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityOneResponse$ { - /** @deprecated use `SecurityOneResponse$inboundSchema` instead. */ - export const inboundSchema = SecurityOneResponse$inboundSchema; - /** @deprecated use `SecurityOneResponse$outboundSchema` instead. */ - export const outboundSchema = SecurityOneResponse$outboundSchema; - /** @deprecated use `SecurityOneResponse$Outbound` instead. */ - export type Outbound = SecurityOneResponse$Outbound; -} - -export function securityOneResponseToJSON( - securityOneResponse: SecurityOneResponse, -): string { - return JSON.stringify( - SecurityOneResponse$outboundSchema.parse(securityOneResponse), - ); -} - export function securityOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/securityupdate.ts b/src/models/operations/securityupdate.ts index 6e4569f..2d28899 100644 --- a/src/models/operations/securityupdate.ts +++ b/src/models/operations/securityupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -27,17 +27,6 @@ export type SecurityUpdateResponseBody = { export type SecurityUpdateResponse = SecurityUpdateResponseBody | models.ErrorT; -/** @internal */ -export const SecurityUpdateRequest$inboundSchema: z.ZodType< - SecurityUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - /** @internal */ export type SecurityUpdateRequest$Outbound = { password: string; @@ -56,19 +45,6 @@ export const SecurityUpdateRequest$outboundSchema: z.ZodType< username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityUpdateRequest$ { - /** @deprecated use `SecurityUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = SecurityUpdateRequest$inboundSchema; - /** @deprecated use `SecurityUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = SecurityUpdateRequest$outboundSchema; - /** @deprecated use `SecurityUpdateRequest$Outbound` instead. */ - export type Outbound = SecurityUpdateRequest$Outbound; -} - export function securityUpdateRequestToJSON( securityUpdateRequest: SecurityUpdateRequest, ): string { @@ -77,16 +53,6 @@ export function securityUpdateRequestToJSON( ); } -export function securityUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SecurityUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SecurityUpdateRequest' from JSON`, - ); -} - /** @internal */ export const SecurityUpdateResponseBody$inboundSchema: z.ZodType< SecurityUpdateResponseBody, @@ -100,49 +66,6 @@ export const SecurityUpdateResponseBody$inboundSchema: z.ZodType< username: z.string(), }); -/** @internal */ -export type SecurityUpdateResponseBody$Outbound = { - applicationId: string; - createdAt: string; - password: string; - securityId: string; - username: string; -}; - -/** @internal */ -export const SecurityUpdateResponseBody$outboundSchema: z.ZodType< - SecurityUpdateResponseBody$Outbound, - z.ZodTypeDef, - SecurityUpdateResponseBody -> = z.object({ - applicationId: z.string(), - createdAt: z.string(), - password: z.string(), - securityId: z.string(), - username: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityUpdateResponseBody$ { - /** @deprecated use `SecurityUpdateResponseBody$inboundSchema` instead. */ - export const inboundSchema = SecurityUpdateResponseBody$inboundSchema; - /** @deprecated use `SecurityUpdateResponseBody$outboundSchema` instead. */ - export const outboundSchema = SecurityUpdateResponseBody$outboundSchema; - /** @deprecated use `SecurityUpdateResponseBody$Outbound` instead. */ - export type Outbound = SecurityUpdateResponseBody$Outbound; -} - -export function securityUpdateResponseBodyToJSON( - securityUpdateResponseBody: SecurityUpdateResponseBody, -): string { - return JSON.stringify( - SecurityUpdateResponseBody$outboundSchema.parse(securityUpdateResponseBody), - ); -} - export function securityUpdateResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -163,42 +86,6 @@ export const SecurityUpdateResponse$inboundSchema: z.ZodType< models.ErrorT$inboundSchema, ]); -/** @internal */ -export type SecurityUpdateResponse$Outbound = - | SecurityUpdateResponseBody$Outbound - | models.ErrorT$Outbound; - -/** @internal */ -export const SecurityUpdateResponse$outboundSchema: z.ZodType< - SecurityUpdateResponse$Outbound, - z.ZodTypeDef, - SecurityUpdateResponse -> = z.union([ - z.lazy(() => SecurityUpdateResponseBody$outboundSchema), - models.ErrorT$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SecurityUpdateResponse$ { - /** @deprecated use `SecurityUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = SecurityUpdateResponse$inboundSchema; - /** @deprecated use `SecurityUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = SecurityUpdateResponse$outboundSchema; - /** @deprecated use `SecurityUpdateResponse$Outbound` instead. */ - export type Outbound = SecurityUpdateResponse$Outbound; -} - -export function securityUpdateResponseToJSON( - securityUpdateResponse: SecurityUpdateResponse, -): string { - return JSON.stringify( - SecurityUpdateResponse$outboundSchema.parse(securityUpdateResponse), - ); -} - export function securityUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/servercreate.ts b/src/models/operations/servercreate.ts index 2e07680..abb1ce5 100644 --- a/src/models/operations/servercreate.ts +++ b/src/models/operations/servercreate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerCreateRequest = { description?: string | null | undefined; @@ -16,20 +13,6 @@ export type ServerCreateRequest = { username: string; }; -/** @internal */ -export const ServerCreateRequest$inboundSchema: z.ZodType< - ServerCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - ipAddress: z.string(), - name: z.string(), - port: z.number(), - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - /** @internal */ export type ServerCreateRequest$Outbound = { description?: string | null | undefined; @@ -54,19 +37,6 @@ export const ServerCreateRequest$outboundSchema: z.ZodType< username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerCreateRequest$ { - /** @deprecated use `ServerCreateRequest$inboundSchema` instead. */ - export const inboundSchema = ServerCreateRequest$inboundSchema; - /** @deprecated use `ServerCreateRequest$outboundSchema` instead. */ - export const outboundSchema = ServerCreateRequest$outboundSchema; - /** @deprecated use `ServerCreateRequest$Outbound` instead. */ - export type Outbound = ServerCreateRequest$Outbound; -} - export function serverCreateRequestToJSON( serverCreateRequest: ServerCreateRequest, ): string { @@ -74,13 +44,3 @@ export function serverCreateRequestToJSON( ServerCreateRequest$outboundSchema.parse(serverCreateRequest), ); } - -export function serverCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/servergetdefaultcommand.ts b/src/models/operations/servergetdefaultcommand.ts index c0b60ef..6810a37 100644 --- a/src/models/operations/servergetdefaultcommand.ts +++ b/src/models/operations/servergetdefaultcommand.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerGetDefaultCommandRequest = { serverId: string; }; -/** @internal */ -export const ServerGetDefaultCommandRequest$inboundSchema: z.ZodType< - ServerGetDefaultCommandRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string(), -}); - /** @internal */ export type ServerGetDefaultCommandRequest$Outbound = { serverId: string; @@ -34,19 +22,6 @@ export const ServerGetDefaultCommandRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerGetDefaultCommandRequest$ { - /** @deprecated use `ServerGetDefaultCommandRequest$inboundSchema` instead. */ - export const inboundSchema = ServerGetDefaultCommandRequest$inboundSchema; - /** @deprecated use `ServerGetDefaultCommandRequest$outboundSchema` instead. */ - export const outboundSchema = ServerGetDefaultCommandRequest$outboundSchema; - /** @deprecated use `ServerGetDefaultCommandRequest$Outbound` instead. */ - export type Outbound = ServerGetDefaultCommandRequest$Outbound; -} - export function serverGetDefaultCommandRequestToJSON( serverGetDefaultCommandRequest: ServerGetDefaultCommandRequest, ): string { @@ -56,13 +31,3 @@ export function serverGetDefaultCommandRequestToJSON( ), ); } - -export function serverGetDefaultCommandRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerGetDefaultCommandRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerGetDefaultCommandRequest' from JSON`, - ); -} diff --git a/src/models/operations/servergetservermetrics.ts b/src/models/operations/servergetservermetrics.ts index 4162bd3..9760e17 100644 --- a/src/models/operations/servergetservermetrics.ts +++ b/src/models/operations/servergetservermetrics.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerGetServerMetricsRequest = { url: string; @@ -13,17 +10,6 @@ export type ServerGetServerMetricsRequest = { dataPoints: string; }; -/** @internal */ -export const ServerGetServerMetricsRequest$inboundSchema: z.ZodType< - ServerGetServerMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - url: z.string(), - token: z.string(), - dataPoints: z.string(), -}); - /** @internal */ export type ServerGetServerMetricsRequest$Outbound = { url: string; @@ -42,19 +28,6 @@ export const ServerGetServerMetricsRequest$outboundSchema: z.ZodType< dataPoints: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerGetServerMetricsRequest$ { - /** @deprecated use `ServerGetServerMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = ServerGetServerMetricsRequest$inboundSchema; - /** @deprecated use `ServerGetServerMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = ServerGetServerMetricsRequest$outboundSchema; - /** @deprecated use `ServerGetServerMetricsRequest$Outbound` instead. */ - export type Outbound = ServerGetServerMetricsRequest$Outbound; -} - export function serverGetServerMetricsRequestToJSON( serverGetServerMetricsRequest: ServerGetServerMetricsRequest, ): string { @@ -64,13 +37,3 @@ export function serverGetServerMetricsRequestToJSON( ), ); } - -export function serverGetServerMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerGetServerMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerGetServerMetricsRequest' from JSON`, - ); -} diff --git a/src/models/operations/serverone.ts b/src/models/operations/serverone.ts index 1d46bd9..b39114b 100644 --- a/src/models/operations/serverone.ts +++ b/src/models/operations/serverone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerOneRequest = { serverId: string; }; -/** @internal */ -export const ServerOneRequest$inboundSchema: z.ZodType< - ServerOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string(), -}); - /** @internal */ export type ServerOneRequest$Outbound = { serverId: string; @@ -34,19 +22,6 @@ export const ServerOneRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerOneRequest$ { - /** @deprecated use `ServerOneRequest$inboundSchema` instead. */ - export const inboundSchema = ServerOneRequest$inboundSchema; - /** @deprecated use `ServerOneRequest$outboundSchema` instead. */ - export const outboundSchema = ServerOneRequest$outboundSchema; - /** @deprecated use `ServerOneRequest$Outbound` instead. */ - export type Outbound = ServerOneRequest$Outbound; -} - export function serverOneRequestToJSON( serverOneRequest: ServerOneRequest, ): string { @@ -54,13 +29,3 @@ export function serverOneRequestToJSON( ServerOneRequest$outboundSchema.parse(serverOneRequest), ); } - -export function serverOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/serverremove.ts b/src/models/operations/serverremove.ts index 3feb20f..31be6d4 100644 --- a/src/models/operations/serverremove.ts +++ b/src/models/operations/serverremove.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerRemoveRequest = { serverId: string; }; -/** @internal */ -export const ServerRemoveRequest$inboundSchema: z.ZodType< - ServerRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string(), -}); - /** @internal */ export type ServerRemoveRequest$Outbound = { serverId: string; @@ -34,19 +22,6 @@ export const ServerRemoveRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerRemoveRequest$ { - /** @deprecated use `ServerRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = ServerRemoveRequest$inboundSchema; - /** @deprecated use `ServerRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = ServerRemoveRequest$outboundSchema; - /** @deprecated use `ServerRemoveRequest$Outbound` instead. */ - export type Outbound = ServerRemoveRequest$Outbound; -} - export function serverRemoveRequestToJSON( serverRemoveRequest: ServerRemoveRequest, ): string { @@ -54,13 +29,3 @@ export function serverRemoveRequestToJSON( ServerRemoveRequest$outboundSchema.parse(serverRemoveRequest), ); } - -export function serverRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerRemoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/serversecurity.ts b/src/models/operations/serversecurity.ts index bfb576c..eaa9fa7 100644 --- a/src/models/operations/serversecurity.ts +++ b/src/models/operations/serversecurity.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerSecurityRequest = { serverId: string; }; -/** @internal */ -export const ServerSecurityRequest$inboundSchema: z.ZodType< - ServerSecurityRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string(), -}); - /** @internal */ export type ServerSecurityRequest$Outbound = { serverId: string; @@ -34,19 +22,6 @@ export const ServerSecurityRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerSecurityRequest$ { - /** @deprecated use `ServerSecurityRequest$inboundSchema` instead. */ - export const inboundSchema = ServerSecurityRequest$inboundSchema; - /** @deprecated use `ServerSecurityRequest$outboundSchema` instead. */ - export const outboundSchema = ServerSecurityRequest$outboundSchema; - /** @deprecated use `ServerSecurityRequest$Outbound` instead. */ - export type Outbound = ServerSecurityRequest$Outbound; -} - export function serverSecurityRequestToJSON( serverSecurityRequest: ServerSecurityRequest, ): string { @@ -54,13 +29,3 @@ export function serverSecurityRequestToJSON( ServerSecurityRequest$outboundSchema.parse(serverSecurityRequest), ); } - -export function serverSecurityRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerSecurityRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerSecurityRequest' from JSON`, - ); -} diff --git a/src/models/operations/serversetup.ts b/src/models/operations/serversetup.ts index f007a10..a30b243 100644 --- a/src/models/operations/serversetup.ts +++ b/src/models/operations/serversetup.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerSetupRequest = { serverId: string; }; -/** @internal */ -export const ServerSetupRequest$inboundSchema: z.ZodType< - ServerSetupRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string(), -}); - /** @internal */ export type ServerSetupRequest$Outbound = { serverId: string; @@ -34,19 +22,6 @@ export const ServerSetupRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerSetupRequest$ { - /** @deprecated use `ServerSetupRequest$inboundSchema` instead. */ - export const inboundSchema = ServerSetupRequest$inboundSchema; - /** @deprecated use `ServerSetupRequest$outboundSchema` instead. */ - export const outboundSchema = ServerSetupRequest$outboundSchema; - /** @deprecated use `ServerSetupRequest$Outbound` instead. */ - export type Outbound = ServerSetupRequest$Outbound; -} - export function serverSetupRequestToJSON( serverSetupRequest: ServerSetupRequest, ): string { @@ -54,13 +29,3 @@ export function serverSetupRequestToJSON( ServerSetupRequest$outboundSchema.parse(serverSetupRequest), ); } - -export function serverSetupRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerSetupRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerSetupRequest' from JSON`, - ); -} diff --git a/src/models/operations/serversetupmonitoring.ts b/src/models/operations/serversetupmonitoring.ts index e3f4cdc..edc8e73 100644 --- a/src/models/operations/serversetupmonitoring.ts +++ b/src/models/operations/serversetupmonitoring.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerSetupMonitoringServices = { exclude?: Array | undefined; @@ -42,16 +39,6 @@ export type ServerSetupMonitoringRequest = { serverId: string; }; -/** @internal */ -export const ServerSetupMonitoringServices$inboundSchema: z.ZodType< - ServerSetupMonitoringServices, - z.ZodTypeDef, - unknown -> = z.object({ - exclude: z.array(z.string()).optional(), - include: z.array(z.string()).optional(), -}); - /** @internal */ export type ServerSetupMonitoringServices$Outbound = { exclude?: Array | undefined; @@ -68,19 +55,6 @@ export const ServerSetupMonitoringServices$outboundSchema: z.ZodType< include: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerSetupMonitoringServices$ { - /** @deprecated use `ServerSetupMonitoringServices$inboundSchema` instead. */ - export const inboundSchema = ServerSetupMonitoringServices$inboundSchema; - /** @deprecated use `ServerSetupMonitoringServices$outboundSchema` instead. */ - export const outboundSchema = ServerSetupMonitoringServices$outboundSchema; - /** @deprecated use `ServerSetupMonitoringServices$Outbound` instead. */ - export type Outbound = ServerSetupMonitoringServices$Outbound; -} - export function serverSetupMonitoringServicesToJSON( serverSetupMonitoringServices: ServerSetupMonitoringServices, ): string { @@ -91,26 +65,6 @@ export function serverSetupMonitoringServicesToJSON( ); } -export function serverSetupMonitoringServicesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerSetupMonitoringServices$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerSetupMonitoringServices' from JSON`, - ); -} - -/** @internal */ -export const ServerSetupMonitoringContainers$inboundSchema: z.ZodType< - ServerSetupMonitoringContainers, - z.ZodTypeDef, - unknown -> = z.object({ - refreshRate: z.number(), - services: z.lazy(() => ServerSetupMonitoringServices$inboundSchema), -}); - /** @internal */ export type ServerSetupMonitoringContainers$Outbound = { refreshRate: number; @@ -127,19 +81,6 @@ export const ServerSetupMonitoringContainers$outboundSchema: z.ZodType< services: z.lazy(() => ServerSetupMonitoringServices$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerSetupMonitoringContainers$ { - /** @deprecated use `ServerSetupMonitoringContainers$inboundSchema` instead. */ - export const inboundSchema = ServerSetupMonitoringContainers$inboundSchema; - /** @deprecated use `ServerSetupMonitoringContainers$outboundSchema` instead. */ - export const outboundSchema = ServerSetupMonitoringContainers$outboundSchema; - /** @deprecated use `ServerSetupMonitoringContainers$Outbound` instead. */ - export type Outbound = ServerSetupMonitoringContainers$Outbound; -} - export function serverSetupMonitoringContainersToJSON( serverSetupMonitoringContainers: ServerSetupMonitoringContainers, ): string { @@ -150,26 +91,6 @@ export function serverSetupMonitoringContainersToJSON( ); } -export function serverSetupMonitoringContainersFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerSetupMonitoringContainers$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerSetupMonitoringContainers' from JSON`, - ); -} - -/** @internal */ -export const ServerSetupMonitoringThresholds$inboundSchema: z.ZodType< - ServerSetupMonitoringThresholds, - z.ZodTypeDef, - unknown -> = z.object({ - cpu: z.number(), - memory: z.number(), -}); - /** @internal */ export type ServerSetupMonitoringThresholds$Outbound = { cpu: number; @@ -186,19 +107,6 @@ export const ServerSetupMonitoringThresholds$outboundSchema: z.ZodType< memory: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerSetupMonitoringThresholds$ { - /** @deprecated use `ServerSetupMonitoringThresholds$inboundSchema` instead. */ - export const inboundSchema = ServerSetupMonitoringThresholds$inboundSchema; - /** @deprecated use `ServerSetupMonitoringThresholds$outboundSchema` instead. */ - export const outboundSchema = ServerSetupMonitoringThresholds$outboundSchema; - /** @deprecated use `ServerSetupMonitoringThresholds$Outbound` instead. */ - export type Outbound = ServerSetupMonitoringThresholds$Outbound; -} - export function serverSetupMonitoringThresholdsToJSON( serverSetupMonitoringThresholds: ServerSetupMonitoringThresholds, ): string { @@ -209,31 +117,6 @@ export function serverSetupMonitoringThresholdsToJSON( ); } -export function serverSetupMonitoringThresholdsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerSetupMonitoringThresholds$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerSetupMonitoringThresholds' from JSON`, - ); -} - -/** @internal */ -export const ServerSetupMonitoringServer$inboundSchema: z.ZodType< - ServerSetupMonitoringServer, - z.ZodTypeDef, - unknown -> = z.object({ - cronJob: z.string(), - port: z.number(), - refreshRate: z.number(), - retentionDays: z.number(), - thresholds: z.lazy(() => ServerSetupMonitoringThresholds$inboundSchema), - token: z.string(), - urlCallback: z.string(), -}); - /** @internal */ export type ServerSetupMonitoringServer$Outbound = { cronJob: string; @@ -260,19 +143,6 @@ export const ServerSetupMonitoringServer$outboundSchema: z.ZodType< urlCallback: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerSetupMonitoringServer$ { - /** @deprecated use `ServerSetupMonitoringServer$inboundSchema` instead. */ - export const inboundSchema = ServerSetupMonitoringServer$inboundSchema; - /** @deprecated use `ServerSetupMonitoringServer$outboundSchema` instead. */ - export const outboundSchema = ServerSetupMonitoringServer$outboundSchema; - /** @deprecated use `ServerSetupMonitoringServer$Outbound` instead. */ - export type Outbound = ServerSetupMonitoringServer$Outbound; -} - export function serverSetupMonitoringServerToJSON( serverSetupMonitoringServer: ServerSetupMonitoringServer, ): string { @@ -283,26 +153,6 @@ export function serverSetupMonitoringServerToJSON( ); } -export function serverSetupMonitoringServerFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerSetupMonitoringServer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerSetupMonitoringServer' from JSON`, - ); -} - -/** @internal */ -export const ServerSetupMonitoringMetricsConfig$inboundSchema: z.ZodType< - ServerSetupMonitoringMetricsConfig, - z.ZodTypeDef, - unknown -> = z.object({ - containers: z.lazy(() => ServerSetupMonitoringContainers$inboundSchema), - server: z.lazy(() => ServerSetupMonitoringServer$inboundSchema), -}); - /** @internal */ export type ServerSetupMonitoringMetricsConfig$Outbound = { containers: ServerSetupMonitoringContainers$Outbound; @@ -319,20 +169,6 @@ export const ServerSetupMonitoringMetricsConfig$outboundSchema: z.ZodType< server: z.lazy(() => ServerSetupMonitoringServer$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerSetupMonitoringMetricsConfig$ { - /** @deprecated use `ServerSetupMonitoringMetricsConfig$inboundSchema` instead. */ - export const inboundSchema = ServerSetupMonitoringMetricsConfig$inboundSchema; - /** @deprecated use `ServerSetupMonitoringMetricsConfig$outboundSchema` instead. */ - export const outboundSchema = - ServerSetupMonitoringMetricsConfig$outboundSchema; - /** @deprecated use `ServerSetupMonitoringMetricsConfig$Outbound` instead. */ - export type Outbound = ServerSetupMonitoringMetricsConfig$Outbound; -} - export function serverSetupMonitoringMetricsConfigToJSON( serverSetupMonitoringMetricsConfig: ServerSetupMonitoringMetricsConfig, ): string { @@ -343,27 +179,6 @@ export function serverSetupMonitoringMetricsConfigToJSON( ); } -export function serverSetupMonitoringMetricsConfigFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ServerSetupMonitoringMetricsConfig$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerSetupMonitoringMetricsConfig' from JSON`, - ); -} - -/** @internal */ -export const ServerSetupMonitoringRequest$inboundSchema: z.ZodType< - ServerSetupMonitoringRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metricsConfig: z.lazy(() => ServerSetupMonitoringMetricsConfig$inboundSchema), - serverId: z.string(), -}); - /** @internal */ export type ServerSetupMonitoringRequest$Outbound = { metricsConfig: ServerSetupMonitoringMetricsConfig$Outbound; @@ -382,19 +197,6 @@ export const ServerSetupMonitoringRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerSetupMonitoringRequest$ { - /** @deprecated use `ServerSetupMonitoringRequest$inboundSchema` instead. */ - export const inboundSchema = ServerSetupMonitoringRequest$inboundSchema; - /** @deprecated use `ServerSetupMonitoringRequest$outboundSchema` instead. */ - export const outboundSchema = ServerSetupMonitoringRequest$outboundSchema; - /** @deprecated use `ServerSetupMonitoringRequest$Outbound` instead. */ - export type Outbound = ServerSetupMonitoringRequest$Outbound; -} - export function serverSetupMonitoringRequestToJSON( serverSetupMonitoringRequest: ServerSetupMonitoringRequest, ): string { @@ -404,13 +206,3 @@ export function serverSetupMonitoringRequestToJSON( ), ); } - -export function serverSetupMonitoringRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerSetupMonitoringRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerSetupMonitoringRequest' from JSON`, - ); -} diff --git a/src/models/operations/serverupdate.ts b/src/models/operations/serverupdate.ts index b568a9a..bfbb2a2 100644 --- a/src/models/operations/serverupdate.ts +++ b/src/models/operations/serverupdate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerUpdateRequest = { command?: string | undefined; @@ -18,22 +15,6 @@ export type ServerUpdateRequest = { username: string; }; -/** @internal */ -export const ServerUpdateRequest$inboundSchema: z.ZodType< - ServerUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - command: z.string().optional(), - description: z.nullable(z.string()).optional(), - ipAddress: z.string(), - name: z.string(), - port: z.number(), - serverId: z.string(), - sshKeyId: z.nullable(z.string()), - username: z.string(), -}); - /** @internal */ export type ServerUpdateRequest$Outbound = { command?: string | undefined; @@ -62,19 +43,6 @@ export const ServerUpdateRequest$outboundSchema: z.ZodType< username: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerUpdateRequest$ { - /** @deprecated use `ServerUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = ServerUpdateRequest$inboundSchema; - /** @deprecated use `ServerUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = ServerUpdateRequest$outboundSchema; - /** @deprecated use `ServerUpdateRequest$Outbound` instead. */ - export type Outbound = ServerUpdateRequest$Outbound; -} - export function serverUpdateRequestToJSON( serverUpdateRequest: ServerUpdateRequest, ): string { @@ -82,13 +50,3 @@ export function serverUpdateRequestToJSON( ServerUpdateRequest$outboundSchema.parse(serverUpdateRequest), ); } - -export function serverUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/servervalidate.ts b/src/models/operations/servervalidate.ts index 8cb527a..9d12014 100644 --- a/src/models/operations/servervalidate.ts +++ b/src/models/operations/servervalidate.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type ServerValidateRequest = { serverId: string; }; -/** @internal */ -export const ServerValidateRequest$inboundSchema: z.ZodType< - ServerValidateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string(), -}); - /** @internal */ export type ServerValidateRequest$Outbound = { serverId: string; @@ -34,19 +22,6 @@ export const ServerValidateRequest$outboundSchema: z.ZodType< serverId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServerValidateRequest$ { - /** @deprecated use `ServerValidateRequest$inboundSchema` instead. */ - export const inboundSchema = ServerValidateRequest$inboundSchema; - /** @deprecated use `ServerValidateRequest$outboundSchema` instead. */ - export const outboundSchema = ServerValidateRequest$outboundSchema; - /** @deprecated use `ServerValidateRequest$Outbound` instead. */ - export type Outbound = ServerValidateRequest$Outbound; -} - export function serverValidateRequestToJSON( serverValidateRequest: ServerValidateRequest, ): string { @@ -54,13 +29,3 @@ export function serverValidateRequestToJSON( ServerValidateRequest$outboundSchema.parse(serverValidateRequest), ); } - -export function serverValidateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServerValidateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServerValidateRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsassigndomainserver.ts b/src/models/operations/settingsassigndomainserver.ts index 23d94f8..9c2ff40 100644 --- a/src/models/operations/settingsassigndomainserver.ts +++ b/src/models/operations/settingsassigndomainserver.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const SettingsAssignDomainServerCertificateType = { Letsencrypt: "letsencrypt", @@ -25,40 +22,10 @@ export type SettingsAssignDomainServerRequest = { }; /** @internal */ -export const SettingsAssignDomainServerCertificateType$inboundSchema: +export const SettingsAssignDomainServerCertificateType$outboundSchema: z.ZodNativeEnum = z .nativeEnum(SettingsAssignDomainServerCertificateType); -/** @internal */ -export const SettingsAssignDomainServerCertificateType$outboundSchema: - z.ZodNativeEnum = - SettingsAssignDomainServerCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsAssignDomainServerCertificateType$ { - /** @deprecated use `SettingsAssignDomainServerCertificateType$inboundSchema` instead. */ - export const inboundSchema = - SettingsAssignDomainServerCertificateType$inboundSchema; - /** @deprecated use `SettingsAssignDomainServerCertificateType$outboundSchema` instead. */ - export const outboundSchema = - SettingsAssignDomainServerCertificateType$outboundSchema; -} - -/** @internal */ -export const SettingsAssignDomainServerRequest$inboundSchema: z.ZodType< - SettingsAssignDomainServerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - certificateType: SettingsAssignDomainServerCertificateType$inboundSchema, - host: z.nullable(z.string()), - https: z.boolean().optional(), - letsEncryptEmail: z.nullable(z.string()).optional(), -}); - /** @internal */ export type SettingsAssignDomainServerRequest$Outbound = { certificateType: string; @@ -79,20 +46,6 @@ export const SettingsAssignDomainServerRequest$outboundSchema: z.ZodType< letsEncryptEmail: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsAssignDomainServerRequest$ { - /** @deprecated use `SettingsAssignDomainServerRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsAssignDomainServerRequest$inboundSchema; - /** @deprecated use `SettingsAssignDomainServerRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsAssignDomainServerRequest$outboundSchema; - /** @deprecated use `SettingsAssignDomainServerRequest$Outbound` instead. */ - export type Outbound = SettingsAssignDomainServerRequest$Outbound; -} - export function settingsAssignDomainServerRequestToJSON( settingsAssignDomainServerRequest: SettingsAssignDomainServerRequest, ): string { @@ -102,13 +55,3 @@ export function settingsAssignDomainServerRequestToJSON( ), ); } - -export function settingsAssignDomainServerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsAssignDomainServerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsAssignDomainServerRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingscheckgpustatus.ts b/src/models/operations/settingscheckgpustatus.ts index 81871ca..a38600e 100644 --- a/src/models/operations/settingscheckgpustatus.ts +++ b/src/models/operations/settingscheckgpustatus.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsCheckGPUStatusRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsCheckGPUStatusRequest$inboundSchema: z.ZodType< - SettingsCheckGPUStatusRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsCheckGPUStatusRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsCheckGPUStatusRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsCheckGPUStatusRequest$ { - /** @deprecated use `SettingsCheckGPUStatusRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsCheckGPUStatusRequest$inboundSchema; - /** @deprecated use `SettingsCheckGPUStatusRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsCheckGPUStatusRequest$outboundSchema; - /** @deprecated use `SettingsCheckGPUStatusRequest$Outbound` instead. */ - export type Outbound = SettingsCheckGPUStatusRequest$Outbound; -} - export function settingsCheckGPUStatusRequestToJSON( settingsCheckGPUStatusRequest: SettingsCheckGPUStatusRequest, ): string { @@ -56,13 +31,3 @@ export function settingsCheckGPUStatusRequestToJSON( ), ); } - -export function settingsCheckGPUStatusRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsCheckGPUStatusRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsCheckGPUStatusRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingscleanall.ts b/src/models/operations/settingscleanall.ts index 95cc432..9fead69 100644 --- a/src/models/operations/settingscleanall.ts +++ b/src/models/operations/settingscleanall.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsCleanAllRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsCleanAllRequest$inboundSchema: z.ZodType< - SettingsCleanAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsCleanAllRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsCleanAllRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsCleanAllRequest$ { - /** @deprecated use `SettingsCleanAllRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsCleanAllRequest$inboundSchema; - /** @deprecated use `SettingsCleanAllRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsCleanAllRequest$outboundSchema; - /** @deprecated use `SettingsCleanAllRequest$Outbound` instead. */ - export type Outbound = SettingsCleanAllRequest$Outbound; -} - export function settingsCleanAllRequestToJSON( settingsCleanAllRequest: SettingsCleanAllRequest, ): string { @@ -54,13 +29,3 @@ export function settingsCleanAllRequestToJSON( SettingsCleanAllRequest$outboundSchema.parse(settingsCleanAllRequest), ); } - -export function settingsCleanAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsCleanAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsCleanAllRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingscleandockerbuilder.ts b/src/models/operations/settingscleandockerbuilder.ts index 18035e0..d438bc8 100644 --- a/src/models/operations/settingscleandockerbuilder.ts +++ b/src/models/operations/settingscleandockerbuilder.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsCleanDockerBuilderRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsCleanDockerBuilderRequest$inboundSchema: z.ZodType< - SettingsCleanDockerBuilderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsCleanDockerBuilderRequest$Outbound = { serverId?: string | undefined; @@ -34,20 +22,6 @@ export const SettingsCleanDockerBuilderRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsCleanDockerBuilderRequest$ { - /** @deprecated use `SettingsCleanDockerBuilderRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsCleanDockerBuilderRequest$inboundSchema; - /** @deprecated use `SettingsCleanDockerBuilderRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsCleanDockerBuilderRequest$outboundSchema; - /** @deprecated use `SettingsCleanDockerBuilderRequest$Outbound` instead. */ - export type Outbound = SettingsCleanDockerBuilderRequest$Outbound; -} - export function settingsCleanDockerBuilderRequestToJSON( settingsCleanDockerBuilderRequest: SettingsCleanDockerBuilderRequest, ): string { @@ -57,13 +31,3 @@ export function settingsCleanDockerBuilderRequestToJSON( ), ); } - -export function settingsCleanDockerBuilderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsCleanDockerBuilderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsCleanDockerBuilderRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingscleandockerprune.ts b/src/models/operations/settingscleandockerprune.ts index 21372f3..0c4cc2a 100644 --- a/src/models/operations/settingscleandockerprune.ts +++ b/src/models/operations/settingscleandockerprune.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsCleanDockerPruneRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsCleanDockerPruneRequest$inboundSchema: z.ZodType< - SettingsCleanDockerPruneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsCleanDockerPruneRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsCleanDockerPruneRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsCleanDockerPruneRequest$ { - /** @deprecated use `SettingsCleanDockerPruneRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsCleanDockerPruneRequest$inboundSchema; - /** @deprecated use `SettingsCleanDockerPruneRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsCleanDockerPruneRequest$outboundSchema; - /** @deprecated use `SettingsCleanDockerPruneRequest$Outbound` instead. */ - export type Outbound = SettingsCleanDockerPruneRequest$Outbound; -} - export function settingsCleanDockerPruneRequestToJSON( settingsCleanDockerPruneRequest: SettingsCleanDockerPruneRequest, ): string { @@ -56,13 +31,3 @@ export function settingsCleanDockerPruneRequestToJSON( ), ); } - -export function settingsCleanDockerPruneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsCleanDockerPruneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsCleanDockerPruneRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingscleanstoppedcontainers.ts b/src/models/operations/settingscleanstoppedcontainers.ts index b2db349..fa23958 100644 --- a/src/models/operations/settingscleanstoppedcontainers.ts +++ b/src/models/operations/settingscleanstoppedcontainers.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsCleanStoppedContainersRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsCleanStoppedContainersRequest$inboundSchema: z.ZodType< - SettingsCleanStoppedContainersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsCleanStoppedContainersRequest$Outbound = { serverId?: string | undefined; @@ -34,21 +22,6 @@ export const SettingsCleanStoppedContainersRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsCleanStoppedContainersRequest$ { - /** @deprecated use `SettingsCleanStoppedContainersRequest$inboundSchema` instead. */ - export const inboundSchema = - SettingsCleanStoppedContainersRequest$inboundSchema; - /** @deprecated use `SettingsCleanStoppedContainersRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsCleanStoppedContainersRequest$outboundSchema; - /** @deprecated use `SettingsCleanStoppedContainersRequest$Outbound` instead. */ - export type Outbound = SettingsCleanStoppedContainersRequest$Outbound; -} - export function settingsCleanStoppedContainersRequestToJSON( settingsCleanStoppedContainersRequest: SettingsCleanStoppedContainersRequest, ): string { @@ -58,14 +31,3 @@ export function settingsCleanStoppedContainersRequestToJSON( ), ); } - -export function settingsCleanStoppedContainersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - SettingsCleanStoppedContainersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsCleanStoppedContainersRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingscleanunusedimages.ts b/src/models/operations/settingscleanunusedimages.ts index 74a0b6a..5dae8ab 100644 --- a/src/models/operations/settingscleanunusedimages.ts +++ b/src/models/operations/settingscleanunusedimages.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsCleanUnusedImagesRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsCleanUnusedImagesRequest$inboundSchema: z.ZodType< - SettingsCleanUnusedImagesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsCleanUnusedImagesRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsCleanUnusedImagesRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsCleanUnusedImagesRequest$ { - /** @deprecated use `SettingsCleanUnusedImagesRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsCleanUnusedImagesRequest$inboundSchema; - /** @deprecated use `SettingsCleanUnusedImagesRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsCleanUnusedImagesRequest$outboundSchema; - /** @deprecated use `SettingsCleanUnusedImagesRequest$Outbound` instead. */ - export type Outbound = SettingsCleanUnusedImagesRequest$Outbound; -} - export function settingsCleanUnusedImagesRequestToJSON( settingsCleanUnusedImagesRequest: SettingsCleanUnusedImagesRequest, ): string { @@ -56,13 +31,3 @@ export function settingsCleanUnusedImagesRequestToJSON( ), ); } - -export function settingsCleanUnusedImagesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsCleanUnusedImagesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsCleanUnusedImagesRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingscleanunusedvolumes.ts b/src/models/operations/settingscleanunusedvolumes.ts index 26950b4..c24bf52 100644 --- a/src/models/operations/settingscleanunusedvolumes.ts +++ b/src/models/operations/settingscleanunusedvolumes.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsCleanUnusedVolumesRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsCleanUnusedVolumesRequest$inboundSchema: z.ZodType< - SettingsCleanUnusedVolumesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsCleanUnusedVolumesRequest$Outbound = { serverId?: string | undefined; @@ -34,20 +22,6 @@ export const SettingsCleanUnusedVolumesRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsCleanUnusedVolumesRequest$ { - /** @deprecated use `SettingsCleanUnusedVolumesRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsCleanUnusedVolumesRequest$inboundSchema; - /** @deprecated use `SettingsCleanUnusedVolumesRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsCleanUnusedVolumesRequest$outboundSchema; - /** @deprecated use `SettingsCleanUnusedVolumesRequest$Outbound` instead. */ - export type Outbound = SettingsCleanUnusedVolumesRequest$Outbound; -} - export function settingsCleanUnusedVolumesRequestToJSON( settingsCleanUnusedVolumesRequest: SettingsCleanUnusedVolumesRequest, ): string { @@ -57,13 +31,3 @@ export function settingsCleanUnusedVolumesRequestToJSON( ), ); } - -export function settingsCleanUnusedVolumesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsCleanUnusedVolumesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsCleanUnusedVolumesRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsgettraefikports.ts b/src/models/operations/settingsgettraefikports.ts index 77e9487..f417edd 100644 --- a/src/models/operations/settingsgettraefikports.ts +++ b/src/models/operations/settingsgettraefikports.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsGetTraefikPortsRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsGetTraefikPortsRequest$inboundSchema: z.ZodType< - SettingsGetTraefikPortsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsGetTraefikPortsRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsGetTraefikPortsRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsGetTraefikPortsRequest$ { - /** @deprecated use `SettingsGetTraefikPortsRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsGetTraefikPortsRequest$inboundSchema; - /** @deprecated use `SettingsGetTraefikPortsRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsGetTraefikPortsRequest$outboundSchema; - /** @deprecated use `SettingsGetTraefikPortsRequest$Outbound` instead. */ - export type Outbound = SettingsGetTraefikPortsRequest$Outbound; -} - export function settingsGetTraefikPortsRequestToJSON( settingsGetTraefikPortsRequest: SettingsGetTraefikPortsRequest, ): string { @@ -56,13 +31,3 @@ export function settingsGetTraefikPortsRequestToJSON( ), ); } - -export function settingsGetTraefikPortsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsGetTraefikPortsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsGetTraefikPortsRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingshavetraefikdashboardportenabled.ts b/src/models/operations/settingshavetraefikdashboardportenabled.ts index 5171f15..ed05f7b 100644 --- a/src/models/operations/settingshavetraefikdashboardportenabled.ts +++ b/src/models/operations/settingshavetraefikdashboardportenabled.ts @@ -2,25 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsHaveTraefikDashboardPortEnabledRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsHaveTraefikDashboardPortEnabledRequest$inboundSchema: - z.ZodType< - SettingsHaveTraefikDashboardPortEnabledRequest, - z.ZodTypeDef, - unknown - > = z.object({ - serverId: z.string().optional(), - }); - /** @internal */ export type SettingsHaveTraefikDashboardPortEnabledRequest$Outbound = { serverId?: string | undefined; @@ -36,22 +23,6 @@ export const SettingsHaveTraefikDashboardPortEnabledRequest$outboundSchema: serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsHaveTraefikDashboardPortEnabledRequest$ { - /** @deprecated use `SettingsHaveTraefikDashboardPortEnabledRequest$inboundSchema` instead. */ - export const inboundSchema = - SettingsHaveTraefikDashboardPortEnabledRequest$inboundSchema; - /** @deprecated use `SettingsHaveTraefikDashboardPortEnabledRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsHaveTraefikDashboardPortEnabledRequest$outboundSchema; - /** @deprecated use `SettingsHaveTraefikDashboardPortEnabledRequest$Outbound` instead. */ - export type Outbound = - SettingsHaveTraefikDashboardPortEnabledRequest$Outbound; -} - export function settingsHaveTraefikDashboardPortEnabledRequestToJSON( settingsHaveTraefikDashboardPortEnabledRequest: SettingsHaveTraefikDashboardPortEnabledRequest, @@ -62,19 +33,3 @@ export function settingsHaveTraefikDashboardPortEnabledRequestToJSON( ), ); } - -export function settingsHaveTraefikDashboardPortEnabledRequestFromJSON( - jsonString: string, -): SafeParseResult< - SettingsHaveTraefikDashboardPortEnabledRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - SettingsHaveTraefikDashboardPortEnabledRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'SettingsHaveTraefikDashboardPortEnabledRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsreaddirectories.ts b/src/models/operations/settingsreaddirectories.ts index bf23fc2..e99f2df 100644 --- a/src/models/operations/settingsreaddirectories.ts +++ b/src/models/operations/settingsreaddirectories.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsReadDirectoriesRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsReadDirectoriesRequest$inboundSchema: z.ZodType< - SettingsReadDirectoriesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsReadDirectoriesRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsReadDirectoriesRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsReadDirectoriesRequest$ { - /** @deprecated use `SettingsReadDirectoriesRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsReadDirectoriesRequest$inboundSchema; - /** @deprecated use `SettingsReadDirectoriesRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsReadDirectoriesRequest$outboundSchema; - /** @deprecated use `SettingsReadDirectoriesRequest$Outbound` instead. */ - export type Outbound = SettingsReadDirectoriesRequest$Outbound; -} - export function settingsReadDirectoriesRequestToJSON( settingsReadDirectoriesRequest: SettingsReadDirectoriesRequest, ): string { @@ -56,13 +31,3 @@ export function settingsReadDirectoriesRequestToJSON( ), ); } - -export function settingsReadDirectoriesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsReadDirectoriesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsReadDirectoriesRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsreadtraefikenv.ts b/src/models/operations/settingsreadtraefikenv.ts index 9389454..a041bec 100644 --- a/src/models/operations/settingsreadtraefikenv.ts +++ b/src/models/operations/settingsreadtraefikenv.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsReadTraefikEnvRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsReadTraefikEnvRequest$inboundSchema: z.ZodType< - SettingsReadTraefikEnvRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsReadTraefikEnvRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsReadTraefikEnvRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsReadTraefikEnvRequest$ { - /** @deprecated use `SettingsReadTraefikEnvRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsReadTraefikEnvRequest$inboundSchema; - /** @deprecated use `SettingsReadTraefikEnvRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsReadTraefikEnvRequest$outboundSchema; - /** @deprecated use `SettingsReadTraefikEnvRequest$Outbound` instead. */ - export type Outbound = SettingsReadTraefikEnvRequest$Outbound; -} - export function settingsReadTraefikEnvRequestToJSON( settingsReadTraefikEnvRequest: SettingsReadTraefikEnvRequest, ): string { @@ -56,13 +31,3 @@ export function settingsReadTraefikEnvRequestToJSON( ), ); } - -export function settingsReadTraefikEnvRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsReadTraefikEnvRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsReadTraefikEnvRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsreadtraefikfile.ts b/src/models/operations/settingsreadtraefikfile.ts index 34867d2..9e73e04 100644 --- a/src/models/operations/settingsreadtraefikfile.ts +++ b/src/models/operations/settingsreadtraefikfile.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsReadTraefikFileRequest = { path: string; serverId?: string | undefined; }; -/** @internal */ -export const SettingsReadTraefikFileRequest$inboundSchema: z.ZodType< - SettingsReadTraefikFileRequest, - z.ZodTypeDef, - unknown -> = z.object({ - path: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsReadTraefikFileRequest$Outbound = { path: string; @@ -38,19 +25,6 @@ export const SettingsReadTraefikFileRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsReadTraefikFileRequest$ { - /** @deprecated use `SettingsReadTraefikFileRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsReadTraefikFileRequest$inboundSchema; - /** @deprecated use `SettingsReadTraefikFileRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsReadTraefikFileRequest$outboundSchema; - /** @deprecated use `SettingsReadTraefikFileRequest$Outbound` instead. */ - export type Outbound = SettingsReadTraefikFileRequest$Outbound; -} - export function settingsReadTraefikFileRequestToJSON( settingsReadTraefikFileRequest: SettingsReadTraefikFileRequest, ): string { @@ -60,13 +34,3 @@ export function settingsReadTraefikFileRequestToJSON( ), ); } - -export function settingsReadTraefikFileRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsReadTraefikFileRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsReadTraefikFileRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsreloadtraefik.ts b/src/models/operations/settingsreloadtraefik.ts index 1a4f9c1..6a7d34b 100644 --- a/src/models/operations/settingsreloadtraefik.ts +++ b/src/models/operations/settingsreloadtraefik.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsReloadTraefikRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsReloadTraefikRequest$inboundSchema: z.ZodType< - SettingsReloadTraefikRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsReloadTraefikRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsReloadTraefikRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsReloadTraefikRequest$ { - /** @deprecated use `SettingsReloadTraefikRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsReloadTraefikRequest$inboundSchema; - /** @deprecated use `SettingsReloadTraefikRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsReloadTraefikRequest$outboundSchema; - /** @deprecated use `SettingsReloadTraefikRequest$Outbound` instead. */ - export type Outbound = SettingsReloadTraefikRequest$Outbound; -} - export function settingsReloadTraefikRequestToJSON( settingsReloadTraefikRequest: SettingsReloadTraefikRequest, ): string { @@ -56,13 +31,3 @@ export function settingsReloadTraefikRequestToJSON( ), ); } - -export function settingsReloadTraefikRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsReloadTraefikRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsReloadTraefikRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingssavesshprivatekey.ts b/src/models/operations/settingssavesshprivatekey.ts index 60e7cef..6e85a20 100644 --- a/src/models/operations/settingssavesshprivatekey.ts +++ b/src/models/operations/settingssavesshprivatekey.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsSaveSSHPrivateKeyRequest = { sshPrivateKey: string | null; }; -/** @internal */ -export const SettingsSaveSSHPrivateKeyRequest$inboundSchema: z.ZodType< - SettingsSaveSSHPrivateKeyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - sshPrivateKey: z.nullable(z.string()), -}); - /** @internal */ export type SettingsSaveSSHPrivateKeyRequest$Outbound = { sshPrivateKey: string | null; @@ -34,19 +22,6 @@ export const SettingsSaveSSHPrivateKeyRequest$outboundSchema: z.ZodType< sshPrivateKey: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsSaveSSHPrivateKeyRequest$ { - /** @deprecated use `SettingsSaveSSHPrivateKeyRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsSaveSSHPrivateKeyRequest$inboundSchema; - /** @deprecated use `SettingsSaveSSHPrivateKeyRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsSaveSSHPrivateKeyRequest$outboundSchema; - /** @deprecated use `SettingsSaveSSHPrivateKeyRequest$Outbound` instead. */ - export type Outbound = SettingsSaveSSHPrivateKeyRequest$Outbound; -} - export function settingsSaveSSHPrivateKeyRequestToJSON( settingsSaveSSHPrivateKeyRequest: SettingsSaveSSHPrivateKeyRequest, ): string { @@ -56,13 +31,3 @@ export function settingsSaveSSHPrivateKeyRequestToJSON( ), ); } - -export function settingsSaveSSHPrivateKeyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsSaveSSHPrivateKeyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsSaveSSHPrivateKeyRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingssetupgpu.ts b/src/models/operations/settingssetupgpu.ts index 62bd006..54814f1 100644 --- a/src/models/operations/settingssetupgpu.ts +++ b/src/models/operations/settingssetupgpu.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsSetupGPURequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsSetupGPURequest$inboundSchema: z.ZodType< - SettingsSetupGPURequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsSetupGPURequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SettingsSetupGPURequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsSetupGPURequest$ { - /** @deprecated use `SettingsSetupGPURequest$inboundSchema` instead. */ - export const inboundSchema = SettingsSetupGPURequest$inboundSchema; - /** @deprecated use `SettingsSetupGPURequest$outboundSchema` instead. */ - export const outboundSchema = SettingsSetupGPURequest$outboundSchema; - /** @deprecated use `SettingsSetupGPURequest$Outbound` instead. */ - export type Outbound = SettingsSetupGPURequest$Outbound; -} - export function settingsSetupGPURequestToJSON( settingsSetupGPURequest: SettingsSetupGPURequest, ): string { @@ -54,13 +29,3 @@ export function settingsSetupGPURequestToJSON( SettingsSetupGPURequest$outboundSchema.parse(settingsSetupGPURequest), ); } - -export function settingsSetupGPURequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsSetupGPURequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsSetupGPURequest' from JSON`, - ); -} diff --git a/src/models/operations/settingstoggledashboard.ts b/src/models/operations/settingstoggledashboard.ts index 740ac6c..7da1941 100644 --- a/src/models/operations/settingstoggledashboard.ts +++ b/src/models/operations/settingstoggledashboard.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsToggleDashboardRequest = { enableDashboard?: boolean | undefined; serverId?: string | undefined; }; -/** @internal */ -export const SettingsToggleDashboardRequest$inboundSchema: z.ZodType< - SettingsToggleDashboardRequest, - z.ZodTypeDef, - unknown -> = z.object({ - enableDashboard: z.boolean().optional(), - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsToggleDashboardRequest$Outbound = { enableDashboard?: boolean | undefined; @@ -38,19 +25,6 @@ export const SettingsToggleDashboardRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsToggleDashboardRequest$ { - /** @deprecated use `SettingsToggleDashboardRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsToggleDashboardRequest$inboundSchema; - /** @deprecated use `SettingsToggleDashboardRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsToggleDashboardRequest$outboundSchema; - /** @deprecated use `SettingsToggleDashboardRequest$Outbound` instead. */ - export type Outbound = SettingsToggleDashboardRequest$Outbound; -} - export function settingsToggleDashboardRequestToJSON( settingsToggleDashboardRequest: SettingsToggleDashboardRequest, ): string { @@ -60,13 +34,3 @@ export function settingsToggleDashboardRequestToJSON( ), ); } - -export function settingsToggleDashboardRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsToggleDashboardRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsToggleDashboardRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingstogglerequests.ts b/src/models/operations/settingstogglerequests.ts index 472da11..051bbec 100644 --- a/src/models/operations/settingstogglerequests.ts +++ b/src/models/operations/settingstogglerequests.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsToggleRequestsRequest = { enable: boolean; }; -/** @internal */ -export const SettingsToggleRequestsRequest$inboundSchema: z.ZodType< - SettingsToggleRequestsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - enable: z.boolean(), -}); - /** @internal */ export type SettingsToggleRequestsRequest$Outbound = { enable: boolean; @@ -34,19 +22,6 @@ export const SettingsToggleRequestsRequest$outboundSchema: z.ZodType< enable: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsToggleRequestsRequest$ { - /** @deprecated use `SettingsToggleRequestsRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsToggleRequestsRequest$inboundSchema; - /** @deprecated use `SettingsToggleRequestsRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsToggleRequestsRequest$outboundSchema; - /** @deprecated use `SettingsToggleRequestsRequest$Outbound` instead. */ - export type Outbound = SettingsToggleRequestsRequest$Outbound; -} - export function settingsToggleRequestsRequestToJSON( settingsToggleRequestsRequest: SettingsToggleRequestsRequest, ): string { @@ -56,13 +31,3 @@ export function settingsToggleRequestsRequestToJSON( ), ); } - -export function settingsToggleRequestsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsToggleRequestsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsToggleRequestsRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsupdatedockercleanup.ts b/src/models/operations/settingsupdatedockercleanup.ts index bd05c87..6cf558d 100644 --- a/src/models/operations/settingsupdatedockercleanup.ts +++ b/src/models/operations/settingsupdatedockercleanup.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsUpdateDockerCleanupRequest = { enableDockerCleanup: boolean; serverId?: string | undefined; }; -/** @internal */ -export const SettingsUpdateDockerCleanupRequest$inboundSchema: z.ZodType< - SettingsUpdateDockerCleanupRequest, - z.ZodTypeDef, - unknown -> = z.object({ - enableDockerCleanup: z.boolean(), - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsUpdateDockerCleanupRequest$Outbound = { enableDockerCleanup: boolean; @@ -38,20 +25,6 @@ export const SettingsUpdateDockerCleanupRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsUpdateDockerCleanupRequest$ { - /** @deprecated use `SettingsUpdateDockerCleanupRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsUpdateDockerCleanupRequest$inboundSchema; - /** @deprecated use `SettingsUpdateDockerCleanupRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsUpdateDockerCleanupRequest$outboundSchema; - /** @deprecated use `SettingsUpdateDockerCleanupRequest$Outbound` instead. */ - export type Outbound = SettingsUpdateDockerCleanupRequest$Outbound; -} - export function settingsUpdateDockerCleanupRequestToJSON( settingsUpdateDockerCleanupRequest: SettingsUpdateDockerCleanupRequest, ): string { @@ -61,14 +34,3 @@ export function settingsUpdateDockerCleanupRequestToJSON( ), ); } - -export function settingsUpdateDockerCleanupRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - SettingsUpdateDockerCleanupRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsUpdateDockerCleanupRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsupdatelogcleanup.ts b/src/models/operations/settingsupdatelogcleanup.ts index e09f6cc..8f7f2e6 100644 --- a/src/models/operations/settingsupdatelogcleanup.ts +++ b/src/models/operations/settingsupdatelogcleanup.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsUpdateLogCleanupRequest = { cronExpression: string | null; }; -/** @internal */ -export const SettingsUpdateLogCleanupRequest$inboundSchema: z.ZodType< - SettingsUpdateLogCleanupRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cronExpression: z.nullable(z.string()), -}); - /** @internal */ export type SettingsUpdateLogCleanupRequest$Outbound = { cronExpression: string | null; @@ -34,19 +22,6 @@ export const SettingsUpdateLogCleanupRequest$outboundSchema: z.ZodType< cronExpression: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsUpdateLogCleanupRequest$ { - /** @deprecated use `SettingsUpdateLogCleanupRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsUpdateLogCleanupRequest$inboundSchema; - /** @deprecated use `SettingsUpdateLogCleanupRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsUpdateLogCleanupRequest$outboundSchema; - /** @deprecated use `SettingsUpdateLogCleanupRequest$Outbound` instead. */ - export type Outbound = SettingsUpdateLogCleanupRequest$Outbound; -} - export function settingsUpdateLogCleanupRequestToJSON( settingsUpdateLogCleanupRequest: SettingsUpdateLogCleanupRequest, ): string { @@ -56,13 +31,3 @@ export function settingsUpdateLogCleanupRequestToJSON( ), ); } - -export function settingsUpdateLogCleanupRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsUpdateLogCleanupRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsUpdateLogCleanupRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsupdatemiddlewaretraefikconfig.ts b/src/models/operations/settingsupdatemiddlewaretraefikconfig.ts index 022af5b..3e8a87e 100644 --- a/src/models/operations/settingsupdatemiddlewaretraefikconfig.ts +++ b/src/models/operations/settingsupdatemiddlewaretraefikconfig.ts @@ -2,25 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsUpdateMiddlewareTraefikConfigRequest = { traefikConfig: string; }; -/** @internal */ -export const SettingsUpdateMiddlewareTraefikConfigRequest$inboundSchema: - z.ZodType< - SettingsUpdateMiddlewareTraefikConfigRequest, - z.ZodTypeDef, - unknown - > = z.object({ - traefikConfig: z.string(), - }); - /** @internal */ export type SettingsUpdateMiddlewareTraefikConfigRequest$Outbound = { traefikConfig: string; @@ -36,21 +23,6 @@ export const SettingsUpdateMiddlewareTraefikConfigRequest$outboundSchema: traefikConfig: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsUpdateMiddlewareTraefikConfigRequest$ { - /** @deprecated use `SettingsUpdateMiddlewareTraefikConfigRequest$inboundSchema` instead. */ - export const inboundSchema = - SettingsUpdateMiddlewareTraefikConfigRequest$inboundSchema; - /** @deprecated use `SettingsUpdateMiddlewareTraefikConfigRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsUpdateMiddlewareTraefikConfigRequest$outboundSchema; - /** @deprecated use `SettingsUpdateMiddlewareTraefikConfigRequest$Outbound` instead. */ - export type Outbound = SettingsUpdateMiddlewareTraefikConfigRequest$Outbound; -} - export function settingsUpdateMiddlewareTraefikConfigRequestToJSON( settingsUpdateMiddlewareTraefikConfigRequest: SettingsUpdateMiddlewareTraefikConfigRequest, @@ -61,19 +33,3 @@ export function settingsUpdateMiddlewareTraefikConfigRequestToJSON( ), ); } - -export function settingsUpdateMiddlewareTraefikConfigRequestFromJSON( - jsonString: string, -): SafeParseResult< - SettingsUpdateMiddlewareTraefikConfigRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - SettingsUpdateMiddlewareTraefikConfigRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'SettingsUpdateMiddlewareTraefikConfigRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsupdatetraefikconfig.ts b/src/models/operations/settingsupdatetraefikconfig.ts index cad3bb9..dd3d83a 100644 --- a/src/models/operations/settingsupdatetraefikconfig.ts +++ b/src/models/operations/settingsupdatetraefikconfig.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsUpdateTraefikConfigRequest = { traefikConfig: string; }; -/** @internal */ -export const SettingsUpdateTraefikConfigRequest$inboundSchema: z.ZodType< - SettingsUpdateTraefikConfigRequest, - z.ZodTypeDef, - unknown -> = z.object({ - traefikConfig: z.string(), -}); - /** @internal */ export type SettingsUpdateTraefikConfigRequest$Outbound = { traefikConfig: string; @@ -34,20 +22,6 @@ export const SettingsUpdateTraefikConfigRequest$outboundSchema: z.ZodType< traefikConfig: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsUpdateTraefikConfigRequest$ { - /** @deprecated use `SettingsUpdateTraefikConfigRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsUpdateTraefikConfigRequest$inboundSchema; - /** @deprecated use `SettingsUpdateTraefikConfigRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsUpdateTraefikConfigRequest$outboundSchema; - /** @deprecated use `SettingsUpdateTraefikConfigRequest$Outbound` instead. */ - export type Outbound = SettingsUpdateTraefikConfigRequest$Outbound; -} - export function settingsUpdateTraefikConfigRequestToJSON( settingsUpdateTraefikConfigRequest: SettingsUpdateTraefikConfigRequest, ): string { @@ -57,14 +31,3 @@ export function settingsUpdateTraefikConfigRequestToJSON( ), ); } - -export function settingsUpdateTraefikConfigRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - SettingsUpdateTraefikConfigRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsUpdateTraefikConfigRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsupdatetraefikfile.ts b/src/models/operations/settingsupdatetraefikfile.ts index 9c2183d..3d41379 100644 --- a/src/models/operations/settingsupdatetraefikfile.ts +++ b/src/models/operations/settingsupdatetraefikfile.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsUpdateTraefikFileRequest = { path: string; @@ -13,17 +10,6 @@ export type SettingsUpdateTraefikFileRequest = { traefikConfig: string; }; -/** @internal */ -export const SettingsUpdateTraefikFileRequest$inboundSchema: z.ZodType< - SettingsUpdateTraefikFileRequest, - z.ZodTypeDef, - unknown -> = z.object({ - path: z.string(), - serverId: z.string().optional(), - traefikConfig: z.string(), -}); - /** @internal */ export type SettingsUpdateTraefikFileRequest$Outbound = { path: string; @@ -42,19 +28,6 @@ export const SettingsUpdateTraefikFileRequest$outboundSchema: z.ZodType< traefikConfig: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsUpdateTraefikFileRequest$ { - /** @deprecated use `SettingsUpdateTraefikFileRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsUpdateTraefikFileRequest$inboundSchema; - /** @deprecated use `SettingsUpdateTraefikFileRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsUpdateTraefikFileRequest$outboundSchema; - /** @deprecated use `SettingsUpdateTraefikFileRequest$Outbound` instead. */ - export type Outbound = SettingsUpdateTraefikFileRequest$Outbound; -} - export function settingsUpdateTraefikFileRequestToJSON( settingsUpdateTraefikFileRequest: SettingsUpdateTraefikFileRequest, ): string { @@ -64,13 +37,3 @@ export function settingsUpdateTraefikFileRequestToJSON( ), ); } - -export function settingsUpdateTraefikFileRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsUpdateTraefikFileRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsUpdateTraefikFileRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsupdatetraefikports.ts b/src/models/operations/settingsupdatetraefikports.ts index da8f992..518dc7a 100644 --- a/src/models/operations/settingsupdatetraefikports.ts +++ b/src/models/operations/settingsupdatetraefikports.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const SettingsUpdateTraefikPortsProtocol = { Tcp: "tcp", @@ -28,38 +25,10 @@ export type SettingsUpdateTraefikPortsRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SettingsUpdateTraefikPortsProtocol$inboundSchema: z.ZodNativeEnum< - typeof SettingsUpdateTraefikPortsProtocol -> = z.nativeEnum(SettingsUpdateTraefikPortsProtocol); - /** @internal */ export const SettingsUpdateTraefikPortsProtocol$outboundSchema: z.ZodNativeEnum< typeof SettingsUpdateTraefikPortsProtocol -> = SettingsUpdateTraefikPortsProtocol$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsUpdateTraefikPortsProtocol$ { - /** @deprecated use `SettingsUpdateTraefikPortsProtocol$inboundSchema` instead. */ - export const inboundSchema = SettingsUpdateTraefikPortsProtocol$inboundSchema; - /** @deprecated use `SettingsUpdateTraefikPortsProtocol$outboundSchema` instead. */ - export const outboundSchema = - SettingsUpdateTraefikPortsProtocol$outboundSchema; -} - -/** @internal */ -export const AdditionalPort$inboundSchema: z.ZodType< - AdditionalPort, - z.ZodTypeDef, - unknown -> = z.object({ - protocol: SettingsUpdateTraefikPortsProtocol$inboundSchema, - publishedPort: z.number(), - targetPort: z.number(), -}); +> = z.nativeEnum(SettingsUpdateTraefikPortsProtocol); /** @internal */ export type AdditionalPort$Outbound = { @@ -79,43 +48,10 @@ export const AdditionalPort$outboundSchema: z.ZodType< targetPort: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdditionalPort$ { - /** @deprecated use `AdditionalPort$inboundSchema` instead. */ - export const inboundSchema = AdditionalPort$inboundSchema; - /** @deprecated use `AdditionalPort$outboundSchema` instead. */ - export const outboundSchema = AdditionalPort$outboundSchema; - /** @deprecated use `AdditionalPort$Outbound` instead. */ - export type Outbound = AdditionalPort$Outbound; -} - export function additionalPortToJSON(additionalPort: AdditionalPort): string { return JSON.stringify(AdditionalPort$outboundSchema.parse(additionalPort)); } -export function additionalPortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AdditionalPort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AdditionalPort' from JSON`, - ); -} - -/** @internal */ -export const SettingsUpdateTraefikPortsRequest$inboundSchema: z.ZodType< - SettingsUpdateTraefikPortsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - additionalPorts: z.array(z.lazy(() => AdditionalPort$inboundSchema)), - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsUpdateTraefikPortsRequest$Outbound = { additionalPorts: Array; @@ -132,20 +68,6 @@ export const SettingsUpdateTraefikPortsRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsUpdateTraefikPortsRequest$ { - /** @deprecated use `SettingsUpdateTraefikPortsRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsUpdateTraefikPortsRequest$inboundSchema; - /** @deprecated use `SettingsUpdateTraefikPortsRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsUpdateTraefikPortsRequest$outboundSchema; - /** @deprecated use `SettingsUpdateTraefikPortsRequest$Outbound` instead. */ - export type Outbound = SettingsUpdateTraefikPortsRequest$Outbound; -} - export function settingsUpdateTraefikPortsRequestToJSON( settingsUpdateTraefikPortsRequest: SettingsUpdateTraefikPortsRequest, ): string { @@ -155,13 +77,3 @@ export function settingsUpdateTraefikPortsRequestToJSON( ), ); } - -export function settingsUpdateTraefikPortsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsUpdateTraefikPortsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsUpdateTraefikPortsRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingsupdatewebservertraefikconfig.ts b/src/models/operations/settingsupdatewebservertraefikconfig.ts index fda315a..040eabc 100644 --- a/src/models/operations/settingsupdatewebservertraefikconfig.ts +++ b/src/models/operations/settingsupdatewebservertraefikconfig.ts @@ -2,25 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsUpdateWebServerTraefikConfigRequest = { traefikConfig: string; }; -/** @internal */ -export const SettingsUpdateWebServerTraefikConfigRequest$inboundSchema: - z.ZodType< - SettingsUpdateWebServerTraefikConfigRequest, - z.ZodTypeDef, - unknown - > = z.object({ - traefikConfig: z.string(), - }); - /** @internal */ export type SettingsUpdateWebServerTraefikConfigRequest$Outbound = { traefikConfig: string; @@ -36,21 +23,6 @@ export const SettingsUpdateWebServerTraefikConfigRequest$outboundSchema: traefikConfig: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsUpdateWebServerTraefikConfigRequest$ { - /** @deprecated use `SettingsUpdateWebServerTraefikConfigRequest$inboundSchema` instead. */ - export const inboundSchema = - SettingsUpdateWebServerTraefikConfigRequest$inboundSchema; - /** @deprecated use `SettingsUpdateWebServerTraefikConfigRequest$outboundSchema` instead. */ - export const outboundSchema = - SettingsUpdateWebServerTraefikConfigRequest$outboundSchema; - /** @deprecated use `SettingsUpdateWebServerTraefikConfigRequest$Outbound` instead. */ - export type Outbound = SettingsUpdateWebServerTraefikConfigRequest$Outbound; -} - export function settingsUpdateWebServerTraefikConfigRequestToJSON( settingsUpdateWebServerTraefikConfigRequest: SettingsUpdateWebServerTraefikConfigRequest, @@ -61,19 +33,3 @@ export function settingsUpdateWebServerTraefikConfigRequestToJSON( ), ); } - -export function settingsUpdateWebServerTraefikConfigRequestFromJSON( - jsonString: string, -): SafeParseResult< - SettingsUpdateWebServerTraefikConfigRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - SettingsUpdateWebServerTraefikConfigRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'SettingsUpdateWebServerTraefikConfigRequest' from JSON`, - ); -} diff --git a/src/models/operations/settingswritetraefikenv.ts b/src/models/operations/settingswritetraefikenv.ts index a4fb41d..f6048e3 100644 --- a/src/models/operations/settingswritetraefikenv.ts +++ b/src/models/operations/settingswritetraefikenv.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SettingsWriteTraefikEnvRequest = { env: string; serverId?: string | undefined; }; -/** @internal */ -export const SettingsWriteTraefikEnvRequest$inboundSchema: z.ZodType< - SettingsWriteTraefikEnvRequest, - z.ZodTypeDef, - unknown -> = z.object({ - env: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type SettingsWriteTraefikEnvRequest$Outbound = { env: string; @@ -38,19 +25,6 @@ export const SettingsWriteTraefikEnvRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SettingsWriteTraefikEnvRequest$ { - /** @deprecated use `SettingsWriteTraefikEnvRequest$inboundSchema` instead. */ - export const inboundSchema = SettingsWriteTraefikEnvRequest$inboundSchema; - /** @deprecated use `SettingsWriteTraefikEnvRequest$outboundSchema` instead. */ - export const outboundSchema = SettingsWriteTraefikEnvRequest$outboundSchema; - /** @deprecated use `SettingsWriteTraefikEnvRequest$Outbound` instead. */ - export type Outbound = SettingsWriteTraefikEnvRequest$Outbound; -} - export function settingsWriteTraefikEnvRequestToJSON( settingsWriteTraefikEnvRequest: SettingsWriteTraefikEnvRequest, ): string { @@ -60,13 +34,3 @@ export function settingsWriteTraefikEnvRequestToJSON( ), ); } - -export function settingsWriteTraefikEnvRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SettingsWriteTraefikEnvRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SettingsWriteTraefikEnvRequest' from JSON`, - ); -} diff --git a/src/models/operations/sshkeycreate.ts b/src/models/operations/sshkeycreate.ts index 2ab7faa..b91bbb0 100644 --- a/src/models/operations/sshkeycreate.ts +++ b/src/models/operations/sshkeycreate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SshKeyCreateRequest = { description?: string | null | undefined; @@ -15,19 +12,6 @@ export type SshKeyCreateRequest = { publicKey: string; }; -/** @internal */ -export const SshKeyCreateRequest$inboundSchema: z.ZodType< - SshKeyCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - name: z.string(), - organizationId: z.string(), - privateKey: z.string(), - publicKey: z.string(), -}); - /** @internal */ export type SshKeyCreateRequest$Outbound = { description?: string | null | undefined; @@ -50,19 +34,6 @@ export const SshKeyCreateRequest$outboundSchema: z.ZodType< publicKey: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SshKeyCreateRequest$ { - /** @deprecated use `SshKeyCreateRequest$inboundSchema` instead. */ - export const inboundSchema = SshKeyCreateRequest$inboundSchema; - /** @deprecated use `SshKeyCreateRequest$outboundSchema` instead. */ - export const outboundSchema = SshKeyCreateRequest$outboundSchema; - /** @deprecated use `SshKeyCreateRequest$Outbound` instead. */ - export type Outbound = SshKeyCreateRequest$Outbound; -} - export function sshKeyCreateRequestToJSON( sshKeyCreateRequest: SshKeyCreateRequest, ): string { @@ -70,13 +41,3 @@ export function sshKeyCreateRequestToJSON( SshKeyCreateRequest$outboundSchema.parse(sshKeyCreateRequest), ); } - -export function sshKeyCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SshKeyCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SshKeyCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/sshkeygenerate.ts b/src/models/operations/sshkeygenerate.ts index 227cd09..78bf94b 100644 --- a/src/models/operations/sshkeygenerate.ts +++ b/src/models/operations/sshkeygenerate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const SshKeyGenerateType = { Rsa: "rsa", @@ -18,35 +15,10 @@ export type SshKeyGenerateRequest = { type?: SshKeyGenerateType | undefined; }; -/** @internal */ -export const SshKeyGenerateType$inboundSchema: z.ZodNativeEnum< - typeof SshKeyGenerateType -> = z.nativeEnum(SshKeyGenerateType); - /** @internal */ export const SshKeyGenerateType$outboundSchema: z.ZodNativeEnum< typeof SshKeyGenerateType -> = SshKeyGenerateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SshKeyGenerateType$ { - /** @deprecated use `SshKeyGenerateType$inboundSchema` instead. */ - export const inboundSchema = SshKeyGenerateType$inboundSchema; - /** @deprecated use `SshKeyGenerateType$outboundSchema` instead. */ - export const outboundSchema = SshKeyGenerateType$outboundSchema; -} - -/** @internal */ -export const SshKeyGenerateRequest$inboundSchema: z.ZodType< - SshKeyGenerateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - type: SshKeyGenerateType$inboundSchema.optional(), -}); +> = z.nativeEnum(SshKeyGenerateType); /** @internal */ export type SshKeyGenerateRequest$Outbound = { @@ -62,19 +34,6 @@ export const SshKeyGenerateRequest$outboundSchema: z.ZodType< type: SshKeyGenerateType$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SshKeyGenerateRequest$ { - /** @deprecated use `SshKeyGenerateRequest$inboundSchema` instead. */ - export const inboundSchema = SshKeyGenerateRequest$inboundSchema; - /** @deprecated use `SshKeyGenerateRequest$outboundSchema` instead. */ - export const outboundSchema = SshKeyGenerateRequest$outboundSchema; - /** @deprecated use `SshKeyGenerateRequest$Outbound` instead. */ - export type Outbound = SshKeyGenerateRequest$Outbound; -} - export function sshKeyGenerateRequestToJSON( sshKeyGenerateRequest: SshKeyGenerateRequest, ): string { @@ -82,13 +41,3 @@ export function sshKeyGenerateRequestToJSON( SshKeyGenerateRequest$outboundSchema.parse(sshKeyGenerateRequest), ); } - -export function sshKeyGenerateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SshKeyGenerateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SshKeyGenerateRequest' from JSON`, - ); -} diff --git a/src/models/operations/sshkeyone.ts b/src/models/operations/sshkeyone.ts index 916d5e9..4ee899a 100644 --- a/src/models/operations/sshkeyone.ts +++ b/src/models/operations/sshkeyone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SshKeyOneRequest = { sshKeyId: string; }; -/** @internal */ -export const SshKeyOneRequest$inboundSchema: z.ZodType< - SshKeyOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - sshKeyId: z.string(), -}); - /** @internal */ export type SshKeyOneRequest$Outbound = { sshKeyId: string; @@ -34,19 +22,6 @@ export const SshKeyOneRequest$outboundSchema: z.ZodType< sshKeyId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SshKeyOneRequest$ { - /** @deprecated use `SshKeyOneRequest$inboundSchema` instead. */ - export const inboundSchema = SshKeyOneRequest$inboundSchema; - /** @deprecated use `SshKeyOneRequest$outboundSchema` instead. */ - export const outboundSchema = SshKeyOneRequest$outboundSchema; - /** @deprecated use `SshKeyOneRequest$Outbound` instead. */ - export type Outbound = SshKeyOneRequest$Outbound; -} - export function sshKeyOneRequestToJSON( sshKeyOneRequest: SshKeyOneRequest, ): string { @@ -54,13 +29,3 @@ export function sshKeyOneRequestToJSON( SshKeyOneRequest$outboundSchema.parse(sshKeyOneRequest), ); } - -export function sshKeyOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SshKeyOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SshKeyOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/sshkeyremove.ts b/src/models/operations/sshkeyremove.ts index 1635fbb..94ec34f 100644 --- a/src/models/operations/sshkeyremove.ts +++ b/src/models/operations/sshkeyremove.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SshKeyRemoveRequest = { sshKeyId: string; }; -/** @internal */ -export const SshKeyRemoveRequest$inboundSchema: z.ZodType< - SshKeyRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - sshKeyId: z.string(), -}); - /** @internal */ export type SshKeyRemoveRequest$Outbound = { sshKeyId: string; @@ -34,19 +22,6 @@ export const SshKeyRemoveRequest$outboundSchema: z.ZodType< sshKeyId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SshKeyRemoveRequest$ { - /** @deprecated use `SshKeyRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = SshKeyRemoveRequest$inboundSchema; - /** @deprecated use `SshKeyRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = SshKeyRemoveRequest$outboundSchema; - /** @deprecated use `SshKeyRemoveRequest$Outbound` instead. */ - export type Outbound = SshKeyRemoveRequest$Outbound; -} - export function sshKeyRemoveRequestToJSON( sshKeyRemoveRequest: SshKeyRemoveRequest, ): string { @@ -54,13 +29,3 @@ export function sshKeyRemoveRequestToJSON( SshKeyRemoveRequest$outboundSchema.parse(sshKeyRemoveRequest), ); } - -export function sshKeyRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SshKeyRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SshKeyRemoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/sshkeyupdate.ts b/src/models/operations/sshkeyupdate.ts index ca98ca3..7614a05 100644 --- a/src/models/operations/sshkeyupdate.ts +++ b/src/models/operations/sshkeyupdate.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SshKeyUpdateRequest = { description?: string | null | undefined; @@ -14,18 +11,6 @@ export type SshKeyUpdateRequest = { sshKeyId: string; }; -/** @internal */ -export const SshKeyUpdateRequest$inboundSchema: z.ZodType< - SshKeyUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - lastUsedAt: z.nullable(z.string()).optional(), - name: z.string().optional(), - sshKeyId: z.string(), -}); - /** @internal */ export type SshKeyUpdateRequest$Outbound = { description?: string | null | undefined; @@ -46,19 +31,6 @@ export const SshKeyUpdateRequest$outboundSchema: z.ZodType< sshKeyId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SshKeyUpdateRequest$ { - /** @deprecated use `SshKeyUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = SshKeyUpdateRequest$inboundSchema; - /** @deprecated use `SshKeyUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = SshKeyUpdateRequest$outboundSchema; - /** @deprecated use `SshKeyUpdateRequest$Outbound` instead. */ - export type Outbound = SshKeyUpdateRequest$Outbound; -} - export function sshKeyUpdateRequestToJSON( sshKeyUpdateRequest: SshKeyUpdateRequest, ): string { @@ -66,13 +38,3 @@ export function sshKeyUpdateRequestToJSON( SshKeyUpdateRequest$outboundSchema.parse(sshKeyUpdateRequest), ); } - -export function sshKeyUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SshKeyUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SshKeyUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/stripecreatecheckoutsession.ts b/src/models/operations/stripecreatecheckoutsession.ts index a0d8d3f..83011ec 100644 --- a/src/models/operations/stripecreatecheckoutsession.ts +++ b/src/models/operations/stripecreatecheckoutsession.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type StripeCreateCheckoutSessionRequest = { isAnnual: boolean; @@ -13,17 +10,6 @@ export type StripeCreateCheckoutSessionRequest = { serverQuantity: number; }; -/** @internal */ -export const StripeCreateCheckoutSessionRequest$inboundSchema: z.ZodType< - StripeCreateCheckoutSessionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - isAnnual: z.boolean(), - productId: z.string(), - serverQuantity: z.number(), -}); - /** @internal */ export type StripeCreateCheckoutSessionRequest$Outbound = { isAnnual: boolean; @@ -42,20 +28,6 @@ export const StripeCreateCheckoutSessionRequest$outboundSchema: z.ZodType< serverQuantity: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StripeCreateCheckoutSessionRequest$ { - /** @deprecated use `StripeCreateCheckoutSessionRequest$inboundSchema` instead. */ - export const inboundSchema = StripeCreateCheckoutSessionRequest$inboundSchema; - /** @deprecated use `StripeCreateCheckoutSessionRequest$outboundSchema` instead. */ - export const outboundSchema = - StripeCreateCheckoutSessionRequest$outboundSchema; - /** @deprecated use `StripeCreateCheckoutSessionRequest$Outbound` instead. */ - export type Outbound = StripeCreateCheckoutSessionRequest$Outbound; -} - export function stripeCreateCheckoutSessionRequestToJSON( stripeCreateCheckoutSessionRequest: StripeCreateCheckoutSessionRequest, ): string { @@ -65,14 +37,3 @@ export function stripeCreateCheckoutSessionRequestToJSON( ), ); } - -export function stripeCreateCheckoutSessionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - StripeCreateCheckoutSessionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StripeCreateCheckoutSessionRequest' from JSON`, - ); -} diff --git a/src/models/operations/swarmgetnodeapps.ts b/src/models/operations/swarmgetnodeapps.ts index fffd626..50ca838 100644 --- a/src/models/operations/swarmgetnodeapps.ts +++ b/src/models/operations/swarmgetnodeapps.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SwarmGetNodeAppsRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SwarmGetNodeAppsRequest$inboundSchema: z.ZodType< - SwarmGetNodeAppsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SwarmGetNodeAppsRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SwarmGetNodeAppsRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SwarmGetNodeAppsRequest$ { - /** @deprecated use `SwarmGetNodeAppsRequest$inboundSchema` instead. */ - export const inboundSchema = SwarmGetNodeAppsRequest$inboundSchema; - /** @deprecated use `SwarmGetNodeAppsRequest$outboundSchema` instead. */ - export const outboundSchema = SwarmGetNodeAppsRequest$outboundSchema; - /** @deprecated use `SwarmGetNodeAppsRequest$Outbound` instead. */ - export type Outbound = SwarmGetNodeAppsRequest$Outbound; -} - export function swarmGetNodeAppsRequestToJSON( swarmGetNodeAppsRequest: SwarmGetNodeAppsRequest, ): string { @@ -54,13 +29,3 @@ export function swarmGetNodeAppsRequestToJSON( SwarmGetNodeAppsRequest$outboundSchema.parse(swarmGetNodeAppsRequest), ); } - -export function swarmGetNodeAppsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SwarmGetNodeAppsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SwarmGetNodeAppsRequest' from JSON`, - ); -} diff --git a/src/models/operations/swarmgetnodeinfo.ts b/src/models/operations/swarmgetnodeinfo.ts index 45e1584..fea2c38 100644 --- a/src/models/operations/swarmgetnodeinfo.ts +++ b/src/models/operations/swarmgetnodeinfo.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SwarmGetNodeInfoRequest = { nodeId: string; serverId?: string | undefined; }; -/** @internal */ -export const SwarmGetNodeInfoRequest$inboundSchema: z.ZodType< - SwarmGetNodeInfoRequest, - z.ZodTypeDef, - unknown -> = z.object({ - nodeId: z.string(), - serverId: z.string().optional(), -}); - /** @internal */ export type SwarmGetNodeInfoRequest$Outbound = { nodeId: string; @@ -38,19 +25,6 @@ export const SwarmGetNodeInfoRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SwarmGetNodeInfoRequest$ { - /** @deprecated use `SwarmGetNodeInfoRequest$inboundSchema` instead. */ - export const inboundSchema = SwarmGetNodeInfoRequest$inboundSchema; - /** @deprecated use `SwarmGetNodeInfoRequest$outboundSchema` instead. */ - export const outboundSchema = SwarmGetNodeInfoRequest$outboundSchema; - /** @deprecated use `SwarmGetNodeInfoRequest$Outbound` instead. */ - export type Outbound = SwarmGetNodeInfoRequest$Outbound; -} - export function swarmGetNodeInfoRequestToJSON( swarmGetNodeInfoRequest: SwarmGetNodeInfoRequest, ): string { @@ -58,13 +32,3 @@ export function swarmGetNodeInfoRequestToJSON( SwarmGetNodeInfoRequest$outboundSchema.parse(swarmGetNodeInfoRequest), ); } - -export function swarmGetNodeInfoRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SwarmGetNodeInfoRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SwarmGetNodeInfoRequest' from JSON`, - ); -} diff --git a/src/models/operations/swarmgetnodes.ts b/src/models/operations/swarmgetnodes.ts index 44d13a8..a2771c5 100644 --- a/src/models/operations/swarmgetnodes.ts +++ b/src/models/operations/swarmgetnodes.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type SwarmGetNodesRequest = { serverId?: string | undefined; }; -/** @internal */ -export const SwarmGetNodesRequest$inboundSchema: z.ZodType< - SwarmGetNodesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - serverId: z.string().optional(), -}); - /** @internal */ export type SwarmGetNodesRequest$Outbound = { serverId?: string | undefined; @@ -34,19 +22,6 @@ export const SwarmGetNodesRequest$outboundSchema: z.ZodType< serverId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SwarmGetNodesRequest$ { - /** @deprecated use `SwarmGetNodesRequest$inboundSchema` instead. */ - export const inboundSchema = SwarmGetNodesRequest$inboundSchema; - /** @deprecated use `SwarmGetNodesRequest$outboundSchema` instead. */ - export const outboundSchema = SwarmGetNodesRequest$outboundSchema; - /** @deprecated use `SwarmGetNodesRequest$Outbound` instead. */ - export type Outbound = SwarmGetNodesRequest$Outbound; -} - export function swarmGetNodesRequestToJSON( swarmGetNodesRequest: SwarmGetNodesRequest, ): string { @@ -54,13 +29,3 @@ export function swarmGetNodesRequestToJSON( SwarmGetNodesRequest$outboundSchema.parse(swarmGetNodesRequest), ); } - -export function swarmGetNodesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SwarmGetNodesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SwarmGetNodesRequest' from JSON`, - ); -} diff --git a/src/models/operations/userassignpermissions.ts b/src/models/operations/userassignpermissions.ts index db20eb2..a195463 100644 --- a/src/models/operations/userassignpermissions.ts +++ b/src/models/operations/userassignpermissions.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserAssignPermissionsRequest = { accessedEnvironments: Array; @@ -23,27 +20,6 @@ export type UserAssignPermissionsRequest = { id: string; }; -/** @internal */ -export const UserAssignPermissionsRequest$inboundSchema: z.ZodType< - UserAssignPermissionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - accessedEnvironments: z.array(z.string()), - accessedProjects: z.array(z.string()), - accessedServices: z.array(z.string()), - canAccessToAPI: z.boolean(), - canAccessToDocker: z.boolean(), - canAccessToGitProviders: z.boolean(), - canAccessToSSHKeys: z.boolean(), - canAccessToTraefikFiles: z.boolean(), - canCreateProjects: z.boolean(), - canCreateServices: z.boolean(), - canDeleteProjects: z.boolean(), - canDeleteServices: z.boolean(), - id: z.string(), -}); - /** @internal */ export type UserAssignPermissionsRequest$Outbound = { accessedEnvironments: Array; @@ -82,19 +58,6 @@ export const UserAssignPermissionsRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserAssignPermissionsRequest$ { - /** @deprecated use `UserAssignPermissionsRequest$inboundSchema` instead. */ - export const inboundSchema = UserAssignPermissionsRequest$inboundSchema; - /** @deprecated use `UserAssignPermissionsRequest$outboundSchema` instead. */ - export const outboundSchema = UserAssignPermissionsRequest$outboundSchema; - /** @deprecated use `UserAssignPermissionsRequest$Outbound` instead. */ - export type Outbound = UserAssignPermissionsRequest$Outbound; -} - export function userAssignPermissionsRequestToJSON( userAssignPermissionsRequest: UserAssignPermissionsRequest, ): string { @@ -104,13 +67,3 @@ export function userAssignPermissionsRequestToJSON( ), ); } - -export function userAssignPermissionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserAssignPermissionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserAssignPermissionsRequest' from JSON`, - ); -} diff --git a/src/models/operations/usercheckuserorganizations.ts b/src/models/operations/usercheckuserorganizations.ts index 917bd5e..eeb4acb 100644 --- a/src/models/operations/usercheckuserorganizations.ts +++ b/src/models/operations/usercheckuserorganizations.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserCheckUserOrganizationsRequest = { userId: string; }; -/** @internal */ -export const UserCheckUserOrganizationsRequest$inboundSchema: z.ZodType< - UserCheckUserOrganizationsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - userId: z.string(), -}); - /** @internal */ export type UserCheckUserOrganizationsRequest$Outbound = { userId: string; @@ -34,20 +22,6 @@ export const UserCheckUserOrganizationsRequest$outboundSchema: z.ZodType< userId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserCheckUserOrganizationsRequest$ { - /** @deprecated use `UserCheckUserOrganizationsRequest$inboundSchema` instead. */ - export const inboundSchema = UserCheckUserOrganizationsRequest$inboundSchema; - /** @deprecated use `UserCheckUserOrganizationsRequest$outboundSchema` instead. */ - export const outboundSchema = - UserCheckUserOrganizationsRequest$outboundSchema; - /** @deprecated use `UserCheckUserOrganizationsRequest$Outbound` instead. */ - export type Outbound = UserCheckUserOrganizationsRequest$Outbound; -} - export function userCheckUserOrganizationsRequestToJSON( userCheckUserOrganizationsRequest: UserCheckUserOrganizationsRequest, ): string { @@ -57,13 +31,3 @@ export function userCheckUserOrganizationsRequestToJSON( ), ); } - -export function userCheckUserOrganizationsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserCheckUserOrganizationsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserCheckUserOrganizationsRequest' from JSON`, - ); -} diff --git a/src/models/operations/usercreateapikey.ts b/src/models/operations/usercreateapikey.ts index 708b66a..674a591 100644 --- a/src/models/operations/usercreateapikey.ts +++ b/src/models/operations/usercreateapikey.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserCreateApiKeyMetadata = { organizationId: string; @@ -24,15 +21,6 @@ export type UserCreateApiKeyRequest = { remaining?: number | undefined; }; -/** @internal */ -export const UserCreateApiKeyMetadata$inboundSchema: z.ZodType< - UserCreateApiKeyMetadata, - z.ZodTypeDef, - unknown -> = z.object({ - organizationId: z.string(), -}); - /** @internal */ export type UserCreateApiKeyMetadata$Outbound = { organizationId: string; @@ -47,19 +35,6 @@ export const UserCreateApiKeyMetadata$outboundSchema: z.ZodType< organizationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserCreateApiKeyMetadata$ { - /** @deprecated use `UserCreateApiKeyMetadata$inboundSchema` instead. */ - export const inboundSchema = UserCreateApiKeyMetadata$inboundSchema; - /** @deprecated use `UserCreateApiKeyMetadata$outboundSchema` instead. */ - export const outboundSchema = UserCreateApiKeyMetadata$outboundSchema; - /** @deprecated use `UserCreateApiKeyMetadata$Outbound` instead. */ - export type Outbound = UserCreateApiKeyMetadata$Outbound; -} - export function userCreateApiKeyMetadataToJSON( userCreateApiKeyMetadata: UserCreateApiKeyMetadata, ): string { @@ -68,34 +43,6 @@ export function userCreateApiKeyMetadataToJSON( ); } -export function userCreateApiKeyMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserCreateApiKeyMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserCreateApiKeyMetadata' from JSON`, - ); -} - -/** @internal */ -export const UserCreateApiKeyRequest$inboundSchema: z.ZodType< - UserCreateApiKeyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - expiresIn: z.number().optional(), - metadata: z.lazy(() => UserCreateApiKeyMetadata$inboundSchema), - name: z.string(), - prefix: z.string().optional(), - rateLimitEnabled: z.boolean().optional(), - rateLimitMax: z.number().optional(), - rateLimitTimeWindow: z.number().optional(), - refillAmount: z.number().optional(), - refillInterval: z.number().optional(), - remaining: z.number().optional(), -}); - /** @internal */ export type UserCreateApiKeyRequest$Outbound = { expiresIn?: number | undefined; @@ -128,19 +75,6 @@ export const UserCreateApiKeyRequest$outboundSchema: z.ZodType< remaining: z.number().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserCreateApiKeyRequest$ { - /** @deprecated use `UserCreateApiKeyRequest$inboundSchema` instead. */ - export const inboundSchema = UserCreateApiKeyRequest$inboundSchema; - /** @deprecated use `UserCreateApiKeyRequest$outboundSchema` instead. */ - export const outboundSchema = UserCreateApiKeyRequest$outboundSchema; - /** @deprecated use `UserCreateApiKeyRequest$Outbound` instead. */ - export type Outbound = UserCreateApiKeyRequest$Outbound; -} - export function userCreateApiKeyRequestToJSON( userCreateApiKeyRequest: UserCreateApiKeyRequest, ): string { @@ -148,13 +82,3 @@ export function userCreateApiKeyRequestToJSON( UserCreateApiKeyRequest$outboundSchema.parse(userCreateApiKeyRequest), ); } - -export function userCreateApiKeyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserCreateApiKeyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserCreateApiKeyRequest' from JSON`, - ); -} diff --git a/src/models/operations/userdeleteapikey.ts b/src/models/operations/userdeleteapikey.ts index aed90f1..1dfe75d 100644 --- a/src/models/operations/userdeleteapikey.ts +++ b/src/models/operations/userdeleteapikey.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserDeleteApiKeyRequest = { apiKeyId: string; }; -/** @internal */ -export const UserDeleteApiKeyRequest$inboundSchema: z.ZodType< - UserDeleteApiKeyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - apiKeyId: z.string(), -}); - /** @internal */ export type UserDeleteApiKeyRequest$Outbound = { apiKeyId: string; @@ -34,19 +22,6 @@ export const UserDeleteApiKeyRequest$outboundSchema: z.ZodType< apiKeyId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserDeleteApiKeyRequest$ { - /** @deprecated use `UserDeleteApiKeyRequest$inboundSchema` instead. */ - export const inboundSchema = UserDeleteApiKeyRequest$inboundSchema; - /** @deprecated use `UserDeleteApiKeyRequest$outboundSchema` instead. */ - export const outboundSchema = UserDeleteApiKeyRequest$outboundSchema; - /** @deprecated use `UserDeleteApiKeyRequest$Outbound` instead. */ - export type Outbound = UserDeleteApiKeyRequest$Outbound; -} - export function userDeleteApiKeyRequestToJSON( userDeleteApiKeyRequest: UserDeleteApiKeyRequest, ): string { @@ -54,13 +29,3 @@ export function userDeleteApiKeyRequestToJSON( UserDeleteApiKeyRequest$outboundSchema.parse(userDeleteApiKeyRequest), ); } - -export function userDeleteApiKeyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserDeleteApiKeyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserDeleteApiKeyRequest' from JSON`, - ); -} diff --git a/src/models/operations/usergetcontainermetrics.ts b/src/models/operations/usergetcontainermetrics.ts index 18531d7..cab8de1 100644 --- a/src/models/operations/usergetcontainermetrics.ts +++ b/src/models/operations/usergetcontainermetrics.ts @@ -2,10 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserGetContainerMetricsRequest = { url: string; @@ -14,18 +11,6 @@ export type UserGetContainerMetricsRequest = { dataPoints: string; }; -/** @internal */ -export const UserGetContainerMetricsRequest$inboundSchema: z.ZodType< - UserGetContainerMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - url: z.string(), - token: z.string(), - appName: z.string(), - dataPoints: z.string(), -}); - /** @internal */ export type UserGetContainerMetricsRequest$Outbound = { url: string; @@ -46,19 +31,6 @@ export const UserGetContainerMetricsRequest$outboundSchema: z.ZodType< dataPoints: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserGetContainerMetricsRequest$ { - /** @deprecated use `UserGetContainerMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = UserGetContainerMetricsRequest$inboundSchema; - /** @deprecated use `UserGetContainerMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = UserGetContainerMetricsRequest$outboundSchema; - /** @deprecated use `UserGetContainerMetricsRequest$Outbound` instead. */ - export type Outbound = UserGetContainerMetricsRequest$Outbound; -} - export function userGetContainerMetricsRequestToJSON( userGetContainerMetricsRequest: UserGetContainerMetricsRequest, ): string { @@ -68,13 +40,3 @@ export function userGetContainerMetricsRequestToJSON( ), ); } - -export function userGetContainerMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserGetContainerMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserGetContainerMetricsRequest' from JSON`, - ); -} diff --git a/src/models/operations/usergetuserbytoken.ts b/src/models/operations/usergetuserbytoken.ts index 04e7365..f9a7b7e 100644 --- a/src/models/operations/usergetuserbytoken.ts +++ b/src/models/operations/usergetuserbytoken.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserGetUserByTokenRequest = { token: string; }; -/** @internal */ -export const UserGetUserByTokenRequest$inboundSchema: z.ZodType< - UserGetUserByTokenRequest, - z.ZodTypeDef, - unknown -> = z.object({ - token: z.string(), -}); - /** @internal */ export type UserGetUserByTokenRequest$Outbound = { token: string; @@ -34,19 +22,6 @@ export const UserGetUserByTokenRequest$outboundSchema: z.ZodType< token: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserGetUserByTokenRequest$ { - /** @deprecated use `UserGetUserByTokenRequest$inboundSchema` instead. */ - export const inboundSchema = UserGetUserByTokenRequest$inboundSchema; - /** @deprecated use `UserGetUserByTokenRequest$outboundSchema` instead. */ - export const outboundSchema = UserGetUserByTokenRequest$outboundSchema; - /** @deprecated use `UserGetUserByTokenRequest$Outbound` instead. */ - export type Outbound = UserGetUserByTokenRequest$Outbound; -} - export function userGetUserByTokenRequestToJSON( userGetUserByTokenRequest: UserGetUserByTokenRequest, ): string { @@ -54,13 +29,3 @@ export function userGetUserByTokenRequestToJSON( UserGetUserByTokenRequest$outboundSchema.parse(userGetUserByTokenRequest), ); } - -export function userGetUserByTokenRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserGetUserByTokenRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserGetUserByTokenRequest' from JSON`, - ); -} diff --git a/src/models/operations/userone.ts b/src/models/operations/userone.ts index 5af0366..ec6e49c 100644 --- a/src/models/operations/userone.ts +++ b/src/models/operations/userone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserOneRequest = { userId: string; }; -/** @internal */ -export const UserOneRequest$inboundSchema: z.ZodType< - UserOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - userId: z.string(), -}); - /** @internal */ export type UserOneRequest$Outbound = { userId: string; @@ -34,29 +22,6 @@ export const UserOneRequest$outboundSchema: z.ZodType< userId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserOneRequest$ { - /** @deprecated use `UserOneRequest$inboundSchema` instead. */ - export const inboundSchema = UserOneRequest$inboundSchema; - /** @deprecated use `UserOneRequest$outboundSchema` instead. */ - export const outboundSchema = UserOneRequest$outboundSchema; - /** @deprecated use `UserOneRequest$Outbound` instead. */ - export type Outbound = UserOneRequest$Outbound; -} - export function userOneRequestToJSON(userOneRequest: UserOneRequest): string { return JSON.stringify(UserOneRequest$outboundSchema.parse(userOneRequest)); } - -export function userOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/userremove.ts b/src/models/operations/userremove.ts index 4b695e9..0bd2a97 100644 --- a/src/models/operations/userremove.ts +++ b/src/models/operations/userremove.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserRemoveRequest = { userId: string; }; -/** @internal */ -export const UserRemoveRequest$inboundSchema: z.ZodType< - UserRemoveRequest, - z.ZodTypeDef, - unknown -> = z.object({ - userId: z.string(), -}); - /** @internal */ export type UserRemoveRequest$Outbound = { userId: string; @@ -34,19 +22,6 @@ export const UserRemoveRequest$outboundSchema: z.ZodType< userId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserRemoveRequest$ { - /** @deprecated use `UserRemoveRequest$inboundSchema` instead. */ - export const inboundSchema = UserRemoveRequest$inboundSchema; - /** @deprecated use `UserRemoveRequest$outboundSchema` instead. */ - export const outboundSchema = UserRemoveRequest$outboundSchema; - /** @deprecated use `UserRemoveRequest$Outbound` instead. */ - export type Outbound = UserRemoveRequest$Outbound; -} - export function userRemoveRequestToJSON( userRemoveRequest: UserRemoveRequest, ): string { @@ -54,13 +29,3 @@ export function userRemoveRequestToJSON( UserRemoveRequest$outboundSchema.parse(userRemoveRequest), ); } - -export function userRemoveRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserRemoveRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserRemoveRequest' from JSON`, - ); -} diff --git a/src/models/operations/usersendinvitation.ts b/src/models/operations/usersendinvitation.ts index 0c85e79..620e4d9 100644 --- a/src/models/operations/usersendinvitation.ts +++ b/src/models/operations/usersendinvitation.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type UserSendInvitationRequest = { invitationId: string; notificationId: string; }; -/** @internal */ -export const UserSendInvitationRequest$inboundSchema: z.ZodType< - UserSendInvitationRequest, - z.ZodTypeDef, - unknown -> = z.object({ - invitationId: z.string(), - notificationId: z.string(), -}); - /** @internal */ export type UserSendInvitationRequest$Outbound = { invitationId: string; @@ -38,19 +25,6 @@ export const UserSendInvitationRequest$outboundSchema: z.ZodType< notificationId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserSendInvitationRequest$ { - /** @deprecated use `UserSendInvitationRequest$inboundSchema` instead. */ - export const inboundSchema = UserSendInvitationRequest$inboundSchema; - /** @deprecated use `UserSendInvitationRequest$outboundSchema` instead. */ - export const outboundSchema = UserSendInvitationRequest$outboundSchema; - /** @deprecated use `UserSendInvitationRequest$Outbound` instead. */ - export type Outbound = UserSendInvitationRequest$Outbound; -} - export function userSendInvitationRequestToJSON( userSendInvitationRequest: UserSendInvitationRequest, ): string { @@ -58,13 +32,3 @@ export function userSendInvitationRequestToJSON( UserSendInvitationRequest$outboundSchema.parse(userSendInvitationRequest), ); } - -export function userSendInvitationRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserSendInvitationRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserSendInvitationRequest' from JSON`, - ); -} diff --git a/src/models/operations/userupdate.ts b/src/models/operations/userupdate.ts index b865c40..c6730f6 100644 --- a/src/models/operations/userupdate.ts +++ b/src/models/operations/userupdate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const UserUpdateCertificateType = { Letsencrypt: "letsencrypt", @@ -90,36 +87,10 @@ export type UserUpdateRequest = { updatedAt?: Date | undefined; }; -/** @internal */ -export const UserUpdateCertificateType$inboundSchema: z.ZodNativeEnum< - typeof UserUpdateCertificateType -> = z.nativeEnum(UserUpdateCertificateType); - /** @internal */ export const UserUpdateCertificateType$outboundSchema: z.ZodNativeEnum< typeof UserUpdateCertificateType -> = UserUpdateCertificateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserUpdateCertificateType$ { - /** @deprecated use `UserUpdateCertificateType$inboundSchema` instead. */ - export const inboundSchema = UserUpdateCertificateType$inboundSchema; - /** @deprecated use `UserUpdateCertificateType$outboundSchema` instead. */ - export const outboundSchema = UserUpdateCertificateType$outboundSchema; -} - -/** @internal */ -export const UserUpdateServices$inboundSchema: z.ZodType< - UserUpdateServices, - z.ZodTypeDef, - unknown -> = z.object({ - exclude: z.array(z.string()), - include: z.array(z.string()), -}); +> = z.nativeEnum(UserUpdateCertificateType); /** @internal */ export type UserUpdateServices$Outbound = { @@ -137,19 +108,6 @@ export const UserUpdateServices$outboundSchema: z.ZodType< include: z.array(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserUpdateServices$ { - /** @deprecated use `UserUpdateServices$inboundSchema` instead. */ - export const inboundSchema = UserUpdateServices$inboundSchema; - /** @deprecated use `UserUpdateServices$outboundSchema` instead. */ - export const outboundSchema = UserUpdateServices$outboundSchema; - /** @deprecated use `UserUpdateServices$Outbound` instead. */ - export type Outbound = UserUpdateServices$Outbound; -} - export function userUpdateServicesToJSON( userUpdateServices: UserUpdateServices, ): string { @@ -158,26 +116,6 @@ export function userUpdateServicesToJSON( ); } -export function userUpdateServicesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserUpdateServices$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserUpdateServices' from JSON`, - ); -} - -/** @internal */ -export const UserUpdateContainers$inboundSchema: z.ZodType< - UserUpdateContainers, - z.ZodTypeDef, - unknown -> = z.object({ - refreshRate: z.number(), - services: z.lazy(() => UserUpdateServices$inboundSchema), -}); - /** @internal */ export type UserUpdateContainers$Outbound = { refreshRate: number; @@ -194,19 +132,6 @@ export const UserUpdateContainers$outboundSchema: z.ZodType< services: z.lazy(() => UserUpdateServices$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserUpdateContainers$ { - /** @deprecated use `UserUpdateContainers$inboundSchema` instead. */ - export const inboundSchema = UserUpdateContainers$inboundSchema; - /** @deprecated use `UserUpdateContainers$outboundSchema` instead. */ - export const outboundSchema = UserUpdateContainers$outboundSchema; - /** @deprecated use `UserUpdateContainers$Outbound` instead. */ - export type Outbound = UserUpdateContainers$Outbound; -} - export function userUpdateContainersToJSON( userUpdateContainers: UserUpdateContainers, ): string { @@ -215,26 +140,6 @@ export function userUpdateContainersToJSON( ); } -export function userUpdateContainersFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserUpdateContainers$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserUpdateContainers' from JSON`, - ); -} - -/** @internal */ -export const UserUpdateThresholds$inboundSchema: z.ZodType< - UserUpdateThresholds, - z.ZodTypeDef, - unknown -> = z.object({ - cpu: z.number(), - memory: z.number(), -}); - /** @internal */ export type UserUpdateThresholds$Outbound = { cpu: number; @@ -251,19 +156,6 @@ export const UserUpdateThresholds$outboundSchema: z.ZodType< memory: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserUpdateThresholds$ { - /** @deprecated use `UserUpdateThresholds$inboundSchema` instead. */ - export const inboundSchema = UserUpdateThresholds$inboundSchema; - /** @deprecated use `UserUpdateThresholds$outboundSchema` instead. */ - export const outboundSchema = UserUpdateThresholds$outboundSchema; - /** @deprecated use `UserUpdateThresholds$Outbound` instead. */ - export type Outbound = UserUpdateThresholds$Outbound; -} - export function userUpdateThresholdsToJSON( userUpdateThresholds: UserUpdateThresholds, ): string { @@ -272,52 +164,10 @@ export function userUpdateThresholdsToJSON( ); } -export function userUpdateThresholdsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserUpdateThresholds$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserUpdateThresholds' from JSON`, - ); -} - -/** @internal */ -export const UserUpdateType$inboundSchema: z.ZodNativeEnum< - typeof UserUpdateType -> = z.nativeEnum(UserUpdateType); - /** @internal */ export const UserUpdateType$outboundSchema: z.ZodNativeEnum< typeof UserUpdateType -> = UserUpdateType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserUpdateType$ { - /** @deprecated use `UserUpdateType$inboundSchema` instead. */ - export const inboundSchema = UserUpdateType$inboundSchema; - /** @deprecated use `UserUpdateType$outboundSchema` instead. */ - export const outboundSchema = UserUpdateType$outboundSchema; -} - -/** @internal */ -export const UserUpdateServer$inboundSchema: z.ZodType< - UserUpdateServer, - z.ZodTypeDef, - unknown -> = z.object({ - cronJob: z.string(), - port: z.number(), - refreshRate: z.number(), - retentionDays: z.number(), - thresholds: z.lazy(() => UserUpdateThresholds$inboundSchema), - token: z.string(), - type: UserUpdateType$inboundSchema, - urlCallback: z.string(), -}); +> = z.nativeEnum(UserUpdateType); /** @internal */ export type UserUpdateServer$Outbound = { @@ -347,19 +197,6 @@ export const UserUpdateServer$outboundSchema: z.ZodType< urlCallback: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserUpdateServer$ { - /** @deprecated use `UserUpdateServer$inboundSchema` instead. */ - export const inboundSchema = UserUpdateServer$inboundSchema; - /** @deprecated use `UserUpdateServer$outboundSchema` instead. */ - export const outboundSchema = UserUpdateServer$outboundSchema; - /** @deprecated use `UserUpdateServer$Outbound` instead. */ - export type Outbound = UserUpdateServer$Outbound; -} - export function userUpdateServerToJSON( userUpdateServer: UserUpdateServer, ): string { @@ -368,26 +205,6 @@ export function userUpdateServerToJSON( ); } -export function userUpdateServerFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserUpdateServer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserUpdateServer' from JSON`, - ); -} - -/** @internal */ -export const UserUpdateMetricsConfig$inboundSchema: z.ZodType< - UserUpdateMetricsConfig, - z.ZodTypeDef, - unknown -> = z.object({ - containers: z.lazy(() => UserUpdateContainers$inboundSchema), - server: z.lazy(() => UserUpdateServer$inboundSchema), -}); - /** @internal */ export type UserUpdateMetricsConfig$Outbound = { containers: UserUpdateContainers$Outbound; @@ -404,19 +221,6 @@ export const UserUpdateMetricsConfig$outboundSchema: z.ZodType< server: z.lazy(() => UserUpdateServer$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserUpdateMetricsConfig$ { - /** @deprecated use `UserUpdateMetricsConfig$inboundSchema` instead. */ - export const inboundSchema = UserUpdateMetricsConfig$inboundSchema; - /** @deprecated use `UserUpdateMetricsConfig$outboundSchema` instead. */ - export const outboundSchema = UserUpdateMetricsConfig$outboundSchema; - /** @deprecated use `UserUpdateMetricsConfig$Outbound` instead. */ - export type Outbound = UserUpdateMetricsConfig$Outbound; -} - export function userUpdateMetricsConfigToJSON( userUpdateMetricsConfig: UserUpdateMetricsConfig, ): string { @@ -425,62 +229,6 @@ export function userUpdateMetricsConfigToJSON( ); } -export function userUpdateMetricsConfigFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserUpdateMetricsConfig$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserUpdateMetricsConfig' from JSON`, - ); -} - -/** @internal */ -export const UserUpdateRequest$inboundSchema: z.ZodType< - UserUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - allowImpersonation: z.boolean().optional(), - banExpires: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - banReason: z.nullable(z.string()).optional(), - banned: z.nullable(z.boolean()).optional(), - certificateType: UserUpdateCertificateType$inboundSchema.optional(), - cleanupCacheApplications: z.boolean().optional(), - cleanupCacheOnCompose: z.boolean().optional(), - cleanupCacheOnPreviews: z.boolean().optional(), - createdAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - createdAt2: z.string().optional(), - currentPassword: z.string().optional(), - email: z.string().optional(), - emailVerified: z.boolean().optional(), - enableDockerCleanup: z.boolean().optional(), - enablePaidFeatures: z.boolean().optional(), - expirationDate: z.string().optional(), - host: z.nullable(z.string()).optional(), - https: z.boolean().optional(), - id: z.string().optional(), - image: z.nullable(z.string()).optional(), - isRegistered: z.boolean().optional(), - letsEncryptEmail: z.nullable(z.string()).optional(), - logCleanupCron: z.nullable(z.string()).optional(), - metricsConfig: z.lazy(() => UserUpdateMetricsConfig$inboundSchema).optional(), - name: z.string().optional(), - password: z.string().optional(), - serverIp: z.nullable(z.string()).optional(), - serversQuantity: z.number().optional(), - sshPrivateKey: z.nullable(z.string()).optional(), - stripeCustomerId: z.nullable(z.string()).optional(), - stripeSubscriptionId: z.nullable(z.string()).optional(), - twoFactorEnabled: z.nullable(z.boolean()).optional(), - updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), -}); - /** @internal */ export type UserUpdateRequest$Outbound = { allowImpersonation?: boolean | undefined; @@ -560,19 +308,6 @@ export const UserUpdateRequest$outboundSchema: z.ZodType< updatedAt: z.date().transform(v => v.toISOString()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserUpdateRequest$ { - /** @deprecated use `UserUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = UserUpdateRequest$inboundSchema; - /** @deprecated use `UserUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = UserUpdateRequest$outboundSchema; - /** @deprecated use `UserUpdateRequest$Outbound` instead. */ - export type Outbound = UserUpdateRequest$Outbound; -} - export function userUpdateRequestToJSON( userUpdateRequest: UserUpdateRequest, ): string { @@ -580,13 +315,3 @@ export function userUpdateRequestToJSON( UserUpdateRequest$outboundSchema.parse(userUpdateRequest), ); } - -export function userUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserUpdateRequest' from JSON`, - ); -} diff --git a/src/models/operations/volumebackupscreate.ts b/src/models/operations/volumebackupscreate.ts index 6c9a5de..a0706af 100644 --- a/src/models/operations/volumebackupscreate.ts +++ b/src/models/operations/volumebackupscreate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const VolumeBackupsCreateServiceType = { Application: "application", @@ -43,53 +40,10 @@ export type VolumeBackupsCreateRequest = { volumeName: string; }; -/** @internal */ -export const VolumeBackupsCreateServiceType$inboundSchema: z.ZodNativeEnum< - typeof VolumeBackupsCreateServiceType -> = z.nativeEnum(VolumeBackupsCreateServiceType); - /** @internal */ export const VolumeBackupsCreateServiceType$outboundSchema: z.ZodNativeEnum< typeof VolumeBackupsCreateServiceType -> = VolumeBackupsCreateServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupsCreateServiceType$ { - /** @deprecated use `VolumeBackupsCreateServiceType$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupsCreateServiceType$inboundSchema; - /** @deprecated use `VolumeBackupsCreateServiceType$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupsCreateServiceType$outboundSchema; -} - -/** @internal */ -export const VolumeBackupsCreateRequest$inboundSchema: z.ZodType< - VolumeBackupsCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationId: z.nullable(z.string()).optional(), - composeId: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - cronExpression: z.string(), - destinationId: z.string(), - enabled: z.nullable(z.boolean()).optional(), - keepLatestCount: z.nullable(z.number()).optional(), - mariadbId: z.nullable(z.string()).optional(), - mongoId: z.nullable(z.string()).optional(), - mysqlId: z.nullable(z.string()).optional(), - name: z.string(), - postgresId: z.nullable(z.string()).optional(), - prefix: z.string(), - redisId: z.nullable(z.string()).optional(), - serviceName: z.nullable(z.string()).optional(), - serviceType: VolumeBackupsCreateServiceType$inboundSchema.optional(), - turnOff: z.boolean().optional(), - volumeName: z.string(), -}); +> = z.nativeEnum(VolumeBackupsCreateServiceType); /** @internal */ export type VolumeBackupsCreateRequest$Outbound = { @@ -141,19 +95,6 @@ export const VolumeBackupsCreateRequest$outboundSchema: z.ZodType< volumeName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupsCreateRequest$ { - /** @deprecated use `VolumeBackupsCreateRequest$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupsCreateRequest$inboundSchema; - /** @deprecated use `VolumeBackupsCreateRequest$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupsCreateRequest$outboundSchema; - /** @deprecated use `VolumeBackupsCreateRequest$Outbound` instead. */ - export type Outbound = VolumeBackupsCreateRequest$Outbound; -} - export function volumeBackupsCreateRequestToJSON( volumeBackupsCreateRequest: VolumeBackupsCreateRequest, ): string { @@ -161,13 +102,3 @@ export function volumeBackupsCreateRequestToJSON( VolumeBackupsCreateRequest$outboundSchema.parse(volumeBackupsCreateRequest), ); } - -export function volumeBackupsCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VolumeBackupsCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VolumeBackupsCreateRequest' from JSON`, - ); -} diff --git a/src/models/operations/volumebackupsdelete.ts b/src/models/operations/volumebackupsdelete.ts index eb4399c..7581698 100644 --- a/src/models/operations/volumebackupsdelete.ts +++ b/src/models/operations/volumebackupsdelete.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type VolumeBackupsDeleteRequest = { volumeBackupId: string; }; -/** @internal */ -export const VolumeBackupsDeleteRequest$inboundSchema: z.ZodType< - VolumeBackupsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - volumeBackupId: z.string(), -}); - /** @internal */ export type VolumeBackupsDeleteRequest$Outbound = { volumeBackupId: string; @@ -34,19 +22,6 @@ export const VolumeBackupsDeleteRequest$outboundSchema: z.ZodType< volumeBackupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupsDeleteRequest$ { - /** @deprecated use `VolumeBackupsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupsDeleteRequest$inboundSchema; - /** @deprecated use `VolumeBackupsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupsDeleteRequest$outboundSchema; - /** @deprecated use `VolumeBackupsDeleteRequest$Outbound` instead. */ - export type Outbound = VolumeBackupsDeleteRequest$Outbound; -} - export function volumeBackupsDeleteRequestToJSON( volumeBackupsDeleteRequest: VolumeBackupsDeleteRequest, ): string { @@ -54,13 +29,3 @@ export function volumeBackupsDeleteRequestToJSON( VolumeBackupsDeleteRequest$outboundSchema.parse(volumeBackupsDeleteRequest), ); } - -export function volumeBackupsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VolumeBackupsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VolumeBackupsDeleteRequest' from JSON`, - ); -} diff --git a/src/models/operations/volumebackupslist.ts b/src/models/operations/volumebackupslist.ts index 8d88116..a757eb6 100644 --- a/src/models/operations/volumebackupslist.ts +++ b/src/models/operations/volumebackupslist.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const VolumeBackupType = { Application: "application", @@ -24,36 +21,10 @@ export type VolumeBackupsListRequest = { volumeBackupType: VolumeBackupType; }; -/** @internal */ -export const VolumeBackupType$inboundSchema: z.ZodNativeEnum< - typeof VolumeBackupType -> = z.nativeEnum(VolumeBackupType); - /** @internal */ export const VolumeBackupType$outboundSchema: z.ZodNativeEnum< typeof VolumeBackupType -> = VolumeBackupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupType$ { - /** @deprecated use `VolumeBackupType$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupType$inboundSchema; - /** @deprecated use `VolumeBackupType$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupType$outboundSchema; -} - -/** @internal */ -export const VolumeBackupsListRequest$inboundSchema: z.ZodType< - VolumeBackupsListRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - volumeBackupType: VolumeBackupType$inboundSchema, -}); +> = z.nativeEnum(VolumeBackupType); /** @internal */ export type VolumeBackupsListRequest$Outbound = { @@ -71,19 +42,6 @@ export const VolumeBackupsListRequest$outboundSchema: z.ZodType< volumeBackupType: VolumeBackupType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupsListRequest$ { - /** @deprecated use `VolumeBackupsListRequest$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupsListRequest$inboundSchema; - /** @deprecated use `VolumeBackupsListRequest$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupsListRequest$outboundSchema; - /** @deprecated use `VolumeBackupsListRequest$Outbound` instead. */ - export type Outbound = VolumeBackupsListRequest$Outbound; -} - export function volumeBackupsListRequestToJSON( volumeBackupsListRequest: VolumeBackupsListRequest, ): string { @@ -91,13 +49,3 @@ export function volumeBackupsListRequestToJSON( VolumeBackupsListRequest$outboundSchema.parse(volumeBackupsListRequest), ); } - -export function volumeBackupsListRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VolumeBackupsListRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VolumeBackupsListRequest' from JSON`, - ); -} diff --git a/src/models/operations/volumebackupsone.ts b/src/models/operations/volumebackupsone.ts index 8da52da..7b19073 100644 --- a/src/models/operations/volumebackupsone.ts +++ b/src/models/operations/volumebackupsone.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type VolumeBackupsOneRequest = { volumeBackupId: string; }; -/** @internal */ -export const VolumeBackupsOneRequest$inboundSchema: z.ZodType< - VolumeBackupsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - volumeBackupId: z.string(), -}); - /** @internal */ export type VolumeBackupsOneRequest$Outbound = { volumeBackupId: string; @@ -34,19 +22,6 @@ export const VolumeBackupsOneRequest$outboundSchema: z.ZodType< volumeBackupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupsOneRequest$ { - /** @deprecated use `VolumeBackupsOneRequest$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupsOneRequest$inboundSchema; - /** @deprecated use `VolumeBackupsOneRequest$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupsOneRequest$outboundSchema; - /** @deprecated use `VolumeBackupsOneRequest$Outbound` instead. */ - export type Outbound = VolumeBackupsOneRequest$Outbound; -} - export function volumeBackupsOneRequestToJSON( volumeBackupsOneRequest: VolumeBackupsOneRequest, ): string { @@ -54,13 +29,3 @@ export function volumeBackupsOneRequestToJSON( VolumeBackupsOneRequest$outboundSchema.parse(volumeBackupsOneRequest), ); } - -export function volumeBackupsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VolumeBackupsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VolumeBackupsOneRequest' from JSON`, - ); -} diff --git a/src/models/operations/volumebackupsrunmanually.ts b/src/models/operations/volumebackupsrunmanually.ts index 16de7da..df8e881 100644 --- a/src/models/operations/volumebackupsrunmanually.ts +++ b/src/models/operations/volumebackupsrunmanually.ts @@ -2,24 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as z from "zod/v3"; export type VolumeBackupsRunManuallyRequest = { volumeBackupId: string; }; -/** @internal */ -export const VolumeBackupsRunManuallyRequest$inboundSchema: z.ZodType< - VolumeBackupsRunManuallyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - volumeBackupId: z.string(), -}); - /** @internal */ export type VolumeBackupsRunManuallyRequest$Outbound = { volumeBackupId: string; @@ -34,19 +22,6 @@ export const VolumeBackupsRunManuallyRequest$outboundSchema: z.ZodType< volumeBackupId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupsRunManuallyRequest$ { - /** @deprecated use `VolumeBackupsRunManuallyRequest$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupsRunManuallyRequest$inboundSchema; - /** @deprecated use `VolumeBackupsRunManuallyRequest$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupsRunManuallyRequest$outboundSchema; - /** @deprecated use `VolumeBackupsRunManuallyRequest$Outbound` instead. */ - export type Outbound = VolumeBackupsRunManuallyRequest$Outbound; -} - export function volumeBackupsRunManuallyRequestToJSON( volumeBackupsRunManuallyRequest: VolumeBackupsRunManuallyRequest, ): string { @@ -56,13 +31,3 @@ export function volumeBackupsRunManuallyRequestToJSON( ), ); } - -export function volumeBackupsRunManuallyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VolumeBackupsRunManuallyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VolumeBackupsRunManuallyRequest' from JSON`, - ); -} diff --git a/src/models/operations/volumebackupsupdate.ts b/src/models/operations/volumebackupsupdate.ts index f4983cc..a85409d 100644 --- a/src/models/operations/volumebackupsupdate.ts +++ b/src/models/operations/volumebackupsupdate.ts @@ -2,11 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const VolumeBackupsUpdateServiceType = { Application: "application", @@ -44,54 +41,10 @@ export type VolumeBackupsUpdateRequest = { volumeName: string; }; -/** @internal */ -export const VolumeBackupsUpdateServiceType$inboundSchema: z.ZodNativeEnum< - typeof VolumeBackupsUpdateServiceType -> = z.nativeEnum(VolumeBackupsUpdateServiceType); - /** @internal */ export const VolumeBackupsUpdateServiceType$outboundSchema: z.ZodNativeEnum< typeof VolumeBackupsUpdateServiceType -> = VolumeBackupsUpdateServiceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupsUpdateServiceType$ { - /** @deprecated use `VolumeBackupsUpdateServiceType$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupsUpdateServiceType$inboundSchema; - /** @deprecated use `VolumeBackupsUpdateServiceType$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupsUpdateServiceType$outboundSchema; -} - -/** @internal */ -export const VolumeBackupsUpdateRequest$inboundSchema: z.ZodType< - VolumeBackupsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appName: z.string().optional(), - applicationId: z.nullable(z.string()).optional(), - composeId: z.nullable(z.string()).optional(), - createdAt: z.string().optional(), - cronExpression: z.string(), - destinationId: z.string(), - enabled: z.nullable(z.boolean()).optional(), - keepLatestCount: z.nullable(z.number()).optional(), - mariadbId: z.nullable(z.string()).optional(), - mongoId: z.nullable(z.string()).optional(), - mysqlId: z.nullable(z.string()).optional(), - name: z.string(), - postgresId: z.nullable(z.string()).optional(), - prefix: z.string(), - redisId: z.nullable(z.string()).optional(), - serviceName: z.nullable(z.string()).optional(), - serviceType: VolumeBackupsUpdateServiceType$inboundSchema.optional(), - turnOff: z.boolean().optional(), - volumeBackupId: z.string(), - volumeName: z.string(), -}); +> = z.nativeEnum(VolumeBackupsUpdateServiceType); /** @internal */ export type VolumeBackupsUpdateRequest$Outbound = { @@ -145,19 +98,6 @@ export const VolumeBackupsUpdateRequest$outboundSchema: z.ZodType< volumeName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VolumeBackupsUpdateRequest$ { - /** @deprecated use `VolumeBackupsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = VolumeBackupsUpdateRequest$inboundSchema; - /** @deprecated use `VolumeBackupsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = VolumeBackupsUpdateRequest$outboundSchema; - /** @deprecated use `VolumeBackupsUpdateRequest$Outbound` instead. */ - export type Outbound = VolumeBackupsUpdateRequest$Outbound; -} - export function volumeBackupsUpdateRequestToJSON( volumeBackupsUpdateRequest: VolumeBackupsUpdateRequest, ): string { @@ -165,13 +105,3 @@ export function volumeBackupsUpdateRequestToJSON( VolumeBackupsUpdateRequest$outboundSchema.parse(volumeBackupsUpdateRequest), ); } - -export function volumeBackupsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VolumeBackupsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VolumeBackupsUpdateRequest' from JSON`, - ); -} diff --git a/src/models/security.ts b/src/models/security.ts index ff04cbf..5e0d230 100644 --- a/src/models/security.ts +++ b/src/models/security.ts @@ -2,29 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type Security = { apiKeyAuth?: string | undefined; }; -/** @internal */ -export const Security$inboundSchema: z.ZodType< - Security, - z.ZodTypeDef, - unknown -> = z.object({ - ApiKeyAuth: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "ApiKeyAuth": "apiKeyAuth", - }); -}); - /** @internal */ export type Security$Outbound = { ApiKeyAuth?: string | undefined; @@ -43,29 +27,6 @@ export const Security$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); } - -export function securityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Security$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Security' from JSON`, - ); -} diff --git a/src/types/blobs.ts b/src/types/blobs.ts index 4ce8460..cce2892 100644 --- a/src/types/blobs.ts +++ b/src/types/blobs.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); +export const blobLikeSchema: z.ZodType = z.custom< + Blob +>(isBlobLike, { + message: "expected a Blob, File or Blob-like object", + fatal: true, +}); export function isBlobLike(val: unknown): val is Blob { if (val instanceof Blob) { diff --git a/src/types/constdatetime.ts b/src/types/constdatetime.ts index eeff4dd..fe62144 100644 --- a/src/types/constdatetime.ts +++ b/src/types/constdatetime.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function constDateTime( val: string, diff --git a/src/types/enums.ts b/src/types/enums.ts index 6fb6d91..32ad7bc 100644 --- a/src/types/enums.ts +++ b/src/types/enums.ts @@ -2,15 +2,64 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v3"; + declare const __brand: unique symbol; export type Unrecognized = T & { [__brand]: "unrecognized" }; +export type ClosedEnum>> = + T[keyof T]; +export type OpenEnum>> = + | T[keyof T] + | Unrecognized; -export function catchUnrecognizedEnum(value: T): Unrecognized { +function unrecognized(value: T): Unrecognized { + unrecognizedCount++; return value as Unrecognized; } -type Prettify = { [K in keyof T]: T[K] } & {}; -export type ClosedEnum = T[keyof T]; -export type OpenEnum = - | Prettify - | Unrecognized; +let unrecognizedCount = 0; +let refCount = 0; +export function unrecognizedCounter() { + refCount++; + const start = unrecognizedCount; + return { + count: () => { + const count = unrecognizedCount - start; + if (--refCount === 0) unrecognizedCount = 0; + return count; + }, + }; +} + +export function inboundSchema>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + const options = Object.values(enumObj); + return z.union([ + ...options.map(x => z.literal(x)), + z.string().transform(x => unrecognized(x)), + ] as any); +} + +export function inboundSchemaInt>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + // For numeric enums, Object.values returns both numbers and string keys + const options = Object.values(enumObj).filter(v => typeof v === "number"); + return z.union([ + ...options.map(x => z.literal(x)), + z.number().int().transform(x => unrecognized(x)), + ] as any); +} + +export function outboundSchema>( + _: T, +): z.ZodType> { + return z.string() as any; +} + +export function outboundSchemaInt>( + _: T, +): z.ZodType> { + return z.number().int() as any; +} diff --git a/src/types/index.ts b/src/types/index.ts index e124e81..92d9f73 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -3,7 +3,6 @@ */ export { blobLikeSchema, isBlobLike } from "./blobs.js"; -export { catchUnrecognizedEnum } from "./enums.js"; export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js"; export type { Result } from "./fp.js"; export type { PageIterator, Paginator } from "./operations.js";