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,95 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type { ZoneAttribute, ZoneProp } from "../internal/scope.ts";
|
|
3
|
+
import type { Providers } from "../Providers.ts";
|
|
4
|
+
import * as Cloud from "../sdk/services/cloud.ts";
|
|
5
|
+
/** Props of {@link VolumeSnapshot}. */
|
|
6
|
+
export interface VolumeSnapshotProps extends Omit<Cloud.CreateVolumeSnapshotRequest, "availabilityZone" | "metadata">, ZoneProp {
|
|
7
|
+
/**
|
|
8
|
+
* Your own tags, as string keys and values. Changes in place; an update
|
|
9
|
+
* replaces every tag.
|
|
10
|
+
*/
|
|
11
|
+
metadata?: Record<string, string>;
|
|
12
|
+
}
|
|
13
|
+
/** Attributes of {@link VolumeSnapshot}: the snapshot as the API returns it. */
|
|
14
|
+
export interface VolumeSnapshotAttributes extends Omit<Cloud.VolumeSnapshot, "id" | "volumeId" | "availabilityZone">, ZoneAttribute {
|
|
15
|
+
/** The volume snapshot's ID, a UUID. */
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the {@link Volume} the snapshot was taken from. The API answers
|
|
19
|
+
* `null` once that volume is deleted; the attributes keep the ID the props
|
|
20
|
+
* named.
|
|
21
|
+
*/
|
|
22
|
+
volumeId?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Props for {@link VolumeSnapshot.lookup}: by id, or by name (optionally of
|
|
26
|
+
* one volume). A name lookup needs exactly one match; several fail with
|
|
27
|
+
* `AmbiguousLookup`.
|
|
28
|
+
*/
|
|
29
|
+
export type VolumeSnapshotLookup = {
|
|
30
|
+
/** The volume snapshot's ID. */
|
|
31
|
+
id: string;
|
|
32
|
+
/** Zone, such as `us-west-2a`. Defaults to the credentials' zone. */
|
|
33
|
+
availabilityZone?: string;
|
|
34
|
+
} | {
|
|
35
|
+
/** The snapshot's name. */
|
|
36
|
+
name: string;
|
|
37
|
+
/** Only snapshots of this volume. */
|
|
38
|
+
volumeId?: string;
|
|
39
|
+
/** Zone, such as `us-west-2a`. Defaults to the credentials' zone. */
|
|
40
|
+
availabilityZone?: string;
|
|
41
|
+
};
|
|
42
|
+
export type VolumeSnapshot = Resource<"BetterStack.Cloud.VolumeSnapshot", VolumeSnapshotProps, VolumeSnapshotAttributes, never, Providers, VolumeSnapshotLookup>;
|
|
43
|
+
/**
|
|
44
|
+
* An on-demand snapshot of a {@link Volume}: "a point-in-time copy of a
|
|
45
|
+
* volume, stored encrypted off the machine the volume runs on. It survives
|
|
46
|
+
* the volume and its machine." The volume stays attached and in use while it
|
|
47
|
+
* is captured, so the copy is crash-consistent. The deploy waits until the
|
|
48
|
+
* snapshot is `available` (a `failed` one fails with `WaitFailed` and is
|
|
49
|
+
* removed again). A volume that is busy with another change refuses the
|
|
50
|
+
* create (`409`, `volume_busy`).
|
|
51
|
+
*
|
|
52
|
+
* **Snapshots and schedules.** A {@link ScheduledVolumeSnapshot} is a
|
|
53
|
+
* schedule that takes volume snapshots on its own (`snapshotType:
|
|
54
|
+
* "scheduled"`); this resource is one `manual` snapshot, taken when it is
|
|
55
|
+
* created and kept until it is destroyed. Snapshots a schedule took are
|
|
56
|
+
* never managed or listed by this resource.
|
|
57
|
+
*
|
|
58
|
+
* **Cost.** "Volume snapshots are billed by the allocated size of the volume
|
|
59
|
+
* they were taken from" (`sizeGb`; `sizeBytes`: "We bill by this size.").
|
|
60
|
+
*
|
|
61
|
+
* **Updates and replacement.** `name` and `metadata` change in place;
|
|
62
|
+
* `volumeId` (and the zone) take a new snapshot.
|
|
63
|
+
*
|
|
64
|
+
* **Restoring.** Restoring is an action, not desired state, so no prop
|
|
65
|
+
* restores: `restore_volume_snapshot` creates a *new* volume (with the
|
|
66
|
+
* snapshot's `sizeGb`) attached to a server, and {@link Volume}'s create
|
|
67
|
+
* takes no snapshot id to pair with. Call `Cloud.restoreVolumeSnapshot` from
|
|
68
|
+
* `betterstack-alchemy/sdk/services` when you need one.
|
|
69
|
+
*
|
|
70
|
+
* **Ownership.** The `alchemy` marker in `metadata` identifies the snapshots
|
|
71
|
+
* this stack created: an interrupted create is found again by the next
|
|
72
|
+
* deploy, and `list` returns only Alchemy-created snapshots.
|
|
73
|
+
*
|
|
74
|
+
* @see https://betterstack.com/docs/cloud/api/volume-snapshots/get-volume-snapshot/
|
|
75
|
+
*
|
|
76
|
+
* ### Snapshotting a volume
|
|
77
|
+
* **Example:** Before an upgrade
|
|
78
|
+
* ```typescript
|
|
79
|
+
* const data = yield* BetterStack.Cloud.Volume("data", {
|
|
80
|
+
* serverId: server.id,
|
|
81
|
+
* sizeGb: 20,
|
|
82
|
+
* format: "ext4",
|
|
83
|
+
* });
|
|
84
|
+
* yield* BetterStack.Cloud.VolumeSnapshot("pre-upgrade", {
|
|
85
|
+
* volumeId: data.id,
|
|
86
|
+
* name: "pg-data-pre-upgrade",
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @resource
|
|
91
|
+
* @product Cloud
|
|
92
|
+
*/
|
|
93
|
+
export declare const VolumeSnapshot: import("alchemy/Resource").ResourceClass<VolumeSnapshot>;
|
|
94
|
+
export declare const VolumeSnapshotProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<VolumeSnapshot>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
95
|
+
//# sourceMappingURL=VolumeSnapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumeSnapshot.d.ts","sourceRoot":"","sources":["../../src/Cloud/VolumeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAQpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,uCAAuC;AACvC,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,2BAA2B,EAAE,kBAAkB,GAAG,UAAU,CAAC,EAAE,QAAQ;IAC1F;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAED,gFAAgF;AAChF,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,GAAG,UAAU,GAAG,kBAAkB,CAAC,EAAE,aAAa;IACzF,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IACE,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD;IACE,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEN,MAAM,MAAM,cAAc,GAAG,QAAQ,CACnC,kCAAkC,EAClC,mBAAmB,EACnB,wBAAwB,EACxB,KAAK,EACL,SAAS,EACT,oBAAoB,CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,eAAO,MAAM,cAAc,0DAA+D,CAAC;AAI3F,eAAO,MAAM,sBAAsB,gJAgC/B,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { crud } from "../internal/crud.js";
|
|
3
|
+
import { matchesName, retryBusyCreate, retryBusyDelete, snapshotGone, snapshotReady, } from "../internal/snapshot.js";
|
|
4
|
+
import * as Cloud from "../sdk/services/cloud.js";
|
|
5
|
+
/**
|
|
6
|
+
* An on-demand snapshot of a {@link Volume}: "a point-in-time copy of a
|
|
7
|
+
* volume, stored encrypted off the machine the volume runs on. It survives
|
|
8
|
+
* the volume and its machine." The volume stays attached and in use while it
|
|
9
|
+
* is captured, so the copy is crash-consistent. The deploy waits until the
|
|
10
|
+
* snapshot is `available` (a `failed` one fails with `WaitFailed` and is
|
|
11
|
+
* removed again). A volume that is busy with another change refuses the
|
|
12
|
+
* create (`409`, `volume_busy`).
|
|
13
|
+
*
|
|
14
|
+
* **Snapshots and schedules.** A {@link ScheduledVolumeSnapshot} is a
|
|
15
|
+
* schedule that takes volume snapshots on its own (`snapshotType:
|
|
16
|
+
* "scheduled"`); this resource is one `manual` snapshot, taken when it is
|
|
17
|
+
* created and kept until it is destroyed. Snapshots a schedule took are
|
|
18
|
+
* never managed or listed by this resource.
|
|
19
|
+
*
|
|
20
|
+
* **Cost.** "Volume snapshots are billed by the allocated size of the volume
|
|
21
|
+
* they were taken from" (`sizeGb`; `sizeBytes`: "We bill by this size.").
|
|
22
|
+
*
|
|
23
|
+
* **Updates and replacement.** `name` and `metadata` change in place;
|
|
24
|
+
* `volumeId` (and the zone) take a new snapshot.
|
|
25
|
+
*
|
|
26
|
+
* **Restoring.** Restoring is an action, not desired state, so no prop
|
|
27
|
+
* restores: `restore_volume_snapshot` creates a *new* volume (with the
|
|
28
|
+
* snapshot's `sizeGb`) attached to a server, and {@link Volume}'s create
|
|
29
|
+
* takes no snapshot id to pair with. Call `Cloud.restoreVolumeSnapshot` from
|
|
30
|
+
* `betterstack-alchemy/sdk/services` when you need one.
|
|
31
|
+
*
|
|
32
|
+
* **Ownership.** The `alchemy` marker in `metadata` identifies the snapshots
|
|
33
|
+
* this stack created: an interrupted create is found again by the next
|
|
34
|
+
* deploy, and `list` returns only Alchemy-created snapshots.
|
|
35
|
+
*
|
|
36
|
+
* @see https://betterstack.com/docs/cloud/api/volume-snapshots/get-volume-snapshot/
|
|
37
|
+
*
|
|
38
|
+
* ### Snapshotting a volume
|
|
39
|
+
* **Example:** Before an upgrade
|
|
40
|
+
* ```typescript
|
|
41
|
+
* const data = yield* BetterStack.Cloud.Volume("data", {
|
|
42
|
+
* serverId: server.id,
|
|
43
|
+
* sizeGb: 20,
|
|
44
|
+
* format: "ext4",
|
|
45
|
+
* });
|
|
46
|
+
* yield* BetterStack.Cloud.VolumeSnapshot("pre-upgrade", {
|
|
47
|
+
* volumeId: data.id,
|
|
48
|
+
* name: "pg-data-pre-upgrade",
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @resource
|
|
53
|
+
* @product Cloud
|
|
54
|
+
*/
|
|
55
|
+
export const VolumeSnapshot = Resource("BetterStack.Cloud.VolumeSnapshot");
|
|
56
|
+
const byName = matchesName("volumeId");
|
|
57
|
+
export const VolumeSnapshotProvider = () => crud(VolumeSnapshot, {
|
|
58
|
+
ops: {
|
|
59
|
+
create: Cloud.createVolumeSnapshot,
|
|
60
|
+
read: Cloud.getVolumeSnapshot,
|
|
61
|
+
update: Cloud.updateVolumeSnapshot,
|
|
62
|
+
delete: Cloud.deleteVolumeSnapshot,
|
|
63
|
+
list: Cloud.listVolumeSnapshot,
|
|
64
|
+
},
|
|
65
|
+
key: (snapshot) => ({ id: snapshot.id }),
|
|
66
|
+
toAttributes: (snapshot, props) => ({
|
|
67
|
+
...snapshot,
|
|
68
|
+
id: String(snapshot.id),
|
|
69
|
+
// `null` once the volume is deleted: keep the volume the props named.
|
|
70
|
+
volumeId: snapshot.volumeId ?? props?.volumeId ?? undefined,
|
|
71
|
+
}),
|
|
72
|
+
// A volume busy with another change (`volume_busy`) refuses a new snapshot for a while.
|
|
73
|
+
retryCreate: retryBusyCreate("VolumeBusy"),
|
|
74
|
+
goneWhen: snapshotGone,
|
|
75
|
+
wait: { create: snapshotReady() },
|
|
76
|
+
// A snapshot still being taken refuses the delete with `VolumeSnapshotBusy`.
|
|
77
|
+
retryDelete: retryBusyDelete("VolumeSnapshotBusy"),
|
|
78
|
+
// Ownership: an `alchemy` marker in `metadata` (`internal/ownership.ts`).
|
|
79
|
+
owner: { metadata: "metadata" },
|
|
80
|
+
lookup: { match: (lookup, item) => "name" in lookup && byName(lookup, item) },
|
|
81
|
+
adoptBy: {
|
|
82
|
+
match: (props) => props.name === undefined
|
|
83
|
+
? undefined
|
|
84
|
+
: (item) => item.status !== "failed" && byName(props, item),
|
|
85
|
+
},
|
|
86
|
+
stables: ["id", "volumeId", "availabilityZone", "createdAt", "snapshotType", "sizeGb"],
|
|
87
|
+
});
|
|
88
|
+
//# sourceMappingURL=VolumeSnapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumeSnapshot.js","sourceRoot":"","sources":["../../src/Cloud/VolumeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EACL,WAAW,EACX,eAAe,EACf,eAAe,EACf,YAAY,EACZ,aAAa,GACd,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAuDlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAiB,kCAAkC,CAAC,CAAC;AAE3F,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,EAAE,CACzC,IAAI,CAAC,cAAc,EAAE;IACnB,GAAG,EAAE;QACH,MAAM,EAAE,KAAK,CAAC,oBAAoB;QAClC,IAAI,EAAE,KAAK,CAAC,iBAAiB;QAC7B,MAAM,EAAE,KAAK,CAAC,oBAAoB;QAClC,MAAM,EAAE,KAAK,CAAC,oBAAoB;QAClC,IAAI,EAAE,KAAK,CAAC,kBAAkB;KAC/B;IACD,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC;IACxC,YAAY,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAClC,GAAG,QAAQ;QACX,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvB,sEAAsE;QACtE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IAAI,KAAK,EAAE,QAAQ,IAAI,SAAS;KAC5D,CAAC;IACF,wFAAwF;IACxF,WAAW,EAAE,eAAe,CAAC,YAAY,CAAC;IAC1C,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE;IACjC,6EAA6E;IAC7E,WAAW,EAAE,eAAe,CAAC,oBAAoB,CAAC;IAClD,0EAA0E;IAC1E,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;IAC/B,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE;IAC7E,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,KAAK,CAAC,IAAI,KAAK,SAAS;YACtB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC;KAChE;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,CAAC;CACvF,CAAC,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import type { TeamProp, ZoneAttribute, ZoneProp } from "../internal/scope.ts";
|
|
4
|
+
import type { Providers } from "../Providers.ts";
|
|
5
|
+
import * as Cloud from "../sdk/services/cloud.ts";
|
|
6
|
+
/** Props of {@link Webhook}. */
|
|
7
|
+
export interface WebhookProps extends Omit<Cloud.CreateWebhookRequest, "teamId" | "availabilityZone" | "name">, TeamProp, ZoneProp {
|
|
8
|
+
/** The webhook's name. Defaults to a unique name generated from the stack, stage and logical id. Changes in place. */
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Attributes of {@link Webhook}. */
|
|
12
|
+
export interface WebhookAttributes extends Omit<Cloud.Webhook, "id" | "secret">, ZoneAttribute {
|
|
13
|
+
/** The webhook's ID, a UUID. */
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* The secret deliveries are signed with: each one has an `X-Signature`
|
|
17
|
+
* header of `sha256=` followed by the hex HMAC-SHA256 of the raw body,
|
|
18
|
+
* keyed with this secret. Set when the webhook is created; to rotate it,
|
|
19
|
+
* replace the webhook.
|
|
20
|
+
*/
|
|
21
|
+
secret?: Redacted.Redacted<string> | undefined;
|
|
22
|
+
}
|
|
23
|
+
/** Props for {@link Webhook.lookup}: find a webhook this stack doesn't manage, by id or by name. */
|
|
24
|
+
export type WebhookLookup = ({
|
|
25
|
+
/** The webhook's ID. */
|
|
26
|
+
id: string;
|
|
27
|
+
} | {
|
|
28
|
+
/** The webhook's name (the first webhook with it). */
|
|
29
|
+
name: string;
|
|
30
|
+
}) & {
|
|
31
|
+
/** Zone it lives in, such as `us-west-2a`. Defaults to the credentials' zone. */
|
|
32
|
+
availabilityZone?: string;
|
|
33
|
+
};
|
|
34
|
+
export type Webhook = Resource<"BetterStack.Cloud.Webhook", WebhookProps, WebhookAttributes, never, Providers, WebhookLookup>;
|
|
35
|
+
/**
|
|
36
|
+
* A Better Stack Cloud webhook: an HTTPS endpoint that receives a signed
|
|
37
|
+
* JSON event (`object`, `event`, `occurred_at`, `data`) whenever a resource
|
|
38
|
+
* of the listed `webhookTypes` is created, updated or destroyed in this
|
|
39
|
+
* availability zone. Webhooks are free.
|
|
40
|
+
*
|
|
41
|
+
* Every prop but `teamId` and `availabilityZone` changes in place. Verify
|
|
42
|
+
* deliveries with the `secret` attribute (`Redacted`); the API has no way
|
|
43
|
+
* to rotate it, so replace the webhook to get a new one. Respond with a 2xx
|
|
44
|
+
* within 10 seconds; after a delivery fails 10 attempts (about a day) the
|
|
45
|
+
* API pauses the webhook by itself (`status: "paused"`); with `status:
|
|
46
|
+
* "active"` in the config, the next deploy that changes the webhook resumes
|
|
47
|
+
* it.
|
|
48
|
+
*
|
|
49
|
+
* **Ownership.** The API keeps no `metadata` for it, so the generated `name` (it ends
|
|
50
|
+
* in the resource instance's random suffix) is what identifies an object this stack
|
|
51
|
+
* created: a create interrupted before its state was saved is found by that name on
|
|
52
|
+
* the next deploy. An explicitly named object can't be told apart from someone
|
|
53
|
+
* else's (it is taken over only with `--adopt`), and `list` returns every object.
|
|
54
|
+
*
|
|
55
|
+
* @see https://betterstack.com/docs/cloud/integrations/webhooks/
|
|
56
|
+
*
|
|
57
|
+
* ### Creating a webhook
|
|
58
|
+
* **Example:** Notify about servers and volumes
|
|
59
|
+
* ```typescript
|
|
60
|
+
* const hook = yield* BetterStack.Cloud.Webhook("events", {
|
|
61
|
+
* url: "https://example.com/hooks/betterstack",
|
|
62
|
+
* webhookTypes: ["server", "volume"],
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* **Example:** Created paused, enabled later
|
|
67
|
+
* ```typescript
|
|
68
|
+
* yield* BetterStack.Cloud.Webhook("audit", {
|
|
69
|
+
* name: "audit",
|
|
70
|
+
* url: "https://example.com/hooks/audit",
|
|
71
|
+
* webhookTypes: ["firewall", "ssh_key", "reserved_ip"],
|
|
72
|
+
* status: "paused",
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* ### Verifying deliveries
|
|
77
|
+
* **Example:** Pass the signing secret to the receiver
|
|
78
|
+
* ```typescript
|
|
79
|
+
* const signingSecret = hook.secret; // Redacted<string>
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* ### Looking up an existing webhook
|
|
83
|
+
* **Example:** Reference a webhook by name
|
|
84
|
+
* ```typescript
|
|
85
|
+
* const existing = BetterStack.Cloud.Webhook.lookup({ name: "audit" });
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @resource
|
|
89
|
+
* @product Cloud
|
|
90
|
+
*/
|
|
91
|
+
export declare const Webhook: import("alchemy/Resource").ResourceClass<Webhook>;
|
|
92
|
+
export declare const WebhookProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<Webhook>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
93
|
+
//# sourceMappingURL=Webhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Webhook.d.ts","sourceRoot":"","sources":["../../src/Cloud/Webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,gCAAgC;AAChC,MAAM,WAAW,YACf,SACE,IAAI,CAAC,KAAK,CAAC,oBAAoB,EAAE,QAAQ,GAAG,kBAAkB,GAAG,MAAM,CAAC,EACxE,QAAQ,EACR,QAAQ;IACV,sHAAsH;IACtH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qCAAqC;AACrC,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,GAAG,QAAQ,CAAC,EAAE,aAAa;IAC5F,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX;;;;;OAKG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAChD;AAED,oGAAoG;AACpG,MAAM,MAAM,aAAa,GAAG,CACxB;IACE,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;CACZ,GACD;IACE,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;CACd,CACJ,GAAG;IACF,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,QAAQ,CAC5B,2BAA2B,EAC3B,YAAY,EACZ,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,aAAa,CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,eAAO,MAAM,OAAO,mDAAiD,CAAC;AAEtE,eAAO,MAAM,eAAe,yIAgCxB,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import { crud } from "../internal/crud.js";
|
|
4
|
+
import * as Cloud from "../sdk/services/cloud.js";
|
|
5
|
+
/**
|
|
6
|
+
* A Better Stack Cloud webhook: an HTTPS endpoint that receives a signed
|
|
7
|
+
* JSON event (`object`, `event`, `occurred_at`, `data`) whenever a resource
|
|
8
|
+
* of the listed `webhookTypes` is created, updated or destroyed in this
|
|
9
|
+
* availability zone. Webhooks are free.
|
|
10
|
+
*
|
|
11
|
+
* Every prop but `teamId` and `availabilityZone` changes in place. Verify
|
|
12
|
+
* deliveries with the `secret` attribute (`Redacted`); the API has no way
|
|
13
|
+
* to rotate it, so replace the webhook to get a new one. Respond with a 2xx
|
|
14
|
+
* within 10 seconds; after a delivery fails 10 attempts (about a day) the
|
|
15
|
+
* API pauses the webhook by itself (`status: "paused"`); with `status:
|
|
16
|
+
* "active"` in the config, the next deploy that changes the webhook resumes
|
|
17
|
+
* it.
|
|
18
|
+
*
|
|
19
|
+
* **Ownership.** The API keeps no `metadata` for it, so the generated `name` (it ends
|
|
20
|
+
* in the resource instance's random suffix) is what identifies an object this stack
|
|
21
|
+
* created: a create interrupted before its state was saved is found by that name on
|
|
22
|
+
* the next deploy. An explicitly named object can't be told apart from someone
|
|
23
|
+
* else's (it is taken over only with `--adopt`), and `list` returns every object.
|
|
24
|
+
*
|
|
25
|
+
* @see https://betterstack.com/docs/cloud/integrations/webhooks/
|
|
26
|
+
*
|
|
27
|
+
* ### Creating a webhook
|
|
28
|
+
* **Example:** Notify about servers and volumes
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const hook = yield* BetterStack.Cloud.Webhook("events", {
|
|
31
|
+
* url: "https://example.com/hooks/betterstack",
|
|
32
|
+
* webhookTypes: ["server", "volume"],
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* **Example:** Created paused, enabled later
|
|
37
|
+
* ```typescript
|
|
38
|
+
* yield* BetterStack.Cloud.Webhook("audit", {
|
|
39
|
+
* name: "audit",
|
|
40
|
+
* url: "https://example.com/hooks/audit",
|
|
41
|
+
* webhookTypes: ["firewall", "ssh_key", "reserved_ip"],
|
|
42
|
+
* status: "paused",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ### Verifying deliveries
|
|
47
|
+
* **Example:** Pass the signing secret to the receiver
|
|
48
|
+
* ```typescript
|
|
49
|
+
* const signingSecret = hook.secret; // Redacted<string>
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ### Looking up an existing webhook
|
|
53
|
+
* **Example:** Reference a webhook by name
|
|
54
|
+
* ```typescript
|
|
55
|
+
* const existing = BetterStack.Cloud.Webhook.lookup({ name: "audit" });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @resource
|
|
59
|
+
* @product Cloud
|
|
60
|
+
*/
|
|
61
|
+
export const Webhook = Resource("BetterStack.Cloud.Webhook");
|
|
62
|
+
export const WebhookProvider = () => crud(Webhook, {
|
|
63
|
+
ops: {
|
|
64
|
+
create: Cloud.createWebhook,
|
|
65
|
+
read: Cloud.getWebhook,
|
|
66
|
+
update: Cloud.updateWebhook,
|
|
67
|
+
delete: Cloud.deleteWebhook,
|
|
68
|
+
list: Cloud.listWebhook,
|
|
69
|
+
},
|
|
70
|
+
key: (webhook) => ({ id: webhook.id }),
|
|
71
|
+
// Ownership: no `metadata`; the generated name identifies it (see the Ownership note in the JSDoc).
|
|
72
|
+
owner: "name",
|
|
73
|
+
toAttributes: ({ secret, ...webhook }) => ({
|
|
74
|
+
...webhook,
|
|
75
|
+
// The spec leaves the wire type of `id` open (`unknown`); attributes carry it as a string.
|
|
76
|
+
id: String(webhook.id),
|
|
77
|
+
// The SDK decodes the sensitive `secret` as `Redacted`; never let a plain string through.
|
|
78
|
+
secret: secret === undefined || Redacted.isRedacted(secret) ? secret : Redacted.make(secret),
|
|
79
|
+
}),
|
|
80
|
+
physicalName: { prop: "name" },
|
|
81
|
+
// Names aren't unique: adopt only a webhook with the same explicit name and URL.
|
|
82
|
+
adoptBy: {
|
|
83
|
+
match: (props) => props.name === undefined
|
|
84
|
+
? undefined
|
|
85
|
+
: (webhook) => webhook.name === props.name && webhook.url === props.url,
|
|
86
|
+
},
|
|
87
|
+
lookup: {
|
|
88
|
+
match: (lookup, webhook) => "id" in lookup ? String(webhook.id) === lookup.id : webhook.name === lookup.name,
|
|
89
|
+
},
|
|
90
|
+
stables: ["id", "teamId", "availabilityZone", "secret", "createdAt"],
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=Webhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../src/Cloud/Webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG3C,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAiDlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAU,2BAA2B,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAClC,IAAI,CAAC,OAAO,EAAE;IACZ,GAAG,EAAE;QACH,MAAM,EAAE,KAAK,CAAC,aAAa;QAC3B,IAAI,EAAE,KAAK,CAAC,UAAU;QACtB,MAAM,EAAE,KAAK,CAAC,aAAa;QAC3B,MAAM,EAAE,KAAK,CAAC,aAAa;QAC3B,IAAI,EAAE,KAAK,CAAC,WAAW;KACxB;IACD,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC;IACtC,oGAAoG;IACpG,KAAK,EAAE,MAAM;IACb,YAAY,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QACzC,GAAG,OAAO;QACV,2FAA2F;QAC3F,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QACtB,0FAA0F;QAC1F,MAAM,EAAE,MAAM,KAAK,SAAS,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;KAC7F,CAAC;IACF,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC9B,iFAAiF;IACjF,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,KAAK,CAAC,IAAI,KAAK,SAAS;YACtB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG;KAC5E;IACD,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CACzB,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI;KACnF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAAE,WAAW,CAAC;CACrE,CAAC,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
3
|
+
/** The framework-integration package that drives the Astro build. */
|
|
4
|
+
export declare const ASTRO_FRAMEWORK_SPECIFIER = "@alchemy.run/frontend-frameworks/astro";
|
|
5
|
+
/** The Node container deploy target for the Astro build. */
|
|
6
|
+
export declare const ASTRO_NODE_TARGET_SPECIFIER = "@alchemy.run/frontend-frameworks/astro/node";
|
|
7
|
+
export interface AstroProps extends FrameworkSiteProps {
|
|
8
|
+
/**
|
|
9
|
+
* Serializable Astro config merged OVER the project's own
|
|
10
|
+
* `astro.config.*` (which loads natively). `adapter` is owned by the
|
|
11
|
+
* Node deploy target and may not be set here.
|
|
12
|
+
*/
|
|
13
|
+
astro?: {
|
|
14
|
+
/** The full URL the site deploys to (`Astro.site`). */
|
|
15
|
+
site?: string;
|
|
16
|
+
/** Base path the site deploys under. */
|
|
17
|
+
base?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Astro output target. `"server"` renders pages on demand;
|
|
20
|
+
* `"static"` prerenders every page at build time and deploys
|
|
21
|
+
* assets-only (no SSR unit). Overrides the `output` in your
|
|
22
|
+
* `astro.config.*`; leave it unset to use the file's value.
|
|
23
|
+
* @default the config file's `output`, else `"server"`
|
|
24
|
+
*/
|
|
25
|
+
output?: "server" | "static";
|
|
26
|
+
/** Source directory, relative to `rootDir`. @default "./src" */
|
|
27
|
+
srcDir?: string;
|
|
28
|
+
/** Public (static passthrough) directory. @default "./public" */
|
|
29
|
+
publicDir?: string;
|
|
30
|
+
/** Build output directory. @default "./dist" */
|
|
31
|
+
outDir?: string;
|
|
32
|
+
/** Trailing-slash handling for routes. */
|
|
33
|
+
trailingSlash?: "always" | "never" | "ignore";
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Deploy an [Astro](https://astro.build) application to a Better Stack Cloud
|
|
38
|
+
* server: the Node adapter bundle as a systemd unit on port 3000, static
|
|
39
|
+
* assets baked into the unit. Pages render on demand by default
|
|
40
|
+
* (`output: "server"`); `output: "static"` in your `astro.config.*` or
|
|
41
|
+
* `astro: { output: "static" }` prerenders every page and deploys
|
|
42
|
+
* assets-only.
|
|
43
|
+
*
|
|
44
|
+
* The build runs through `@alchemy.run/frontend-frameworks/astro` with the
|
|
45
|
+
* `@alchemy.run/frontend-frameworks/astro/node` deploy target. Your
|
|
46
|
+
* `astro.config.*` must not declare an adapter.
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
* ### Creating Astro Sites
|
|
50
|
+
* **Example:** Basic Astro App
|
|
51
|
+
* ```typescript
|
|
52
|
+
* const site = yield* BetterStack.Cloud.Website.Astro("Web", {
|
|
53
|
+
* rootDir: "./app",
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* **Example:** Custom Domain
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const site = yield* BetterStack.Cloud.Website.Astro("Web", {
|
|
60
|
+
* rootDir: "./app",
|
|
61
|
+
* // Better Stack has no DNS: the A record goes to Cloudflare.
|
|
62
|
+
* domain: { name: "app.example.com", dns: Cloudflare.DNS.Adapter() },
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ### Static Sites
|
|
67
|
+
* **Example:** Fully Static Astro Site
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const site = yield* BetterStack.Cloud.Website.Astro("Docs", {
|
|
70
|
+
* rootDir: "./docs",
|
|
71
|
+
* astro: { output: "static" },
|
|
72
|
+
* assets: { notFoundHandling: "404-page" },
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* ### Hosting on Better Stack Cloud
|
|
77
|
+
* The site runs as one `Cloud.Service` (a systemd unit, port 3000, gated on
|
|
78
|
+
* the serve entry's `GET /health`) on a `Cloud.Server`. Without `server`,
|
|
79
|
+
* the composite **creates a billable server**: `AM1` (the smallest type) on
|
|
80
|
+
* `ubuntu-26-04`, term `monthly`. Pass `server` to use one you already have
|
|
81
|
+
* (one website per server), and `firewall` when that server has a
|
|
82
|
+
* `Cloud.Firewall` (port 3000 is opened on it). `domain` publishes an `A`
|
|
83
|
+
* record through another provider's DNS adapter (Better Stack has no DNS);
|
|
84
|
+
* the site speaks plain HTTP on 3000, and HTTPS is a `Cloud.LoadBalancer` +
|
|
85
|
+
* managed `Cloud.Certificate` in front (see `StaticSite`). No CDN: the
|
|
86
|
+
* object cache only fronts S3-compatible buckets for SigV4 clients, so the
|
|
87
|
+
* unit serves its own assets. See {@link FrameworkSiteProps}.
|
|
88
|
+
*
|
|
89
|
+
* @see https://docs.astro.build/
|
|
90
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
91
|
+
*
|
|
92
|
+
* @resource
|
|
93
|
+
* @product Website
|
|
94
|
+
*/
|
|
95
|
+
export declare const Astro: (id: string, props?: AstroProps) => Effect.Effect<{
|
|
96
|
+
url: import("alchemy/Output").Output<string | undefined, never>;
|
|
97
|
+
server: undefined;
|
|
98
|
+
service: undefined;
|
|
99
|
+
} | {
|
|
100
|
+
url: string | import("alchemy/Output").Output<string | undefined, never>;
|
|
101
|
+
server: import("../Server.ts").Server;
|
|
102
|
+
service: import("../Service.ts").Service<{
|
|
103
|
+
PORT: string;
|
|
104
|
+
}>;
|
|
105
|
+
}, never, import("alchemy/AlchemyContext").AlchemyContext | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("alchemy/Provider").Provider<import("alchemy/Website/Server").Server> | import("../../Providers.ts").Providers>;
|
|
106
|
+
//# sourceMappingURL=Astro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Astro.d.ts","sourceRoot":"","sources":["../../../src/Cloud/Website/Astro.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,4DAA4D;AAC5D,eAAO,MAAM,2BAA2B,gDAAgD,CAAC;AAEzF,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD;;;;OAIG;IACH,KAAK,CAAC,EAAE;QACN,uDAAuD;QACvD,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,wCAAwC;QACxC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;QAC7B,gEAAgE;QAChE,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,iEAAiE;QACjE,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,gDAAgD;QAChD,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,0CAA0C;QAC1C,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;KAC/C,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,eAAO,MAAM,KAAK,OAAQ,MAAM,UAAS,UAAU;;;;;;;;;;wPAYhD,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Adapted from @alchemy.run/hetzner@2.0.0-beta.87 (Apache-2.0), src/Website/Astro.ts; modified.
|
|
2
|
+
import * as Namespace from "alchemy/Namespace";
|
|
3
|
+
import { resolveAstroOutput } from "alchemy/Website/AstroOutput";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { makeFrameworkSite, staticConfigFromAssets, } from "./FrameworkSite.js";
|
|
6
|
+
/** The framework-integration package that drives the Astro build. */
|
|
7
|
+
export const ASTRO_FRAMEWORK_SPECIFIER = "@alchemy.run/frontend-frameworks/astro";
|
|
8
|
+
/** The Node container deploy target for the Astro build. */
|
|
9
|
+
export const ASTRO_NODE_TARGET_SPECIFIER = "@alchemy.run/frontend-frameworks/astro/node";
|
|
10
|
+
/**
|
|
11
|
+
* Deploy an [Astro](https://astro.build) application to a Better Stack Cloud
|
|
12
|
+
* server: the Node adapter bundle as a systemd unit on port 3000, static
|
|
13
|
+
* assets baked into the unit. Pages render on demand by default
|
|
14
|
+
* (`output: "server"`); `output: "static"` in your `astro.config.*` or
|
|
15
|
+
* `astro: { output: "static" }` prerenders every page and deploys
|
|
16
|
+
* assets-only.
|
|
17
|
+
*
|
|
18
|
+
* The build runs through `@alchemy.run/frontend-frameworks/astro` with the
|
|
19
|
+
* `@alchemy.run/frontend-frameworks/astro/node` deploy target. Your
|
|
20
|
+
* `astro.config.*` must not declare an adapter.
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ### Creating Astro Sites
|
|
24
|
+
* **Example:** Basic Astro App
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const site = yield* BetterStack.Cloud.Website.Astro("Web", {
|
|
27
|
+
* rootDir: "./app",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* **Example:** Custom Domain
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const site = yield* BetterStack.Cloud.Website.Astro("Web", {
|
|
34
|
+
* rootDir: "./app",
|
|
35
|
+
* // Better Stack has no DNS: the A record goes to Cloudflare.
|
|
36
|
+
* domain: { name: "app.example.com", dns: Cloudflare.DNS.Adapter() },
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ### Static Sites
|
|
41
|
+
* **Example:** Fully Static Astro Site
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const site = yield* BetterStack.Cloud.Website.Astro("Docs", {
|
|
44
|
+
* rootDir: "./docs",
|
|
45
|
+
* astro: { output: "static" },
|
|
46
|
+
* assets: { notFoundHandling: "404-page" },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ### Hosting on Better Stack Cloud
|
|
51
|
+
* The site runs as one `Cloud.Service` (a systemd unit, port 3000, gated on
|
|
52
|
+
* the serve entry's `GET /health`) on a `Cloud.Server`. Without `server`,
|
|
53
|
+
* the composite **creates a billable server**: `AM1` (the smallest type) on
|
|
54
|
+
* `ubuntu-26-04`, term `monthly`. Pass `server` to use one you already have
|
|
55
|
+
* (one website per server), and `firewall` when that server has a
|
|
56
|
+
* `Cloud.Firewall` (port 3000 is opened on it). `domain` publishes an `A`
|
|
57
|
+
* record through another provider's DNS adapter (Better Stack has no DNS);
|
|
58
|
+
* the site speaks plain HTTP on 3000, and HTTPS is a `Cloud.LoadBalancer` +
|
|
59
|
+
* managed `Cloud.Certificate` in front (see `StaticSite`). No CDN: the
|
|
60
|
+
* object cache only fronts S3-compatible buckets for SigV4 clients, so the
|
|
61
|
+
* unit serves its own assets. See {@link FrameworkSiteProps}.
|
|
62
|
+
*
|
|
63
|
+
* @see https://docs.astro.build/
|
|
64
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
65
|
+
*
|
|
66
|
+
* @resource
|
|
67
|
+
* @product Website
|
|
68
|
+
*/
|
|
69
|
+
export const Astro = (id, props = {}) => resolveAstroOutput({ rootDir: props.rootDir, output: props.astro?.output }).pipe(Effect.flatMap((output) => makeFrameworkSite(id, props, {
|
|
70
|
+
name: "Astro",
|
|
71
|
+
framework: ASTRO_FRAMEWORK_SPECIFIER,
|
|
72
|
+
target: ASTRO_NODE_TARGET_SPECIFIER,
|
|
73
|
+
options: { astro: { ...props.astro, output } },
|
|
74
|
+
static: output === "static" ? staticConfigFromAssets(props.assets) : undefined,
|
|
75
|
+
})), Namespace.push(id));
|
|
76
|
+
//# sourceMappingURL=Astro.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Astro.js","sourceRoot":"","sources":["../../../src/Cloud/Website/Astro.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EACL,iBAAiB,EACjB,sBAAsB,GAEvB,MAAM,oBAAoB,CAAC;AAE5B,qEAAqE;AACrE,MAAM,CAAC,MAAM,yBAAyB,GAAG,wCAAwC,CAAC;AAElF,4DAA4D;AAC5D,MAAM,CAAC,MAAM,2BAA2B,GAAG,6CAA6C,CAAC;AAgCzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,KAAK,GAAe,EAAE,EAAE,EAAE,CAC1D,kBAAkB,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAC9E,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CACxB,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,yBAAyB;IACpC,MAAM,EAAE,2BAA2B;IACnC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;IAC9C,MAAM,EAAE,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;CAC/E,CAAC,CACH,EACD,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CACnB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
2
|
+
import type { ViteProps } from "./Vite.ts";
|
|
3
|
+
/** The framework-integration package that drives the Foldkit build. */
|
|
4
|
+
export declare const FOLDKIT_FRAMEWORK_SPECIFIER = "@alchemy.run/frontend-frameworks/foldkit";
|
|
5
|
+
/** The Node deploy target for the Foldkit build. */
|
|
6
|
+
export declare const FOLDKIT_NODE_TARGET_SPECIFIER = "@alchemy.run/frontend-frameworks/foldkit/node";
|
|
7
|
+
/** Configuration for a Foldkit website. */
|
|
8
|
+
export interface FoldkitProps extends FrameworkSiteProps {
|
|
9
|
+
/** Serializable overrides merged over vite.config.*. */
|
|
10
|
+
vite?: ViteProps["vite"];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Deploy a [Foldkit](https://foldkit.dev) application to Better Stack Cloud.
|
|
14
|
+
* Browser-only apps use SPA routing. With `ssr.build` enabled in the
|
|
15
|
+
* Foldkit Vite plugin, prerendered pages and assets are served first,
|
|
16
|
+
* followed by Foldkit's generated request handler for SSR and hybrid routes.
|
|
17
|
+
*
|
|
18
|
+
* The build uses `@alchemy.run/frontend-frameworks/foldkit` and the
|
|
19
|
+
* project's Vite configuration. No application adapter is required.
|
|
20
|
+
* Native Foldkit development and live reload run without cloud resources;
|
|
21
|
+
* `Alchemy.remote()` opts into a live deployment during development.
|
|
22
|
+
*
|
|
23
|
+
* ### Creating a Website
|
|
24
|
+
* **Example:** SPA, SSR, or prerendered Foldkit application
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const site = yield* BetterStack.Cloud.Website.Foldkit("Web", {
|
|
27
|
+
* rootDir: "./app",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ### Server Configuration
|
|
32
|
+
* **Example:** Runtime environment for server-rendered pages
|
|
33
|
+
* ```typescript
|
|
34
|
+
* const site = yield* BetterStack.Cloud.Website.Foldkit("Web", {
|
|
35
|
+
* rootDir: "./app",
|
|
36
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ### Hosting on Better Stack Cloud
|
|
41
|
+
* The site runs as one `Cloud.Service` (a systemd unit, port 3000, gated on
|
|
42
|
+
* the serve entry's `GET /health`) on a `Cloud.Server`. Without `server`,
|
|
43
|
+
* the composite **creates a billable server**: `AM1` (the smallest type) on
|
|
44
|
+
* `ubuntu-26-04`, term `monthly`. Pass `server` to use one you already have
|
|
45
|
+
* (one website per server), and `firewall` when that server has a
|
|
46
|
+
* `Cloud.Firewall` (port 3000 is opened on it). `domain` publishes an `A`
|
|
47
|
+
* record through another provider's DNS adapter (Better Stack has no DNS);
|
|
48
|
+
* the site speaks plain HTTP on 3000, and HTTPS is a `Cloud.LoadBalancer` +
|
|
49
|
+
* managed `Cloud.Certificate` in front (see `StaticSite`). No CDN: the
|
|
50
|
+
* object cache only fronts S3-compatible buckets for SigV4 clients, so the
|
|
51
|
+
* unit serves its own assets. See {@link FrameworkSiteProps}.
|
|
52
|
+
*
|
|
53
|
+
* @see https://foldkit.dev/
|
|
54
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
55
|
+
*
|
|
56
|
+
* @resource
|
|
57
|
+
* @product Website
|
|
58
|
+
*/
|
|
59
|
+
export declare const Foldkit: (id: string, props?: FoldkitProps) => import("effect/Effect").Effect<{
|
|
60
|
+
url: import("alchemy/Output").Output<string | undefined, never>;
|
|
61
|
+
server: undefined;
|
|
62
|
+
service: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
url: string | import("alchemy/Output").Output<string | undefined, never>;
|
|
65
|
+
server: import("../Server.ts").Server;
|
|
66
|
+
service: import("../Service.ts").Service<{
|
|
67
|
+
PORT: string;
|
|
68
|
+
}>;
|
|
69
|
+
}, never, import("alchemy/AlchemyContext").AlchemyContext | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("alchemy/Provider").Provider<import("alchemy/Website/Server").Server> | import("../../Providers.ts").Providers>;
|
|
70
|
+
//# sourceMappingURL=Foldkit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Foldkit.d.ts","sourceRoot":"","sources":["../../../src/Cloud/Website/Foldkit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,uEAAuE;AACvE,eAAO,MAAM,2BAA2B,6CAA6C,CAAC;AAEtF,oDAAoD;AACpD,eAAO,MAAM,6BAA6B,kDAAkD,CAAC;AAE7F,2CAA2C;AAC3C,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,wDAAwD;IACxD,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,OAAO,OAAQ,MAAM,UAAS,YAAY;;;;;;;;;;wPAa1B,CAAC"}
|