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,241 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Data from "effect/Data";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Stream from "effect/Stream";
|
|
5
|
+
import { crud } from "../internal/crud.ts";
|
|
6
|
+
import { rejectedFields } from "../internal/fields.ts";
|
|
7
|
+
import { wrapOp } from "../internal/ops.ts";
|
|
8
|
+
import type { TeamProp, ZoneAttribute, ZoneProp } from "../internal/scope.ts";
|
|
9
|
+
import type { Providers } from "../Providers.ts";
|
|
10
|
+
import * as Cloud from "../sdk/services/cloud.ts";
|
|
11
|
+
|
|
12
|
+
/** Props of {@link SshKey}. */
|
|
13
|
+
export interface SshKeyProps
|
|
14
|
+
extends
|
|
15
|
+
Omit<Cloud.CreateSshKeyRequest, "teamId" | "availabilityZone" | "slug">,
|
|
16
|
+
TeamProp,
|
|
17
|
+
ZoneProp {
|
|
18
|
+
/**
|
|
19
|
+
* The key's name, unique in its team: up to 255 characters, starting and
|
|
20
|
+
* ending with a letter or digit, with dots, hyphens and underscores in
|
|
21
|
+
* between. Defaults to a unique name generated from the stack, stage and
|
|
22
|
+
* logical id. Changing it replaces the key.
|
|
23
|
+
*/
|
|
24
|
+
slug?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Attributes of {@link SshKey}. */
|
|
28
|
+
export interface SshKeyAttributes extends Omit<Cloud.SshKey, "slug">, ZoneAttribute {
|
|
29
|
+
/** The key's name, unique in its team. It identifies the key. */
|
|
30
|
+
slug: string;
|
|
31
|
+
/** The servers the key was attached to by this stack (the API never returns them). */
|
|
32
|
+
serverIds?: ReadonlyArray<string> | undefined;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** Props for {@link SshKey.lookup}: find a key this stack doesn't manage. */
|
|
36
|
+
export interface SshKeyLookup {
|
|
37
|
+
/** The key's slug. */
|
|
38
|
+
slug: string;
|
|
39
|
+
/** Zone to look in, such as `us-west-2a`. Keys exist in every zone. Defaults to the credentials' zone. */
|
|
40
|
+
availabilityZone?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The key can't be deleted yet: a server still lists it, and detaching it
|
|
45
|
+
* there isn't possible — typically a server destroyed OUTSIDE the stack
|
|
46
|
+
* (console, API): its record keeps the key until Better Stack purges it, and
|
|
47
|
+
* a detach of a destroyed server answers 404 (live, 2026-12-01). `holders`
|
|
48
|
+
* names the servers that still list the key. The state row stays: run
|
|
49
|
+
* `destroy` again later and it succeeds once the record is purged.
|
|
50
|
+
*/
|
|
51
|
+
export class SshKeyHeld extends Data.TaggedError("SshKeyHeld")<{
|
|
52
|
+
readonly message: string;
|
|
53
|
+
readonly slug: string;
|
|
54
|
+
readonly holders: ReadonlyArray<{
|
|
55
|
+
readonly id: string;
|
|
56
|
+
readonly name?: string;
|
|
57
|
+
readonly status?: string;
|
|
58
|
+
}>;
|
|
59
|
+
}> {}
|
|
60
|
+
|
|
61
|
+
/** The servers (destroyed ones included, as the API lists them) that still list `slug`. */
|
|
62
|
+
const holdersOf = (slug: string, availabilityZone: string | undefined) =>
|
|
63
|
+
Cloud.listServer.items({ availabilityZone }).pipe(
|
|
64
|
+
Stream.filter((server) => (server.sshKeys ?? []).map(String).includes(slug)),
|
|
65
|
+
Stream.map((server) => ({ id: String(server.id), name: server.name, status: server.status })),
|
|
66
|
+
Stream.runCollect,
|
|
67
|
+
Effect.map((items) => Array.from(items)),
|
|
68
|
+
Effect.orElseSucceed(() => []),
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* `delete_ssh_key`, with a refusal because a server still holds the key
|
|
73
|
+
* turned into the explanatory {@link SshKeyHeld} (retried within the delete
|
|
74
|
+
* budget like the refusal itself).
|
|
75
|
+
*/
|
|
76
|
+
const deleteSshKey = wrapOp(Cloud.deleteSshKey, (input: Cloud.DeleteSshKeyRequest) =>
|
|
77
|
+
Cloud.deleteSshKey(input).pipe(
|
|
78
|
+
Effect.catchTag("SshKeyInUse", () =>
|
|
79
|
+
Effect.flatMap(holdersOf(input.slug, input.availabilityZone), (holders) =>
|
|
80
|
+
Effect.fail(
|
|
81
|
+
new SshKeyHeld({
|
|
82
|
+
slug: input.slug,
|
|
83
|
+
holders,
|
|
84
|
+
message: `SSH key '${input.slug}' is still held by ${
|
|
85
|
+
holders.length > 0
|
|
86
|
+
? holders
|
|
87
|
+
.map(
|
|
88
|
+
(h) =>
|
|
89
|
+
`server ${h.id}${h.name ? ` (${h.name})` : ""}${h.status ? `, ${h.status}` : ""}`,
|
|
90
|
+
)
|
|
91
|
+
.join("; ")
|
|
92
|
+
: "a server the API no longer lists"
|
|
93
|
+
}. A destroyed server keeps its keys until Better Stack purges its record and can't be detached from; destroy will succeed once Better Stack purges that record, so run it again later.`,
|
|
94
|
+
}),
|
|
95
|
+
),
|
|
96
|
+
),
|
|
97
|
+
),
|
|
98
|
+
),
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
export type SshKey = Resource<
|
|
102
|
+
"BetterStack.Cloud.SshKey",
|
|
103
|
+
SshKeyProps,
|
|
104
|
+
SshKeyAttributes,
|
|
105
|
+
never,
|
|
106
|
+
Providers,
|
|
107
|
+
SshKeyLookup
|
|
108
|
+
>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* An SSH key for the root user of Better Stack Cloud servers. It is added to
|
|
112
|
+
* a server when the server is created, or later through `serverIds` (attach
|
|
113
|
+
* and detach run as their own API actions, in place).
|
|
114
|
+
*
|
|
115
|
+
* Keys are global to the team: a key created in one zone exists in every
|
|
116
|
+
* zone. `publicKey`, `slug` and `teamId` can't change: changing one replaces
|
|
117
|
+
* the key. A deleted key's slug stays taken until the delete finishes in
|
|
118
|
+
* every zone, so replacing a key that keeps an explicit `slug` deletes the
|
|
119
|
+
* old key first and retries the create (for up to 2 minutes) while the API
|
|
120
|
+
* rejects that slug; leave `slug` out to get a fresh generated one instead.
|
|
121
|
+
*
|
|
122
|
+
* **Deleting.** The API refuses to delete a key any server still has, so
|
|
123
|
+
* the delete first detaches it from every server (`detach` with `all:
|
|
124
|
+
* true`), then deletes, retrying for up to 2 minutes. A server destroyed
|
|
125
|
+
* outside the stack keeps listing its keys until Better Stack purges its
|
|
126
|
+
* record and can't be detached from: then the delete fails with
|
|
127
|
+
* {@link SshKeyHeld} naming that server, the state row stays, and a later
|
|
128
|
+
* `destroy` succeeds once the record is gone (observed live, 2026-12-01).
|
|
129
|
+
*
|
|
130
|
+
* **Ownership.** Every object the stack creates carries an `alchemy` entry in its
|
|
131
|
+
* `metadata` (`<stack>/<stage>/<resource id>#<instance>`), added on every write and left out of
|
|
132
|
+
* the attributes and of diffs; your own keys are untouched (it takes one of the 10
|
|
133
|
+
* slots). A deploy that lost track of an object it created (a create that failed or
|
|
134
|
+
* was interrupted after the API accepted it) finds it by that marker and converges
|
|
135
|
+
* it instead of creating another; `list` (and so `alchemy nuke`) returns only
|
|
136
|
+
* Alchemy-created objects; an object that matches but carries no marker of this
|
|
137
|
+
* resource is taken over only with `--adopt`.
|
|
138
|
+
*
|
|
139
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
140
|
+
*
|
|
141
|
+
* ### Creating an SSH key
|
|
142
|
+
* **Example:** Generated slug
|
|
143
|
+
* ```typescript
|
|
144
|
+
* const key = yield* BetterStack.Cloud.SshKey("deploy", {
|
|
145
|
+
* publicKey: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com",
|
|
146
|
+
* });
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* **Example:** Explicit slug and tags
|
|
150
|
+
* ```typescript
|
|
151
|
+
* yield* BetterStack.Cloud.SshKey("laptop", {
|
|
152
|
+
* slug: "my-laptop",
|
|
153
|
+
* publicKey: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com",
|
|
154
|
+
* metadata: { owner: "platform" },
|
|
155
|
+
* });
|
|
156
|
+
* ```
|
|
157
|
+
*
|
|
158
|
+
* ### Attaching to servers
|
|
159
|
+
* **Example:** Add the key to running servers
|
|
160
|
+
* ```typescript
|
|
161
|
+
* yield* BetterStack.Cloud.SshKey("ops", {
|
|
162
|
+
* publicKey: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com",
|
|
163
|
+
* serverIds: ["srv_123"],
|
|
164
|
+
* });
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* ### Looking up an existing key
|
|
168
|
+
* **Example:** Reference a key by slug
|
|
169
|
+
* ```typescript
|
|
170
|
+
* const existing = BetterStack.Cloud.SshKey.lookup({ slug: "my-laptop" });
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* @resource
|
|
174
|
+
* @product Cloud
|
|
175
|
+
*/
|
|
176
|
+
export const SshKey = Resource<SshKey>("BetterStack.Cloud.SshKey");
|
|
177
|
+
|
|
178
|
+
export const SshKeyProvider = () =>
|
|
179
|
+
crud(SshKey, {
|
|
180
|
+
ops: {
|
|
181
|
+
create: Cloud.createSshKey,
|
|
182
|
+
read: Cloud.getSshKey,
|
|
183
|
+
update: Cloud.updateSshKey,
|
|
184
|
+
delete: deleteSshKey,
|
|
185
|
+
list: Cloud.listSshKey,
|
|
186
|
+
},
|
|
187
|
+
key: (key) => ({ slug: key.slug }),
|
|
188
|
+
// Ownership: an `alchemy` marker in `metadata` (see the Ownership note in the JSDoc).
|
|
189
|
+
owner: { metadata: "metadata" },
|
|
190
|
+
physicalName: { prop: "slug" },
|
|
191
|
+
// An explicit slug must be freed before the replacement can take it.
|
|
192
|
+
deleteFirst: (news, olds) => news.slug !== undefined && news.slug === olds.slug,
|
|
193
|
+
retryCreate: {
|
|
194
|
+
// Only a `ValidationFailed` (422 `validation_failed`) on `slug` itself, and only for a slug
|
|
195
|
+
// the config pins: the docs give a taken slug no code of its own, so `details` names it.
|
|
196
|
+
while: (error, props) =>
|
|
197
|
+
error._tag === "ValidationFailed" &&
|
|
198
|
+
props.slug !== undefined &&
|
|
199
|
+
rejectedFields(error).includes("slug"),
|
|
200
|
+
timeout: "2 minutes",
|
|
201
|
+
interval: "5 seconds",
|
|
202
|
+
},
|
|
203
|
+
echo: ["serverIds"],
|
|
204
|
+
inPlace: {
|
|
205
|
+
serverIds: {
|
|
206
|
+
items: true,
|
|
207
|
+
onCreate: true,
|
|
208
|
+
add: (key, serverIds) =>
|
|
209
|
+
Cloud.attachSshKey({
|
|
210
|
+
slug: key.slug,
|
|
211
|
+
availabilityZone: key.availabilityZone,
|
|
212
|
+
serverIds: [...serverIds],
|
|
213
|
+
}),
|
|
214
|
+
remove: (key, serverIds) =>
|
|
215
|
+
Cloud.detachSshKey({
|
|
216
|
+
slug: key.slug,
|
|
217
|
+
availabilityZone: key.availabilityZone,
|
|
218
|
+
serverIds: [...serverIds],
|
|
219
|
+
}),
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
// A slug is unique in its team: an explicit one names the key to adopt.
|
|
223
|
+
adoptBy: { key: (props) => (props.slug === undefined ? undefined : { slug: props.slug }) },
|
|
224
|
+
// The API refuses to delete a key ANY server still has — this stack's attachments, a server
|
|
225
|
+
// created with the key in `sshKeys`, anyone's: detach it everywhere first (`all: true`, the
|
|
226
|
+
// documented way; live 2026-12-01: 202 with `servers: { queued, skipped }`). A destroyed
|
|
227
|
+
// server can't be detached from (it is skipped): the delete then retries, bounded.
|
|
228
|
+
beforeDelete: (key) =>
|
|
229
|
+
Cloud.detachSshKey({
|
|
230
|
+
slug: key.slug,
|
|
231
|
+
availabilityZone: key.availabilityZone,
|
|
232
|
+
all: true,
|
|
233
|
+
}).pipe(Effect.catchTag("NotFound", () => Effect.void)),
|
|
234
|
+
retryDelete: {
|
|
235
|
+
while: (error) => error._tag === "SshKeyHeld",
|
|
236
|
+
timeout: "2 minutes",
|
|
237
|
+
interval: "5 seconds",
|
|
238
|
+
},
|
|
239
|
+
lookup: { key: ({ slug }) => ({ slug }) },
|
|
240
|
+
stables: ["slug", "teamId", "availabilityZone", "createdAt"],
|
|
241
|
+
});
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type * as Redacted from "effect/Redacted";
|
|
3
|
+
import { present, redacted, type RotateCredentialsProp } from "../internal/connection.ts";
|
|
4
|
+
import { managedDatabase } from "../internal/managedDatabase.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
|
+
|
|
9
|
+
/** Props of {@link Valkey}. */
|
|
10
|
+
export interface ValkeyProps
|
|
11
|
+
extends
|
|
12
|
+
Omit<
|
|
13
|
+
Cloud.CreateValkeyRequest,
|
|
14
|
+
| "teamId"
|
|
15
|
+
| "availabilityZone"
|
|
16
|
+
| "name"
|
|
17
|
+
| "type"
|
|
18
|
+
| "engineVersion"
|
|
19
|
+
| "networkIds"
|
|
20
|
+
| "firewallIds"
|
|
21
|
+
| "term"
|
|
22
|
+
>,
|
|
23
|
+
TeamProp,
|
|
24
|
+
ZoneProp,
|
|
25
|
+
RotateCredentialsProp {
|
|
26
|
+
/**
|
|
27
|
+
* The instance's name, up to 255 characters, unique among the team's live
|
|
28
|
+
* Valkey instances. Defaults to a unique name generated from the stack,
|
|
29
|
+
* stage and logical id. Changes in place.
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The plan, which sets the memory, such as `VK1`. List the plans with the
|
|
34
|
+
* SDK's `listValkeyType` (or `betterstack valkey-type list`). Changes in
|
|
35
|
+
* place: a rescale, waited on until the instance is `running` again on
|
|
36
|
+
* the new plan.
|
|
37
|
+
*/
|
|
38
|
+
type: string;
|
|
39
|
+
/**
|
|
40
|
+
* The Valkey version, such as `8.1`. Defaults to the latest version. List
|
|
41
|
+
* them with the SDK's `listValkeyVersion`; `availableEngineVersions` on the
|
|
42
|
+
* attributes says which ones this instance can move to now. Changes in
|
|
43
|
+
* place: an upgrade, waited on until the instance is `running` on the new
|
|
44
|
+
* version.
|
|
45
|
+
*/
|
|
46
|
+
engineVersion?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The IDs of your {@link Network}s attached to the instance; they must
|
|
49
|
+
* belong to its team. Changes in place (attach and detach actions).
|
|
50
|
+
* Removing the prop keeps what is attached; `[]` detaches all.
|
|
51
|
+
*/
|
|
52
|
+
networkIds?: ReadonlyArray<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the {@link Firewall} attached to the instance, at most one.
|
|
55
|
+
* Changes in place (the old one is detached before the new one is
|
|
56
|
+
* attached). Removing the prop keeps what is attached; `[]` detaches it.
|
|
57
|
+
*/
|
|
58
|
+
firewallIds?: ReadonlyArray<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The billing term: `monthly` (the default) or `annual`. `annual` commits
|
|
61
|
+
* you to paying for a whole year. A change applies at once and starts a
|
|
62
|
+
* new term.
|
|
63
|
+
*/
|
|
64
|
+
term?: Cloud.CreateValkeyRequestTerm;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Attributes of {@link Valkey}: the instance as the API returns it, plus the
|
|
69
|
+
* connection details: host and ports from its `endpoint`, the AUTH token and
|
|
70
|
+
* URIs from `GET /v1/valkey/{id}/credentials`.
|
|
71
|
+
*/
|
|
72
|
+
export interface ValkeyAttributes extends Omit<Cloud.Valkey, "id">, ZoneAttribute {
|
|
73
|
+
/** The instance's ID. */
|
|
74
|
+
id: string;
|
|
75
|
+
/**
|
|
76
|
+
* The hostname to connect to from your private networks
|
|
77
|
+
* (`endpoint.hostname`), without TLS. It follows the current primary.
|
|
78
|
+
*/
|
|
79
|
+
host: string | undefined;
|
|
80
|
+
/** The port without TLS on your private networks, `6379` (`endpoint.port`). */
|
|
81
|
+
port: number | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* The hostname of the public TLS endpoint (`endpoint.publicHostname`),
|
|
84
|
+
* `undefined` while `publicAccess` is off.
|
|
85
|
+
*/
|
|
86
|
+
publicHost: string | undefined;
|
|
87
|
+
/** The public TLS port, `6380` (`endpoint.tlsPort`), `undefined` while `publicAccess` is off. */
|
|
88
|
+
tlsPort: number | undefined;
|
|
89
|
+
/** The username, always `default` (credentials `user`). */
|
|
90
|
+
user: string | undefined;
|
|
91
|
+
/** The AUTH token, Valkey's password (credentials `auth_token`). */
|
|
92
|
+
authToken: Redacted.Redacted<string> | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* `valkey://` URI for your private networks, without TLS, with the token in
|
|
95
|
+
* it (credentials `uri`).
|
|
96
|
+
*/
|
|
97
|
+
connectionUri: Redacted.Redacted<string> | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* `valkeys://` URI for the public TLS endpoint, with the token in it;
|
|
100
|
+
* `undefined` while `publicAccess` is off (credentials `tls_uri`).
|
|
101
|
+
*/
|
|
102
|
+
tlsConnectionUri: Redacted.Redacted<string> | undefined;
|
|
103
|
+
/** The CA certificate (PEM) for the public TLS endpoint, `undefined` while `publicAccess` is off. */
|
|
104
|
+
caCertificate: string | undefined;
|
|
105
|
+
/** After a rotation: until when the previous token still works; `undefined` otherwise. */
|
|
106
|
+
rotatingUntil: string | undefined;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** Props for {@link Valkey.lookup}: find an instance this stack doesn't manage. */
|
|
110
|
+
export type ValkeyLookup =
|
|
111
|
+
| {
|
|
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
|
+
| {
|
|
118
|
+
/** The instance's name. Names aren't unique: more than one match fails with `AmbiguousLookup`. */
|
|
119
|
+
name: string;
|
|
120
|
+
/** Zone it lives in, such as `us-west-2a`. Defaults to the credentials' zone. */
|
|
121
|
+
availabilityZone?: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type Valkey = Resource<
|
|
125
|
+
"BetterStack.Cloud.Valkey",
|
|
126
|
+
ValkeyProps,
|
|
127
|
+
ValkeyAttributes,
|
|
128
|
+
never,
|
|
129
|
+
Providers,
|
|
130
|
+
ValkeyLookup
|
|
131
|
+
>;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* A managed Valkey (Redis-compatible) instance on Better Stack Cloud, with
|
|
135
|
+
* one primary and up to two replicas. It bills from creation (monthly by
|
|
136
|
+
* default; `term: "annual"` commits a year).
|
|
137
|
+
*
|
|
138
|
+
* The deploy blocks until the instance is `running`; a `failed` or
|
|
139
|
+
* `degraded` instance fails it with `WaitFailed`, and one still provisioning
|
|
140
|
+
* after 30 minutes with `WaitTimeout` (one that ends `destroyed` reads as
|
|
141
|
+
* gone, so its wait times out too). A `running` instance can still be
|
|
142
|
+
* adding a replica or opening its public TLS endpoint.
|
|
143
|
+
*
|
|
144
|
+
* **What outlives a destroy, and keeps billing.** Snapshots outlive their
|
|
145
|
+
* database: removing the instance keeps every snapshot, the ones its
|
|
146
|
+
* {@link ValkeyScheduledSnapshot} took included, and they stay billed ("Database snapshots
|
|
147
|
+
* are billed like server snapshots"). This stack doesn't track the scheduled
|
|
148
|
+
* ones (they carry no marker), so `alchemy destroy` and `nuke` leave them:
|
|
149
|
+
* remove them in Databases → Snapshots, or with the SDK's
|
|
150
|
+
* `listFlatValkeySnapshot` / `deleteFlatValkeySnapshot`. A {@link ValkeySnapshot}
|
|
151
|
+
* of this stack is deleted with the stack.
|
|
152
|
+
*
|
|
153
|
+
* What changes in place: `name`, `term`, `metadata`, `evictionPolicy`,
|
|
154
|
+
* `persistence`, `publicAccess`, `replicaCount`; `type` (a rescale) and
|
|
155
|
+
* `engineVersion` (an upgrade), each waited on until `running` again;
|
|
156
|
+
* `networkIds` and `firewallIds` (attach/detach). What replaces it: `teamId`
|
|
157
|
+
* and `availabilityZone`. A replacement that keeps an explicit `name`
|
|
158
|
+
* deletes the old instance first (names are unique among live instances).
|
|
159
|
+
* Removing `evictionPolicy`, `persistence`, `publicAccess` or `replicaCount`
|
|
160
|
+
* from the config keeps the current value.
|
|
161
|
+
*
|
|
162
|
+
* Networking: plain connections on `host:port` from the {@link Network}s in
|
|
163
|
+
* `networkIds`; with `publicAccess: true` also TLS on `publicHost:tlsPort`. A
|
|
164
|
+
* {@link Firewall} in `firewallIds` filters what reaches it.
|
|
165
|
+
*
|
|
166
|
+
* Connection details: `host`, `port`, `publicHost` and `tlsPort` come from
|
|
167
|
+
* the instance's `endpoint`; `user`, `authToken`, `connectionUri`
|
|
168
|
+
* (`valkey://`, private, no TLS), `tlsConnectionUri` (`valkeys://`, public)
|
|
169
|
+
* and `caCertificate` from the credentials endpoint, read once the instance
|
|
170
|
+
* is `running`. Secrets are `Redacted`.
|
|
171
|
+
*
|
|
172
|
+
* Credentials: the deploy never rotates them on its own. Set
|
|
173
|
+
* `rotateCredentials` to a new value to rotate the AUTH token once; a
|
|
174
|
+
* rotation done in the console or CLI is read on the next deploy, without a
|
|
175
|
+
* replace.
|
|
176
|
+
*
|
|
177
|
+
* After delete the API keeps answering the instance with `status:
|
|
178
|
+
* "destroyed"` for a while; that reads as gone. Its snapshot schedules go
|
|
179
|
+
* with it.
|
|
180
|
+
*
|
|
181
|
+
* @see https://betterstack.com/docs/cloud/databases/valkey/
|
|
182
|
+
* **Ownership.** Every object the stack creates carries an `alchemy` entry in its
|
|
183
|
+
* `metadata` (`<stack>/<stage>/<resource id>#<instance>`), added on every write and left out of
|
|
184
|
+
* the attributes and of diffs; your own keys are untouched (it takes one of the 10
|
|
185
|
+
* slots). A deploy that lost track of an object it created (a create that failed or
|
|
186
|
+
* timed out after the API accepted it) finds it by that marker and converges it
|
|
187
|
+
* instead of creating another; `list` (and so `alchemy nuke`) returns only
|
|
188
|
+
* Alchemy-created objects; an object with the same name but no marker of this
|
|
189
|
+
* resource is taken over only with `--adopt`.
|
|
190
|
+
*
|
|
191
|
+
* @see https://betterstack.com/docs/cloud/api/valkeys/credentials-valkey/
|
|
192
|
+
*
|
|
193
|
+
* ### Creating an instance
|
|
194
|
+
* **Example:** A cache on a private network
|
|
195
|
+
* ```typescript
|
|
196
|
+
* const network = yield* BetterStack.Cloud.Network("private", {
|
|
197
|
+
* ipPrefix: "10.0.0.0",
|
|
198
|
+
* ipPrefixLength: 24,
|
|
199
|
+
* });
|
|
200
|
+
* const cache = yield* BetterStack.Cloud.Valkey("cache", {
|
|
201
|
+
* type: "VK1",
|
|
202
|
+
* persistence: "none",
|
|
203
|
+
* evictionPolicy: "allkeys-lru",
|
|
204
|
+
* networkIds: [network.id],
|
|
205
|
+
* });
|
|
206
|
+
* ```
|
|
207
|
+
*
|
|
208
|
+
* ### Connecting
|
|
209
|
+
* **Example:** A `Cloud.Service` reading the URI from its environment
|
|
210
|
+
* ```typescript
|
|
211
|
+
* const cache = yield* BetterStack.Cloud.Valkey("cache", { type: "VK1" });
|
|
212
|
+
* // In the Service's props: env: { REDIS_URL: cache.connectionUri }
|
|
213
|
+
* // In its program: const url = yield* Config.Redacted("REDIS_URL");
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* **Example:** The parts, for a Redis-compatible client
|
|
217
|
+
* ```typescript
|
|
218
|
+
* const env = {
|
|
219
|
+
* VALKEY_HOST: cache.host,
|
|
220
|
+
* VALKEY_PORT: cache.port,
|
|
221
|
+
* VALKEY_USERNAME: cache.user,
|
|
222
|
+
* VALKEY_PASSWORD: cache.authToken,
|
|
223
|
+
* };
|
|
224
|
+
* ```
|
|
225
|
+
*
|
|
226
|
+
* ### Looking up an existing instance
|
|
227
|
+
* **Example:** Reference an instance by id
|
|
228
|
+
* ```typescript
|
|
229
|
+
* const existing = BetterStack.Cloud.Valkey.lookup({ id: "42" });
|
|
230
|
+
* ```
|
|
231
|
+
*
|
|
232
|
+
* **Example:** Reference an instance by name (fails with `AmbiguousLookup` when several share it)
|
|
233
|
+
* ```typescript
|
|
234
|
+
* const byName = BetterStack.Cloud.Valkey.lookup({ name: "sessions" });
|
|
235
|
+
* ```
|
|
236
|
+
*
|
|
237
|
+
* @resource
|
|
238
|
+
* @product Cloud
|
|
239
|
+
*/
|
|
240
|
+
export const Valkey = Resource<Valkey>("BetterStack.Cloud.Valkey");
|
|
241
|
+
|
|
242
|
+
export const ValkeyProvider = () =>
|
|
243
|
+
managedDatabase(Valkey, {
|
|
244
|
+
ops: {
|
|
245
|
+
create: Cloud.createValkey,
|
|
246
|
+
read: Cloud.getValkey,
|
|
247
|
+
update: Cloud.updateValkey,
|
|
248
|
+
delete: Cloud.deleteValkey,
|
|
249
|
+
list: Cloud.listValkey,
|
|
250
|
+
rescale: Cloud.rescaleValkey,
|
|
251
|
+
upgrade: Cloud.upgradeValkey,
|
|
252
|
+
addNetwork: Cloud.addValkeyNetwork,
|
|
253
|
+
removeNetwork: Cloud.removeValkeyNetwork,
|
|
254
|
+
addFirewall: Cloud.addValkeyFirewall,
|
|
255
|
+
removeFirewall: Cloud.removeValkeyFirewall,
|
|
256
|
+
},
|
|
257
|
+
connection: (valkey: Cloud.Valkey) => ({
|
|
258
|
+
host: valkey.endpoint?.hostname,
|
|
259
|
+
port: valkey.endpoint?.port,
|
|
260
|
+
publicHost: valkey.endpoint?.publicHostname ?? undefined,
|
|
261
|
+
tlsPort: valkey.endpoint?.tlsPort ?? undefined,
|
|
262
|
+
}),
|
|
263
|
+
lookup: { match: (lookup, instance) => "name" in lookup && instance.name === lookup.name },
|
|
264
|
+
credentials: {
|
|
265
|
+
fetch: ({ id, availabilityZone }) => Cloud.credentialsValkey({ id, availabilityZone }),
|
|
266
|
+
rotate: ({ id, availabilityZone }) => Cloud.rotateCredentialsValkey({ id, availabilityZone }),
|
|
267
|
+
keys: [
|
|
268
|
+
"user",
|
|
269
|
+
"authToken",
|
|
270
|
+
"connectionUri",
|
|
271
|
+
"tlsConnectionUri",
|
|
272
|
+
"caCertificate",
|
|
273
|
+
"rotatingUntil",
|
|
274
|
+
],
|
|
275
|
+
toAttributes: (credentials: Cloud.CredentialsValkeyResponse) => ({
|
|
276
|
+
user: credentials.user,
|
|
277
|
+
authToken: redacted(credentials.authToken),
|
|
278
|
+
connectionUri: redacted(credentials.uri),
|
|
279
|
+
tlsConnectionUri: redacted(credentials.tlsUri),
|
|
280
|
+
caCertificate: present(credentials.caCertificate),
|
|
281
|
+
rotatingUntil: present(credentials.rotatingUntil),
|
|
282
|
+
}),
|
|
283
|
+
},
|
|
284
|
+
});
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { crud } from "../internal/crud.ts";
|
|
3
|
+
import { instancesOf } from "../internal/managedDatabase.ts";
|
|
4
|
+
import { listWithParent, withParent } from "../internal/ops.ts";
|
|
5
|
+
import type { ZoneAttribute, ZoneProp } from "../internal/scope.ts";
|
|
6
|
+
import type { Providers } from "../Providers.ts";
|
|
7
|
+
import * as Cloud from "../sdk/services/cloud.ts";
|
|
8
|
+
|
|
9
|
+
/** Props of {@link ValkeyScheduledSnapshot}. */
|
|
10
|
+
export interface ValkeyScheduledSnapshotProps
|
|
11
|
+
extends Omit<Cloud.CreateValkeyScheduledSnapshotRequest, "availabilityZone">, ZoneProp {}
|
|
12
|
+
|
|
13
|
+
/** Attributes of {@link ValkeyScheduledSnapshot}. */
|
|
14
|
+
export interface ValkeyScheduledSnapshotAttributes
|
|
15
|
+
extends Omit<Cloud.ValkeyScheduledSnapshot, "id" | "valkeyId">, ZoneAttribute {
|
|
16
|
+
/** The schedule's ID. */
|
|
17
|
+
id: string;
|
|
18
|
+
/** The ID of the {@link Valkey} instance it snapshots. */
|
|
19
|
+
valkeyId: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Props for {@link ValkeyScheduledSnapshot.lookup}: find a schedule this stack doesn't manage. */
|
|
23
|
+
export interface ValkeyScheduledSnapshotLookup {
|
|
24
|
+
/** The ID of the {@link Valkey} instance. */
|
|
25
|
+
valkeyId: string;
|
|
26
|
+
/** The schedule's ID. */
|
|
27
|
+
id: string;
|
|
28
|
+
/** Zone the instance lives in. Defaults to the credentials' zone. */
|
|
29
|
+
availabilityZone?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ValkeyScheduledSnapshot = Resource<
|
|
33
|
+
"BetterStack.Cloud.ValkeyScheduledSnapshot",
|
|
34
|
+
ValkeyScheduledSnapshotProps,
|
|
35
|
+
ValkeyScheduledSnapshotAttributes,
|
|
36
|
+
never,
|
|
37
|
+
Providers,
|
|
38
|
+
ValkeyScheduledSnapshotLookup
|
|
39
|
+
>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A schedule that snapshots a managed {@link Valkey} instance at a regular
|
|
43
|
+
* interval, always from the instance's current primary. Free to define: the
|
|
44
|
+
* snapshots are what is stored.
|
|
45
|
+
*
|
|
46
|
+
* `frequency` (`hourly`, `daily`, `weekly` or `monthly`, a calendar month)
|
|
47
|
+
* changes in place; a new `valkeyId` replaces the schedule. Deleting the
|
|
48
|
+
* instance removes its schedules with it. Snapshots themselves are stored
|
|
49
|
+
* (and billed) by Better Stack; see the database snapshots docs for
|
|
50
|
+
* retention and restore.
|
|
51
|
+
*
|
|
52
|
+
* **Ownership.** The API keeps no `metadata` for it and it has no generated name,
|
|
53
|
+
* so nothing marks it as this stack's: `list` enumerates it under every parent, and a
|
|
54
|
+
* create interrupted before its state was saved is not recognised by the next deploy
|
|
55
|
+
* (which creates it again, or gets the API's conflict when its identity is unique).
|
|
56
|
+
*
|
|
57
|
+
* **What it leaves behind.** The snapshots it takes are not resources of
|
|
58
|
+
* this stack: deleting the schedule (or the instance) keeps them, and they
|
|
59
|
+
* stay billed ("Snapshots outlive their database"). Remove them in
|
|
60
|
+
* Databases → Snapshots or with the SDK's `listFlatValkeySnapshot` /
|
|
61
|
+
* `deleteFlatValkeySnapshot`.
|
|
62
|
+
*
|
|
63
|
+
* **Zone.** A child doesn't take its zone from its parent: it uses its own
|
|
64
|
+
* `availabilityZone`, else the credentials' zone. When the parent lives in
|
|
65
|
+
* another zone, pass the parent's along (`availabilityZone:
|
|
66
|
+
* parent.availabilityZone`), or every call for it answers `NotFound`.
|
|
67
|
+
*
|
|
68
|
+
* @see https://betterstack.com/docs/cloud/databases/snapshots/
|
|
69
|
+
*
|
|
70
|
+
* ### Scheduling snapshots
|
|
71
|
+
* **Example:** Daily snapshots of an instance
|
|
72
|
+
* ```typescript
|
|
73
|
+
* const db = yield* BetterStack.Cloud.Valkey("db", { type: "VK1" });
|
|
74
|
+
* yield* BetterStack.Cloud.ValkeyScheduledSnapshot("daily", {
|
|
75
|
+
* valkeyId: db.id,
|
|
76
|
+
* frequency: "daily",
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ### Looking up an existing schedule
|
|
81
|
+
* **Example:** Reference a schedule by id
|
|
82
|
+
* ```typescript
|
|
83
|
+
* const existing = BetterStack.Cloud.ValkeyScheduledSnapshot.lookup({ valkeyId: "42", id: "7" });
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* @resource
|
|
87
|
+
* @product Cloud
|
|
88
|
+
*/
|
|
89
|
+
export const ValkeyScheduledSnapshot = Resource<ValkeyScheduledSnapshot>(
|
|
90
|
+
"BetterStack.Cloud.ValkeyScheduledSnapshot",
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
export const ValkeyScheduledSnapshotProvider = () =>
|
|
94
|
+
crud(ValkeyScheduledSnapshot, {
|
|
95
|
+
ops: {
|
|
96
|
+
create: Cloud.createValkeyScheduledSnapshot,
|
|
97
|
+
// The responses may not carry the instance id: stamp it from the request.
|
|
98
|
+
read: withParent(Cloud.getValkeyScheduledSnapshot, ["valkeyId"]),
|
|
99
|
+
update: Cloud.updateValkeyScheduledSnapshot,
|
|
100
|
+
delete: Cloud.deleteValkeyScheduledSnapshot,
|
|
101
|
+
list: listWithParent(Cloud.listValkeyScheduledSnapshot, ["valkeyId"]),
|
|
102
|
+
},
|
|
103
|
+
key: (schedule) => ({ valkeyId: schedule.valkeyId, id: schedule.id }),
|
|
104
|
+
toAttributes: (schedule, props) => ({
|
|
105
|
+
...schedule,
|
|
106
|
+
id: String(schedule.id),
|
|
107
|
+
valkeyId: schedule.valkeyId ?? props?.valkeyId,
|
|
108
|
+
}),
|
|
109
|
+
list: { parents: instancesOf(Cloud.listValkey, "valkeyId") },
|
|
110
|
+
lookup: { key: ({ valkeyId, id }) => ({ valkeyId, id }) },
|
|
111
|
+
stables: ["id", "valkeyId", "availabilityZone", "createdAt"],
|
|
112
|
+
});
|