betterstack-alchemy 0.0.0-stage → 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/LICENSES/Apache-2.0.txt +201 -0
- package/NOTICE +182 -0
- package/README.md +165 -2
- package/lib/Account/Reference.d.ts +89 -0
- package/lib/Account/Reference.d.ts.map +1 -0
- package/lib/Account/Reference.js +90 -0
- package/lib/Account/Reference.js.map +1 -0
- package/lib/Account/Team.d.ts +69 -0
- package/lib/Account/Team.d.ts.map +1 -0
- package/lib/Account/Team.js +74 -0
- package/lib/Account/Team.js.map +1 -0
- package/lib/Account/TeamMember.d.ts +78 -0
- package/lib/Account/TeamMember.d.ts.map +1 -0
- package/lib/Account/TeamMember.js +159 -0
- package/lib/Account/TeamMember.js.map +1 -0
- package/lib/Account/index.d.ts +25 -0
- package/lib/Account/index.d.ts.map +1 -0
- package/lib/Account/index.js +25 -0
- package/lib/Account/index.js.map +1 -0
- package/lib/AuthProvider.d.ts +38 -0
- package/lib/AuthProvider.d.ts.map +1 -0
- package/lib/AuthProvider.js +134 -0
- package/lib/AuthProvider.js.map +1 -0
- package/lib/BetterStackBindings.d.ts +227 -0
- package/lib/BetterStackBindings.d.ts.map +1 -0
- package/lib/BetterStackBindings.js +223 -0
- package/lib/BetterStackBindings.js.map +1 -0
- package/lib/Cloud/Bootstrap.d.ts +20 -0
- package/lib/Cloud/Bootstrap.d.ts.map +1 -0
- package/lib/Cloud/Bootstrap.js +85 -0
- package/lib/Cloud/Bootstrap.js.map +1 -0
- package/lib/Cloud/Certificate.d.ts +97 -0
- package/lib/Cloud/Certificate.d.ts.map +1 -0
- package/lib/Cloud/Certificate.js +96 -0
- package/lib/Cloud/Certificate.js.map +1 -0
- package/lib/Cloud/ClickHouse.d.ts +184 -0
- package/lib/Cloud/ClickHouse.d.ts.map +1 -0
- package/lib/Cloud/ClickHouse.js +179 -0
- package/lib/Cloud/ClickHouse.js.map +1 -0
- package/lib/Cloud/ClickHouseScheduledSnapshot.d.ts +77 -0
- package/lib/Cloud/ClickHouseScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ClickHouseScheduledSnapshot.js +76 -0
- package/lib/Cloud/ClickHouseScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/ClickHouseSnapshot.d.ts +107 -0
- package/lib/Cloud/ClickHouseSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ClickHouseSnapshot.js +78 -0
- package/lib/Cloud/ClickHouseSnapshot.js.map +1 -0
- package/lib/Cloud/Firewall.d.ts +134 -0
- package/lib/Cloud/Firewall.d.ts.map +1 -0
- package/lib/Cloud/Firewall.js +169 -0
- package/lib/Cloud/Firewall.js.map +1 -0
- package/lib/Cloud/FirewallRule.d.ts +114 -0
- package/lib/Cloud/FirewallRule.d.ts.map +1 -0
- package/lib/Cloud/FirewallRule.js +130 -0
- package/lib/Cloud/FirewallRule.js.map +1 -0
- package/lib/Cloud/InferEnv.d.ts +28 -0
- package/lib/Cloud/InferEnv.d.ts.map +1 -0
- package/lib/Cloud/InferEnv.js +1 -0
- package/lib/Cloud/InferEnv.js.map +1 -0
- package/lib/Cloud/Kafka.d.ts +204 -0
- package/lib/Cloud/Kafka.d.ts.map +1 -0
- package/lib/Cloud/Kafka.js +194 -0
- package/lib/Cloud/Kafka.js.map +1 -0
- package/lib/Cloud/KafkaTopic.d.ts +90 -0
- package/lib/Cloud/KafkaTopic.d.ts.map +1 -0
- package/lib/Cloud/KafkaTopic.js +83 -0
- package/lib/Cloud/KafkaTopic.js.map +1 -0
- package/lib/Cloud/KafkaUser.d.ts +121 -0
- package/lib/Cloud/KafkaUser.d.ts.map +1 -0
- package/lib/Cloud/KafkaUser.js +103 -0
- package/lib/Cloud/KafkaUser.js.map +1 -0
- package/lib/Cloud/KubernetesCluster.d.ts +204 -0
- package/lib/Cloud/KubernetesCluster.d.ts.map +1 -0
- package/lib/Cloud/KubernetesCluster.js +190 -0
- package/lib/Cloud/KubernetesCluster.js.map +1 -0
- package/lib/Cloud/KubernetesNodePool.d.ts +100 -0
- package/lib/Cloud/KubernetesNodePool.d.ts.map +1 -0
- package/lib/Cloud/KubernetesNodePool.js +133 -0
- package/lib/Cloud/KubernetesNodePool.js.map +1 -0
- package/lib/Cloud/KubernetesScheduledSnapshot.d.ts +73 -0
- package/lib/Cloud/KubernetesScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/KubernetesScheduledSnapshot.js +78 -0
- package/lib/Cloud/KubernetesScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/LoadBalancer.d.ts +187 -0
- package/lib/Cloud/LoadBalancer.d.ts.map +1 -0
- package/lib/Cloud/LoadBalancer.js +228 -0
- package/lib/Cloud/LoadBalancer.js.map +1 -0
- package/lib/Cloud/LoadBalancerService.d.ts +116 -0
- package/lib/Cloud/LoadBalancerService.d.ts.map +1 -0
- package/lib/Cloud/LoadBalancerService.js +132 -0
- package/lib/Cloud/LoadBalancerService.js.map +1 -0
- package/lib/Cloud/LoadBalancerTarget.d.ts +110 -0
- package/lib/Cloud/LoadBalancerTarget.d.ts.map +1 -0
- package/lib/Cloud/LoadBalancerTarget.js +138 -0
- package/lib/Cloud/LoadBalancerTarget.js.map +1 -0
- package/lib/Cloud/MountVolume.d.ts +109 -0
- package/lib/Cloud/MountVolume.d.ts.map +1 -0
- package/lib/Cloud/MountVolume.js +59 -0
- package/lib/Cloud/MountVolume.js.map +1 -0
- package/lib/Cloud/MySQL.d.ts +285 -0
- package/lib/Cloud/MySQL.d.ts.map +1 -0
- package/lib/Cloud/MySQL.js +225 -0
- package/lib/Cloud/MySQL.js.map +1 -0
- package/lib/Cloud/MySQLScheduledSnapshot.d.ts +74 -0
- package/lib/Cloud/MySQLScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/MySQLScheduledSnapshot.js +73 -0
- package/lib/Cloud/MySQLScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/MySQLSnapshot.d.ts +107 -0
- package/lib/Cloud/MySQLSnapshot.d.ts.map +1 -0
- package/lib/Cloud/MySQLSnapshot.js +78 -0
- package/lib/Cloud/MySQLSnapshot.js.map +1 -0
- package/lib/Cloud/Network.d.ts +69 -0
- package/lib/Cloud/Network.d.ts.map +1 -0
- package/lib/Cloud/Network.js +80 -0
- package/lib/Cloud/Network.js.map +1 -0
- package/lib/Cloud/ObjectCache.d.ts +226 -0
- package/lib/Cloud/ObjectCache.d.ts.map +1 -0
- package/lib/Cloud/ObjectCache.js +258 -0
- package/lib/Cloud/ObjectCache.js.map +1 -0
- package/lib/Cloud/ObjectCacheBucket.d.ts +112 -0
- package/lib/Cloud/ObjectCacheBucket.d.ts.map +1 -0
- package/lib/Cloud/ObjectCacheBucket.js +123 -0
- package/lib/Cloud/ObjectCacheBucket.js.map +1 -0
- package/lib/Cloud/Otlp.d.ts +93 -0
- package/lib/Cloud/Otlp.d.ts.map +1 -0
- package/lib/Cloud/Otlp.js +79 -0
- package/lib/Cloud/Otlp.js.map +1 -0
- package/lib/Cloud/PlacementGroup.d.ts +85 -0
- package/lib/Cloud/PlacementGroup.d.ts.map +1 -0
- package/lib/Cloud/PlacementGroup.js +86 -0
- package/lib/Cloud/PlacementGroup.js.map +1 -0
- package/lib/Cloud/Postgres.d.ts +331 -0
- package/lib/Cloud/Postgres.d.ts.map +1 -0
- package/lib/Cloud/Postgres.js +255 -0
- package/lib/Cloud/Postgres.js.map +1 -0
- package/lib/Cloud/PostgresDatabase.d.ts +77 -0
- package/lib/Cloud/PostgresDatabase.d.ts.map +1 -0
- package/lib/Cloud/PostgresDatabase.js +79 -0
- package/lib/Cloud/PostgresDatabase.js.map +1 -0
- package/lib/Cloud/PostgresScheduledSnapshot.d.ts +74 -0
- package/lib/Cloud/PostgresScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/PostgresScheduledSnapshot.js +73 -0
- package/lib/Cloud/PostgresScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/PostgresSnapshot.d.ts +107 -0
- package/lib/Cloud/PostgresSnapshot.d.ts.map +1 -0
- package/lib/Cloud/PostgresSnapshot.js +78 -0
- package/lib/Cloud/PostgresSnapshot.js.map +1 -0
- package/lib/Cloud/PostgresUser.d.ts +118 -0
- package/lib/Cloud/PostgresUser.d.ts.map +1 -0
- package/lib/Cloud/PostgresUser.js +102 -0
- package/lib/Cloud/PostgresUser.js.map +1 -0
- package/lib/Cloud/Reference.d.ts +508 -0
- package/lib/Cloud/Reference.d.ts.map +1 -0
- package/lib/Cloud/Reference.js +542 -0
- package/lib/Cloud/Reference.js.map +1 -0
- package/lib/Cloud/ReservedIp.d.ts +113 -0
- package/lib/Cloud/ReservedIp.d.ts.map +1 -0
- package/lib/Cloud/ReservedIp.js +146 -0
- package/lib/Cloud/ReservedIp.js.map +1 -0
- package/lib/Cloud/ScheduledSnapshot.d.ts +49 -0
- package/lib/Cloud/ScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ScheduledSnapshot.js +43 -0
- package/lib/Cloud/ScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/ScheduledVolumeSnapshot.d.ts +48 -0
- package/lib/Cloud/ScheduledVolumeSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ScheduledVolumeSnapshot.js +42 -0
- package/lib/Cloud/ScheduledVolumeSnapshot.js.map +1 -0
- package/lib/Cloud/Server.d.ts +375 -0
- package/lib/Cloud/Server.d.ts.map +1 -0
- package/lib/Cloud/Server.js +966 -0
- package/lib/Cloud/Server.js.map +1 -0
- package/lib/Cloud/ServerPool.d.ts +64 -0
- package/lib/Cloud/ServerPool.d.ts.map +1 -0
- package/lib/Cloud/ServerPool.js +59 -0
- package/lib/Cloud/ServerPool.js.map +1 -0
- package/lib/Cloud/ServerPrivateIp.d.ts +62 -0
- package/lib/Cloud/ServerPrivateIp.d.ts.map +1 -0
- package/lib/Cloud/ServerPrivateIp.js +68 -0
- package/lib/Cloud/ServerPrivateIp.js.map +1 -0
- package/lib/Cloud/Service.d.ts +554 -0
- package/lib/Cloud/Service.d.ts.map +1 -0
- package/lib/Cloud/Service.js +765 -0
- package/lib/Cloud/Service.js.map +1 -0
- package/lib/Cloud/ServiceHandler.d.ts +10 -0
- package/lib/Cloud/ServiceHandler.d.ts.map +1 -0
- package/lib/Cloud/ServiceHandler.js +102 -0
- package/lib/Cloud/ServiceHandler.js.map +1 -0
- package/lib/Cloud/Snapshot.d.ts +103 -0
- package/lib/Cloud/Snapshot.d.ts.map +1 -0
- package/lib/Cloud/Snapshot.js +96 -0
- package/lib/Cloud/Snapshot.js.map +1 -0
- package/lib/Cloud/Ssh.d.ts +241 -0
- package/lib/Cloud/Ssh.d.ts.map +1 -0
- package/lib/Cloud/Ssh.js +292 -0
- package/lib/Cloud/Ssh.js.map +1 -0
- package/lib/Cloud/SshKey.d.ts +120 -0
- package/lib/Cloud/SshKey.d.ts.map +1 -0
- package/lib/Cloud/SshKey.js +161 -0
- package/lib/Cloud/SshKey.js.map +1 -0
- package/lib/Cloud/Valkey.d.ts +212 -0
- package/lib/Cloud/Valkey.d.ts.map +1 -0
- package/lib/Cloud/Valkey.js +155 -0
- package/lib/Cloud/Valkey.js.map +1 -0
- package/lib/Cloud/ValkeyScheduledSnapshot.d.ts +75 -0
- package/lib/Cloud/ValkeyScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ValkeyScheduledSnapshot.js +74 -0
- package/lib/Cloud/ValkeyScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/ValkeySnapshot.d.ts +107 -0
- package/lib/Cloud/ValkeySnapshot.d.ts.map +1 -0
- package/lib/Cloud/ValkeySnapshot.js +80 -0
- package/lib/Cloud/ValkeySnapshot.js.map +1 -0
- package/lib/Cloud/Volume.d.ts +133 -0
- package/lib/Cloud/Volume.d.ts.map +1 -0
- package/lib/Cloud/Volume.js +329 -0
- package/lib/Cloud/Volume.js.map +1 -0
- package/lib/Cloud/VolumeSnapshot.d.ts +95 -0
- package/lib/Cloud/VolumeSnapshot.d.ts.map +1 -0
- package/lib/Cloud/VolumeSnapshot.js +88 -0
- package/lib/Cloud/VolumeSnapshot.js.map +1 -0
- package/lib/Cloud/Webhook.d.ts +93 -0
- package/lib/Cloud/Webhook.d.ts.map +1 -0
- package/lib/Cloud/Webhook.js +92 -0
- package/lib/Cloud/Webhook.js.map +1 -0
- package/lib/Cloud/Website/Astro.d.ts +106 -0
- package/lib/Cloud/Website/Astro.d.ts.map +1 -0
- package/lib/Cloud/Website/Astro.js +76 -0
- package/lib/Cloud/Website/Astro.js.map +1 -0
- package/lib/Cloud/Website/Foldkit.d.ts +70 -0
- package/lib/Cloud/Website/Foldkit.d.ts.map +1 -0
- package/lib/Cloud/Website/Foldkit.js +67 -0
- package/lib/Cloud/Website/Foldkit.js.map +1 -0
- package/lib/Cloud/Website/FrameworkSite.d.ts +277 -0
- package/lib/Cloud/Website/FrameworkSite.d.ts.map +1 -0
- package/lib/Cloud/Website/FrameworkSite.js +245 -0
- package/lib/Cloud/Website/FrameworkSite.js.map +1 -0
- package/lib/Cloud/Website/Nextjs.d.ts +70 -0
- package/lib/Cloud/Website/Nextjs.d.ts.map +1 -0
- package/lib/Cloud/Website/Nextjs.js +66 -0
- package/lib/Cloud/Website/Nextjs.js.map +1 -0
- package/lib/Cloud/Website/Nuxt.d.ts +71 -0
- package/lib/Cloud/Website/Nuxt.d.ts.map +1 -0
- package/lib/Cloud/Website/Nuxt.js +60 -0
- package/lib/Cloud/Website/Nuxt.js.map +1 -0
- package/lib/Cloud/Website/Octane.d.ts +64 -0
- package/lib/Cloud/Website/Octane.d.ts.map +1 -0
- package/lib/Cloud/Website/Octane.js +58 -0
- package/lib/Cloud/Website/Octane.js.map +1 -0
- package/lib/Cloud/Website/Providers.d.ts +16 -0
- package/lib/Cloud/Website/Providers.d.ts.map +1 -0
- package/lib/Cloud/Website/Providers.js +16 -0
- package/lib/Cloud/Website/Providers.js.map +1 -0
- package/lib/Cloud/Website/ReactRouter.d.ts +96 -0
- package/lib/Cloud/Website/ReactRouter.d.ts.map +1 -0
- package/lib/Cloud/Website/ReactRouter.js +90 -0
- package/lib/Cloud/Website/ReactRouter.js.map +1 -0
- package/lib/Cloud/Website/SolidStart.d.ts +108 -0
- package/lib/Cloud/Website/SolidStart.d.ts.map +1 -0
- package/lib/Cloud/Website/SolidStart.js +90 -0
- package/lib/Cloud/Website/SolidStart.js.map +1 -0
- package/lib/Cloud/Website/StaticSite.d.ts +170 -0
- package/lib/Cloud/Website/StaticSite.d.ts.map +1 -0
- package/lib/Cloud/Website/StaticSite.js +193 -0
- package/lib/Cloud/Website/StaticSite.js.map +1 -0
- package/lib/Cloud/Website/SvelteKit.d.ts +70 -0
- package/lib/Cloud/Website/SvelteKit.d.ts.map +1 -0
- package/lib/Cloud/Website/SvelteKit.js +59 -0
- package/lib/Cloud/Website/SvelteKit.js.map +1 -0
- package/lib/Cloud/Website/TanStackStart.d.ts +91 -0
- package/lib/Cloud/Website/TanStackStart.d.ts.map +1 -0
- package/lib/Cloud/Website/TanStackStart.js +85 -0
- package/lib/Cloud/Website/TanStackStart.js.map +1 -0
- package/lib/Cloud/Website/Vinext.d.ts +80 -0
- package/lib/Cloud/Website/Vinext.d.ts.map +1 -0
- package/lib/Cloud/Website/Vinext.js +75 -0
- package/lib/Cloud/Website/Vinext.js.map +1 -0
- package/lib/Cloud/Website/Vite.d.ts +114 -0
- package/lib/Cloud/Website/Vite.d.ts.map +1 -0
- package/lib/Cloud/Website/Vite.js +112 -0
- package/lib/Cloud/Website/Vite.js.map +1 -0
- package/lib/Cloud/Website/Vocs.d.ts +67 -0
- package/lib/Cloud/Website/Vocs.d.ts.map +1 -0
- package/lib/Cloud/Website/Vocs.js +56 -0
- package/lib/Cloud/Website/Vocs.js.map +1 -0
- package/lib/Cloud/Website/Waku.d.ts +71 -0
- package/lib/Cloud/Website/Waku.d.ts.map +1 -0
- package/lib/Cloud/Website/Waku.js +59 -0
- package/lib/Cloud/Website/Waku.js.map +1 -0
- package/lib/Cloud/Website/index.d.ts +16 -0
- package/lib/Cloud/Website/index.d.ts.map +1 -0
- package/lib/Cloud/Website/index.js +17 -0
- package/lib/Cloud/Website/index.js.map +1 -0
- package/lib/Cloud/hosted.d.ts +324 -0
- package/lib/Cloud/hosted.d.ts.map +1 -0
- package/lib/Cloud/hosted.js +750 -0
- package/lib/Cloud/hosted.js.map +1 -0
- package/lib/Cloud/index.d.ts +111 -0
- package/lib/Cloud/index.d.ts.map +1 -0
- package/lib/Cloud/index.js +156 -0
- package/lib/Cloud/index.js.map +1 -0
- package/lib/Contributions.d.ts +12 -0
- package/lib/Contributions.d.ts.map +1 -0
- package/lib/Contributions.js +12 -0
- package/lib/Contributions.js.map +1 -0
- package/lib/Credentials.d.ts +25 -0
- package/lib/Credentials.d.ts.map +1 -0
- package/lib/Credentials.js +35 -0
- package/lib/Credentials.js.map +1 -0
- package/lib/Errors/Application.d.ts +136 -0
- package/lib/Errors/Application.d.ts.map +1 -0
- package/lib/Errors/Application.js +146 -0
- package/lib/Errors/Application.js.map +1 -0
- package/lib/Errors/ApplicationGroup.d.ts +67 -0
- package/lib/Errors/ApplicationGroup.d.ts.map +1 -0
- package/lib/Errors/ApplicationGroup.js +72 -0
- package/lib/Errors/ApplicationGroup.js.map +1 -0
- package/lib/Errors/Dsn.d.ts +87 -0
- package/lib/Errors/Dsn.d.ts.map +1 -0
- package/lib/Errors/Dsn.js +34 -0
- package/lib/Errors/Dsn.js.map +1 -0
- package/lib/Errors/JiraIntegration.d.ts +69 -0
- package/lib/Errors/JiraIntegration.d.ts.map +1 -0
- package/lib/Errors/JiraIntegration.js +64 -0
- package/lib/Errors/JiraIntegration.js.map +1 -0
- package/lib/Errors/LinearIntegration.d.ts +71 -0
- package/lib/Errors/LinearIntegration.d.ts.map +1 -0
- package/lib/Errors/LinearIntegration.js +66 -0
- package/lib/Errors/LinearIntegration.js.map +1 -0
- package/lib/Errors/MicrosoftTeamsIntegration.d.ts +75 -0
- package/lib/Errors/MicrosoftTeamsIntegration.d.ts.map +1 -0
- package/lib/Errors/MicrosoftTeamsIntegration.js +72 -0
- package/lib/Errors/MicrosoftTeamsIntegration.js.map +1 -0
- package/lib/Errors/Reference.d.ts +133 -0
- package/lib/Errors/Reference.d.ts.map +1 -0
- package/lib/Errors/Reference.js +123 -0
- package/lib/Errors/Reference.js.map +1 -0
- package/lib/Errors/RegisterRelease.d.ts +66 -0
- package/lib/Errors/RegisterRelease.d.ts.map +1 -0
- package/lib/Errors/RegisterRelease.js +3 -0
- package/lib/Errors/RegisterRelease.js.map +1 -0
- package/lib/Errors/RegisterReleaseHttp.d.ts +13 -0
- package/lib/Errors/RegisterReleaseHttp.d.ts.map +1 -0
- package/lib/Errors/RegisterReleaseHttp.js +29 -0
- package/lib/Errors/RegisterReleaseHttp.js.map +1 -0
- package/lib/Errors/Release.d.ts +97 -0
- package/lib/Errors/Release.d.ts.map +1 -0
- package/lib/Errors/Release.js +161 -0
- package/lib/Errors/Release.js.map +1 -0
- package/lib/Errors/SlackIntegration.d.ts +66 -0
- package/lib/Errors/SlackIntegration.d.ts.map +1 -0
- package/lib/Errors/SlackIntegration.js +61 -0
- package/lib/Errors/SlackIntegration.js.map +1 -0
- package/lib/Errors/index.d.ts +38 -0
- package/lib/Errors/index.d.ts.map +1 -0
- package/lib/Errors/index.js +46 -0
- package/lib/Errors/index.js.map +1 -0
- package/lib/Incidents/AcknowledgeIncident.d.ts +61 -0
- package/lib/Incidents/AcknowledgeIncident.d.ts.map +1 -0
- package/lib/Incidents/AcknowledgeIncident.js +3 -0
- package/lib/Incidents/AcknowledgeIncident.js.map +1 -0
- package/lib/Incidents/AcknowledgeIncidentHttp.d.ts +12 -0
- package/lib/Incidents/AcknowledgeIncidentHttp.d.ts.map +1 -0
- package/lib/Incidents/AcknowledgeIncidentHttp.js +19 -0
- package/lib/Incidents/AcknowledgeIncidentHttp.js.map +1 -0
- package/lib/Incidents/AmazonSnsIntegration.d.ts +83 -0
- package/lib/Incidents/AmazonSnsIntegration.d.ts.map +1 -0
- package/lib/Incidents/AmazonSnsIntegration.js +91 -0
- package/lib/Incidents/AmazonSnsIntegration.js.map +1 -0
- package/lib/Incidents/AwsCloudWatchIntegration.d.ts +64 -0
- package/lib/Incidents/AwsCloudWatchIntegration.d.ts.map +1 -0
- package/lib/Incidents/AwsCloudWatchIntegration.js +64 -0
- package/lib/Incidents/AwsCloudWatchIntegration.js.map +1 -0
- package/lib/Incidents/AzureIntegration.d.ts +63 -0
- package/lib/Incidents/AzureIntegration.d.ts.map +1 -0
- package/lib/Incidents/AzureIntegration.js +63 -0
- package/lib/Incidents/AzureIntegration.js.map +1 -0
- package/lib/Incidents/BindingHttp.d.ts +28 -0
- package/lib/Incidents/BindingHttp.d.ts.map +1 -0
- package/lib/Incidents/BindingHttp.js +28 -0
- package/lib/Incidents/BindingHttp.js.map +1 -0
- package/lib/Incidents/CatalogRecord.d.ts +69 -0
- package/lib/Incidents/CatalogRecord.d.ts.map +1 -0
- package/lib/Incidents/CatalogRecord.js +69 -0
- package/lib/Incidents/CatalogRecord.js.map +1 -0
- package/lib/Incidents/CatalogRelation.d.ts +78 -0
- package/lib/Incidents/CatalogRelation.d.ts.map +1 -0
- package/lib/Incidents/CatalogRelation.js +79 -0
- package/lib/Incidents/CatalogRelation.js.map +1 -0
- package/lib/Incidents/CreateIncident.d.ts +67 -0
- package/lib/Incidents/CreateIncident.d.ts.map +1 -0
- package/lib/Incidents/CreateIncident.js +3 -0
- package/lib/Incidents/CreateIncident.js.map +1 -0
- package/lib/Incidents/CreateIncidentHttp.d.ts +12 -0
- package/lib/Incidents/CreateIncidentHttp.d.ts.map +1 -0
- package/lib/Incidents/CreateIncidentHttp.js +19 -0
- package/lib/Incidents/CreateIncidentHttp.js.map +1 -0
- package/lib/Incidents/CreateStatusReport.d.ts +71 -0
- package/lib/Incidents/CreateStatusReport.d.ts.map +1 -0
- package/lib/Incidents/CreateStatusReport.js +3 -0
- package/lib/Incidents/CreateStatusReport.js.map +1 -0
- package/lib/Incidents/CreateStatusReportHttp.d.ts +12 -0
- package/lib/Incidents/CreateStatusReportHttp.d.ts.map +1 -0
- package/lib/Incidents/CreateStatusReportHttp.js +27 -0
- package/lib/Incidents/CreateStatusReportHttp.js.map +1 -0
- package/lib/Incidents/CreateStatusUpdate.d.ts +67 -0
- package/lib/Incidents/CreateStatusUpdate.d.ts.map +1 -0
- package/lib/Incidents/CreateStatusUpdate.js +3 -0
- package/lib/Incidents/CreateStatusUpdate.js.map +1 -0
- package/lib/Incidents/CreateStatusUpdateHttp.d.ts +12 -0
- package/lib/Incidents/CreateStatusUpdateHttp.d.ts.map +1 -0
- package/lib/Incidents/CreateStatusUpdateHttp.js +27 -0
- package/lib/Incidents/CreateStatusUpdateHttp.js.map +1 -0
- package/lib/Incidents/DatadogIntegration.d.ts +70 -0
- package/lib/Incidents/DatadogIntegration.d.ts.map +1 -0
- package/lib/Incidents/DatadogIntegration.js +70 -0
- package/lib/Incidents/DatadogIntegration.js.map +1 -0
- package/lib/Incidents/ElasticIntegration.d.ts +62 -0
- package/lib/Incidents/ElasticIntegration.d.ts.map +1 -0
- package/lib/Incidents/ElasticIntegration.js +62 -0
- package/lib/Incidents/ElasticIntegration.js.map +1 -0
- package/lib/Incidents/EscalationPolicy.d.ts +106 -0
- package/lib/Incidents/EscalationPolicy.d.ts.map +1 -0
- package/lib/Incidents/EscalationPolicy.js +103 -0
- package/lib/Incidents/EscalationPolicy.js.map +1 -0
- package/lib/Incidents/EscalationPolicyGroup.d.ts +49 -0
- package/lib/Incidents/EscalationPolicyGroup.d.ts.map +1 -0
- package/lib/Incidents/EscalationPolicyGroup.js +48 -0
- package/lib/Incidents/EscalationPolicyGroup.js.map +1 -0
- package/lib/Incidents/FailHeartbeat.d.ts +49 -0
- package/lib/Incidents/FailHeartbeat.d.ts.map +1 -0
- package/lib/Incidents/FailHeartbeat.js +3 -0
- package/lib/Incidents/FailHeartbeat.js.map +1 -0
- package/lib/Incidents/FailHeartbeatHttp.d.ts +12 -0
- package/lib/Incidents/FailHeartbeatHttp.d.ts.map +1 -0
- package/lib/Incidents/FailHeartbeatHttp.js +22 -0
- package/lib/Incidents/FailHeartbeatHttp.js.map +1 -0
- package/lib/Incidents/GoogleMonitoringIntegration.d.ts +63 -0
- package/lib/Incidents/GoogleMonitoringIntegration.d.ts.map +1 -0
- package/lib/Incidents/GoogleMonitoringIntegration.js +63 -0
- package/lib/Incidents/GoogleMonitoringIntegration.js.map +1 -0
- package/lib/Incidents/GrafanaIntegration.d.ts +73 -0
- package/lib/Incidents/GrafanaIntegration.d.ts.map +1 -0
- package/lib/Incidents/GrafanaIntegration.js +73 -0
- package/lib/Incidents/GrafanaIntegration.js.map +1 -0
- package/lib/Incidents/Heartbeat.d.ts +99 -0
- package/lib/Incidents/Heartbeat.d.ts.map +1 -0
- package/lib/Incidents/Heartbeat.js +104 -0
- package/lib/Incidents/Heartbeat.js.map +1 -0
- package/lib/Incidents/HeartbeatGroup.d.ts +49 -0
- package/lib/Incidents/HeartbeatGroup.d.ts.map +1 -0
- package/lib/Incidents/HeartbeatGroup.js +48 -0
- package/lib/Incidents/HeartbeatGroup.js.map +1 -0
- package/lib/Incidents/IncomingEmailIntegration.d.ts +71 -0
- package/lib/Incidents/IncomingEmailIntegration.d.ts.map +1 -0
- package/lib/Incidents/IncomingEmailIntegration.js +81 -0
- package/lib/Incidents/IncomingEmailIntegration.js.map +1 -0
- package/lib/Incidents/IncomingWebhookIntegration.d.ts +85 -0
- package/lib/Incidents/IncomingWebhookIntegration.d.ts.map +1 -0
- package/lib/Incidents/IncomingWebhookIntegration.js +95 -0
- package/lib/Incidents/IncomingWebhookIntegration.js.map +1 -0
- package/lib/Incidents/JiraIntegration.d.ts +59 -0
- package/lib/Incidents/JiraIntegration.d.ts.map +1 -0
- package/lib/Incidents/JiraIntegration.js +50 -0
- package/lib/Incidents/JiraIntegration.js.map +1 -0
- package/lib/Incidents/LinearIntegration.d.ts +62 -0
- package/lib/Incidents/LinearIntegration.d.ts.map +1 -0
- package/lib/Incidents/LinearIntegration.js +60 -0
- package/lib/Incidents/LinearIntegration.js.map +1 -0
- package/lib/Incidents/Metadata.d.ts +85 -0
- package/lib/Incidents/Metadata.d.ts.map +1 -0
- package/lib/Incidents/Metadata.js +91 -0
- package/lib/Incidents/Metadata.js.map +1 -0
- package/lib/Incidents/Monitor.d.ts +91 -0
- package/lib/Incidents/Monitor.d.ts.map +1 -0
- package/lib/Incidents/Monitor.js +107 -0
- package/lib/Incidents/Monitor.js.map +1 -0
- package/lib/Incidents/MonitorGroup.d.ts +57 -0
- package/lib/Incidents/MonitorGroup.d.ts.map +1 -0
- package/lib/Incidents/MonitorGroup.js +56 -0
- package/lib/Incidents/MonitorGroup.js.map +1 -0
- package/lib/Incidents/NewRelicIntegration.d.ts +70 -0
- package/lib/Incidents/NewRelicIntegration.d.ts.map +1 -0
- package/lib/Incidents/NewRelicIntegration.js +70 -0
- package/lib/Incidents/NewRelicIntegration.js.map +1 -0
- package/lib/Incidents/OnCallRotation.d.ts +96 -0
- package/lib/Incidents/OnCallRotation.d.ts.map +1 -0
- package/lib/Incidents/OnCallRotation.js +206 -0
- package/lib/Incidents/OnCallRotation.js.map +1 -0
- package/lib/Incidents/OnCallSchedule.d.ts +80 -0
- package/lib/Incidents/OnCallSchedule.d.ts.map +1 -0
- package/lib/Incidents/OnCallSchedule.js +73 -0
- package/lib/Incidents/OnCallSchedule.js.map +1 -0
- package/lib/Incidents/OutgoingEmailIntegration.d.ts +54 -0
- package/lib/Incidents/OutgoingEmailIntegration.d.ts.map +1 -0
- package/lib/Incidents/OutgoingEmailIntegration.js +53 -0
- package/lib/Incidents/OutgoingEmailIntegration.js.map +1 -0
- package/lib/Incidents/OutgoingPagerDutyIntegration.d.ts +48 -0
- package/lib/Incidents/OutgoingPagerDutyIntegration.d.ts.map +1 -0
- package/lib/Incidents/OutgoingPagerDutyIntegration.js +47 -0
- package/lib/Incidents/OutgoingPagerDutyIntegration.js.map +1 -0
- package/lib/Incidents/OutgoingWebhookIntegration.d.ts +83 -0
- package/lib/Incidents/OutgoingWebhookIntegration.d.ts.map +1 -0
- package/lib/Incidents/OutgoingWebhookIntegration.js +98 -0
- package/lib/Incidents/OutgoingWebhookIntegration.js.map +1 -0
- package/lib/Incidents/PrometheusIntegration.d.ts +77 -0
- package/lib/Incidents/PrometheusIntegration.d.ts.map +1 -0
- package/lib/Incidents/PrometheusIntegration.js +77 -0
- package/lib/Incidents/PrometheusIntegration.js.map +1 -0
- package/lib/Incidents/Reference.d.ts +140 -0
- package/lib/Incidents/Reference.d.ts.map +1 -0
- package/lib/Incidents/Reference.js +136 -0
- package/lib/Incidents/Reference.js.map +1 -0
- package/lib/Incidents/ReportHeartbeat.d.ts +106 -0
- package/lib/Incidents/ReportHeartbeat.d.ts.map +1 -0
- package/lib/Incidents/ReportHeartbeat.js +63 -0
- package/lib/Incidents/ReportHeartbeat.js.map +1 -0
- package/lib/Incidents/ReportHeartbeatHttp.d.ts +12 -0
- package/lib/Incidents/ReportHeartbeatHttp.d.ts.map +1 -0
- package/lib/Incidents/ReportHeartbeatHttp.js +22 -0
- package/lib/Incidents/ReportHeartbeatHttp.js.map +1 -0
- package/lib/Incidents/ResolveIncident.d.ts +60 -0
- package/lib/Incidents/ResolveIncident.d.ts.map +1 -0
- package/lib/Incidents/ResolveIncident.js +3 -0
- package/lib/Incidents/ResolveIncident.js.map +1 -0
- package/lib/Incidents/ResolveIncidentHttp.d.ts +12 -0
- package/lib/Incidents/ResolveIncidentHttp.d.ts.map +1 -0
- package/lib/Incidents/ResolveIncidentHttp.js +19 -0
- package/lib/Incidents/ResolveIncidentHttp.js.map +1 -0
- package/lib/Incidents/SendHeartbeat.d.ts +56 -0
- package/lib/Incidents/SendHeartbeat.d.ts.map +1 -0
- package/lib/Incidents/SendHeartbeat.js +3 -0
- package/lib/Incidents/SendHeartbeat.js.map +1 -0
- package/lib/Incidents/SendHeartbeatHttp.d.ts +12 -0
- package/lib/Incidents/SendHeartbeatHttp.d.ts.map +1 -0
- package/lib/Incidents/SendHeartbeatHttp.js +22 -0
- package/lib/Incidents/SendHeartbeatHttp.js.map +1 -0
- package/lib/Incidents/Severity.d.ts +83 -0
- package/lib/Incidents/Severity.d.ts.map +1 -0
- package/lib/Incidents/Severity.js +79 -0
- package/lib/Incidents/Severity.js.map +1 -0
- package/lib/Incidents/SeverityGroup.d.ts +51 -0
- package/lib/Incidents/SeverityGroup.d.ts.map +1 -0
- package/lib/Incidents/SeverityGroup.js +50 -0
- package/lib/Incidents/SeverityGroup.js.map +1 -0
- package/lib/Incidents/SplunkOnCallIntegration.d.ts +46 -0
- package/lib/Incidents/SplunkOnCallIntegration.d.ts.map +1 -0
- package/lib/Incidents/SplunkOnCallIntegration.js +45 -0
- package/lib/Incidents/SplunkOnCallIntegration.js.map +1 -0
- package/lib/Incidents/StatusPage.d.ts +125 -0
- package/lib/Incidents/StatusPage.d.ts.map +1 -0
- package/lib/Incidents/StatusPage.js +133 -0
- package/lib/Incidents/StatusPage.js.map +1 -0
- package/lib/Incidents/StatusPageGroup.d.ts +50 -0
- package/lib/Incidents/StatusPageGroup.d.ts.map +1 -0
- package/lib/Incidents/StatusPageGroup.js +49 -0
- package/lib/Incidents/StatusPageGroup.js.map +1 -0
- package/lib/Incidents/StatusPageResource.d.ts +91 -0
- package/lib/Incidents/StatusPageResource.d.ts.map +1 -0
- package/lib/Incidents/StatusPageResource.js +87 -0
- package/lib/Incidents/StatusPageResource.js.map +1 -0
- package/lib/Incidents/StatusPageSection.d.ts +65 -0
- package/lib/Incidents/StatusPageSection.d.ts.map +1 -0
- package/lib/Incidents/StatusPageSection.js +65 -0
- package/lib/Incidents/StatusPageSection.js.map +1 -0
- package/lib/Incidents/StatusPageSubscriber.d.ts +93 -0
- package/lib/Incidents/StatusPageSubscriber.d.ts.map +1 -0
- package/lib/Incidents/StatusPageSubscriber.js +100 -0
- package/lib/Incidents/StatusPageSubscriber.js.map +1 -0
- package/lib/Incidents/index.d.ts +108 -0
- package/lib/Incidents/index.d.ts.map +1 -0
- package/lib/Incidents/index.js +143 -0
- package/lib/Incidents/index.js.map +1 -0
- package/lib/Incidents/integrationFields.d.ts +124 -0
- package/lib/Incidents/integrationFields.d.ts.map +1 -0
- package/lib/Incidents/integrationFields.js +74 -0
- package/lib/Incidents/integrationFields.js.map +1 -0
- package/lib/Providers.d.ts +36 -0
- package/lib/Providers.d.ts.map +1 -0
- package/lib/Providers.js +54 -0
- package/lib/Providers.js.map +1 -0
- package/lib/Telemetry/Alert.d.ts +99 -0
- package/lib/Telemetry/Alert.d.ts.map +1 -0
- package/lib/Telemetry/Alert.js +91 -0
- package/lib/Telemetry/Alert.js.map +1 -0
- package/lib/Telemetry/AwsLogGroupSubscription.d.ts +57 -0
- package/lib/Telemetry/AwsLogGroupSubscription.d.ts.map +1 -0
- package/lib/Telemetry/AwsLogGroupSubscription.js +57 -0
- package/lib/Telemetry/AwsLogGroupSubscription.js.map +1 -0
- package/lib/Telemetry/BindingHttp.d.ts +23 -0
- package/lib/Telemetry/BindingHttp.d.ts.map +1 -0
- package/lib/Telemetry/BindingHttp.js +25 -0
- package/lib/Telemetry/BindingHttp.js.map +1 -0
- package/lib/Telemetry/Chart.d.ts +171 -0
- package/lib/Telemetry/Chart.d.ts.map +1 -0
- package/lib/Telemetry/Chart.js +92 -0
- package/lib/Telemetry/Chart.js.map +1 -0
- package/lib/Telemetry/Collector.d.ts +78 -0
- package/lib/Telemetry/Collector.d.ts.map +1 -0
- package/lib/Telemetry/Collector.js +111 -0
- package/lib/Telemetry/Collector.js.map +1 -0
- package/lib/Telemetry/CollectorTarget.d.ts +69 -0
- package/lib/Telemetry/CollectorTarget.d.ts.map +1 -0
- package/lib/Telemetry/CollectorTarget.js +69 -0
- package/lib/Telemetry/CollectorTarget.js.map +1 -0
- package/lib/Telemetry/Connection.d.ts +79 -0
- package/lib/Telemetry/Connection.d.ts.map +1 -0
- package/lib/Telemetry/Connection.js +128 -0
- package/lib/Telemetry/Connection.js.map +1 -0
- package/lib/Telemetry/Dashboard.d.ts +108 -0
- package/lib/Telemetry/Dashboard.d.ts.map +1 -0
- package/lib/Telemetry/Dashboard.js +112 -0
- package/lib/Telemetry/Dashboard.js.map +1 -0
- package/lib/Telemetry/DashboardChart.d.ts +104 -0
- package/lib/Telemetry/DashboardChart.d.ts.map +1 -0
- package/lib/Telemetry/DashboardChart.js +119 -0
- package/lib/Telemetry/DashboardChart.js.map +1 -0
- package/lib/Telemetry/DashboardGroup.d.ts +53 -0
- package/lib/Telemetry/DashboardGroup.d.ts.map +1 -0
- package/lib/Telemetry/DashboardGroup.js +47 -0
- package/lib/Telemetry/DashboardGroup.js.map +1 -0
- package/lib/Telemetry/DashboardSection.d.ts +65 -0
- package/lib/Telemetry/DashboardSection.d.ts.map +1 -0
- package/lib/Telemetry/DashboardSection.js +65 -0
- package/lib/Telemetry/DashboardSection.js.map +1 -0
- package/lib/Telemetry/Exploration.d.ts +77 -0
- package/lib/Telemetry/Exploration.d.ts.map +1 -0
- package/lib/Telemetry/Exploration.js +97 -0
- package/lib/Telemetry/Exploration.js.map +1 -0
- package/lib/Telemetry/ExplorationGroup.d.ts +58 -0
- package/lib/Telemetry/ExplorationGroup.d.ts.map +1 -0
- package/lib/Telemetry/ExplorationGroup.js +52 -0
- package/lib/Telemetry/ExplorationGroup.js.map +1 -0
- package/lib/Telemetry/Export.d.ts +183 -0
- package/lib/Telemetry/Export.d.ts.map +1 -0
- package/lib/Telemetry/Export.js +152 -0
- package/lib/Telemetry/Export.js.map +1 -0
- package/lib/Telemetry/ExtractedMetric.d.ts +67 -0
- package/lib/Telemetry/ExtractedMetric.d.ts.map +1 -0
- package/lib/Telemetry/ExtractedMetric.js +66 -0
- package/lib/Telemetry/ExtractedMetric.js.map +1 -0
- package/lib/Telemetry/IngestLogs.d.ts +87 -0
- package/lib/Telemetry/IngestLogs.d.ts.map +1 -0
- package/lib/Telemetry/IngestLogs.js +3 -0
- package/lib/Telemetry/IngestLogs.js.map +1 -0
- package/lib/Telemetry/IngestLogsHttp.d.ts +12 -0
- package/lib/Telemetry/IngestLogsHttp.d.ts.map +1 -0
- package/lib/Telemetry/IngestLogsHttp.js +21 -0
- package/lib/Telemetry/IngestLogsHttp.js.map +1 -0
- package/lib/Telemetry/IngestMetrics.d.ts +68 -0
- package/lib/Telemetry/IngestMetrics.d.ts.map +1 -0
- package/lib/Telemetry/IngestMetrics.js +3 -0
- package/lib/Telemetry/IngestMetrics.js.map +1 -0
- package/lib/Telemetry/IngestMetricsHttp.d.ts +12 -0
- package/lib/Telemetry/IngestMetricsHttp.d.ts.map +1 -0
- package/lib/Telemetry/IngestMetricsHttp.js +21 -0
- package/lib/Telemetry/IngestMetricsHttp.js.map +1 -0
- package/lib/Telemetry/OtelHeaders.d.ts +36 -0
- package/lib/Telemetry/OtelHeaders.d.ts.map +1 -0
- package/lib/Telemetry/OtelHeaders.js +34 -0
- package/lib/Telemetry/OtelHeaders.js.map +1 -0
- package/lib/Telemetry/Query.d.ts +66 -0
- package/lib/Telemetry/Query.d.ts.map +1 -0
- package/lib/Telemetry/Query.js +3 -0
- package/lib/Telemetry/Query.js.map +1 -0
- package/lib/Telemetry/QueryHttp.d.ts +12 -0
- package/lib/Telemetry/QueryHttp.d.ts.map +1 -0
- package/lib/Telemetry/QueryHttp.js +24 -0
- package/lib/Telemetry/QueryHttp.js.map +1 -0
- package/lib/Telemetry/Reference.d.ts +115 -0
- package/lib/Telemetry/Reference.d.ts.map +1 -0
- package/lib/Telemetry/Reference.js +110 -0
- package/lib/Telemetry/Reference.js.map +1 -0
- package/lib/Telemetry/ShipLogs.d.ts +89 -0
- package/lib/Telemetry/ShipLogs.d.ts.map +1 -0
- package/lib/Telemetry/ShipLogs.js +119 -0
- package/lib/Telemetry/ShipLogs.js.map +1 -0
- package/lib/Telemetry/Source.d.ts +184 -0
- package/lib/Telemetry/Source.d.ts.map +1 -0
- package/lib/Telemetry/Source.js +238 -0
- package/lib/Telemetry/Source.js.map +1 -0
- package/lib/Telemetry/SourceAwsAccount.d.ts +73 -0
- package/lib/Telemetry/SourceAwsAccount.d.ts.map +1 -0
- package/lib/Telemetry/SourceAwsAccount.js +57 -0
- package/lib/Telemetry/SourceAwsAccount.js.map +1 -0
- package/lib/Telemetry/SourceGcpProject.d.ts +81 -0
- package/lib/Telemetry/SourceGcpProject.d.ts.map +1 -0
- package/lib/Telemetry/SourceGcpProject.js +69 -0
- package/lib/Telemetry/SourceGcpProject.js.map +1 -0
- package/lib/Telemetry/SourceGroup.d.ts +65 -0
- package/lib/Telemetry/SourceGroup.d.ts.map +1 -0
- package/lib/Telemetry/SourceGroup.js +67 -0
- package/lib/Telemetry/SourceGroup.js.map +1 -0
- package/lib/Telemetry/customBucket.d.ts +26 -0
- package/lib/Telemetry/customBucket.d.ts.map +1 -0
- package/lib/Telemetry/customBucket.js +45 -0
- package/lib/Telemetry/customBucket.js.map +1 -0
- package/lib/Telemetry/index.d.ts +64 -0
- package/lib/Telemetry/index.d.ts.map +1 -0
- package/lib/Telemetry/index.js +81 -0
- package/lib/Telemetry/index.js.map +1 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -0
- package/lib/internal/DeployRetry.d.ts +19 -0
- package/lib/internal/DeployRetry.d.ts.map +1 -0
- package/lib/internal/DeployRetry.js +52 -0
- package/lib/internal/DeployRetry.js.map +1 -0
- package/lib/internal/actionWait.d.ts +12 -0
- package/lib/internal/actionWait.d.ts.map +1 -0
- package/lib/internal/actionWait.js +21 -0
- package/lib/internal/actionWait.js.map +1 -0
- package/lib/internal/applicationIds.d.ts +17 -0
- package/lib/internal/applicationIds.d.ts.map +1 -0
- package/lib/internal/applicationIds.js +12 -0
- package/lib/internal/applicationIds.js.map +1 -0
- package/lib/internal/attachments.d.ts +23 -0
- package/lib/internal/attachments.d.ts.map +1 -0
- package/lib/internal/attachments.js +22 -0
- package/lib/internal/attachments.js.map +1 -0
- package/lib/internal/budget.d.ts +46 -0
- package/lib/internal/budget.d.ts.map +1 -0
- package/lib/internal/budget.js +44 -0
- package/lib/internal/budget.js.map +1 -0
- package/lib/internal/connection.d.ts +65 -0
- package/lib/internal/connection.d.ts.map +1 -0
- package/lib/internal/connection.js +160 -0
- package/lib/internal/connection.js.map +1 -0
- package/lib/internal/crud.d.ts +195 -0
- package/lib/internal/crud.d.ts.map +1 -0
- package/lib/internal/crud.js +614 -0
- package/lib/internal/crud.js.map +1 -0
- package/lib/internal/errors.d.ts +35 -0
- package/lib/internal/errors.d.ts.map +1 -0
- package/lib/internal/errors.js +19 -0
- package/lib/internal/errors.js.map +1 -0
- package/lib/internal/fields.d.ts +47 -0
- package/lib/internal/fields.d.ts.map +1 -0
- package/lib/internal/fields.js +136 -0
- package/lib/internal/fields.js.map +1 -0
- package/lib/internal/gone.d.ts +13 -0
- package/lib/internal/gone.d.ts.map +1 -0
- package/lib/internal/gone.js +14 -0
- package/lib/internal/gone.js.map +1 -0
- package/lib/internal/managedDatabase.d.ts +137 -0
- package/lib/internal/managedDatabase.d.ts.map +1 -0
- package/lib/internal/managedDatabase.js +186 -0
- package/lib/internal/managedDatabase.js.map +1 -0
- package/lib/internal/managedService.d.ts +184 -0
- package/lib/internal/managedService.d.ts.map +1 -0
- package/lib/internal/managedService.js +208 -0
- package/lib/internal/managedService.js.map +1 -0
- package/lib/internal/migrations.d.ts +138 -0
- package/lib/internal/migrations.d.ts.map +1 -0
- package/lib/internal/migrations.js +288 -0
- package/lib/internal/migrations.js.map +1 -0
- package/lib/internal/ops.d.ts +43 -0
- package/lib/internal/ops.d.ts.map +1 -0
- package/lib/internal/ops.js +46 -0
- package/lib/internal/ops.js.map +1 -0
- package/lib/internal/ownership.d.ts +55 -0
- package/lib/internal/ownership.d.ts.map +1 -0
- package/lib/internal/ownership.js +74 -0
- package/lib/internal/ownership.js.map +1 -0
- package/lib/internal/reference.d.ts +36 -0
- package/lib/internal/reference.d.ts.map +1 -0
- package/lib/internal/reference.js +49 -0
- package/lib/internal/reference.js.map +1 -0
- package/lib/internal/scope.d.ts +51 -0
- package/lib/internal/scope.d.ts.map +1 -0
- package/lib/internal/scope.js +34 -0
- package/lib/internal/scope.js.map +1 -0
- package/lib/internal/snapshot.d.ts +120 -0
- package/lib/internal/snapshot.d.ts.map +1 -0
- package/lib/internal/snapshot.js +92 -0
- package/lib/internal/snapshot.js.map +1 -0
- package/lib/internal/unpaged.d.ts +22 -0
- package/lib/internal/unpaged.d.ts.map +1 -0
- package/lib/internal/unpaged.js +17 -0
- package/lib/internal/unpaged.js.map +1 -0
- package/lib/internal/wait.d.ts +55 -0
- package/lib/internal/wait.d.ts.map +1 -0
- package/lib/internal/wait.js +56 -0
- package/lib/internal/wait.js.map +1 -0
- package/lib/sdk/credentials.d.ts +97 -0
- package/lib/sdk/credentials.d.ts.map +1 -0
- package/lib/sdk/credentials.js +135 -0
- package/lib/sdk/credentials.js.map +1 -0
- package/lib/sdk/errors.d.ts +98 -0
- package/lib/sdk/errors.d.ts.map +1 -0
- package/lib/sdk/errors.js +86 -0
- package/lib/sdk/errors.js.map +1 -0
- package/lib/sdk/index.d.ts +49 -0
- package/lib/sdk/index.d.ts.map +1 -0
- package/lib/sdk/index.js +49 -0
- package/lib/sdk/index.js.map +1 -0
- package/lib/sdk/pagination.d.ts +35 -0
- package/lib/sdk/pagination.d.ts.map +1 -0
- package/lib/sdk/pagination.js +80 -0
- package/lib/sdk/pagination.js.map +1 -0
- package/lib/sdk/protocol.d.ts +109 -0
- package/lib/sdk/protocol.d.ts.map +1 -0
- package/lib/sdk/protocol.js +451 -0
- package/lib/sdk/protocol.js.map +1 -0
- package/lib/sdk/retry.d.ts +32 -0
- package/lib/sdk/retry.d.ts.map +1 -0
- package/lib/sdk/retry.js +33 -0
- package/lib/sdk/retry.js.map +1 -0
- package/lib/sdk/services/account.d.ts +372 -0
- package/lib/sdk/services/account.d.ts.map +1 -0
- package/lib/sdk/services/account.js +553 -0
- package/lib/sdk/services/account.js.map +1 -0
- package/lib/sdk/services/cloud.d.ts +11910 -0
- package/lib/sdk/services/cloud.d.ts.map +1 -0
- package/lib/sdk/services/cloud.js +18446 -0
- package/lib/sdk/services/cloud.js.map +1 -0
- package/lib/sdk/services/errors.d.ts +2203 -0
- package/lib/sdk/services/errors.d.ts.map +1 -0
- package/lib/sdk/services/errors.js +2676 -0
- package/lib/sdk/services/errors.js.map +1 -0
- package/lib/sdk/services/heartbeat.d.ts +36 -0
- package/lib/sdk/services/heartbeat.d.ts.map +1 -0
- package/lib/sdk/services/heartbeat.js +94 -0
- package/lib/sdk/services/heartbeat.js.map +1 -0
- package/lib/sdk/services/incidents.d.ts +9948 -0
- package/lib/sdk/services/incidents.d.ts.map +1 -0
- package/lib/sdk/services/incidents.js +9730 -0
- package/lib/sdk/services/incidents.js.map +1 -0
- package/lib/sdk/services/index.d.ts +8 -0
- package/lib/sdk/services/index.d.ts.map +1 -0
- package/lib/sdk/services/index.js +9 -0
- package/lib/sdk/services/index.js.map +1 -0
- package/lib/sdk/services/ingest.d.ts +158 -0
- package/lib/sdk/services/ingest.d.ts.map +1 -0
- package/lib/sdk/services/ingest.js +200 -0
- package/lib/sdk/services/ingest.js.map +1 -0
- package/lib/sdk/services/telemetry.d.ts +6789 -0
- package/lib/sdk/services/telemetry.d.ts.map +1 -0
- package/lib/sdk/services/telemetry.js +5613 -0
- package/lib/sdk/services/telemetry.js.map +1 -0
- package/lib/sdk/traits.d.ts +26 -0
- package/lib/sdk/traits.d.ts.map +1 -0
- package/lib/sdk/traits.js +15 -0
- package/lib/sdk/traits.js.map +1 -0
- package/package.json +190 -4
- package/src/Account/Reference.ts +120 -0
- package/src/Account/Team.ts +106 -0
- package/src/Account/TeamMember.ts +218 -0
- package/src/Account/index.ts +27 -0
- package/src/AuthProvider.ts +172 -0
- package/src/BetterStackBindings.ts +447 -0
- package/src/Cloud/Bootstrap.ts +116 -0
- package/src/Cloud/Certificate.ts +146 -0
- package/src/Cloud/ClickHouse.ts +272 -0
- package/src/Cloud/ClickHouseScheduledSnapshot.ts +114 -0
- package/src/Cloud/ClickHouseSnapshot.ts +137 -0
- package/src/Cloud/Firewall.ts +277 -0
- package/src/Cloud/FirewallRule.ts +175 -0
- package/src/Cloud/InferEnv.ts +30 -0
- package/src/Cloud/Kafka.ts +301 -0
- package/src/Cloud/KafkaTopic.ts +129 -0
- package/src/Cloud/KafkaUser.ts +175 -0
- package/src/Cloud/KubernetesCluster.ts +312 -0
- package/src/Cloud/KubernetesNodePool.ts +196 -0
- package/src/Cloud/KubernetesScheduledSnapshot.ts +116 -0
- package/src/Cloud/LoadBalancer.ts +336 -0
- package/src/Cloud/LoadBalancerService.ts +181 -0
- package/src/Cloud/LoadBalancerTarget.ts +203 -0
- package/src/Cloud/MountVolume.ts +167 -0
- package/src/Cloud/MySQL.ts +363 -0
- package/src/Cloud/MySQLScheduledSnapshot.ts +111 -0
- package/src/Cloud/MySQLSnapshot.ts +133 -0
- package/src/Cloud/Network.ts +116 -0
- package/src/Cloud/ObjectCache.ts +420 -0
- package/src/Cloud/ObjectCacheBucket.ts +197 -0
- package/src/Cloud/Otlp.ts +131 -0
- package/src/Cloud/PlacementGroup.ts +132 -0
- package/src/Cloud/Postgres.ts +410 -0
- package/src/Cloud/PostgresDatabase.ts +118 -0
- package/src/Cloud/PostgresScheduledSnapshot.ts +111 -0
- package/src/Cloud/PostgresSnapshot.ts +133 -0
- package/src/Cloud/PostgresUser.ts +175 -0
- package/src/Cloud/Reference.ts +743 -0
- package/src/Cloud/ReservedIp.ts +214 -0
- package/src/Cloud/ScheduledSnapshot.ts +75 -0
- package/src/Cloud/ScheduledVolumeSnapshot.ts +76 -0
- package/src/Cloud/Server.ts +1469 -0
- package/src/Cloud/ServerPool.ts +100 -0
- package/src/Cloud/ServerPrivateIp.ts +109 -0
- package/src/Cloud/Service.ts +1101 -0
- package/src/Cloud/ServiceHandler.ts +113 -0
- package/src/Cloud/Snapshot.ts +161 -0
- package/src/Cloud/Ssh.ts +528 -0
- package/src/Cloud/SshKey.ts +241 -0
- package/src/Cloud/Valkey.ts +284 -0
- package/src/Cloud/ValkeyScheduledSnapshot.ts +112 -0
- package/src/Cloud/ValkeySnapshot.ts +135 -0
- package/src/Cloud/Volume.ts +522 -0
- package/src/Cloud/VolumeSnapshot.ts +153 -0
- package/src/Cloud/Webhook.ts +145 -0
- package/src/Cloud/Website/Astro.ts +118 -0
- package/src/Cloud/Website/Foldkit.ts +78 -0
- package/src/Cloud/Website/FrameworkSite.ts +499 -0
- package/src/Cloud/Website/Nextjs.ts +70 -0
- package/src/Cloud/Website/Nuxt.ts +72 -0
- package/src/Cloud/Website/Octane.ts +63 -0
- package/src/Cloud/Website/Providers.ts +20 -0
- package/src/Cloud/Website/ReactRouter.ts +96 -0
- package/src/Cloud/Website/SolidStart.ts +109 -0
- package/src/Cloud/Website/StaticSite.ts +273 -0
- package/src/Cloud/Website/SvelteKit.ts +71 -0
- package/src/Cloud/Website/TanStackStart.ts +91 -0
- package/src/Cloud/Website/Vinext.ts +79 -0
- package/src/Cloud/Website/Vite.ts +131 -0
- package/src/Cloud/Website/Vocs.ts +69 -0
- package/src/Cloud/Website/Waku.ts +76 -0
- package/src/Cloud/Website/index.ts +16 -0
- package/src/Cloud/hosted.ts +1022 -0
- package/src/Cloud/index.ts +223 -0
- package/src/Contributions.ts +15 -0
- package/src/Credentials.ts +70 -0
- package/src/Errors/Application.ts +208 -0
- package/src/Errors/ApplicationGroup.ts +119 -0
- package/src/Errors/Dsn.ts +119 -0
- package/src/Errors/JiraIntegration.ts +108 -0
- package/src/Errors/LinearIntegration.ts +112 -0
- package/src/Errors/MicrosoftTeamsIntegration.ts +121 -0
- package/src/Errors/Reference.ts +189 -0
- package/src/Errors/RegisterRelease.ts +77 -0
- package/src/Errors/RegisterReleaseHttp.ts +47 -0
- package/src/Errors/Release.ts +241 -0
- package/src/Errors/SlackIntegration.ts +105 -0
- package/src/Errors/index.ts +60 -0
- package/src/Incidents/AcknowledgeIncident.ts +78 -0
- package/src/Incidents/AcknowledgeIncidentHttp.ts +28 -0
- package/src/Incidents/AmazonSnsIntegration.ts +134 -0
- package/src/Incidents/AwsCloudWatchIntegration.ts +99 -0
- package/src/Incidents/AzureIntegration.ts +95 -0
- package/src/Incidents/BindingHttp.ts +62 -0
- package/src/Incidents/CatalogRecord.ts +106 -0
- package/src/Incidents/CatalogRelation.ts +111 -0
- package/src/Incidents/CreateIncident.ts +81 -0
- package/src/Incidents/CreateIncidentHttp.ts +28 -0
- package/src/Incidents/CreateStatusReport.ts +88 -0
- package/src/Incidents/CreateStatusReportHttp.ts +35 -0
- package/src/Incidents/CreateStatusUpdate.ts +84 -0
- package/src/Incidents/CreateStatusUpdateHttp.ts +35 -0
- package/src/Incidents/DatadogIntegration.ts +102 -0
- package/src/Incidents/ElasticIntegration.ts +94 -0
- package/src/Incidents/EscalationPolicy.ts +144 -0
- package/src/Incidents/EscalationPolicyGroup.ts +82 -0
- package/src/Incidents/FailHeartbeat.ts +55 -0
- package/src/Incidents/FailHeartbeatHttp.ts +28 -0
- package/src/Incidents/GoogleMonitoringIntegration.ts +98 -0
- package/src/Incidents/GrafanaIntegration.ts +105 -0
- package/src/Incidents/Heartbeat.ts +143 -0
- package/src/Incidents/HeartbeatGroup.ts +83 -0
- package/src/Incidents/IncomingEmailIntegration.ts +120 -0
- package/src/Incidents/IncomingWebhookIntegration.ts +141 -0
- package/src/Incidents/JiraIntegration.ts +83 -0
- package/src/Incidents/LinearIntegration.ts +94 -0
- package/src/Incidents/Metadata.ts +133 -0
- package/src/Incidents/Monitor.ts +150 -0
- package/src/Incidents/MonitorGroup.ts +91 -0
- package/src/Incidents/NewRelicIntegration.ts +102 -0
- package/src/Incidents/OnCallRotation.ts +295 -0
- package/src/Incidents/OnCallSchedule.ts +115 -0
- package/src/Incidents/OutgoingEmailIntegration.ts +84 -0
- package/src/Incidents/OutgoingPagerDutyIntegration.ts +78 -0
- package/src/Incidents/OutgoingWebhookIntegration.ts +147 -0
- package/src/Incidents/PrometheusIntegration.ts +109 -0
- package/src/Incidents/Reference.ts +210 -0
- package/src/Incidents/ReportHeartbeat.ts +149 -0
- package/src/Incidents/ReportHeartbeatHttp.ts +30 -0
- package/src/Incidents/ResolveIncident.ts +74 -0
- package/src/Incidents/ResolveIncidentHttp.ts +28 -0
- package/src/Incidents/SendHeartbeat.ts +62 -0
- package/src/Incidents/SendHeartbeatHttp.ts +28 -0
- package/src/Incidents/Severity.ts +123 -0
- package/src/Incidents/SeverityGroup.ts +82 -0
- package/src/Incidents/SplunkOnCallIntegration.ts +76 -0
- package/src/Incidents/StatusPage.ts +178 -0
- package/src/Incidents/StatusPageGroup.ts +81 -0
- package/src/Incidents/StatusPageResource.ts +128 -0
- package/src/Incidents/StatusPageSection.ts +105 -0
- package/src/Incidents/StatusPageSubscriber.ts +163 -0
- package/src/Incidents/index.ts +213 -0
- package/src/Incidents/integrationFields.ts +174 -0
- package/src/Providers.ts +78 -0
- package/src/Telemetry/Alert.ts +135 -0
- package/src/Telemetry/AwsLogGroupSubscription.ts +97 -0
- package/src/Telemetry/BindingHttp.ts +40 -0
- package/src/Telemetry/Chart.ts +251 -0
- package/src/Telemetry/Collector.ts +157 -0
- package/src/Telemetry/CollectorTarget.ts +108 -0
- package/src/Telemetry/Connection.ts +182 -0
- package/src/Telemetry/Dashboard.ts +152 -0
- package/src/Telemetry/DashboardChart.ts +177 -0
- package/src/Telemetry/DashboardGroup.ts +86 -0
- package/src/Telemetry/DashboardSection.ts +115 -0
- package/src/Telemetry/Exploration.ts +139 -0
- package/src/Telemetry/ExplorationGroup.ts +93 -0
- package/src/Telemetry/Export.ts +263 -0
- package/src/Telemetry/ExtractedMetric.ts +112 -0
- package/src/Telemetry/IngestLogs.ts +95 -0
- package/src/Telemetry/IngestLogsHttp.ts +28 -0
- package/src/Telemetry/IngestMetrics.ts +76 -0
- package/src/Telemetry/IngestMetricsHttp.ts +28 -0
- package/src/Telemetry/OtelHeaders.ts +52 -0
- package/src/Telemetry/Query.ts +75 -0
- package/src/Telemetry/QueryHttp.ts +40 -0
- package/src/Telemetry/Reference.ts +164 -0
- package/src/Telemetry/ShipLogs.ts +162 -0
- package/src/Telemetry/Source.ts +328 -0
- package/src/Telemetry/SourceAwsAccount.ts +110 -0
- package/src/Telemetry/SourceGcpProject.ts +125 -0
- package/src/Telemetry/SourceGroup.ts +111 -0
- package/src/Telemetry/customBucket.ts +62 -0
- package/src/Telemetry/index.ts +104 -0
- package/src/globals.d.ts +4 -0
- package/src/index.ts +13 -0
- package/src/internal/DeployRetry.ts +64 -0
- package/src/internal/actionWait.ts +23 -0
- package/src/internal/applicationIds.ts +21 -0
- package/src/internal/attachments.ts +40 -0
- package/src/internal/budget.ts +69 -0
- package/src/internal/connection.ts +233 -0
- package/src/internal/crud.ts +1053 -0
- package/src/internal/errors.ts +32 -0
- package/src/internal/fields.ts +162 -0
- package/src/internal/gone.ts +19 -0
- package/src/internal/managedDatabase.ts +331 -0
- package/src/internal/managedService.ts +419 -0
- package/src/internal/migrations.ts +484 -0
- package/src/internal/ops.ts +86 -0
- package/src/internal/ownership.ts +84 -0
- package/src/internal/reference.ts +100 -0
- package/src/internal/scope.ts +84 -0
- package/src/internal/snapshot.ts +170 -0
- package/src/internal/unpaged.ts +29 -0
- package/src/internal/wait.ts +88 -0
- package/src/sdk/credentials.ts +222 -0
- package/src/sdk/errors.ts +125 -0
- package/src/sdk/index.ts +69 -0
- package/src/sdk/pagination.ts +100 -0
- package/src/sdk/protocol.ts +565 -0
- package/src/sdk/retry.ts +50 -0
- package/src/sdk/services/account.ts +1079 -0
- package/src/sdk/services/cloud.ts +38638 -0
- package/src/sdk/services/errors.ts +6182 -0
- package/src/sdk/services/heartbeat.ts +144 -0
- package/src/sdk/services/incidents.ts +25835 -0
- package/src/sdk/services/index.ts +8 -0
- package/src/sdk/services/ingest.ts +383 -0
- package/src/sdk/services/telemetry.ts +14868 -0
- package/src/sdk/traits.ts +77 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type * as Redacted from "effect/Redacted";
|
|
3
|
+
import { type RotateCredentialsProp } from "../internal/connection.ts";
|
|
4
|
+
import type { MigrationsAttributes, MigrationsProps } from "../internal/migrations.ts";
|
|
5
|
+
import type { TeamProp, ZoneAttribute, ZoneProp } from "../internal/scope.ts";
|
|
6
|
+
import type { Providers } from "../Providers.ts";
|
|
7
|
+
import * as Cloud from "../sdk/services/cloud.ts";
|
|
8
|
+
/** Props of {@link Postgres}. */
|
|
9
|
+
export interface PostgresProps extends Omit<Cloud.CreatePostgresRequest, "teamId" | "availabilityZone" | "name" | "type" | "engineVersion" | "database" | "networkIds" | "firewallIds" | "term">, TeamProp, ZoneProp, RotateCredentialsProp, MigrationsProps {
|
|
10
|
+
/**
|
|
11
|
+
* The instance's name, at most 255 characters, unique among the team's
|
|
12
|
+
* PostgreSQL instances that aren't destroyed or failed. Defaults to a
|
|
13
|
+
* unique name generated from the stack, stage and logical id. Changes in
|
|
14
|
+
* place.
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The PostgreSQL type, which sets the instance's size (CPU, memory,
|
|
19
|
+
* storage), such as `PG1`. List the types with the SDK's
|
|
20
|
+
* `listPostgresType` (or `betterstack postgres-type list`). Changes in
|
|
21
|
+
* place: a rescale, waited on until the instance is `running` again on
|
|
22
|
+
* the new type.
|
|
23
|
+
*/
|
|
24
|
+
type: string;
|
|
25
|
+
/**
|
|
26
|
+
* The PostgreSQL major version, such as `17`. Defaults to the newest
|
|
27
|
+
* version offered. List them with the SDK's `listPostgresVersion` (or
|
|
28
|
+
* `betterstack postgres-version list`); `availableEngineVersions` on the
|
|
29
|
+
* attributes says which ones this instance can move to. Changes in place:
|
|
30
|
+
* a major-version upgrade, waited on until the instance is `running` on the
|
|
31
|
+
* new version. An upgrade can't be undone: a lower version is refused by
|
|
32
|
+
* the API.
|
|
33
|
+
*/
|
|
34
|
+
engineVersion?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The name of the first database, created with the instance. Defaults to
|
|
37
|
+
* `defaultdb`. The API never returns it (it is kept from the config), and
|
|
38
|
+
* it can't change: changing it replaces the whole instance, data included.
|
|
39
|
+
* Add more databases with {@link PostgresDatabase}.
|
|
40
|
+
*/
|
|
41
|
+
database?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The IDs of your {@link Network}s attached to every member; they must
|
|
44
|
+
* belong to the instance's team. Changes in place (attach and detach
|
|
45
|
+
* actions). Removing the prop keeps what is attached; `[]` detaches all.
|
|
46
|
+
*/
|
|
47
|
+
networkIds?: ReadonlyArray<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The ID of the {@link Firewall} attached to every member, at most one.
|
|
50
|
+
* Changes in place (the old one is detached before the new one is
|
|
51
|
+
* attached). Removing the prop keeps what is attached; `[]` detaches it.
|
|
52
|
+
*/
|
|
53
|
+
firewallIds?: ReadonlyArray<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The billing term: `monthly` (the default) or `annual`. `annual` commits
|
|
56
|
+
* you to paying for a whole year. A change applies at once and starts a
|
|
57
|
+
* new term.
|
|
58
|
+
*/
|
|
59
|
+
term?: Cloud.CreatePostgresRequestTerm;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Attributes of {@link Postgres}: the instance as the API returns it, plus
|
|
63
|
+
* the connection details: host and ports from its `endpoint`, the `admin`
|
|
64
|
+
* user's credentials and URIs from `GET /v1/postgres/{id}/credentials`.
|
|
65
|
+
*/
|
|
66
|
+
export interface PostgresAttributes extends Omit<Cloud.Postgres, "id">, ZoneAttribute, MigrationsAttributes {
|
|
67
|
+
/** The instance's ID. */
|
|
68
|
+
id: string;
|
|
69
|
+
/**
|
|
70
|
+
* The hostname to connect to from your private networks
|
|
71
|
+
* (`endpoint.hostname`). It follows the current primary.
|
|
72
|
+
*/
|
|
73
|
+
host: string | undefined;
|
|
74
|
+
/** The port for direct connections, `5432` (`endpoint.port`). */
|
|
75
|
+
port: number | undefined;
|
|
76
|
+
/** The port for connections through PgBouncer, `6432` (`endpoint.pooledPort`). */
|
|
77
|
+
pooledPort: number | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* The hostname to connect to from the internet (`endpoint.publicHostname`),
|
|
80
|
+
* `undefined` while `publicAccess` is off. Connections use TLS.
|
|
81
|
+
*/
|
|
82
|
+
publicHost: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* The database the URIs connect to (credentials `database`): `defaultdb`
|
|
85
|
+
* when the instance has it, else its first database by name.
|
|
86
|
+
*/
|
|
87
|
+
database: string | undefined;
|
|
88
|
+
/** The instance's `admin` user (credentials `user`). */
|
|
89
|
+
user: string | undefined;
|
|
90
|
+
/** The `admin` user's password (credentials `password`). */
|
|
91
|
+
password: Redacted.Redacted<string> | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* `postgresql://` URI for direct connections from your private networks,
|
|
94
|
+
* with the password and `sslmode=verify-full` (credentials `uri`).
|
|
95
|
+
*/
|
|
96
|
+
connectionUri: Redacted.Redacted<string> | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* The same through PgBouncer (`pooledPort`, transaction pooling) from your
|
|
99
|
+
* private networks (credentials `pooled_uri`). Prefer it for many short
|
|
100
|
+
* connections (serverless, per-request clients).
|
|
101
|
+
*/
|
|
102
|
+
pooledConnectionUri: Redacted.Redacted<string> | undefined;
|
|
103
|
+
/** Direct connections from the internet, `undefined` while `publicAccess` is off (credentials `public_uri`). */
|
|
104
|
+
publicConnectionUri: Redacted.Redacted<string> | undefined;
|
|
105
|
+
/** Through PgBouncer from the internet, `undefined` while `publicAccess` is off (credentials `public_pooled_uri`). */
|
|
106
|
+
publicPooledConnectionUri: Redacted.Redacted<string> | undefined;
|
|
107
|
+
/** Better Stack's CA certificate (PEM) that signed the server's certificate, for `verify-full`. */
|
|
108
|
+
caCertificate: string | undefined;
|
|
109
|
+
}
|
|
110
|
+
/** Props for {@link Postgres.lookup}: find an instance this stack doesn't manage. */
|
|
111
|
+
export type PostgresLookup = {
|
|
112
|
+
/** The instance's ID. */
|
|
113
|
+
id: string;
|
|
114
|
+
/** Zone it lives in, such as `us-west-2a`. Defaults to the credentials' zone. */
|
|
115
|
+
availabilityZone?: string;
|
|
116
|
+
} | {
|
|
117
|
+
/** The instance's name. Names aren't unique: more than one match fails with `AmbiguousLookup`. */
|
|
118
|
+
name: string;
|
|
119
|
+
/** Zone it lives in, such as `us-west-2a`. Defaults to the credentials' zone. */
|
|
120
|
+
availabilityZone?: string;
|
|
121
|
+
};
|
|
122
|
+
export type Postgres = Resource<"BetterStack.Cloud.Postgres", PostgresProps, PostgresAttributes, never, Providers, PostgresLookup>;
|
|
123
|
+
/**
|
|
124
|
+
* A managed PostgreSQL instance on Better Stack Cloud, with PgBouncer for
|
|
125
|
+
* connection pooling and up to two read replicas. It bills from creation
|
|
126
|
+
* (monthly by default; `term: "annual"` commits a year).
|
|
127
|
+
*
|
|
128
|
+
* The deploy blocks until the instance is `running` (minutes); a `failed`
|
|
129
|
+
* or `degraded` instance fails it with `WaitFailed`, and one still
|
|
130
|
+
* provisioning after 30 minutes with `WaitTimeout` (the work carries on, and
|
|
131
|
+
* the next deploy picks it up). An instance that ends `destroyed` reads as
|
|
132
|
+
* gone, so the wait runs into `WaitTimeout` too.
|
|
133
|
+
*
|
|
134
|
+
* **What outlives a destroy, and keeps billing.** Snapshots outlive their
|
|
135
|
+
* database: removing the instance keeps every snapshot, the ones its
|
|
136
|
+
* {@link PostgresScheduledSnapshot} took included, and they stay billed ("Database snapshots
|
|
137
|
+
* are billed like server snapshots"). This stack doesn't track the scheduled
|
|
138
|
+
* ones (they carry no marker), so `alchemy destroy` and `nuke` leave them:
|
|
139
|
+
* remove them in Databases → Snapshots, or with the SDK's
|
|
140
|
+
* `listFlatPostgresSnapshot` / `deleteFlatPostgresSnapshot`. A {@link PostgresSnapshot}
|
|
141
|
+
* of this stack is deleted with the stack.
|
|
142
|
+
*
|
|
143
|
+
* What changes in place: `name`, `term`, `metadata`, `publicAccess`,
|
|
144
|
+
* `replicaCount` and the PostgreSQL settings (`statementTimeout`,
|
|
145
|
+
* `idleInTransactionSessionTimeout`, `logMinDurationStatement`,
|
|
146
|
+
* `workMemMb`); `type` (a rescale) and `engineVersion` (a major upgrade,
|
|
147
|
+
* one way), each waited on until `running` again; `networkIds` and
|
|
148
|
+
* `firewallIds` (attach/detach). What replaces it: `database`, `teamId`,
|
|
149
|
+
* `availabilityZone`. A replacement that keeps an explicit `name` deletes the
|
|
150
|
+
* old instance first (names are unique among live instances).
|
|
151
|
+
*
|
|
152
|
+
* Networking: the instance is reachable on `host` from the {@link Network}s
|
|
153
|
+
* in `networkIds`; with `publicAccess: true` also on `publicHost` over TLS. A
|
|
154
|
+
* {@link Firewall} in `firewallIds` filters what reaches it.
|
|
155
|
+
*
|
|
156
|
+
* Connection details: `host`, `port`, `pooledPort` and `publicHost` come
|
|
157
|
+
* from the instance's `endpoint`; `user`, `password`, `database`, the
|
|
158
|
+
* connection URIs and `caCertificate` from the credentials endpoint, read
|
|
159
|
+
* once the instance is `running`. Secrets are `Redacted`.
|
|
160
|
+
*
|
|
161
|
+
* Credentials: the deploy never rotates them on its own. Set
|
|
162
|
+
* `rotateCredentials` to a new value to rotate the `admin` password once
|
|
163
|
+
* (open connections keep working, new ones need the new password); a
|
|
164
|
+
* rotation done in the console or CLI is read on the next deploy, without a
|
|
165
|
+
* replace.
|
|
166
|
+
*
|
|
167
|
+
* After delete the API keeps answering the instance with `status:
|
|
168
|
+
* "destroyed"` for a while; that reads as gone. Its databases, users and
|
|
169
|
+
* snapshot schedules go with it.
|
|
170
|
+
*
|
|
171
|
+
* @see https://alchemy.run/sql/effect-sql/migrations/
|
|
172
|
+
* @see https://betterstack.com/docs/cloud/databases/postgresql/
|
|
173
|
+
* **Ownership.** Every object the stack creates carries an `alchemy` entry in its
|
|
174
|
+
* `metadata` (`<stack>/<stage>/<resource id>#<instance>`), added on every write and left out of
|
|
175
|
+
* the attributes and of diffs; your own keys are untouched (it takes one of the 10
|
|
176
|
+
* slots). A deploy that lost track of an object it created (a create that failed or
|
|
177
|
+
* timed out after the API accepted it) finds it by that marker and converges it
|
|
178
|
+
* instead of creating another; `list` (and so `alchemy nuke`) returns only
|
|
179
|
+
* Alchemy-created objects; an object with the same name but no marker of this
|
|
180
|
+
* resource is taken over only with `--adopt`.
|
|
181
|
+
*
|
|
182
|
+
* @see https://betterstack.com/docs/cloud/api/postgreses/credentials-postgres/
|
|
183
|
+
*
|
|
184
|
+
* ### Creating an instance
|
|
185
|
+
* **Example:** The smallest instance, on a private network
|
|
186
|
+
* ```typescript
|
|
187
|
+
* const network = yield* BetterStack.Cloud.Network("private", {
|
|
188
|
+
* ipPrefix: "10.0.0.0",
|
|
189
|
+
* ipPrefixLength: 24,
|
|
190
|
+
* });
|
|
191
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", {
|
|
192
|
+
* type: "PG1",
|
|
193
|
+
* database: "app",
|
|
194
|
+
* networkIds: [network.id],
|
|
195
|
+
* });
|
|
196
|
+
* ```
|
|
197
|
+
*
|
|
198
|
+
* **Example:** Tuned, with a replica and public TLS access
|
|
199
|
+
* ```typescript
|
|
200
|
+
* yield* BetterStack.Cloud.Postgres("analytics", {
|
|
201
|
+
* type: "PG2",
|
|
202
|
+
* engineVersion: "17",
|
|
203
|
+
* replicaCount: 1,
|
|
204
|
+
* publicAccess: true,
|
|
205
|
+
* statementTimeout: 30_000,
|
|
206
|
+
* metadata: { team: "data" },
|
|
207
|
+
* });
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* ### Connecting
|
|
211
|
+
* Which URI: `connectionUri` connects directly (port `5432`) from the
|
|
212
|
+
* instance's private networks — use it for migrations, long-lived pools and
|
|
213
|
+
* session features (`LISTEN`, prepared statements across transactions).
|
|
214
|
+
* `pooledConnectionUri` goes through PgBouncer (port `6432`) — use it for
|
|
215
|
+
* many short connections. The `public*` variants are the same over the
|
|
216
|
+
* internet, only with `publicAccess: true` (TLS, `sslmode=verify-full`
|
|
217
|
+
* against `caCertificate`). All URIs carry the password and are `Redacted`.
|
|
218
|
+
*
|
|
219
|
+
* **Example:** A `Cloud.Service` reading the URI from its environment
|
|
220
|
+
* ```typescript
|
|
221
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", { type: "PG1", networkIds: [network.id] });
|
|
222
|
+
* // In the Service's props: env: { DATABASE_URL: db.pooledConnectionUri }
|
|
223
|
+
* // In its program: const url = yield* Config.Redacted("DATABASE_URL");
|
|
224
|
+
* ```
|
|
225
|
+
*
|
|
226
|
+
* **Example:** The parts, for a client configured field by field
|
|
227
|
+
* ```typescript
|
|
228
|
+
* const env = {
|
|
229
|
+
* PGHOST: db.host,
|
|
230
|
+
* PGPORT: db.port,
|
|
231
|
+
* PGDATABASE: db.database,
|
|
232
|
+
* PGUSER: db.user,
|
|
233
|
+
* PGPASSWORD: db.password,
|
|
234
|
+
* PGSSLMODE: "verify-full",
|
|
235
|
+
* };
|
|
236
|
+
* ```
|
|
237
|
+
*
|
|
238
|
+
* ### Rotating the password
|
|
239
|
+
* **Example:** Rotate once by changing the value
|
|
240
|
+
* ```typescript
|
|
241
|
+
* yield* BetterStack.Cloud.Postgres("db", { type: "PG1", rotateCredentials: "2026-12" });
|
|
242
|
+
* ```
|
|
243
|
+
*
|
|
244
|
+
* ### Rescaling and upgrading
|
|
245
|
+
* **Example:** Change the type and the major version in place
|
|
246
|
+
* ```typescript
|
|
247
|
+
* yield* BetterStack.Cloud.Postgres("db", { type: "PG2", engineVersion: "18", database: "app" });
|
|
248
|
+
* ```
|
|
249
|
+
*
|
|
250
|
+
* ### Migrations
|
|
251
|
+
* `migrations` applies SQL migrations on every deploy, after the instance
|
|
252
|
+
* is `running` and its credentials are read, through Alchemy's shared engine
|
|
253
|
+
* (`@alchemy.run/sql/Migrations`; install it and `pg` — optional peer
|
|
254
|
+
* dependencies). The deploying machine connects over the PUBLIC endpoint
|
|
255
|
+
* (`publicConnectionUri`) as the admin user, TLS verified against
|
|
256
|
+
* `caCertificate`, so the instance needs `publicAccess: true` and a
|
|
257
|
+
* {@link Firewall} rule admitting that machine on TCP 5432; nothing is
|
|
258
|
+
* opened for you. Without them the deploy fails with the typed
|
|
259
|
+
* `MigrationsUnreachable` (`reason: "no-public-endpoint"` or
|
|
260
|
+
* `"connection-failed"`) saying what to set. A deploy connects only when a
|
|
261
|
+
* file is pending (compared with `migrationsHashes`), so once the directory is
|
|
262
|
+
* applied you can turn `publicAccess` off (or drop the firewall rule) and
|
|
263
|
+
* keep deploying other changes; turn it on again for the next migration.
|
|
264
|
+
*
|
|
265
|
+
* Each file runs once, in name order, its statements and its row in the
|
|
266
|
+
* `__alchemy_migrations` table in one transaction; `migrationsHashes`
|
|
267
|
+
* records them, so an unchanged directory is a no-op and a new file is an
|
|
268
|
+
* in-place update (never a replace). History is forward-only: editing or
|
|
269
|
+
* deleting an applied file fails the deploy with
|
|
270
|
+
* `RewrittenMigrationHistoryError`, and a new file that sorts before an
|
|
271
|
+
* applied one with `NonLinearMigrationHistoryError` — add a new migration
|
|
272
|
+
* instead. A failed migration rolls back and leaves the earlier ones
|
|
273
|
+
* applied; fix it and deploy again. Directories written by drizzle-kit or
|
|
274
|
+
* Prisma work as they are, and `migrations` also takes a `Drizzle.Schema`.
|
|
275
|
+
*
|
|
276
|
+
* **Example:** Migrations from this machine, the app on the private network
|
|
277
|
+
* ```typescript
|
|
278
|
+
* const firewall = yield* BetterStack.Cloud.Firewall("db-access", {});
|
|
279
|
+
* yield* BetterStack.Cloud.FirewallRule("deployer", {
|
|
280
|
+
* firewallId: firewall.id,
|
|
281
|
+
* direction: "inbound",
|
|
282
|
+
* protocol: "tcp",
|
|
283
|
+
* portFrom: 5432,
|
|
284
|
+
* ipAddresses: ["203.0.113.7/32"], // the deploying machine
|
|
285
|
+
* });
|
|
286
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", {
|
|
287
|
+
* type: "PG1",
|
|
288
|
+
* publicAccess: true,
|
|
289
|
+
* firewallIds: [firewall.id],
|
|
290
|
+
* networkIds: [network.id],
|
|
291
|
+
* migrations: "./migrations",
|
|
292
|
+
* });
|
|
293
|
+
* // A Cloud.Service on the same network: env: { DATABASE_URL: db.connectionUri }
|
|
294
|
+
* ```
|
|
295
|
+
*
|
|
296
|
+
* Without public access, run the migrations where the database is
|
|
297
|
+
* reachable instead: leave `migrations` out and apply them at startup of a
|
|
298
|
+
* `Cloud.Service` on the instance's network (with `@alchemy.run/sql`'s
|
|
299
|
+
* `withPgExecutor`/`withMySqlExecutor` and `runMigrations` over
|
|
300
|
+
* `connectionUri`), or from CI with network access.
|
|
301
|
+
*
|
|
302
|
+
* ### Looking up an existing instance
|
|
303
|
+
* **Example:** Reference an instance by id
|
|
304
|
+
* ```typescript
|
|
305
|
+
* const existing = BetterStack.Cloud.Postgres.lookup({ id: "42" });
|
|
306
|
+
* ```
|
|
307
|
+
*
|
|
308
|
+
* **Example:** Reference an instance by name (fails with `AmbiguousLookup` when several share it)
|
|
309
|
+
* ```typescript
|
|
310
|
+
* const byName = BetterStack.Cloud.Postgres.lookup({ name: "app-db" });
|
|
311
|
+
* ```
|
|
312
|
+
*
|
|
313
|
+
* @resource
|
|
314
|
+
* @product Cloud
|
|
315
|
+
*/
|
|
316
|
+
export declare const Postgres: import("alchemy/Resource").ResourceClass<Postgres>;
|
|
317
|
+
export declare const PostgresProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<Postgres>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
318
|
+
/** The attributes {@link postgresCredentials} sets (shared with {@link PostgresUser}). */
|
|
319
|
+
export declare const POSTGRES_CREDENTIAL_KEYS: readonly ["user", "password", "database", "connectionUri", "pooledConnectionUri", "publicConnectionUri", "publicPooledConnectionUri", "caCertificate"];
|
|
320
|
+
/** A Postgres credentials document (an instance's or a user's) as attributes. */
|
|
321
|
+
export declare const postgresCredentials: (credentials: Cloud.CredentialsPostgresResponse) => {
|
|
322
|
+
user: string | undefined;
|
|
323
|
+
password: Redacted.Redacted<string> | undefined;
|
|
324
|
+
database: string | undefined;
|
|
325
|
+
connectionUri: Redacted.Redacted<string> | undefined;
|
|
326
|
+
pooledConnectionUri: Redacted.Redacted<string> | undefined;
|
|
327
|
+
publicConnectionUri: Redacted.Redacted<string> | undefined;
|
|
328
|
+
publicPooledConnectionUri: Redacted.Redacted<string> | undefined;
|
|
329
|
+
caCertificate: string | undefined;
|
|
330
|
+
};
|
|
331
|
+
//# sourceMappingURL=Postgres.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Postgres.d.ts","sourceRoot":"","sources":["../../src/Cloud/Postgres.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { present, redacted } from "../internal/connection.js";
|
|
3
|
+
import { managedDatabase } from "../internal/managedDatabase.js";
|
|
4
|
+
import * as Cloud from "../sdk/services/cloud.js";
|
|
5
|
+
/**
|
|
6
|
+
* A managed PostgreSQL instance on Better Stack Cloud, with PgBouncer for
|
|
7
|
+
* connection pooling and up to two read replicas. It bills from creation
|
|
8
|
+
* (monthly by default; `term: "annual"` commits a year).
|
|
9
|
+
*
|
|
10
|
+
* The deploy blocks until the instance is `running` (minutes); a `failed`
|
|
11
|
+
* or `degraded` instance fails it with `WaitFailed`, and one still
|
|
12
|
+
* provisioning after 30 minutes with `WaitTimeout` (the work carries on, and
|
|
13
|
+
* the next deploy picks it up). An instance that ends `destroyed` reads as
|
|
14
|
+
* gone, so the wait runs into `WaitTimeout` too.
|
|
15
|
+
*
|
|
16
|
+
* **What outlives a destroy, and keeps billing.** Snapshots outlive their
|
|
17
|
+
* database: removing the instance keeps every snapshot, the ones its
|
|
18
|
+
* {@link PostgresScheduledSnapshot} took included, and they stay billed ("Database snapshots
|
|
19
|
+
* are billed like server snapshots"). This stack doesn't track the scheduled
|
|
20
|
+
* ones (they carry no marker), so `alchemy destroy` and `nuke` leave them:
|
|
21
|
+
* remove them in Databases → Snapshots, or with the SDK's
|
|
22
|
+
* `listFlatPostgresSnapshot` / `deleteFlatPostgresSnapshot`. A {@link PostgresSnapshot}
|
|
23
|
+
* of this stack is deleted with the stack.
|
|
24
|
+
*
|
|
25
|
+
* What changes in place: `name`, `term`, `metadata`, `publicAccess`,
|
|
26
|
+
* `replicaCount` and the PostgreSQL settings (`statementTimeout`,
|
|
27
|
+
* `idleInTransactionSessionTimeout`, `logMinDurationStatement`,
|
|
28
|
+
* `workMemMb`); `type` (a rescale) and `engineVersion` (a major upgrade,
|
|
29
|
+
* one way), each waited on until `running` again; `networkIds` and
|
|
30
|
+
* `firewallIds` (attach/detach). What replaces it: `database`, `teamId`,
|
|
31
|
+
* `availabilityZone`. A replacement that keeps an explicit `name` deletes the
|
|
32
|
+
* old instance first (names are unique among live instances).
|
|
33
|
+
*
|
|
34
|
+
* Networking: the instance is reachable on `host` from the {@link Network}s
|
|
35
|
+
* in `networkIds`; with `publicAccess: true` also on `publicHost` over TLS. A
|
|
36
|
+
* {@link Firewall} in `firewallIds` filters what reaches it.
|
|
37
|
+
*
|
|
38
|
+
* Connection details: `host`, `port`, `pooledPort` and `publicHost` come
|
|
39
|
+
* from the instance's `endpoint`; `user`, `password`, `database`, the
|
|
40
|
+
* connection URIs and `caCertificate` from the credentials endpoint, read
|
|
41
|
+
* once the instance is `running`. Secrets are `Redacted`.
|
|
42
|
+
*
|
|
43
|
+
* Credentials: the deploy never rotates them on its own. Set
|
|
44
|
+
* `rotateCredentials` to a new value to rotate the `admin` password once
|
|
45
|
+
* (open connections keep working, new ones need the new password); a
|
|
46
|
+
* rotation done in the console or CLI is read on the next deploy, without a
|
|
47
|
+
* replace.
|
|
48
|
+
*
|
|
49
|
+
* After delete the API keeps answering the instance with `status:
|
|
50
|
+
* "destroyed"` for a while; that reads as gone. Its databases, users and
|
|
51
|
+
* snapshot schedules go with it.
|
|
52
|
+
*
|
|
53
|
+
* @see https://alchemy.run/sql/effect-sql/migrations/
|
|
54
|
+
* @see https://betterstack.com/docs/cloud/databases/postgresql/
|
|
55
|
+
* **Ownership.** Every object the stack creates carries an `alchemy` entry in its
|
|
56
|
+
* `metadata` (`<stack>/<stage>/<resource id>#<instance>`), added on every write and left out of
|
|
57
|
+
* the attributes and of diffs; your own keys are untouched (it takes one of the 10
|
|
58
|
+
* slots). A deploy that lost track of an object it created (a create that failed or
|
|
59
|
+
* timed out after the API accepted it) finds it by that marker and converges it
|
|
60
|
+
* instead of creating another; `list` (and so `alchemy nuke`) returns only
|
|
61
|
+
* Alchemy-created objects; an object with the same name but no marker of this
|
|
62
|
+
* resource is taken over only with `--adopt`.
|
|
63
|
+
*
|
|
64
|
+
* @see https://betterstack.com/docs/cloud/api/postgreses/credentials-postgres/
|
|
65
|
+
*
|
|
66
|
+
* ### Creating an instance
|
|
67
|
+
* **Example:** The smallest instance, on a private network
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const network = yield* BetterStack.Cloud.Network("private", {
|
|
70
|
+
* ipPrefix: "10.0.0.0",
|
|
71
|
+
* ipPrefixLength: 24,
|
|
72
|
+
* });
|
|
73
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", {
|
|
74
|
+
* type: "PG1",
|
|
75
|
+
* database: "app",
|
|
76
|
+
* networkIds: [network.id],
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* **Example:** Tuned, with a replica and public TLS access
|
|
81
|
+
* ```typescript
|
|
82
|
+
* yield* BetterStack.Cloud.Postgres("analytics", {
|
|
83
|
+
* type: "PG2",
|
|
84
|
+
* engineVersion: "17",
|
|
85
|
+
* replicaCount: 1,
|
|
86
|
+
* publicAccess: true,
|
|
87
|
+
* statementTimeout: 30_000,
|
|
88
|
+
* metadata: { team: "data" },
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* ### Connecting
|
|
93
|
+
* Which URI: `connectionUri` connects directly (port `5432`) from the
|
|
94
|
+
* instance's private networks — use it for migrations, long-lived pools and
|
|
95
|
+
* session features (`LISTEN`, prepared statements across transactions).
|
|
96
|
+
* `pooledConnectionUri` goes through PgBouncer (port `6432`) — use it for
|
|
97
|
+
* many short connections. The `public*` variants are the same over the
|
|
98
|
+
* internet, only with `publicAccess: true` (TLS, `sslmode=verify-full`
|
|
99
|
+
* against `caCertificate`). All URIs carry the password and are `Redacted`.
|
|
100
|
+
*
|
|
101
|
+
* **Example:** A `Cloud.Service` reading the URI from its environment
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", { type: "PG1", networkIds: [network.id] });
|
|
104
|
+
* // In the Service's props: env: { DATABASE_URL: db.pooledConnectionUri }
|
|
105
|
+
* // In its program: const url = yield* Config.Redacted("DATABASE_URL");
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* **Example:** The parts, for a client configured field by field
|
|
109
|
+
* ```typescript
|
|
110
|
+
* const env = {
|
|
111
|
+
* PGHOST: db.host,
|
|
112
|
+
* PGPORT: db.port,
|
|
113
|
+
* PGDATABASE: db.database,
|
|
114
|
+
* PGUSER: db.user,
|
|
115
|
+
* PGPASSWORD: db.password,
|
|
116
|
+
* PGSSLMODE: "verify-full",
|
|
117
|
+
* };
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* ### Rotating the password
|
|
121
|
+
* **Example:** Rotate once by changing the value
|
|
122
|
+
* ```typescript
|
|
123
|
+
* yield* BetterStack.Cloud.Postgres("db", { type: "PG1", rotateCredentials: "2026-12" });
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* ### Rescaling and upgrading
|
|
127
|
+
* **Example:** Change the type and the major version in place
|
|
128
|
+
* ```typescript
|
|
129
|
+
* yield* BetterStack.Cloud.Postgres("db", { type: "PG2", engineVersion: "18", database: "app" });
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* ### Migrations
|
|
133
|
+
* `migrations` applies SQL migrations on every deploy, after the instance
|
|
134
|
+
* is `running` and its credentials are read, through Alchemy's shared engine
|
|
135
|
+
* (`@alchemy.run/sql/Migrations`; install it and `pg` — optional peer
|
|
136
|
+
* dependencies). The deploying machine connects over the PUBLIC endpoint
|
|
137
|
+
* (`publicConnectionUri`) as the admin user, TLS verified against
|
|
138
|
+
* `caCertificate`, so the instance needs `publicAccess: true` and a
|
|
139
|
+
* {@link Firewall} rule admitting that machine on TCP 5432; nothing is
|
|
140
|
+
* opened for you. Without them the deploy fails with the typed
|
|
141
|
+
* `MigrationsUnreachable` (`reason: "no-public-endpoint"` or
|
|
142
|
+
* `"connection-failed"`) saying what to set. A deploy connects only when a
|
|
143
|
+
* file is pending (compared with `migrationsHashes`), so once the directory is
|
|
144
|
+
* applied you can turn `publicAccess` off (or drop the firewall rule) and
|
|
145
|
+
* keep deploying other changes; turn it on again for the next migration.
|
|
146
|
+
*
|
|
147
|
+
* Each file runs once, in name order, its statements and its row in the
|
|
148
|
+
* `__alchemy_migrations` table in one transaction; `migrationsHashes`
|
|
149
|
+
* records them, so an unchanged directory is a no-op and a new file is an
|
|
150
|
+
* in-place update (never a replace). History is forward-only: editing or
|
|
151
|
+
* deleting an applied file fails the deploy with
|
|
152
|
+
* `RewrittenMigrationHistoryError`, and a new file that sorts before an
|
|
153
|
+
* applied one with `NonLinearMigrationHistoryError` — add a new migration
|
|
154
|
+
* instead. A failed migration rolls back and leaves the earlier ones
|
|
155
|
+
* applied; fix it and deploy again. Directories written by drizzle-kit or
|
|
156
|
+
* Prisma work as they are, and `migrations` also takes a `Drizzle.Schema`.
|
|
157
|
+
*
|
|
158
|
+
* **Example:** Migrations from this machine, the app on the private network
|
|
159
|
+
* ```typescript
|
|
160
|
+
* const firewall = yield* BetterStack.Cloud.Firewall("db-access", {});
|
|
161
|
+
* yield* BetterStack.Cloud.FirewallRule("deployer", {
|
|
162
|
+
* firewallId: firewall.id,
|
|
163
|
+
* direction: "inbound",
|
|
164
|
+
* protocol: "tcp",
|
|
165
|
+
* portFrom: 5432,
|
|
166
|
+
* ipAddresses: ["203.0.113.7/32"], // the deploying machine
|
|
167
|
+
* });
|
|
168
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", {
|
|
169
|
+
* type: "PG1",
|
|
170
|
+
* publicAccess: true,
|
|
171
|
+
* firewallIds: [firewall.id],
|
|
172
|
+
* networkIds: [network.id],
|
|
173
|
+
* migrations: "./migrations",
|
|
174
|
+
* });
|
|
175
|
+
* // A Cloud.Service on the same network: env: { DATABASE_URL: db.connectionUri }
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
178
|
+
* Without public access, run the migrations where the database is
|
|
179
|
+
* reachable instead: leave `migrations` out and apply them at startup of a
|
|
180
|
+
* `Cloud.Service` on the instance's network (with `@alchemy.run/sql`'s
|
|
181
|
+
* `withPgExecutor`/`withMySqlExecutor` and `runMigrations` over
|
|
182
|
+
* `connectionUri`), or from CI with network access.
|
|
183
|
+
*
|
|
184
|
+
* ### Looking up an existing instance
|
|
185
|
+
* **Example:** Reference an instance by id
|
|
186
|
+
* ```typescript
|
|
187
|
+
* const existing = BetterStack.Cloud.Postgres.lookup({ id: "42" });
|
|
188
|
+
* ```
|
|
189
|
+
*
|
|
190
|
+
* **Example:** Reference an instance by name (fails with `AmbiguousLookup` when several share it)
|
|
191
|
+
* ```typescript
|
|
192
|
+
* const byName = BetterStack.Cloud.Postgres.lookup({ name: "app-db" });
|
|
193
|
+
* ```
|
|
194
|
+
*
|
|
195
|
+
* @resource
|
|
196
|
+
* @product Cloud
|
|
197
|
+
*/
|
|
198
|
+
export const Postgres = Resource("BetterStack.Cloud.Postgres");
|
|
199
|
+
export const PostgresProvider = () => managedDatabase(Postgres, {
|
|
200
|
+
ops: {
|
|
201
|
+
create: Cloud.createPostgres,
|
|
202
|
+
read: Cloud.getPostgres,
|
|
203
|
+
update: Cloud.updatePostgres,
|
|
204
|
+
delete: Cloud.deletePostgres,
|
|
205
|
+
list: Cloud.listPostgres,
|
|
206
|
+
rescale: Cloud.rescalePostgres,
|
|
207
|
+
upgrade: Cloud.upgradePostgres,
|
|
208
|
+
addNetwork: Cloud.addPostgresNetwork,
|
|
209
|
+
removeNetwork: Cloud.removePostgresNetwork,
|
|
210
|
+
addFirewall: Cloud.addPostgresFirewall,
|
|
211
|
+
removeFirewall: Cloud.removePostgresFirewall,
|
|
212
|
+
},
|
|
213
|
+
connection: (postgres, props) => {
|
|
214
|
+
const databases = postgres.databases ?? [];
|
|
215
|
+
return {
|
|
216
|
+
host: postgres.endpoint?.hostname,
|
|
217
|
+
port: postgres.endpoint?.port,
|
|
218
|
+
pooledPort: postgres.endpoint?.pooledPort,
|
|
219
|
+
publicHost: postgres.endpoint?.publicHostname ?? undefined,
|
|
220
|
+
database: props?.database ?? (databases.includes("defaultdb") ? "defaultdb" : databases[0]),
|
|
221
|
+
user: postgres.users?.find((user) => user.defaultUser)?.username,
|
|
222
|
+
};
|
|
223
|
+
},
|
|
224
|
+
lookup: { match: (lookup, instance) => "name" in lookup && instance.name === lookup.name },
|
|
225
|
+
migrations: { dialect: "postgres" },
|
|
226
|
+
credentials: {
|
|
227
|
+
fetch: ({ id, availabilityZone }) => Cloud.credentialsPostgres({ id, availabilityZone }),
|
|
228
|
+
rotate: ({ id, availabilityZone }) => Cloud.rotateCredentialsPostgres({ id, availabilityZone }),
|
|
229
|
+
keys: POSTGRES_CREDENTIAL_KEYS,
|
|
230
|
+
toAttributes: postgresCredentials,
|
|
231
|
+
},
|
|
232
|
+
});
|
|
233
|
+
/** The attributes {@link postgresCredentials} sets (shared with {@link PostgresUser}). */
|
|
234
|
+
export const POSTGRES_CREDENTIAL_KEYS = [
|
|
235
|
+
"user",
|
|
236
|
+
"password",
|
|
237
|
+
"database",
|
|
238
|
+
"connectionUri",
|
|
239
|
+
"pooledConnectionUri",
|
|
240
|
+
"publicConnectionUri",
|
|
241
|
+
"publicPooledConnectionUri",
|
|
242
|
+
"caCertificate",
|
|
243
|
+
];
|
|
244
|
+
/** A Postgres credentials document (an instance's or a user's) as attributes. */
|
|
245
|
+
export const postgresCredentials = (credentials) => ({
|
|
246
|
+
user: credentials.user,
|
|
247
|
+
password: redacted(credentials.password),
|
|
248
|
+
database: credentials.database,
|
|
249
|
+
connectionUri: redacted(credentials.uri),
|
|
250
|
+
pooledConnectionUri: redacted(credentials.pooledUri),
|
|
251
|
+
publicConnectionUri: redacted(credentials.publicUri),
|
|
252
|
+
publicPooledConnectionUri: redacted(credentials.publicPooledUri),
|
|
253
|
+
caCertificate: present(credentials.caCertificate),
|
|
254
|
+
});
|
|
255
|
+
//# sourceMappingURL=Postgres.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Postgres.js","sourceRoot":"","sources":["../../src/Cloud/Postgres.ts"],"names":[],"mappings":"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"}
|