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,77 @@
|
|
|
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 PostgresDatabase}. */
|
|
6
|
+
export interface PostgresDatabaseProps extends Omit<Cloud.CreatePostgresDatabaseRequest, "availabilityZone">, ZoneProp {
|
|
7
|
+
}
|
|
8
|
+
/** Attributes of {@link PostgresDatabase}. */
|
|
9
|
+
export interface PostgresDatabaseAttributes extends Omit<Cloud.PostgresDatabase, "id" | "postgresId" | "name">, ZoneAttribute {
|
|
10
|
+
/** The database's ID. */
|
|
11
|
+
id: string;
|
|
12
|
+
/** The database name (always known: the API returns the one it was created with). */
|
|
13
|
+
name: string;
|
|
14
|
+
/** The ID of the {@link Postgres} instance it lives in. */
|
|
15
|
+
postgresId: string;
|
|
16
|
+
}
|
|
17
|
+
/** Props for {@link PostgresDatabase.lookup}: find a database this stack doesn't manage. */
|
|
18
|
+
export interface PostgresDatabaseLookup {
|
|
19
|
+
/** The ID of the {@link Postgres} instance. */
|
|
20
|
+
postgresId: string;
|
|
21
|
+
/** The database's ID. */
|
|
22
|
+
id: string;
|
|
23
|
+
/** Zone the instance lives in. Defaults to the credentials' zone. */
|
|
24
|
+
availabilityZone?: string;
|
|
25
|
+
}
|
|
26
|
+
export type PostgresDatabase = Resource<"BetterStack.Cloud.PostgresDatabase", PostgresDatabaseProps, PostgresDatabaseAttributes, never, Providers, PostgresDatabaseLookup>;
|
|
27
|
+
/**
|
|
28
|
+
* A database inside a managed {@link Postgres} instance. Free: the instance
|
|
29
|
+
* is what bills.
|
|
30
|
+
*
|
|
31
|
+
* It can't be changed: a new `name` or `postgresId` replaces it (the old
|
|
32
|
+
* database, and its data, is dropped). The API has no read endpoint for one
|
|
33
|
+
* database, so it is read by listing the instance's databases; deleting the
|
|
34
|
+
* instance removes its databases with it.
|
|
35
|
+
*
|
|
36
|
+
* Grant a {@link PostgresUser} access to it through its `privileges`.
|
|
37
|
+
*
|
|
38
|
+
* **Ownership.** The API keeps no `metadata` for it and it has no generated name,
|
|
39
|
+
* so nothing marks it as this stack's: `list` enumerates it under every parent, and a
|
|
40
|
+
* create interrupted before its state was saved is not recognised by the next deploy
|
|
41
|
+
* (which creates it again, or gets the API's conflict when its identity is unique).
|
|
42
|
+
*
|
|
43
|
+
* **Zone.** A child doesn't take its zone from its parent: it uses its own
|
|
44
|
+
* `availabilityZone`, else the credentials' zone. When the parent lives in
|
|
45
|
+
* another zone, pass the parent's along (`availabilityZone:
|
|
46
|
+
* parent.availabilityZone`), or every call for it answers `NotFound`.
|
|
47
|
+
*
|
|
48
|
+
* @see https://betterstack.com/docs/cloud/databases/postgresql/
|
|
49
|
+
*
|
|
50
|
+
* ### Creating a database
|
|
51
|
+
* **Example:** A second database with a user that can write to it
|
|
52
|
+
* ```typescript
|
|
53
|
+
* const pg = yield* BetterStack.Cloud.Postgres("db", { type: "PG1" });
|
|
54
|
+
* const reports = yield* BetterStack.Cloud.PostgresDatabase("reports", {
|
|
55
|
+
* postgresId: pg.id,
|
|
56
|
+
* name: "reports",
|
|
57
|
+
* });
|
|
58
|
+
* // Keyed by the database's output, so the user is created after it exists.
|
|
59
|
+
* yield* BetterStack.Cloud.PostgresUser("reporter", {
|
|
60
|
+
* postgresId: pg.id,
|
|
61
|
+
* username: "reporter",
|
|
62
|
+
* privileges: Output.map(reports.name, (database) => ({ [database]: "read_write" })),
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ### Looking up an existing database
|
|
67
|
+
* **Example:** Reference a database by id
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const existing = BetterStack.Cloud.PostgresDatabase.lookup({ postgresId: "42", id: "7" });
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @resource
|
|
73
|
+
* @product Cloud
|
|
74
|
+
*/
|
|
75
|
+
export declare const PostgresDatabase: import("alchemy/Resource").ResourceClass<PostgresDatabase>;
|
|
76
|
+
export declare const PostgresDatabaseProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<PostgresDatabase>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
77
|
+
//# sourceMappingURL=PostgresDatabase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresDatabase.d.ts","sourceRoot":"","sources":["../../src/Cloud/PostgresDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,yCAAyC;AACzC,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,EAAE,QAAQ;CAAG;AAEpF,8CAA8C;AAC9C,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,GAAG,YAAY,GAAG,MAAM,CAAC,EAAE,aAAa;IACjF,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,qFAAqF;IACrF,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,4FAA4F;AAC5F,MAAM,WAAW,sBAAsB;IACrC,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,oCAAoC,EACpC,qBAAqB,EACrB,0BAA0B,EAC1B,KAAK,EACL,SAAS,EACT,sBAAsB,CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,gBAAgB,4DAAmE,CAAC;AAIjG,eAAO,MAAM,wBAAwB,kJAsBjC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { crud } from "../internal/crud.js";
|
|
3
|
+
import { instancesOf } from "../internal/managedDatabase.js";
|
|
4
|
+
import { listWithParent } from "../internal/ops.js";
|
|
5
|
+
import { unpaged } from "../internal/unpaged.js";
|
|
6
|
+
import * as Cloud from "../sdk/services/cloud.js";
|
|
7
|
+
/**
|
|
8
|
+
* A database inside a managed {@link Postgres} instance. Free: the instance
|
|
9
|
+
* is what bills.
|
|
10
|
+
*
|
|
11
|
+
* It can't be changed: a new `name` or `postgresId` replaces it (the old
|
|
12
|
+
* database, and its data, is dropped). The API has no read endpoint for one
|
|
13
|
+
* database, so it is read by listing the instance's databases; deleting the
|
|
14
|
+
* instance removes its databases with it.
|
|
15
|
+
*
|
|
16
|
+
* Grant a {@link PostgresUser} access to it through its `privileges`.
|
|
17
|
+
*
|
|
18
|
+
* **Ownership.** The API keeps no `metadata` for it and it has no generated name,
|
|
19
|
+
* so nothing marks it as this stack's: `list` enumerates it under every parent, and a
|
|
20
|
+
* create interrupted before its state was saved is not recognised by the next deploy
|
|
21
|
+
* (which creates it again, or gets the API's conflict when its identity is unique).
|
|
22
|
+
*
|
|
23
|
+
* **Zone.** A child doesn't take its zone from its parent: it uses its own
|
|
24
|
+
* `availabilityZone`, else the credentials' zone. When the parent lives in
|
|
25
|
+
* another zone, pass the parent's along (`availabilityZone:
|
|
26
|
+
* parent.availabilityZone`), or every call for it answers `NotFound`.
|
|
27
|
+
*
|
|
28
|
+
* @see https://betterstack.com/docs/cloud/databases/postgresql/
|
|
29
|
+
*
|
|
30
|
+
* ### Creating a database
|
|
31
|
+
* **Example:** A second database with a user that can write to it
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const pg = yield* BetterStack.Cloud.Postgres("db", { type: "PG1" });
|
|
34
|
+
* const reports = yield* BetterStack.Cloud.PostgresDatabase("reports", {
|
|
35
|
+
* postgresId: pg.id,
|
|
36
|
+
* name: "reports",
|
|
37
|
+
* });
|
|
38
|
+
* // Keyed by the database's output, so the user is created after it exists.
|
|
39
|
+
* yield* BetterStack.Cloud.PostgresUser("reporter", {
|
|
40
|
+
* postgresId: pg.id,
|
|
41
|
+
* username: "reporter",
|
|
42
|
+
* privileges: Output.map(reports.name, (database) => ({ [database]: "read_write" })),
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ### Looking up an existing database
|
|
47
|
+
* **Example:** Reference a database by id
|
|
48
|
+
* ```typescript
|
|
49
|
+
* const existing = BetterStack.Cloud.PostgresDatabase.lookup({ postgresId: "42", id: "7" });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @resource
|
|
53
|
+
* @product Cloud
|
|
54
|
+
*/
|
|
55
|
+
export const PostgresDatabase = Resource("BetterStack.Cloud.PostgresDatabase");
|
|
56
|
+
const listDatabases = listWithParent(unpaged(Cloud.listPostgresDatabase), ["postgresId"]);
|
|
57
|
+
export const PostgresDatabaseProvider = () => crud(PostgresDatabase, {
|
|
58
|
+
ops: {
|
|
59
|
+
create: Cloud.createPostgresDatabase,
|
|
60
|
+
delete: Cloud.deletePostgresDatabase,
|
|
61
|
+
list: listDatabases,
|
|
62
|
+
},
|
|
63
|
+
key: (db) => ({ postgresId: db.postgresId, id: db.id }),
|
|
64
|
+
toAttributes: (db, props) => ({
|
|
65
|
+
...db,
|
|
66
|
+
id: String(db.id),
|
|
67
|
+
postgresId: db.postgresId ?? props?.postgresId,
|
|
68
|
+
name: db.name ?? props?.name,
|
|
69
|
+
}),
|
|
70
|
+
// No get: read = the instance's databases, found by id. A gone instance answers 404: gone.
|
|
71
|
+
readViaList: {
|
|
72
|
+
input: (db) => ({ postgresId: db.postgresId }),
|
|
73
|
+
match: (item, db) => String(item.id) === db.id,
|
|
74
|
+
},
|
|
75
|
+
list: { parents: instancesOf(Cloud.listPostgres, "postgresId") },
|
|
76
|
+
lookup: { key: ({ postgresId, id }) => ({ postgresId, id }) },
|
|
77
|
+
stables: ["id", "postgresId", "availabilityZone", "name", "createdAt"],
|
|
78
|
+
});
|
|
79
|
+
//# sourceMappingURL=PostgresDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresDatabase.js","sourceRoot":"","sources":["../../src/Cloud/PostgresDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAoClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAmB,oCAAoC,CAAC,CAAC;AAEjG,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;AAE1F,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAC3C,IAAI,CAAC,gBAAgB,EAAE;IACrB,GAAG,EAAE;QACH,MAAM,EAAE,KAAK,CAAC,sBAAsB;QACpC,MAAM,EAAE,KAAK,CAAC,sBAAsB;QACpC,IAAI,EAAE,aAAa;KACpB;IACD,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;IACvD,YAAY,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,EAAE;QACL,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;QACjB,UAAU,EAAE,EAAE,CAAC,UAAU,IAAI,KAAK,EAAE,UAAU;QAC9C,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,KAAK,EAAE,IAAI;KAC7B,CAAC;IACF,2FAA2F;IAC3F,WAAW,EAAE;QACX,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,CAAC;QAC9C,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE;KAC/C;IACD,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,YAAY,CAAC,EAAE;IAChE,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE;IAC7D,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,EAAE,WAAW,CAAC;CACvE,CAAC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 PostgresScheduledSnapshot}. */
|
|
6
|
+
export interface PostgresScheduledSnapshotProps extends Omit<Cloud.CreatePostgresScheduledSnapshotRequest, "availabilityZone">, ZoneProp {
|
|
7
|
+
}
|
|
8
|
+
/** Attributes of {@link PostgresScheduledSnapshot}. */
|
|
9
|
+
export interface PostgresScheduledSnapshotAttributes extends Omit<Cloud.PostgresScheduledSnapshot, "id" | "postgresId">, ZoneAttribute {
|
|
10
|
+
/** The schedule's ID. */
|
|
11
|
+
id: string;
|
|
12
|
+
/** The ID of the {@link Postgres} instance it snapshots. */
|
|
13
|
+
postgresId: string;
|
|
14
|
+
}
|
|
15
|
+
/** Props for {@link PostgresScheduledSnapshot.lookup}: find a schedule this stack doesn't manage. */
|
|
16
|
+
export interface PostgresScheduledSnapshotLookup {
|
|
17
|
+
/** The ID of the {@link Postgres} instance. */
|
|
18
|
+
postgresId: string;
|
|
19
|
+
/** The schedule's ID. */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Zone the instance lives in. Defaults to the credentials' zone. */
|
|
22
|
+
availabilityZone?: string;
|
|
23
|
+
}
|
|
24
|
+
export type PostgresScheduledSnapshot = Resource<"BetterStack.Cloud.PostgresScheduledSnapshot", PostgresScheduledSnapshotProps, PostgresScheduledSnapshotAttributes, never, Providers, PostgresScheduledSnapshotLookup>;
|
|
25
|
+
/**
|
|
26
|
+
* A schedule that snapshots a managed {@link Postgres} instance at a regular
|
|
27
|
+
* interval. Free to define: the snapshots are what is stored.
|
|
28
|
+
*
|
|
29
|
+
* `frequency` (`hourly`, `daily`, `weekly` or `monthly`, a calendar month)
|
|
30
|
+
* changes in place; a new `postgresId` replaces the schedule. Deleting the
|
|
31
|
+
* instance removes its schedules with it. Snapshots themselves are stored
|
|
32
|
+
* (and billed) by Better Stack; see the database snapshots docs for
|
|
33
|
+
* retention and restore.
|
|
34
|
+
*
|
|
35
|
+
* **Ownership.** The API keeps no `metadata` for it and it has no generated name,
|
|
36
|
+
* so nothing marks it as this stack's: `list` enumerates it under every parent, and a
|
|
37
|
+
* create interrupted before its state was saved is not recognised by the next deploy
|
|
38
|
+
* (which creates it again, or gets the API's conflict when its identity is unique).
|
|
39
|
+
*
|
|
40
|
+
* **What it leaves behind.** The snapshots it takes are not resources of
|
|
41
|
+
* this stack: deleting the schedule (or the instance) keeps them, and they
|
|
42
|
+
* stay billed ("Snapshots outlive their database"). Remove them in
|
|
43
|
+
* Databases → Snapshots or with the SDK's `listFlatPostgresSnapshot` /
|
|
44
|
+
* `deleteFlatPostgresSnapshot`.
|
|
45
|
+
*
|
|
46
|
+
* **Zone.** A child doesn't take its zone from its parent: it uses its own
|
|
47
|
+
* `availabilityZone`, else the credentials' zone. When the parent lives in
|
|
48
|
+
* another zone, pass the parent's along (`availabilityZone:
|
|
49
|
+
* parent.availabilityZone`), or every call for it answers `NotFound`.
|
|
50
|
+
*
|
|
51
|
+
* @see https://betterstack.com/docs/cloud/databases/snapshots/
|
|
52
|
+
*
|
|
53
|
+
* ### Scheduling snapshots
|
|
54
|
+
* **Example:** Daily snapshots of an instance
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", { type: "PG1" });
|
|
57
|
+
* yield* BetterStack.Cloud.PostgresScheduledSnapshot("daily", {
|
|
58
|
+
* postgresId: db.id,
|
|
59
|
+
* frequency: "daily",
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ### Looking up an existing schedule
|
|
64
|
+
* **Example:** Reference a schedule by id
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const existing = BetterStack.Cloud.PostgresScheduledSnapshot.lookup({ postgresId: "42", id: "7" });
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @resource
|
|
70
|
+
* @product Cloud
|
|
71
|
+
*/
|
|
72
|
+
export declare const PostgresScheduledSnapshot: import("alchemy/Resource").ResourceClass<PostgresScheduledSnapshot>;
|
|
73
|
+
export declare const PostgresScheduledSnapshotProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<PostgresScheduledSnapshot>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
74
|
+
//# sourceMappingURL=PostgresScheduledSnapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresScheduledSnapshot.d.ts","sourceRoot":"","sources":["../../src/Cloud/PostgresScheduledSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,kDAAkD;AAClD,MAAM,WAAW,8BACf,SAAQ,IAAI,CAAC,KAAK,CAAC,sCAAsC,EAAE,kBAAkB,CAAC,EAAE,QAAQ;CAAG;AAE7F,uDAAuD;AACvD,MAAM,WAAW,mCACf,SAAQ,IAAI,CAAC,KAAK,CAAC,yBAAyB,EAAE,IAAI,GAAG,YAAY,CAAC,EAAE,aAAa;IACjF,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qGAAqG;AACrG,MAAM,WAAW,+BAA+B;IAC9C,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAC9C,6CAA6C,EAC7C,8BAA8B,EAC9B,mCAAmC,EACnC,KAAK,EACL,SAAS,EACT,+BAA+B,CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,yBAAyB,qEAErC,CAAC;AAEF,eAAO,MAAM,iCAAiC,2JAmB1C,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { crud } from "../internal/crud.js";
|
|
3
|
+
import { instancesOf } from "../internal/managedDatabase.js";
|
|
4
|
+
import { listWithParent, withParent } from "../internal/ops.js";
|
|
5
|
+
import * as Cloud from "../sdk/services/cloud.js";
|
|
6
|
+
/**
|
|
7
|
+
* A schedule that snapshots a managed {@link Postgres} instance at a regular
|
|
8
|
+
* interval. Free to define: the snapshots are what is stored.
|
|
9
|
+
*
|
|
10
|
+
* `frequency` (`hourly`, `daily`, `weekly` or `monthly`, a calendar month)
|
|
11
|
+
* changes in place; a new `postgresId` replaces the schedule. Deleting the
|
|
12
|
+
* instance removes its schedules with it. Snapshots themselves are stored
|
|
13
|
+
* (and billed) by Better Stack; see the database snapshots docs for
|
|
14
|
+
* retention and restore.
|
|
15
|
+
*
|
|
16
|
+
* **Ownership.** The API keeps no `metadata` for it and it has no generated name,
|
|
17
|
+
* so nothing marks it as this stack's: `list` enumerates it under every parent, and a
|
|
18
|
+
* create interrupted before its state was saved is not recognised by the next deploy
|
|
19
|
+
* (which creates it again, or gets the API's conflict when its identity is unique).
|
|
20
|
+
*
|
|
21
|
+
* **What it leaves behind.** The snapshots it takes are not resources of
|
|
22
|
+
* this stack: deleting the schedule (or the instance) keeps them, and they
|
|
23
|
+
* stay billed ("Snapshots outlive their database"). Remove them in
|
|
24
|
+
* Databases → Snapshots or with the SDK's `listFlatPostgresSnapshot` /
|
|
25
|
+
* `deleteFlatPostgresSnapshot`.
|
|
26
|
+
*
|
|
27
|
+
* **Zone.** A child doesn't take its zone from its parent: it uses its own
|
|
28
|
+
* `availabilityZone`, else the credentials' zone. When the parent lives in
|
|
29
|
+
* another zone, pass the parent's along (`availabilityZone:
|
|
30
|
+
* parent.availabilityZone`), or every call for it answers `NotFound`.
|
|
31
|
+
*
|
|
32
|
+
* @see https://betterstack.com/docs/cloud/databases/snapshots/
|
|
33
|
+
*
|
|
34
|
+
* ### Scheduling snapshots
|
|
35
|
+
* **Example:** Daily snapshots of an instance
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", { type: "PG1" });
|
|
38
|
+
* yield* BetterStack.Cloud.PostgresScheduledSnapshot("daily", {
|
|
39
|
+
* postgresId: db.id,
|
|
40
|
+
* frequency: "daily",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ### Looking up an existing schedule
|
|
45
|
+
* **Example:** Reference a schedule by id
|
|
46
|
+
* ```typescript
|
|
47
|
+
* const existing = BetterStack.Cloud.PostgresScheduledSnapshot.lookup({ postgresId: "42", id: "7" });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @resource
|
|
51
|
+
* @product Cloud
|
|
52
|
+
*/
|
|
53
|
+
export const PostgresScheduledSnapshot = Resource("BetterStack.Cloud.PostgresScheduledSnapshot");
|
|
54
|
+
export const PostgresScheduledSnapshotProvider = () => crud(PostgresScheduledSnapshot, {
|
|
55
|
+
ops: {
|
|
56
|
+
create: Cloud.createPostgresScheduledSnapshot,
|
|
57
|
+
// The responses may not carry the instance id: stamp it from the request.
|
|
58
|
+
read: withParent(Cloud.getPostgresScheduledSnapshot, ["postgresId"]),
|
|
59
|
+
update: Cloud.updatePostgresScheduledSnapshot,
|
|
60
|
+
delete: Cloud.deletePostgresScheduledSnapshot,
|
|
61
|
+
list: listWithParent(Cloud.listPostgresScheduledSnapshot, ["postgresId"]),
|
|
62
|
+
},
|
|
63
|
+
key: (schedule) => ({ postgresId: schedule.postgresId, id: schedule.id }),
|
|
64
|
+
toAttributes: (schedule, props) => ({
|
|
65
|
+
...schedule,
|
|
66
|
+
id: String(schedule.id),
|
|
67
|
+
postgresId: schedule.postgresId ?? props?.postgresId,
|
|
68
|
+
}),
|
|
69
|
+
list: { parents: instancesOf(Cloud.listPostgres, "postgresId") },
|
|
70
|
+
lookup: { key: ({ postgresId, id }) => ({ postgresId, id }) },
|
|
71
|
+
stables: ["id", "postgresId", "availabilityZone", "createdAt"],
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=PostgresScheduledSnapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresScheduledSnapshot.js","sourceRoot":"","sources":["../../src/Cloud/PostgresScheduledSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhE,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAkClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAC/C,6CAA6C,CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,EAAE,CACpD,IAAI,CAAC,yBAAyB,EAAE;IAC9B,GAAG,EAAE;QACH,MAAM,EAAE,KAAK,CAAC,+BAA+B;QAC7C,0EAA0E;QAC1E,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,4BAA4B,EAAE,CAAC,YAAY,CAAC,CAAC;QACpE,MAAM,EAAE,KAAK,CAAC,+BAA+B;QAC7C,MAAM,EAAE,KAAK,CAAC,+BAA+B;QAC7C,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,6BAA6B,EAAE,CAAC,YAAY,CAAC,CAAC;KAC1E;IACD,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC;IACzE,YAAY,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAClC,GAAG,QAAQ;QACX,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvB,UAAU,EAAE,QAAQ,CAAC,UAAU,IAAI,KAAK,EAAE,UAAU;KACrD,CAAC;IACF,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,YAAY,CAAC,EAAE;IAChE,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE;IAC7D,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,kBAAkB,EAAE,WAAW,CAAC;CAC/D,CAAC,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 PostgresSnapshot}. */
|
|
6
|
+
export interface PostgresSnapshotProps extends Omit<Cloud.CreatePostgresSnapshotRequest, "availabilityZone" | "metadata">, ZoneProp {
|
|
7
|
+
/**
|
|
8
|
+
* Your own tags, as string keys and values. Can't be changed after the
|
|
9
|
+
* snapshot is created: a change replaces the snapshot.
|
|
10
|
+
*/
|
|
11
|
+
metadata?: Record<string, string>;
|
|
12
|
+
}
|
|
13
|
+
/** Attributes of {@link PostgresSnapshot}: the snapshot as the API returns it. */
|
|
14
|
+
export interface PostgresSnapshotAttributes extends Omit<Cloud.PostgresSnapshot, "id" | "postgresId" | "availabilityZone">, ZoneAttribute {
|
|
15
|
+
/** The snapshot's ID, a UUID. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** The ID of the {@link Postgres} instance the snapshot was taken from. */
|
|
18
|
+
postgresId: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Props for {@link PostgresSnapshot.lookup}: by id, or by name (optionally
|
|
22
|
+
* under one instance). A name lookup needs exactly one match; several fail
|
|
23
|
+
* with `AmbiguousLookup`.
|
|
24
|
+
*/
|
|
25
|
+
export type PostgresSnapshotLookup = {
|
|
26
|
+
/** The snapshot's ID. */
|
|
27
|
+
id: string;
|
|
28
|
+
/** The instance's ID (not needed to find it: snapshots are addressed by id). */
|
|
29
|
+
postgresId?: string;
|
|
30
|
+
/** Zone, such as `us-west-2a`. Defaults to the credentials' zone. */
|
|
31
|
+
availabilityZone?: string;
|
|
32
|
+
} | {
|
|
33
|
+
/** The snapshot's name. */
|
|
34
|
+
name: string;
|
|
35
|
+
/** Only snapshots of this instance. */
|
|
36
|
+
postgresId?: string;
|
|
37
|
+
/** Zone, such as `us-west-2a`. Defaults to the credentials' zone. */
|
|
38
|
+
availabilityZone?: string;
|
|
39
|
+
};
|
|
40
|
+
export type PostgresSnapshot = Resource<"BetterStack.Cloud.PostgresSnapshot", PostgresSnapshotProps, PostgresSnapshotAttributes, never, Providers, PostgresSnapshotLookup>;
|
|
41
|
+
/**
|
|
42
|
+
* An on-demand snapshot of a managed {@link Postgres} instance: "We flush
|
|
43
|
+
* the primary's data to disk first, so the snapshot is consistent." The
|
|
44
|
+
* deploy waits until the snapshot is `available` (a `failed` one fails with
|
|
45
|
+
* `WaitFailed` and is removed again).
|
|
46
|
+
*
|
|
47
|
+
* **Snapshots and schedules.** A {@link PostgresScheduledSnapshot} is a
|
|
48
|
+
* schedule that takes snapshots of the same kind (`snapshotType:
|
|
49
|
+
* "scheduled"`) on its own; this resource is one `manual` snapshot, taken
|
|
50
|
+
* when it is created and kept until it is destroyed. Snapshots a schedule
|
|
51
|
+
* took are never managed or listed by this resource.
|
|
52
|
+
*
|
|
53
|
+
* **Cost.** The snapshot bills by `sizeBytes` ("The size of the disk when the
|
|
54
|
+
* snapshot was taken, in bytes. We bill by this size."); "Database snapshots
|
|
55
|
+
* are billed like server snapshots and share their quotas."
|
|
56
|
+
*
|
|
57
|
+
* **Replace, never update.** The API has no update for it: a new `name`,
|
|
58
|
+
* `metadata` or `postgresId` takes a new snapshot and deletes the old one.
|
|
59
|
+
* The snapshot outlives its instance (deleting the instance keeps it), so it
|
|
60
|
+
* is read and deleted by its own id.
|
|
61
|
+
*
|
|
62
|
+
* **Restore is not modelled.** Restoring is an action, not desired state:
|
|
63
|
+
* `restore_postgres_snapshot` creates a *new* instance from the snapshot
|
|
64
|
+
* (new IDs, hostname and passwords) and `restore_postgres` rolls the origin
|
|
65
|
+
* instance back. Neither fits a prop, and {@link Postgres}'s create takes no
|
|
66
|
+
* snapshot id to pair with, so nothing here restores; call
|
|
67
|
+
* `Cloud.restorePostgresSnapshot` from `betterstack-alchemy/sdk/services`
|
|
68
|
+
* 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
|
+
* **Zone.** A child doesn't take its zone from its parent: it uses its own
|
|
75
|
+
* `availabilityZone`, else the credentials' zone. When the parent lives in
|
|
76
|
+
* another zone, pass the parent's along (`availabilityZone:
|
|
77
|
+
* parent.availabilityZone`), or every call for it answers `NotFound`.
|
|
78
|
+
*
|
|
79
|
+
* @see https://betterstack.com/docs/cloud/databases/snapshots/
|
|
80
|
+
* @see https://betterstack.com/docs/cloud/api/postgres-snapshots/get-postgres-snapshot/
|
|
81
|
+
*
|
|
82
|
+
* ### Taking a snapshot
|
|
83
|
+
* **Example:** A snapshot before a risky migration
|
|
84
|
+
* ```typescript
|
|
85
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", { type: "PG1" });
|
|
86
|
+
* const beforeMigration = yield* BetterStack.Cloud.PostgresSnapshot("before-migration", {
|
|
87
|
+
* postgresId: db.id,
|
|
88
|
+
* name: "db-before-migration",
|
|
89
|
+
* metadata: { reason: "migration" },
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* ### Looking up a snapshot
|
|
94
|
+
* **Example:** By name under an instance
|
|
95
|
+
* ```typescript
|
|
96
|
+
* const existing = BetterStack.Cloud.PostgresSnapshot.lookup({
|
|
97
|
+
* postgresId: "42",
|
|
98
|
+
* name: "db-before-migration",
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* @resource
|
|
103
|
+
* @product Cloud
|
|
104
|
+
*/
|
|
105
|
+
export declare const PostgresSnapshot: import("alchemy/Resource").ResourceClass<PostgresSnapshot>;
|
|
106
|
+
export declare const PostgresSnapshotProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<PostgresSnapshot>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
107
|
+
//# sourceMappingURL=PostgresSnapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresSnapshot.d.ts","sourceRoot":"","sources":["../../src/Cloud/PostgresSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,yCAAyC;AACzC,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,6BAA6B,EAAE,kBAAkB,GAAG,UAAU,CAAC,EAAE,QAAQ;IAC5F;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAED,kFAAkF;AAClF,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,GAAG,YAAY,GAAG,kBAAkB,CAAC,EAAE,aAAa;IAC7F,iCAAiC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAC9B;IACE,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD;IACE,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEN,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,oCAAoC,EACpC,qBAAqB,EACrB,0BAA0B,EAC1B,KAAK,EACL,SAAS,EACT,sBAAsB,CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,eAAO,MAAM,gBAAgB,4DAAmE,CAAC;AAEjG,eAAO,MAAM,wBAAwB,kJASjC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { databaseSnapshot } from "../internal/snapshot.js";
|
|
3
|
+
import * as Cloud from "../sdk/services/cloud.js";
|
|
4
|
+
/**
|
|
5
|
+
* An on-demand snapshot of a managed {@link Postgres} instance: "We flush
|
|
6
|
+
* the primary's data to disk first, so the snapshot is consistent." The
|
|
7
|
+
* deploy waits until the snapshot is `available` (a `failed` one fails with
|
|
8
|
+
* `WaitFailed` and is removed again).
|
|
9
|
+
*
|
|
10
|
+
* **Snapshots and schedules.** A {@link PostgresScheduledSnapshot} is a
|
|
11
|
+
* schedule that takes snapshots of the same kind (`snapshotType:
|
|
12
|
+
* "scheduled"`) on its own; this resource is one `manual` snapshot, taken
|
|
13
|
+
* when it is created and kept until it is destroyed. Snapshots a schedule
|
|
14
|
+
* took are never managed or listed by this resource.
|
|
15
|
+
*
|
|
16
|
+
* **Cost.** The snapshot bills by `sizeBytes` ("The size of the disk when the
|
|
17
|
+
* snapshot was taken, in bytes. We bill by this size."); "Database snapshots
|
|
18
|
+
* are billed like server snapshots and share their quotas."
|
|
19
|
+
*
|
|
20
|
+
* **Replace, never update.** The API has no update for it: a new `name`,
|
|
21
|
+
* `metadata` or `postgresId` takes a new snapshot and deletes the old one.
|
|
22
|
+
* The snapshot outlives its instance (deleting the instance keeps it), so it
|
|
23
|
+
* is read and deleted by its own id.
|
|
24
|
+
*
|
|
25
|
+
* **Restore is not modelled.** Restoring is an action, not desired state:
|
|
26
|
+
* `restore_postgres_snapshot` creates a *new* instance from the snapshot
|
|
27
|
+
* (new IDs, hostname and passwords) and `restore_postgres` rolls the origin
|
|
28
|
+
* instance back. Neither fits a prop, and {@link Postgres}'s create takes no
|
|
29
|
+
* snapshot id to pair with, so nothing here restores; call
|
|
30
|
+
* `Cloud.restorePostgresSnapshot` from `betterstack-alchemy/sdk/services`
|
|
31
|
+
* when you need one.
|
|
32
|
+
*
|
|
33
|
+
* **Ownership.** The `alchemy` marker in `metadata` identifies the snapshots
|
|
34
|
+
* this stack created: an interrupted create is found again by the next
|
|
35
|
+
* deploy, and `list` returns only Alchemy-created snapshots.
|
|
36
|
+
*
|
|
37
|
+
* **Zone.** A child doesn't take its zone from its parent: it uses its own
|
|
38
|
+
* `availabilityZone`, else the credentials' zone. When the parent lives in
|
|
39
|
+
* another zone, pass the parent's along (`availabilityZone:
|
|
40
|
+
* parent.availabilityZone`), or every call for it answers `NotFound`.
|
|
41
|
+
*
|
|
42
|
+
* @see https://betterstack.com/docs/cloud/databases/snapshots/
|
|
43
|
+
* @see https://betterstack.com/docs/cloud/api/postgres-snapshots/get-postgres-snapshot/
|
|
44
|
+
*
|
|
45
|
+
* ### Taking a snapshot
|
|
46
|
+
* **Example:** A snapshot before a risky migration
|
|
47
|
+
* ```typescript
|
|
48
|
+
* const db = yield* BetterStack.Cloud.Postgres("db", { type: "PG1" });
|
|
49
|
+
* const beforeMigration = yield* BetterStack.Cloud.PostgresSnapshot("before-migration", {
|
|
50
|
+
* postgresId: db.id,
|
|
51
|
+
* name: "db-before-migration",
|
|
52
|
+
* metadata: { reason: "migration" },
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* ### Looking up a snapshot
|
|
57
|
+
* **Example:** By name under an instance
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const existing = BetterStack.Cloud.PostgresSnapshot.lookup({
|
|
60
|
+
* postgresId: "42",
|
|
61
|
+
* name: "db-before-migration",
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @resource
|
|
66
|
+
* @product Cloud
|
|
67
|
+
*/
|
|
68
|
+
export const PostgresSnapshot = Resource("BetterStack.Cloud.PostgresSnapshot");
|
|
69
|
+
export const PostgresSnapshotProvider = () => databaseSnapshot(PostgresSnapshot, {
|
|
70
|
+
parent: "postgresId",
|
|
71
|
+
ops: {
|
|
72
|
+
create: Cloud.createPostgresSnapshot,
|
|
73
|
+
read: Cloud.getFlatPostgresSnapshot,
|
|
74
|
+
delete: Cloud.deleteFlatPostgresSnapshot,
|
|
75
|
+
list: Cloud.listFlatPostgresSnapshot,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=PostgresSnapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresSnapshot.js","sourceRoot":"","sources":["../../src/Cloud/PostgresSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAqDlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAmB,oCAAoC,CAAC,CAAC;AAEjG,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAC3C,gBAAgB,CAAC,gBAAgB,EAAE;IACjC,MAAM,EAAE,YAAY;IACpB,GAAG,EAAE;QACH,MAAM,EAAE,KAAK,CAAC,sBAAsB;QACpC,IAAI,EAAE,KAAK,CAAC,uBAAuB;QACnC,MAAM,EAAE,KAAK,CAAC,0BAA0B;QACxC,IAAI,EAAE,KAAK,CAAC,wBAAwB;KACrC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type * as Redacted from "effect/Redacted";
|
|
3
|
+
import { type RotateCredentialsProp } from "../internal/connection.ts";
|
|
4
|
+
import type { ZoneAttribute, ZoneProp } from "../internal/scope.ts";
|
|
5
|
+
import type { Providers } from "../Providers.ts";
|
|
6
|
+
import * as Cloud from "../sdk/services/cloud.ts";
|
|
7
|
+
/** Props of {@link PostgresUser}. */
|
|
8
|
+
export interface PostgresUserProps extends Omit<Cloud.CreatePostgresUserRequest, "availabilityZone" | "privileges">, ZoneProp, RotateCredentialsProp {
|
|
9
|
+
/**
|
|
10
|
+
* The user's access to each database, mapping a database name to `read`,
|
|
11
|
+
* `read_write`, `all` or `none`, such as `{ app: "read_write" }`. A
|
|
12
|
+
* database left out gets no access; each key must be a database of the
|
|
13
|
+
* instance. Changes in place (the whole map is replaced). Removing the
|
|
14
|
+
* prop keeps the current access; `{}` removes all of it.
|
|
15
|
+
*/
|
|
16
|
+
privileges?: Record<string, "read" | "read_write" | "all" | "none" | (string & {})>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Attributes of {@link PostgresUser}: the user as the instance lists it, plus
|
|
20
|
+
* its credentials from `GET /v1/postgres/{postgres_id}/users/{id}/credentials`.
|
|
21
|
+
*/
|
|
22
|
+
export interface PostgresUserAttributes extends Omit<Cloud.PostgresUser, "id" | "postgresId">, ZoneAttribute {
|
|
23
|
+
/** The user's ID. */
|
|
24
|
+
id: string;
|
|
25
|
+
/** The ID of the {@link Postgres} instance it belongs to. */
|
|
26
|
+
postgresId: string;
|
|
27
|
+
/** The user name, as the credentials give it (the same as `username`). */
|
|
28
|
+
user: string | undefined;
|
|
29
|
+
/** The user's password (credentials `password`). */
|
|
30
|
+
password: Redacted.Redacted<string> | undefined;
|
|
31
|
+
/** The database the URIs connect to: `defaultdb` when the instance has it, else its first database. */
|
|
32
|
+
database: string | undefined;
|
|
33
|
+
/** `postgresql://` URI as this user, direct, from your private networks (`sslmode=verify-full`). */
|
|
34
|
+
connectionUri: Redacted.Redacted<string> | undefined;
|
|
35
|
+
/** The same through PgBouncer. */
|
|
36
|
+
pooledConnectionUri: Redacted.Redacted<string> | undefined;
|
|
37
|
+
/** Direct, from the internet; `undefined` while the instance's `publicAccess` is off. */
|
|
38
|
+
publicConnectionUri: Redacted.Redacted<string> | undefined;
|
|
39
|
+
/** Through PgBouncer, from the internet; `undefined` while `publicAccess` is off. */
|
|
40
|
+
publicPooledConnectionUri: Redacted.Redacted<string> | undefined;
|
|
41
|
+
/** The CA certificate (PEM) that signed the server's certificate. */
|
|
42
|
+
caCertificate: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
/** Props for {@link PostgresUser.lookup}: find a user this stack doesn't manage. */
|
|
45
|
+
export interface PostgresUserLookup {
|
|
46
|
+
/** The ID of the {@link Postgres} instance. */
|
|
47
|
+
postgresId: string;
|
|
48
|
+
/** The user's ID. */
|
|
49
|
+
id: string;
|
|
50
|
+
/** Zone the instance lives in. Defaults to the credentials' zone. */
|
|
51
|
+
availabilityZone?: string;
|
|
52
|
+
}
|
|
53
|
+
export type PostgresUser = Resource<"BetterStack.Cloud.PostgresUser", PostgresUserProps, PostgresUserAttributes, never, Providers, PostgresUserLookup>;
|
|
54
|
+
/**
|
|
55
|
+
* A SQL user of a managed {@link Postgres} instance, with its access level
|
|
56
|
+
* on each database. Free: the instance is what bills.
|
|
57
|
+
*
|
|
58
|
+
* `privileges` changes in place; a new `username` or `postgresId` replaces
|
|
59
|
+
* the user. The API has no read endpoint for one user, so it is read by
|
|
60
|
+
* listing the instance's users; deleting the instance removes its users
|
|
61
|
+
* with it. The instance's default `admin` user is managed by Better Stack
|
|
62
|
+
* and is not a resource here.
|
|
63
|
+
*
|
|
64
|
+
* Connecting: the attributes carry the user's own `password` and URIs
|
|
65
|
+
* (direct, pooled, and their public variants, as on {@link Postgres}), read
|
|
66
|
+
* from the user's credentials endpoint. A URI connects to `database` (the
|
|
67
|
+
* API's choice: `defaultdb`, else the first database); for another
|
|
68
|
+
* database, use the parts (`user`, `password` with the instance's `host`).
|
|
69
|
+
* Secrets are `Redacted`.
|
|
70
|
+
*
|
|
71
|
+
* Credentials: the deploy never resets the password on its own. Set
|
|
72
|
+
* `rotateCredentials` to a new value to reset it once; a reset done in the
|
|
73
|
+
* console or CLI is read on the next deploy, without a replace.
|
|
74
|
+
*
|
|
75
|
+
* **Zone.** A child doesn't take its zone from its parent: it uses its own
|
|
76
|
+
* `availabilityZone`, else the credentials' zone. When the parent lives in
|
|
77
|
+
* another zone, pass the parent's along (`availabilityZone:
|
|
78
|
+
* parent.availabilityZone`), or every call for it answers `NotFound`.
|
|
79
|
+
*
|
|
80
|
+
* @see https://betterstack.com/docs/cloud/databases/postgresql/
|
|
81
|
+
* **Ownership.** The API keeps no `metadata` for it and it has no generated name,
|
|
82
|
+
* so nothing marks it as this stack's: `list` enumerates it under every parent, and a
|
|
83
|
+
* create interrupted before its state was saved is not recognised by the next deploy
|
|
84
|
+
* (which creates it again, or gets the API's conflict when its identity is unique).
|
|
85
|
+
*
|
|
86
|
+
* @see https://betterstack.com/docs/cloud/api/postgres-users/credentials-postgres-user/
|
|
87
|
+
*
|
|
88
|
+
* ### Creating a user
|
|
89
|
+
* **Example:** A read-only user for reporting
|
|
90
|
+
* ```typescript
|
|
91
|
+
* const pg = yield* BetterStack.Cloud.Postgres("db", { type: "PG1", database: "app" });
|
|
92
|
+
* const reader = yield* BetterStack.Cloud.PostgresUser("reader", {
|
|
93
|
+
* postgresId: pg.id,
|
|
94
|
+
* username: "reader",
|
|
95
|
+
* privileges: { app: "read" },
|
|
96
|
+
* });
|
|
97
|
+
* // A Service's env: { DATABASE_URL: reader.pooledConnectionUri }
|
|
98
|
+
* const env = {
|
|
99
|
+
* PGHOST: pg.host,
|
|
100
|
+
* PGPORT: pg.port,
|
|
101
|
+
* PGUSER: reader.username,
|
|
102
|
+
* PGPASSWORD: reader.password,
|
|
103
|
+
* PGDATABASE: "app",
|
|
104
|
+
* };
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* ### Looking up an existing user
|
|
108
|
+
* **Example:** Reference a user by id
|
|
109
|
+
* ```typescript
|
|
110
|
+
* const existing = BetterStack.Cloud.PostgresUser.lookup({ postgresId: "42", id: "7" });
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @resource
|
|
114
|
+
* @product Cloud
|
|
115
|
+
*/
|
|
116
|
+
export declare const PostgresUser: import("alchemy/Resource").ResourceClass<PostgresUser>;
|
|
117
|
+
export declare const PostgresUserProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<PostgresUser>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
118
|
+
//# sourceMappingURL=PostgresUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresUser.d.ts","sourceRoot":"","sources":["../../src/Cloud/PostgresUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,qBAAqB,EAAmB,MAAM,2BAA2B,CAAC;AAIxF,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAGlD,qCAAqC;AACrC,MAAM,WAAW,iBACf,SACE,IAAI,CAAC,KAAK,CAAC,yBAAyB,EAAE,kBAAkB,GAAG,YAAY,CAAC,EACxE,QAAQ,EACR,qBAAqB;IACvB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC;CACrF;AAED;;;GAGG;AACH,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,GAAG,YAAY,CAAC,EAAE,aAAa;IACpE,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,oDAAoD;IACpD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAChD,uGAAuG;IACvG,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,oGAAoG;IACpG,aAAa,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrD,kCAAkC;IAClC,mBAAmB,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC3D,yFAAyF;IACzF,mBAAmB,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC3D,qFAAqF;IACrF,yBAAyB,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjE,qEAAqE;IACrE,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,oFAAoF;AACpF,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,CACjC,gCAAgC,EAChC,iBAAiB,EACjB,sBAAsB,EACtB,KAAK,EACL,SAAS,EACT,kBAAkB,CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,eAAO,MAAM,YAAY,wDAA2D,CAAC;AAIrF,eAAO,MAAM,oBAAoB,8IAQ7B,CAAC"}
|