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 @@
|
|
|
1
|
+
{"version":3,"file":"ReactRouter.js","sourceRoot":"","sources":["../../../src/Cloud/Website/ReactRouter.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAEhF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gCAAgC,GAAG,+CAA+C,CAAC;AAEhG,mEAAmE;AACnE,MAAM,CAAC,MAAM,kCAAkC,GAC7C,oDAAoD,CAAC;AAIvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,KAAK,GAAqB,EAAE,EAAE,EAAE,CACtE,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,IAAI,EAAE,aAAa;IACnB,SAAS,EAAE,gCAAgC;IAC3C,MAAM,EAAE,kCAAkC;CAC3C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
2
|
+
/** The framework-integration package that drives the SolidStart build. */
|
|
3
|
+
export declare const SOLIDSTART_FRAMEWORK_SPECIFIER = "@alchemy.run/frontend-frameworks/solidstart";
|
|
4
|
+
/** The Node container deploy target for the SolidStart build. */
|
|
5
|
+
export declare const SOLIDSTART_NODE_TARGET_SPECIFIER = "@alchemy.run/frontend-frameworks/solidstart/node";
|
|
6
|
+
export interface SolidStartProps extends FrameworkSiteProps {
|
|
7
|
+
/**
|
|
8
|
+
* Nitro options forwarded into the nitro plugin the integration appends
|
|
9
|
+
* (prerendering, route rules, storage, ...). `preset` is owned by the
|
|
10
|
+
* Node deploy target and may not be set here. JSON-serializable values
|
|
11
|
+
* only — no functions or plugin instances.
|
|
12
|
+
*
|
|
13
|
+
* This is a prop (rather than project config) because the integration
|
|
14
|
+
* owns the nitro plugin instance: a `nitroV2Plugin()` in your project's
|
|
15
|
+
* `vite.config.*` is rejected, so this prop is the one home for nitro
|
|
16
|
+
* options — and it accepts values derived from other resources' Outputs,
|
|
17
|
+
* which a config file cannot.
|
|
18
|
+
*/
|
|
19
|
+
nitro?: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Deploy a [SolidStart](https://start.solidjs.com) application to a
|
|
23
|
+
* Better Stack Cloud server: the SSR server as a systemd unit on port 3000,
|
|
24
|
+
* static assets (prerendered pages included) baked into the unit.
|
|
25
|
+
*
|
|
26
|
+
* The build runs through `@alchemy.run/frontend-frameworks/solidstart` with
|
|
27
|
+
* the `@alchemy.run/frontend-frameworks/solidstart/node` deploy target —
|
|
28
|
+
* both must be installed in your project, alongside `@solidjs/start` and
|
|
29
|
+
* `@solidjs/vite-plugin-nitro-2`.
|
|
30
|
+
*
|
|
31
|
+
* Your `vite.config.ts` needs no adapter wiring: the integration drives the
|
|
32
|
+
* project's own `vite build` and appends its own nitro plugin instance
|
|
33
|
+
* carrying nitro's `node` preset.
|
|
34
|
+
*
|
|
35
|
+
*
|
|
36
|
+
* ### Creating SolidStart Sites
|
|
37
|
+
* **Example:** Basic SolidStart App
|
|
38
|
+
* ```typescript
|
|
39
|
+
* const site = yield* BetterStack.Cloud.Website.SolidStart("Web", {
|
|
40
|
+
* rootDir: "./app",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* **Example:** Custom Domain
|
|
45
|
+
* ```typescript
|
|
46
|
+
* const site = yield* BetterStack.Cloud.Website.SolidStart("Web", {
|
|
47
|
+
* rootDir: "./app",
|
|
48
|
+
* // Better Stack has no DNS: the A record goes to Cloudflare.
|
|
49
|
+
* domain: { name: "app.example.com", dns: Cloudflare.DNS.Adapter() },
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* ### Server Configuration
|
|
54
|
+
* **Example:** Process Environment
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const site = yield* BetterStack.Cloud.Website.SolidStart("Web", {
|
|
57
|
+
* rootDir: "./app",
|
|
58
|
+
* env: {
|
|
59
|
+
* API_BASE: "https://api.example.com",
|
|
60
|
+
* },
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* ### Prerendering
|
|
65
|
+
* The integration owns the nitro plugin instance (a `nitroV2Plugin()` in
|
|
66
|
+
* your `vite.config.*` is rejected), so nitro options — prerendering
|
|
67
|
+
* included — go on the `nitro` prop. Prerendered pages are baked into the
|
|
68
|
+
* unit and served as static assets.
|
|
69
|
+
*
|
|
70
|
+
* **Example:** Prerender Routes
|
|
71
|
+
* ```typescript
|
|
72
|
+
* const site = yield* BetterStack.Cloud.Website.SolidStart("Web", {
|
|
73
|
+
* rootDir: "./app",
|
|
74
|
+
* nitro: { prerender: { routes: ["/", "/about"] } },
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* ### Hosting on Better Stack Cloud
|
|
79
|
+
* The site runs as one `Cloud.Service` (a systemd unit, port 3000, gated on
|
|
80
|
+
* the serve entry's `GET /health`) on a `Cloud.Server`. Without `server`,
|
|
81
|
+
* the composite **creates a billable server**: `AM1` (the smallest type) on
|
|
82
|
+
* `ubuntu-26-04`, term `monthly`. Pass `server` to use one you already have
|
|
83
|
+
* (one website per server), and `firewall` when that server has a
|
|
84
|
+
* `Cloud.Firewall` (port 3000 is opened on it). `domain` publishes an `A`
|
|
85
|
+
* record through another provider's DNS adapter (Better Stack has no DNS);
|
|
86
|
+
* the site speaks plain HTTP on 3000, and HTTPS is a `Cloud.LoadBalancer` +
|
|
87
|
+
* managed `Cloud.Certificate` in front (see `StaticSite`). No CDN: the
|
|
88
|
+
* object cache only fronts S3-compatible buckets for SigV4 clients, so the
|
|
89
|
+
* unit serves its own assets. See {@link FrameworkSiteProps}.
|
|
90
|
+
*
|
|
91
|
+
* @see https://start.solidjs.com/
|
|
92
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
93
|
+
*
|
|
94
|
+
* @resource
|
|
95
|
+
* @product Website
|
|
96
|
+
*/
|
|
97
|
+
export declare const SolidStart: (id: string, props?: SolidStartProps) => import("effect/Effect").Effect<{
|
|
98
|
+
url: import("alchemy/Output").Output<string | undefined, never>;
|
|
99
|
+
server: undefined;
|
|
100
|
+
service: undefined;
|
|
101
|
+
} | {
|
|
102
|
+
url: string | import("alchemy/Output").Output<string | undefined, never>;
|
|
103
|
+
server: import("../Server.ts").Server;
|
|
104
|
+
service: import("../Service.ts").Service<{
|
|
105
|
+
PORT: string;
|
|
106
|
+
}>;
|
|
107
|
+
}, 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>;
|
|
108
|
+
//# sourceMappingURL=SolidStart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidStart.d.ts","sourceRoot":"","sources":["../../../src/Cloud/Website/SolidStart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,0EAA0E;AAC1E,eAAO,MAAM,8BAA8B,gDAAgD,CAAC;AAE5F,iEAAiE;AACjE,eAAO,MAAM,gCAAgC,qDAAqD,CAAC;AAEnG,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,eAAO,MAAM,UAAU,OAAQ,MAAM,UAAS,eAAe;;;;;;;;;;wPAMhC,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// Adapted from @alchemy.run/hetzner@2.0.0-beta.87 (Apache-2.0), src/Website/SolidStart.ts; modified.
|
|
2
|
+
import * as Namespace from "alchemy/Namespace";
|
|
3
|
+
import { makeFrameworkSite } from "./FrameworkSite.js";
|
|
4
|
+
/** The framework-integration package that drives the SolidStart build. */
|
|
5
|
+
export const SOLIDSTART_FRAMEWORK_SPECIFIER = "@alchemy.run/frontend-frameworks/solidstart";
|
|
6
|
+
/** The Node container deploy target for the SolidStart build. */
|
|
7
|
+
export const SOLIDSTART_NODE_TARGET_SPECIFIER = "@alchemy.run/frontend-frameworks/solidstart/node";
|
|
8
|
+
/**
|
|
9
|
+
* Deploy a [SolidStart](https://start.solidjs.com) application to a
|
|
10
|
+
* Better Stack Cloud server: the SSR server as a systemd unit on port 3000,
|
|
11
|
+
* static assets (prerendered pages included) baked into the unit.
|
|
12
|
+
*
|
|
13
|
+
* The build runs through `@alchemy.run/frontend-frameworks/solidstart` with
|
|
14
|
+
* the `@alchemy.run/frontend-frameworks/solidstart/node` deploy target —
|
|
15
|
+
* both must be installed in your project, alongside `@solidjs/start` and
|
|
16
|
+
* `@solidjs/vite-plugin-nitro-2`.
|
|
17
|
+
*
|
|
18
|
+
* Your `vite.config.ts` needs no adapter wiring: the integration drives the
|
|
19
|
+
* project's own `vite build` and appends its own nitro plugin instance
|
|
20
|
+
* carrying nitro's `node` preset.
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ### Creating SolidStart Sites
|
|
24
|
+
* **Example:** Basic SolidStart App
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const site = yield* BetterStack.Cloud.Website.SolidStart("Web", {
|
|
27
|
+
* rootDir: "./app",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* **Example:** Custom Domain
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const site = yield* BetterStack.Cloud.Website.SolidStart("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
|
+
* ### Server Configuration
|
|
41
|
+
* **Example:** Process Environment
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const site = yield* BetterStack.Cloud.Website.SolidStart("Web", {
|
|
44
|
+
* rootDir: "./app",
|
|
45
|
+
* env: {
|
|
46
|
+
* API_BASE: "https://api.example.com",
|
|
47
|
+
* },
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ### Prerendering
|
|
52
|
+
* The integration owns the nitro plugin instance (a `nitroV2Plugin()` in
|
|
53
|
+
* your `vite.config.*` is rejected), so nitro options — prerendering
|
|
54
|
+
* included — go on the `nitro` prop. Prerendered pages are baked into the
|
|
55
|
+
* unit and served as static assets.
|
|
56
|
+
*
|
|
57
|
+
* **Example:** Prerender Routes
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const site = yield* BetterStack.Cloud.Website.SolidStart("Web", {
|
|
60
|
+
* rootDir: "./app",
|
|
61
|
+
* nitro: { prerender: { routes: ["/", "/about"] } },
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* ### Hosting on Better Stack Cloud
|
|
66
|
+
* The site runs as one `Cloud.Service` (a systemd unit, port 3000, gated on
|
|
67
|
+
* the serve entry's `GET /health`) on a `Cloud.Server`. Without `server`,
|
|
68
|
+
* the composite **creates a billable server**: `AM1` (the smallest type) on
|
|
69
|
+
* `ubuntu-26-04`, term `monthly`. Pass `server` to use one you already have
|
|
70
|
+
* (one website per server), and `firewall` when that server has a
|
|
71
|
+
* `Cloud.Firewall` (port 3000 is opened on it). `domain` publishes an `A`
|
|
72
|
+
* record through another provider's DNS adapter (Better Stack has no DNS);
|
|
73
|
+
* the site speaks plain HTTP on 3000, and HTTPS is a `Cloud.LoadBalancer` +
|
|
74
|
+
* managed `Cloud.Certificate` in front (see `StaticSite`). No CDN: the
|
|
75
|
+
* object cache only fronts S3-compatible buckets for SigV4 clients, so the
|
|
76
|
+
* unit serves its own assets. See {@link FrameworkSiteProps}.
|
|
77
|
+
*
|
|
78
|
+
* @see https://start.solidjs.com/
|
|
79
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
80
|
+
*
|
|
81
|
+
* @resource
|
|
82
|
+
* @product Website
|
|
83
|
+
*/
|
|
84
|
+
export const SolidStart = (id, props = {}) => makeFrameworkSite(id, props, {
|
|
85
|
+
name: "SolidStart",
|
|
86
|
+
framework: SOLIDSTART_FRAMEWORK_SPECIFIER,
|
|
87
|
+
target: SOLIDSTART_NODE_TARGET_SPECIFIER,
|
|
88
|
+
options: { nitro: props.nitro },
|
|
89
|
+
}).pipe(Namespace.push(id));
|
|
90
|
+
//# sourceMappingURL=SolidStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidStart.js","sourceRoot":"","sources":["../../../src/Cloud/Website/SolidStart.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAEhF,0EAA0E;AAC1E,MAAM,CAAC,MAAM,8BAA8B,GAAG,6CAA6C,CAAC;AAE5F,iEAAiE;AACjE,MAAM,CAAC,MAAM,gCAAgC,GAAG,kDAAkD,CAAC;AAkBnG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAE,KAAK,GAAoB,EAAE,EAAE,EAAE,CACpE,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,8BAA8B;IACzC,MAAM,EAAE,gCAAgC;IACxC,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;CAChC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { AlchemyContext } from "alchemy/AlchemyContext";
|
|
2
|
+
import * as Command from "alchemy/Command";
|
|
3
|
+
import type { MemoOptions } from "alchemy/Command/Memo";
|
|
4
|
+
import * as Output from "alchemy/Output";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Path from "effect/Path";
|
|
7
|
+
import type * as Redacted from "effect/Redacted";
|
|
8
|
+
import { Service } from "../Service.ts";
|
|
9
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
10
|
+
export interface StaticSiteProps extends Pick<FrameworkSiteProps, "domain" | "server" | "firewall" | "tags" | "env"> {
|
|
11
|
+
/**
|
|
12
|
+
* Command that produces the site (e.g. `hugo --minify`), split on
|
|
13
|
+
* whitespace and run without a shell.
|
|
14
|
+
*/
|
|
15
|
+
command: string;
|
|
16
|
+
/**
|
|
17
|
+
* Directory the command writes, relative to {@link cwd}. It is build
|
|
18
|
+
* output: destroying the site deletes it (`Command.Build` removes its
|
|
19
|
+
* `outdir`), so never point it at hand-written sources.
|
|
20
|
+
*/
|
|
21
|
+
outdir: string;
|
|
22
|
+
/**
|
|
23
|
+
* Working directory for {@link command}.
|
|
24
|
+
* @default process.cwd()
|
|
25
|
+
*/
|
|
26
|
+
cwd?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Controls which files are hashed to decide whether the build re-runs.
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
memo?: MemoOptions | boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Answer misses with the index page (200) instead of a 404 so
|
|
34
|
+
* client-side routes deep-link correctly. Mutually exclusive with
|
|
35
|
+
* {@link errorPage}.
|
|
36
|
+
*/
|
|
37
|
+
spa?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Serve this page with a real `404` status for requests that match no
|
|
40
|
+
* file. Mutually exclusive with {@link spa}.
|
|
41
|
+
*/
|
|
42
|
+
errorPage?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Local dev configuration. When `alchemy dev` runs, the build command
|
|
45
|
+
* is skipped and `command` is spawned as a long-lived child. Without
|
|
46
|
+
* `dev`, the site is still built and served locally (no cloud Service).
|
|
47
|
+
*/
|
|
48
|
+
dev?: {
|
|
49
|
+
/** Shell command to run as the local dev server (e.g. `npm run dev`). */
|
|
50
|
+
command: string;
|
|
51
|
+
/** Working directory for {@link command}. Defaults to {@link StaticSiteProps.cwd}. */
|
|
52
|
+
cwd?: string;
|
|
53
|
+
/** Environment variables for {@link command}, merged on top of `process.env`. */
|
|
54
|
+
env?: Record<string, string | Redacted.Redacted<string>>;
|
|
55
|
+
/** Override for the `url` output if alchemy fails to detect it from stdout of the dev command. */
|
|
56
|
+
url?: string;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A static site on Better Stack Cloud: a build command's output directory
|
|
61
|
+
* served by a small generated Node server (`GET` assets with their content
|
|
62
|
+
* type, `cache-control: no-cache`, `GET /health`, optional SPA fallback or
|
|
63
|
+
* 404 page) running as one `Cloud.Service` on port 3000. Use it for Hugo,
|
|
64
|
+
* Zola, Eleventy, a hand-written `public/` directory, or any custom
|
|
65
|
+
* pipeline. The port of `Hetzner.Website.StaticSite`.
|
|
66
|
+
*
|
|
67
|
+
* What a deploy does: runs `command` in `cwd` (`Command.Build`, skipped when
|
|
68
|
+
* the inputs are unchanged; destroying the site deletes `outdir`, so it must
|
|
69
|
+
* be build output, never your sources), writes the serve entry `serve-node.mjs` next to
|
|
70
|
+
* `outdir` (the same generator the framework Node targets use, from
|
|
71
|
+
* `@alchemy.run/frontend-frameworks/core`, which must be installed), then
|
|
72
|
+
* copies the entry and `outdir` over SSH as they are (`prebuilt: true`, no
|
|
73
|
+
* bundling) and starts the unit, gated on `/health`. Unchanged output is a
|
|
74
|
+
* no-op with no SSH; any changed file re-copies and restarts the unit.
|
|
75
|
+
*
|
|
76
|
+
* **Server and cost.** Without `server`, the composite **creates a billable
|
|
77
|
+
* `Cloud.Server`**: `AM1` (the smallest type) on `ubuntu-26-04`, term
|
|
78
|
+
* `monthly`. Pass `server` to put the site on a server you already pay
|
|
79
|
+
* for; one website per server (they all listen on 3000). With a
|
|
80
|
+
* `Cloud.Firewall` on that server, pass it as `firewall` and the composite
|
|
81
|
+
* opens port 3000.
|
|
82
|
+
*
|
|
83
|
+
* **Domain and TLS.** Better Stack has no DNS product: `domain` takes a
|
|
84
|
+
* DNS adapter of another provider (`{ name, dns: Cloudflare.DNS.Adapter() }`)
|
|
85
|
+
* and publishes an `A` record at the server's IPv4; the URL becomes
|
|
86
|
+
* `http://{domain}:3000`. The site itself speaks plain HTTP (as on
|
|
87
|
+
* Hetzner). For HTTPS on 443, put a `Cloud.LoadBalancer` in front with a
|
|
88
|
+
* `Cloud.LoadBalancerService` (`protocol: "https"`, `listenPort: 443`,
|
|
89
|
+
* `destinationPort: 3000`, `certificateIds: [certificate.id]` from a managed
|
|
90
|
+
* `Cloud.Certificate`), a `Cloud.LoadBalancerTarget` on the server and a
|
|
91
|
+
* health check on `/health` — a billable load balancer, so it is a recipe,
|
|
92
|
+
* not a prop.
|
|
93
|
+
*
|
|
94
|
+
* **CDN.** None. Better Stack's object cache (`Cloud.ObjectCache`) is an
|
|
95
|
+
* S3-compatible cache in front of buckets at another storage provider, read
|
|
96
|
+
* by S3 clients that sign with SigV4; its docs state no anonymous browser
|
|
97
|
+
* access and no way to front an HTTP origin such as this server, so it
|
|
98
|
+
* cannot serve as the site's CDN. The assets are served by the unit itself.
|
|
99
|
+
*
|
|
100
|
+
* **Verified live** (2026-12-01): served from an existing server (`server` +
|
|
101
|
+
* `firewall`) on port 3000 with the expected content types and
|
|
102
|
+
* `cache-control`. The other `Cloud.Website.*` frameworks are verified
|
|
103
|
+
* offline only.
|
|
104
|
+
*
|
|
105
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
106
|
+
*
|
|
107
|
+
* ### Basic Usage
|
|
108
|
+
* **Example:** Deploying a Hugo site
|
|
109
|
+
* ```typescript
|
|
110
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("Blog", {
|
|
111
|
+
* command: "hugo --minify",
|
|
112
|
+
* outdir: "public",
|
|
113
|
+
* });
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* **Example:** On a server you already have, behind its firewall
|
|
117
|
+
* ```typescript
|
|
118
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("Site", {
|
|
119
|
+
* command: "npm run build",
|
|
120
|
+
* outdir: "dist",
|
|
121
|
+
* server,
|
|
122
|
+
* firewall,
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* **Example:** SPA-style routing
|
|
127
|
+
* ```typescript
|
|
128
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("App", {
|
|
129
|
+
* command: "npm run build",
|
|
130
|
+
* outdir: "dist",
|
|
131
|
+
* spa: true,
|
|
132
|
+
* });
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* ### Custom Domain
|
|
136
|
+
* **Example:** Publish the record in Cloudflare
|
|
137
|
+
* ```typescript
|
|
138
|
+
* // Requires Cloudflare.providers() in the stack.
|
|
139
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("Blog", {
|
|
140
|
+
* command: "hugo --minify",
|
|
141
|
+
* outdir: "public",
|
|
142
|
+
* domain: { name: "blog.example.com", dns: Cloudflare.DNS.Adapter() },
|
|
143
|
+
* });
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* ### Local Development
|
|
147
|
+
* **Example:** External Dev Server
|
|
148
|
+
* ```typescript
|
|
149
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("App", {
|
|
150
|
+
* command: "npm run build",
|
|
151
|
+
* outdir: "dist",
|
|
152
|
+
* dev: { command: "npm run dev" },
|
|
153
|
+
* });
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* @resource
|
|
157
|
+
* @product Website
|
|
158
|
+
*/
|
|
159
|
+
export declare const StaticSite: (id: string, props: StaticSiteProps) => Effect.Effect<{
|
|
160
|
+
url: Output.Output<string | undefined, never>;
|
|
161
|
+
server: undefined;
|
|
162
|
+
service: undefined;
|
|
163
|
+
} | {
|
|
164
|
+
url: string | Output.Output<string | undefined, never>;
|
|
165
|
+
server: import("../Server.ts").Server;
|
|
166
|
+
service: Service<{
|
|
167
|
+
readonly PORT: string;
|
|
168
|
+
}>;
|
|
169
|
+
}, never, AlchemyContext | import("effect/FileSystem").FileSystem | Path.Path | import("alchemy/Provider").Provider<Command.Build> | import("alchemy/Provider").Provider<Command.Dev> | import("../../Providers.ts").Providers>;
|
|
170
|
+
//# sourceMappingURL=StaticSite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticSite.d.ts","sourceRoot":"","sources":["../../../src/Cloud/Website/StaticSite.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAIzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EASL,KAAK,kBAAkB,EAExB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,kBAAkB,EAClB,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAClD;IACC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAC7B;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,GAAG,CAAC,EAAE;QACJ,yEAAyE;QACzE,OAAO,EAAE,MAAM,CAAC;QAChB,sFAAsF;QACtF,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,iFAAiF;QACjF,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;QACzD,kGAAkG;QAClG,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,eAAO,MAAM,UAAU,OAAQ,MAAM,SAAS,eAAe;;;;;;;;;;+NA6FtC,CAAC"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// Adapted from @alchemy.run/hetzner@2.0.0-beta.87 (Apache-2.0), src/Website/StaticSite.ts; modified.
|
|
2
|
+
import { AlchemyContext } from "alchemy/AlchemyContext";
|
|
3
|
+
import * as Command from "alchemy/Command";
|
|
4
|
+
import * as Namespace from "alchemy/Namespace";
|
|
5
|
+
import * as Output from "alchemy/Output";
|
|
6
|
+
import { ProviderModePolicy } from "alchemy/ProviderMode";
|
|
7
|
+
import { initialCwd } from "alchemy/Util/Node";
|
|
8
|
+
import { loadFrontendCore } from "alchemy/Website/FrontendCore";
|
|
9
|
+
import * as Effect from "effect/Effect";
|
|
10
|
+
import * as Path from "effect/Path";
|
|
11
|
+
import { Service } from "../Service.js";
|
|
12
|
+
import { DEFAULT_WEBSITE_PORT, openWebsitePort, publishWebsiteDomain, requireWebsiteDomainDns, resolveWebsiteServer, unwrapEnv, websiteDomainName, websiteUrl, } from "./FrameworkSite.js";
|
|
13
|
+
/**
|
|
14
|
+
* A static site on Better Stack Cloud: a build command's output directory
|
|
15
|
+
* served by a small generated Node server (`GET` assets with their content
|
|
16
|
+
* type, `cache-control: no-cache`, `GET /health`, optional SPA fallback or
|
|
17
|
+
* 404 page) running as one `Cloud.Service` on port 3000. Use it for Hugo,
|
|
18
|
+
* Zola, Eleventy, a hand-written `public/` directory, or any custom
|
|
19
|
+
* pipeline. The port of `Hetzner.Website.StaticSite`.
|
|
20
|
+
*
|
|
21
|
+
* What a deploy does: runs `command` in `cwd` (`Command.Build`, skipped when
|
|
22
|
+
* the inputs are unchanged; destroying the site deletes `outdir`, so it must
|
|
23
|
+
* be build output, never your sources), writes the serve entry `serve-node.mjs` next to
|
|
24
|
+
* `outdir` (the same generator the framework Node targets use, from
|
|
25
|
+
* `@alchemy.run/frontend-frameworks/core`, which must be installed), then
|
|
26
|
+
* copies the entry and `outdir` over SSH as they are (`prebuilt: true`, no
|
|
27
|
+
* bundling) and starts the unit, gated on `/health`. Unchanged output is a
|
|
28
|
+
* no-op with no SSH; any changed file re-copies and restarts the unit.
|
|
29
|
+
*
|
|
30
|
+
* **Server and cost.** Without `server`, the composite **creates a billable
|
|
31
|
+
* `Cloud.Server`**: `AM1` (the smallest type) on `ubuntu-26-04`, term
|
|
32
|
+
* `monthly`. Pass `server` to put the site on a server you already pay
|
|
33
|
+
* for; one website per server (they all listen on 3000). With a
|
|
34
|
+
* `Cloud.Firewall` on that server, pass it as `firewall` and the composite
|
|
35
|
+
* opens port 3000.
|
|
36
|
+
*
|
|
37
|
+
* **Domain and TLS.** Better Stack has no DNS product: `domain` takes a
|
|
38
|
+
* DNS adapter of another provider (`{ name, dns: Cloudflare.DNS.Adapter() }`)
|
|
39
|
+
* and publishes an `A` record at the server's IPv4; the URL becomes
|
|
40
|
+
* `http://{domain}:3000`. The site itself speaks plain HTTP (as on
|
|
41
|
+
* Hetzner). For HTTPS on 443, put a `Cloud.LoadBalancer` in front with a
|
|
42
|
+
* `Cloud.LoadBalancerService` (`protocol: "https"`, `listenPort: 443`,
|
|
43
|
+
* `destinationPort: 3000`, `certificateIds: [certificate.id]` from a managed
|
|
44
|
+
* `Cloud.Certificate`), a `Cloud.LoadBalancerTarget` on the server and a
|
|
45
|
+
* health check on `/health` — a billable load balancer, so it is a recipe,
|
|
46
|
+
* not a prop.
|
|
47
|
+
*
|
|
48
|
+
* **CDN.** None. Better Stack's object cache (`Cloud.ObjectCache`) is an
|
|
49
|
+
* S3-compatible cache in front of buckets at another storage provider, read
|
|
50
|
+
* by S3 clients that sign with SigV4; its docs state no anonymous browser
|
|
51
|
+
* access and no way to front an HTTP origin such as this server, so it
|
|
52
|
+
* cannot serve as the site's CDN. The assets are served by the unit itself.
|
|
53
|
+
*
|
|
54
|
+
* **Verified live** (2026-12-01): served from an existing server (`server` +
|
|
55
|
+
* `firewall`) on port 3000 with the expected content types and
|
|
56
|
+
* `cache-control`. The other `Cloud.Website.*` frameworks are verified
|
|
57
|
+
* offline only.
|
|
58
|
+
*
|
|
59
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
60
|
+
*
|
|
61
|
+
* ### Basic Usage
|
|
62
|
+
* **Example:** Deploying a Hugo site
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("Blog", {
|
|
65
|
+
* command: "hugo --minify",
|
|
66
|
+
* outdir: "public",
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* **Example:** On a server you already have, behind its firewall
|
|
71
|
+
* ```typescript
|
|
72
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("Site", {
|
|
73
|
+
* command: "npm run build",
|
|
74
|
+
* outdir: "dist",
|
|
75
|
+
* server,
|
|
76
|
+
* firewall,
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* **Example:** SPA-style routing
|
|
81
|
+
* ```typescript
|
|
82
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("App", {
|
|
83
|
+
* command: "npm run build",
|
|
84
|
+
* outdir: "dist",
|
|
85
|
+
* spa: true,
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* ### Custom Domain
|
|
90
|
+
* **Example:** Publish the record in Cloudflare
|
|
91
|
+
* ```typescript
|
|
92
|
+
* // Requires Cloudflare.providers() in the stack.
|
|
93
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("Blog", {
|
|
94
|
+
* command: "hugo --minify",
|
|
95
|
+
* outdir: "public",
|
|
96
|
+
* domain: { name: "blog.example.com", dns: Cloudflare.DNS.Adapter() },
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* ### Local Development
|
|
101
|
+
* **Example:** External Dev Server
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const site = yield* BetterStack.Cloud.Website.StaticSite("App", {
|
|
104
|
+
* command: "npm run build",
|
|
105
|
+
* outdir: "dist",
|
|
106
|
+
* dev: { command: "npm run dev" },
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @resource
|
|
111
|
+
* @product Website
|
|
112
|
+
*/
|
|
113
|
+
export const StaticSite = (id, props) => Effect.gen(function* () {
|
|
114
|
+
const ctx = yield* AlchemyContext;
|
|
115
|
+
const remoted = yield* ProviderModePolicy;
|
|
116
|
+
const isLocal = ctx.dev && remoted !== true;
|
|
117
|
+
const port = DEFAULT_WEBSITE_PORT;
|
|
118
|
+
if (props.spa && props.errorPage) {
|
|
119
|
+
return yield* Effect.die(`Cannot provide both "spa" and "errorPage". A SPA answers misses with the index page (200); "errorPage" answers them with a real 404.`);
|
|
120
|
+
}
|
|
121
|
+
yield* requireWebsiteDomainDns("BetterStack.Cloud.Website.StaticSite", props);
|
|
122
|
+
if (isLocal && props.dev) {
|
|
123
|
+
const dev = yield* Command.Dev("Dev", {
|
|
124
|
+
command: props.dev.command,
|
|
125
|
+
cwd: props.dev.cwd ?? props.cwd,
|
|
126
|
+
env: props.dev.env ?? props.env,
|
|
127
|
+
}).pipe(Namespace.push(id));
|
|
128
|
+
const url = Output.map((detected) => detected ?? props.dev?.url)(dev.url);
|
|
129
|
+
return { url, server: undefined, service: undefined };
|
|
130
|
+
}
|
|
131
|
+
const build = yield* Command.Build("Build", {
|
|
132
|
+
command: props.command,
|
|
133
|
+
cwd: props.cwd,
|
|
134
|
+
memo: props.memo,
|
|
135
|
+
outdir: props.outdir,
|
|
136
|
+
env: props.env,
|
|
137
|
+
}).pipe(Namespace.push(id));
|
|
138
|
+
const path = yield* Path.Path;
|
|
139
|
+
const cwd = path.resolve(initialCwd, props.cwd ?? ".");
|
|
140
|
+
const outdir = path.resolve(cwd, props.outdir);
|
|
141
|
+
const { NODE_SERVE_ENTRY_FILE_NAME, relativeClientDirExpression, writeNodeServeEntry } = yield* loadFrontendCore;
|
|
142
|
+
const servePath = path.join(path.dirname(outdir), NODE_SERVE_ENTRY_FILE_NAME);
|
|
143
|
+
yield* writeNodeServeEntry({
|
|
144
|
+
output: { clientDirectory: outdir, serverModules: [], externalWorkspaces: new Set() },
|
|
145
|
+
servePath,
|
|
146
|
+
serveModuleName: NODE_SERVE_ENTRY_FILE_NAME,
|
|
147
|
+
clientDirExpression: relativeClientDirExpression(servePath, outdir),
|
|
148
|
+
notFoundHandling: props.errorPage !== undefined ? "404-page" : props.spa === true ? "spa" : "none",
|
|
149
|
+
errorPage: props.errorPage,
|
|
150
|
+
printUrl: isLocal,
|
|
151
|
+
defaultPort: port,
|
|
152
|
+
platform: "node",
|
|
153
|
+
});
|
|
154
|
+
if (isLocal) {
|
|
155
|
+
const bun = yield* Effect.sync(() => process.execPath);
|
|
156
|
+
const dev = yield* Command.Dev("Dev", {
|
|
157
|
+
command: `${bun} ${servePath}`,
|
|
158
|
+
cwd: path.dirname(servePath),
|
|
159
|
+
env: {
|
|
160
|
+
...unwrapEnv(props.env),
|
|
161
|
+
ALCHEMY_BUILD_HASH: build.hash.output,
|
|
162
|
+
PORT: "0",
|
|
163
|
+
HOST: "127.0.0.1",
|
|
164
|
+
},
|
|
165
|
+
}).pipe(Namespace.push(id));
|
|
166
|
+
return { url: dev.url, server: undefined, service: undefined };
|
|
167
|
+
}
|
|
168
|
+
const server = props.server !== undefined
|
|
169
|
+
? yield* resolveWebsiteServer(props)
|
|
170
|
+
: yield* resolveWebsiteServer(props).pipe(Namespace.push(id));
|
|
171
|
+
yield* openWebsitePort({ firewall: props.firewall, port }).pipe(Namespace.push(id));
|
|
172
|
+
// `main` waits on the build (Hetzner passes the plain path, so the
|
|
173
|
+
// Service could be diffed and copied before the command has written
|
|
174
|
+
// `outdir`): the Service only runs once `Command.Build` has.
|
|
175
|
+
const main = Output.map(build.outdir, () => servePath);
|
|
176
|
+
const service = yield* Service(id, {
|
|
177
|
+
server,
|
|
178
|
+
main: main,
|
|
179
|
+
extraFiles: [{ source: outdir, destination: path.basename(outdir) }],
|
|
180
|
+
port,
|
|
181
|
+
// As given: `Redacted` stays redacted in the plan and state (finding Y8).
|
|
182
|
+
env: { ...props.env, PORT: String(port) },
|
|
183
|
+
// The generated static-file server is a complete Node program: copy as-is.
|
|
184
|
+
prebuilt: true,
|
|
185
|
+
});
|
|
186
|
+
yield* publishWebsiteDomain({ domain: props.domain, server }).pipe(Namespace.push(id));
|
|
187
|
+
return {
|
|
188
|
+
url: websiteUrl({ domain: websiteDomainName(props.domain), service, port }),
|
|
189
|
+
server,
|
|
190
|
+
service,
|
|
191
|
+
};
|
|
192
|
+
}).pipe(Effect.orDie);
|
|
193
|
+
//# sourceMappingURL=StaticSite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticSite.js","sourceRoot":"","sources":["../../../src/Cloud/Website/StaticSite.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
2
|
+
/** The framework-integration package that drives the SvelteKit build. */
|
|
3
|
+
export declare const SVELTEKIT_FRAMEWORK_SPECIFIER = "@alchemy.run/frontend-frameworks/sveltekit";
|
|
4
|
+
/** The Node container deploy target for the SvelteKit build. */
|
|
5
|
+
export declare const SVELTEKIT_NODE_TARGET_SPECIFIER = "@alchemy.run/frontend-frameworks/sveltekit/node";
|
|
6
|
+
export interface SvelteKitProps extends FrameworkSiteProps {
|
|
7
|
+
/**
|
|
8
|
+
* SvelteKit configuration passed to the `sveltekit(config)` Vite plugin.
|
|
9
|
+
* The `adapter` field is injected by the Node deploy target and may not
|
|
10
|
+
* be set here. Must be JSON-serializable (it persists in state).
|
|
11
|
+
*/
|
|
12
|
+
kit?: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Deploy a SvelteKit application to a Better Stack Cloud server: kit's SSR
|
|
16
|
+
* server as a systemd unit on port 3000, static assets (prerendered
|
|
17
|
+
* pages included) baked into the unit.
|
|
18
|
+
*
|
|
19
|
+
* The build runs through `@alchemy.run/frontend-frameworks/sveltekit` with
|
|
20
|
+
* the `@alchemy.run/frontend-frameworks/sveltekit/node` deploy target.
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ### Creating SvelteKit Sites
|
|
24
|
+
* **Example:** Basic SvelteKit App
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const site = yield* BetterStack.Cloud.Website.SvelteKit("Web", {
|
|
27
|
+
* rootDir: "./app",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* **Example:** Custom Domain
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const site = yield* BetterStack.Cloud.Website.SvelteKit("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
|
+
* ### 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://svelte.dev/docs/kit
|
|
54
|
+
* @see https://betterstack.com/docs/cloud/servers/
|
|
55
|
+
*
|
|
56
|
+
* @resource
|
|
57
|
+
* @product Website
|
|
58
|
+
*/
|
|
59
|
+
export declare const SvelteKit: (id: string, props?: SvelteKitProps) => 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=SvelteKit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvelteKit.d.ts","sourceRoot":"","sources":["../../../src/Cloud/Website/SvelteKit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,yEAAyE;AACzE,eAAO,MAAM,6BAA6B,+CAA+C,CAAC;AAE1F,gEAAgE;AAChE,eAAO,MAAM,+BAA+B,oDAAoD,CAAC;AAEjG,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,SAAS,OAAQ,MAAM,UAAS,cAAc;;;;;;;;;;wPAM9B,CAAC"}
|