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,146 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import { crud } from "../internal/crud.js";
|
|
4
|
+
import { withInput } from "../internal/ops.js";
|
|
5
|
+
import * as Errors from "../sdk/services/errors.js";
|
|
6
|
+
const reveal = (value) => Redacted.isRedacted(value) ? Redacted.value(value) : value;
|
|
7
|
+
/**
|
|
8
|
+
* The SDK types a secret as `string | Redacted` (the encode side accepts
|
|
9
|
+
* both); decoded responses hold `Redacted`. Narrow the type, wrapping a
|
|
10
|
+
* plain string should one ever arrive.
|
|
11
|
+
*/
|
|
12
|
+
const secret = (value) => (typeof value === "string" ? Redacted.make(value) : value);
|
|
13
|
+
/** Response → attributes: secrets as `Redacted`, and the DSN the Sentry SDK takes. */
|
|
14
|
+
export const toApplicationAttributes = (app) => ({
|
|
15
|
+
...app,
|
|
16
|
+
token: secret(app.token),
|
|
17
|
+
jsTagToken: secret(app.jsTagToken),
|
|
18
|
+
dsn: app.token !== undefined && app.ingestingHost !== undefined
|
|
19
|
+
? Redacted.make(`https://${reveal(app.token)}@${app.ingestingHost}/${app.id}`)
|
|
20
|
+
: undefined,
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* A Better Stack error-tracking application: collects the exceptions,
|
|
24
|
+
* releases and web events of one service. Better Stack error tracking speaks
|
|
25
|
+
* the Sentry protocol, so a service reports to it with the official Sentry
|
|
26
|
+
* SDK for its platform, configured with the application's DSN.
|
|
27
|
+
*
|
|
28
|
+
* `platform`, `dataRegion`, `correlateWithSourceId` and `teamId` are set on
|
|
29
|
+
* create only: changing one replaces the application (a new DSN). Everything
|
|
30
|
+
* else updates in place; removing `applicationGroupId`, the code-mapping
|
|
31
|
+
* fields, the repository names or `spikeProtectionBaselineMultiplier` clears
|
|
32
|
+
* them. `name` defaults to a generated unique name; an existing application
|
|
33
|
+
* with the same explicit `name` is adopted with `--adopt`.
|
|
34
|
+
*
|
|
35
|
+
* Destroying the application deletes it **with all the data it received**
|
|
36
|
+
* (the delete is sent with `force=true`). Retain it with
|
|
37
|
+
* `RemovalPolicy.retain()` where that data matters.
|
|
38
|
+
*
|
|
39
|
+
* @see https://betterstack.com/docs/errors/collecting-errors/sentry-sdk/
|
|
40
|
+
*
|
|
41
|
+
* ### Creating an application
|
|
42
|
+
* **Example:** A Bun service's error tracking
|
|
43
|
+
* ```typescript
|
|
44
|
+
* const errors = yield* BetterStack.Errors.Application("api-errors", {
|
|
45
|
+
* name: "API",
|
|
46
|
+
* platform: "bun_errors",
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ### Configuring the Sentry SDK
|
|
51
|
+
* The SDK needs the DSN, `https://<token>@<ingestingHost>/<id>`, which the
|
|
52
|
+
* application exposes as `dsn` (a `Redacted` secret; `token` and
|
|
53
|
+
* `ingestingHost` are there too). Hand it to the service as environment:
|
|
54
|
+
* the same `env` record works for a `Cloud.Service`, a Cloudflare Worker or
|
|
55
|
+
* any host that sets environment variables.
|
|
56
|
+
*
|
|
57
|
+
* **Example:** The environment a Sentry SDK reads
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const errors = yield* BetterStack.Errors.Application("api-errors", {
|
|
60
|
+
* platform: "bun_errors",
|
|
61
|
+
* });
|
|
62
|
+
* const env = {
|
|
63
|
+
* SENTRY_DSN: errors.dsn,
|
|
64
|
+
* SENTRY_ENVIRONMENT: "production",
|
|
65
|
+
* };
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* and in the service, as the Better Stack docs show for Node.js and Bun:
|
|
69
|
+
* ```typescript
|
|
70
|
+
* import * as Sentry from "@sentry/bun";
|
|
71
|
+
* Sentry.init({ dsn: process.env.SENTRY_DSN, tracesSampleRate: 1.0 });
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* ### Grouping applications
|
|
75
|
+
* **Example:** An application in an {@link ApplicationGroup}
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const group = yield* BetterStack.Errors.ApplicationGroup("production", {
|
|
78
|
+
* name: "Production apps",
|
|
79
|
+
* });
|
|
80
|
+
* yield* BetterStack.Errors.Application("web-errors", {
|
|
81
|
+
* platform: "next_js_errors",
|
|
82
|
+
* applicationGroupId: group.id,
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* ### Registering releases
|
|
87
|
+
* **Example:** A {@link Release} of the application
|
|
88
|
+
* ```typescript
|
|
89
|
+
* const errors = yield* BetterStack.Errors.Application("api-errors", {
|
|
90
|
+
* platform: "bun_errors",
|
|
91
|
+
* });
|
|
92
|
+
* yield* BetterStack.Errors.Release("v1", {
|
|
93
|
+
* applicationId: errors.id,
|
|
94
|
+
* version: "v1.2.3",
|
|
95
|
+
* environment: ["production"],
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* ### Looking up an existing application
|
|
100
|
+
* **Example:** Find an application by id
|
|
101
|
+
* ```typescript
|
|
102
|
+
* const existing = BetterStack.Errors.Application.lookup({ id: "123456" });
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* **Example:** Find an application by name (fails with `AmbiguousLookup` when several share it)
|
|
106
|
+
* ```typescript
|
|
107
|
+
* const byName = BetterStack.Errors.Application.lookup({ name: "Production API" });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @resource
|
|
111
|
+
* @product Errors
|
|
112
|
+
*/
|
|
113
|
+
export const Application = Resource("BetterStack.Errors.Application");
|
|
114
|
+
export const ApplicationProvider = () => crud(Application, {
|
|
115
|
+
ops: {
|
|
116
|
+
create: Errors.createApplication,
|
|
117
|
+
read: Errors.getApplication,
|
|
118
|
+
update: Errors.updateApplication,
|
|
119
|
+
// Without force=true the API refuses to delete an application that has received data.
|
|
120
|
+
delete: withInput(Errors.deleteApplication, { force: true }),
|
|
121
|
+
list: Errors.listApplication,
|
|
122
|
+
},
|
|
123
|
+
key: (app) => ({ id: app.id }),
|
|
124
|
+
toAttributes: (app) => ({ ...toApplicationAttributes(app) }),
|
|
125
|
+
// The API merges `jsTagConfiguration` (an update changes only the keys sent) and never
|
|
126
|
+
// returns `customBucket.secretAccessKey`: compare only what the config declares.
|
|
127
|
+
compare: { jsTagConfiguration: "subset", customBucket: "subset" },
|
|
128
|
+
physicalName: { prop: "name" },
|
|
129
|
+
nullOnRemove: [
|
|
130
|
+
"applicationGroupId",
|
|
131
|
+
"codeMappingSourceRoot",
|
|
132
|
+
"codeMappingStackRoot",
|
|
133
|
+
"githubRepositoryName",
|
|
134
|
+
"gitlabRepositoryName",
|
|
135
|
+
"spikeProtectionBaselineMultiplier",
|
|
136
|
+
],
|
|
137
|
+
// Adopt an application with the same explicit name and platform.
|
|
138
|
+
adoptBy: {
|
|
139
|
+
match: (props) => props.name === undefined
|
|
140
|
+
? undefined
|
|
141
|
+
: (app) => app.name === props.name && app.platform === props.platform,
|
|
142
|
+
},
|
|
143
|
+
lookup: { match: (lookup, app) => "name" in lookup && app.name === lookup.name },
|
|
144
|
+
stables: ["id", "teamId", "createdAt", "token", "dsn", "ingestingHost", "tableName"],
|
|
145
|
+
});
|
|
146
|
+
//# sourceMappingURL=Application.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Application.js","sourceRoot":"","sources":["../../src/Errors/Application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAmDpD,MAAM,MAAM,GAAG,CAAC,KAAyC,EAAU,EAAE,CACnE,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,GAAG,CAAkE,KAAQ,EAAE,EAAE,CAC3F,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAEP,CAAC;AAErD,sFAAsF;AACtF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAuB,EAAyB,EAAE,CAAC,CAAC;IAC1F,GAAG,GAAG;IACN,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;IAClC,GAAG,EACD,GAAG,CAAC,KAAK,KAAK,SAAS,IAAI,GAAG,CAAC,aAAa,KAAK,SAAS;QACxD,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,aAAa,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC;QAC9E,CAAC,CAAC,SAAS;CAChB,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAc,gCAAgC,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CACtC,IAAI,CAAC,WAAW,EAAE;IAChB,GAAG,EAAE;QACH,MAAM,EAAE,MAAM,CAAC,iBAAiB;QAChC,IAAI,EAAE,MAAM,CAAC,cAAc;QAC3B,MAAM,EAAE,MAAM,CAAC,iBAAiB;QAChC,sFAAsF;QACtF,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QAC5D,IAAI,EAAE,MAAM,CAAC,eAAe;KAC7B;IACD,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;IAC9B,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC;IAC5D,uFAAuF;IACvF,iFAAiF;IACjF,OAAO,EAAE,EAAE,kBAAkB,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE;IACjE,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC9B,YAAY,EAAE;QACZ,oBAAoB;QACpB,uBAAuB;QACvB,sBAAsB;QACtB,sBAAsB;QACtB,sBAAsB;QACtB,mCAAmC;KACpC;IACD,iEAAiE;IACjE,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,KAAK,CAAC,IAAI,KAAK,SAAS;YACtB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,GAAG,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ;KAC1E;IACD,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,IAAI,MAAM,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE;IAChF,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,CAAC;CACrF,CAAC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
3
|
+
import type { Providers } from "../Providers.ts";
|
|
4
|
+
import * as Errors from "../sdk/services/errors.ts";
|
|
5
|
+
/** Props of {@link ApplicationGroup}. */
|
|
6
|
+
export interface ApplicationGroupProps extends Omit<Errors.CreateApplicationGroupRequest, "teamId" | "name">, TeamProp {
|
|
7
|
+
/** Group name. Defaults to a unique name generated from the stack, stage and logical id. */
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Attributes of {@link ApplicationGroup}: the group as the API returns it. */
|
|
11
|
+
export interface ApplicationGroupAttributes extends Errors.ApplicationGroup {
|
|
12
|
+
}
|
|
13
|
+
/** Props for {@link ApplicationGroup.lookup}: find an application group this stack doesn't manage. */
|
|
14
|
+
export type ApplicationGroupLookup = {
|
|
15
|
+
/** The group's id. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
18
|
+
teamId?: string;
|
|
19
|
+
} | {
|
|
20
|
+
/** The group's name. Names aren't unique: more than one match fails with `AmbiguousLookup`. */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
23
|
+
teamId?: string;
|
|
24
|
+
};
|
|
25
|
+
export type ApplicationGroup = Resource<"BetterStack.Errors.ApplicationGroup", ApplicationGroupProps, ApplicationGroupAttributes, never, Providers, ApplicationGroupLookup>;
|
|
26
|
+
/**
|
|
27
|
+
* A Better Stack error-tracking application group: organizes related
|
|
28
|
+
* {@link Application}s together. Applications join it through their
|
|
29
|
+
* `applicationGroupId`.
|
|
30
|
+
*
|
|
31
|
+
* `name` defaults to a generated unique name; `name` and `sortIndex` update in
|
|
32
|
+
* place (removing `sortIndex` clears it). `teamId` replaces the group when
|
|
33
|
+
* changed. An existing group with the same explicit `name` is adopted with
|
|
34
|
+
* `--adopt`.
|
|
35
|
+
*
|
|
36
|
+
* @see https://betterstack.com/docs/errors/api/applications-groups/list/
|
|
37
|
+
*
|
|
38
|
+
* ### Creating an application group
|
|
39
|
+
* **Example:** A group with an application in it
|
|
40
|
+
* ```typescript
|
|
41
|
+
* const group = yield* BetterStack.Errors.ApplicationGroup("production", {
|
|
42
|
+
* name: "Production apps",
|
|
43
|
+
* sortIndex: 1,
|
|
44
|
+
* });
|
|
45
|
+
* yield* BetterStack.Errors.Application("api-errors", {
|
|
46
|
+
* platform: "bun_errors",
|
|
47
|
+
* applicationGroupId: group.id,
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ### Looking up an existing group
|
|
52
|
+
* **Example:** Find a group by id
|
|
53
|
+
* ```typescript
|
|
54
|
+
* const existing = BetterStack.Errors.ApplicationGroup.lookup({ id: "123" });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* **Example:** Find a group by name (fails with `AmbiguousLookup` when several share it)
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const byName = BetterStack.Errors.ApplicationGroup.lookup({ name: "Backend" });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @resource
|
|
63
|
+
* @product Errors
|
|
64
|
+
*/
|
|
65
|
+
export declare const ApplicationGroup: import("alchemy/Resource").ResourceClass<ApplicationGroup>;
|
|
66
|
+
export declare const ApplicationGroupProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<ApplicationGroup>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
67
|
+
//# sourceMappingURL=ApplicationGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationGroup.d.ts","sourceRoot":"","sources":["../../src/Errors/ApplicationGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,yCAAyC;AACzC,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,MAAM,CAAC,6BAA6B,EAAE,QAAQ,GAAG,MAAM,CAAC,EAAE,QAAQ;IAC/E,4FAA4F;IAC5F,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,+EAA+E;AAC/E,MAAM,WAAW,0BAA2B,SAAQ,MAAM,CAAC,gBAAgB;CAAG;AAE9E,sGAAsG;AACtG,MAAM,MAAM,sBAAsB,GAC9B;IACE,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD;IACE,+FAA+F;IAC/F,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,qCAAqC,EACrC,qBAAqB,EACrB,0BAA0B,EAC1B,KAAK,EACL,SAAS,EACT,sBAAsB,CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,gBAAgB,4DAAoE,CAAC;AAkBlG,eAAO,MAAM,wBAAwB,kJAmBjC,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import { crud } from "../internal/crud.js";
|
|
4
|
+
import { keepInput } from "../internal/ops.js";
|
|
5
|
+
import * as Errors from "../sdk/services/errors.js";
|
|
6
|
+
/**
|
|
7
|
+
* A Better Stack error-tracking application group: organizes related
|
|
8
|
+
* {@link Application}s together. Applications join it through their
|
|
9
|
+
* `applicationGroupId`.
|
|
10
|
+
*
|
|
11
|
+
* `name` defaults to a generated unique name; `name` and `sortIndex` update in
|
|
12
|
+
* place (removing `sortIndex` clears it). `teamId` replaces the group when
|
|
13
|
+
* changed. An existing group with the same explicit `name` is adopted with
|
|
14
|
+
* `--adopt`.
|
|
15
|
+
*
|
|
16
|
+
* @see https://betterstack.com/docs/errors/api/applications-groups/list/
|
|
17
|
+
*
|
|
18
|
+
* ### Creating an application group
|
|
19
|
+
* **Example:** A group with an application in it
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const group = yield* BetterStack.Errors.ApplicationGroup("production", {
|
|
22
|
+
* name: "Production apps",
|
|
23
|
+
* sortIndex: 1,
|
|
24
|
+
* });
|
|
25
|
+
* yield* BetterStack.Errors.Application("api-errors", {
|
|
26
|
+
* platform: "bun_errors",
|
|
27
|
+
* applicationGroupId: group.id,
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ### Looking up an existing group
|
|
32
|
+
* **Example:** Find a group by id
|
|
33
|
+
* ```typescript
|
|
34
|
+
* const existing = BetterStack.Errors.ApplicationGroup.lookup({ id: "123" });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* **Example:** Find a group by name (fails with `AmbiguousLookup` when several share it)
|
|
38
|
+
* ```typescript
|
|
39
|
+
* const byName = BetterStack.Errors.ApplicationGroup.lookup({ name: "Backend" });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @resource
|
|
43
|
+
* @product Errors
|
|
44
|
+
*/
|
|
45
|
+
export const ApplicationGroup = Resource("BetterStack.Errors.ApplicationGroup");
|
|
46
|
+
/**
|
|
47
|
+
* `update_application_group` requires `name` (the document marks it required on
|
|
48
|
+
* PATCH), while `crud` sends only what changed: a `sortIndex`-only change
|
|
49
|
+
* carries the group's current name.
|
|
50
|
+
*/
|
|
51
|
+
const updateApplicationGroup = keepInput((input) => input.name !== undefined
|
|
52
|
+
? Errors.updateApplicationGroup({ ...input, name: input.name })
|
|
53
|
+
: Effect.flatMap(Errors.getApplicationGroup({ id: input.id, teamId: input.teamId }), (current) => Errors.updateApplicationGroup({ ...input, name: current.name ?? "" })), Errors.updateApplicationGroup);
|
|
54
|
+
export const ApplicationGroupProvider = () => crud(ApplicationGroup, {
|
|
55
|
+
ops: {
|
|
56
|
+
create: Errors.createApplicationGroup,
|
|
57
|
+
read: Errors.getApplicationGroup,
|
|
58
|
+
update: updateApplicationGroup,
|
|
59
|
+
delete: Errors.deleteApplicationGroup,
|
|
60
|
+
list: Errors.listApplicationGroup,
|
|
61
|
+
},
|
|
62
|
+
key: (group) => ({ id: group.id }),
|
|
63
|
+
physicalName: { prop: "name" },
|
|
64
|
+
nullOnRemove: ["sortIndex"],
|
|
65
|
+
// Adopt a group with the same explicit name.
|
|
66
|
+
adoptBy: {
|
|
67
|
+
match: (props) => props.name === undefined ? undefined : (group) => group.name === props.name,
|
|
68
|
+
},
|
|
69
|
+
lookup: { match: (lookup, group) => "name" in lookup && group.name === lookup.name },
|
|
70
|
+
stables: ["id", "teamId", "createdAt"],
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=ApplicationGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationGroup.js","sourceRoot":"","sources":["../../src/Errors/ApplicationGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAoCpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAmB,qCAAqC,CAAC,CAAC;AAElG;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,SAAS,CACtC,CAAC,KAA6E,EAAE,EAAE,CAChF,KAAK,CAAC,IAAI,KAAK,SAAS;IACtB,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC/D,CAAC,CAAC,MAAM,CAAC,OAAO,CACZ,MAAM,CAAC,mBAAmB,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,EAClE,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CACnF,EACP,MAAM,CAAC,sBAAsB,CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAC3C,IAAI,CAAC,gBAAgB,EAAE;IACrB,GAAG,EAAE;QACH,MAAM,EAAE,MAAM,CAAC,sBAAsB;QACrC,IAAI,EAAE,MAAM,CAAC,mBAAmB;QAChC,MAAM,EAAE,sBAAsB;QAC9B,MAAM,EAAE,MAAM,CAAC,sBAAsB;QACrC,IAAI,EAAE,MAAM,CAAC,oBAAoB;KAClC;IACD,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;IAClC,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC9B,YAAY,EAAE,CAAC,WAAW,CAAC;IAC3B,6CAA6C;IAC7C,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI;KAC9E;IACD,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,IAAI,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE;IACpF,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;CACvC,CAAC,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as Binding from "alchemy/Binding";
|
|
2
|
+
import type { RuntimeContext } from "alchemy/RuntimeContext";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
|
+
import type { Application } from "./Application.ts";
|
|
7
|
+
/** Options of {@link Dsn}. */
|
|
8
|
+
export interface DsnOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The environment variable the DSN is bound to. The default is the one
|
|
11
|
+
* every Sentry SDK reads by itself, so `Sentry.init()` needs no `dsn`.
|
|
12
|
+
* Give each application its own name when one host reports to several.
|
|
13
|
+
*
|
|
14
|
+
* @default "SENTRY_DSN"
|
|
15
|
+
*/
|
|
16
|
+
readonly env?: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Hand a host the Sentry DSN of an {@link Application}, so a Sentry SDK in
|
|
20
|
+
* that host reports its exceptions to Better Stack error tracking.
|
|
21
|
+
*
|
|
22
|
+
* At deploy it binds the application's `dsn` (`Redacted`) into the host's
|
|
23
|
+
* environment as `SENTRY_DSN` (or `options.env`); at runtime it returns an
|
|
24
|
+
* Effect that reads the DSN back as a `Redacted`.
|
|
25
|
+
*
|
|
26
|
+
* Alchemy carries secrets through a host's environment in a marked form
|
|
27
|
+
* (`{"_tag":"Redacted",…}`) that only Alchemy reads. On a host with a process
|
|
28
|
+
* environment (a `Cloud.Service`, a container, Lambda) the binding puts the
|
|
29
|
+
* plain DSN back into `process.env` when the host starts, so a Sentry SDK
|
|
30
|
+
* that reads `SENTRY_DSN` itself works: `Sentry.init({ tracesSampleRate: 1 })`
|
|
31
|
+
* after the binding. Elsewhere (a Cloudflare Worker's `env`) pass it
|
|
32
|
+
* explicitly: `dsn: Redacted.value(yield* dsn)`.
|
|
33
|
+
*
|
|
34
|
+
* **Credential.** The host receives the DSN only: an ingestion token that
|
|
35
|
+
* can only report events (errors, releases seen in events, web events) into
|
|
36
|
+
* that one application. It reads nothing and manages nothing. No API token
|
|
37
|
+
* reaches the host. That is the least Better Stack offers for reporting.
|
|
38
|
+
*
|
|
39
|
+
* **Cost.** Every reported exception counts against the team's error
|
|
40
|
+
* tracking volume; sample with the Sentry SDK's options when it is high.
|
|
41
|
+
*
|
|
42
|
+
* Provide {@link DsnLive} on the host's implementation.
|
|
43
|
+
*
|
|
44
|
+
* @see https://betterstack.com/docs/errors/collecting-errors/sentry-sdk/
|
|
45
|
+
*
|
|
46
|
+
* ### Error tracking in a Cloud.Service
|
|
47
|
+
* **Example:** Bind the DSN; Sentry reads `SENTRY_DSN`
|
|
48
|
+
* ```typescript
|
|
49
|
+
* export const Errors = BetterStack.Errors.Application("Errors", { platform: "node_errors" });
|
|
50
|
+
*
|
|
51
|
+
* export default class Api extends BetterStack.Cloud.Service<Api>()(
|
|
52
|
+
* "Api",
|
|
53
|
+
* { server: Box, main: import.meta.url, port: 3000 },
|
|
54
|
+
* Effect.gen(function* () {
|
|
55
|
+
* const dsn = yield* BetterStack.Errors.Dsn(Errors);
|
|
56
|
+
* return {
|
|
57
|
+
* fetch: Effect.gen(function* () {
|
|
58
|
+
* // e.g. Sentry.init({ dsn: Redacted.value(yield* dsn) }) once, at startup
|
|
59
|
+
* const value = yield* dsn;
|
|
60
|
+
* return HttpServerResponse.text(Redacted.value(value).length > 0 ? "ok" : "no dsn");
|
|
61
|
+
* }),
|
|
62
|
+
* };
|
|
63
|
+
* }).pipe(Effect.provide(BetterStack.Errors.DsnLive)),
|
|
64
|
+
* ) {}
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* ### On any Alchemy host
|
|
68
|
+
* The DSN is bound through `RuntimeContext`, so a Cloudflare Worker gets it
|
|
69
|
+
* as a `secret_text` binding named `SENTRY_DSN` (what `@sentry/cloudflare`
|
|
70
|
+
* reads from `env`) and a Lambda Function as an environment variable.
|
|
71
|
+
*
|
|
72
|
+
* @binding
|
|
73
|
+
* @product Errors
|
|
74
|
+
*/
|
|
75
|
+
export interface Dsn extends Binding.Service<Dsn, "BetterStack.Errors.Dsn", (application: Application, options?: DsnOptions) => Effect.Effect<Effect.Effect<Redacted.Redacted<string>, never, RuntimeContext>>> {
|
|
76
|
+
}
|
|
77
|
+
export declare const Dsn: Dsn;
|
|
78
|
+
/**
|
|
79
|
+
* The implementation of {@link Dsn}: binds the DSN into the host's env and
|
|
80
|
+
* reads it back. No API call. Provide it on the host's implementation.
|
|
81
|
+
*
|
|
82
|
+
* @layer
|
|
83
|
+
* @product Errors
|
|
84
|
+
* @provides BetterStack.Errors.Dsn
|
|
85
|
+
*/
|
|
86
|
+
export declare const DsnLive: Layer.Layer<Dsn, never, never>;
|
|
87
|
+
//# sourceMappingURL=Dsn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dsn.d.ts","sourceRoot":"","sources":["../../src/Errors/Dsn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,8BAA8B;AAC9B,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,WAAW,GAAI,SAAQ,OAAO,CAAC,OAAO,CAC1C,GAAG,EACH,wBAAwB,EACxB,CACE,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,UAAU,KACjB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CACpF;CAAG;AAEJ,eAAO,MAAM,GAAG,KAAiD,CAAC;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,gCAsBnB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Binding from "alchemy/Binding";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Layer from "effect/Layer";
|
|
4
|
+
import { Bind } from "../BetterStackBindings.js";
|
|
5
|
+
export const Dsn = Binding.Service("BetterStack.Errors.Dsn");
|
|
6
|
+
/**
|
|
7
|
+
* The implementation of {@link Dsn}: binds the DSN into the host's env and
|
|
8
|
+
* reads it back. No API call. Provide it on the host's implementation.
|
|
9
|
+
*
|
|
10
|
+
* @layer
|
|
11
|
+
* @product Errors
|
|
12
|
+
* @provides BetterStack.Errors.Dsn
|
|
13
|
+
*/
|
|
14
|
+
export const DsnLive = Layer.succeed(Dsn, Effect.fn("BetterStack.Errors.Dsn")(function* (application, options) {
|
|
15
|
+
const key = options?.env ?? "SENTRY_DSN";
|
|
16
|
+
const bind = yield* Bind;
|
|
17
|
+
const env = yield* bind `BetterStack.Errors.Dsn(${application})`({
|
|
18
|
+
// Cast: at bind time an attribute is its Output, but the resource type declares the resolved value.
|
|
19
|
+
env: { [key]: application.dsn },
|
|
20
|
+
});
|
|
21
|
+
if (globalThis.__ALCHEMY_RUNTIME__) {
|
|
22
|
+
// The host's env carries Alchemy's secret marker, which a Sentry SDK
|
|
23
|
+
// reading `process.env.SENTRY_DSN` itself cannot parse: on a host with
|
|
24
|
+
// a process environment, put the plain DSN there at startup.
|
|
25
|
+
const dsn = yield* env.optional(key);
|
|
26
|
+
const processEnv = globalThis
|
|
27
|
+
.process?.env;
|
|
28
|
+
if (dsn !== undefined && processEnv !== undefined && processEnv[key] !== dsn) {
|
|
29
|
+
processEnv[key] = dsn;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return env.secret(key);
|
|
33
|
+
}));
|
|
34
|
+
//# sourceMappingURL=Dsn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dsn.js","sourceRoot":"","sources":["../../src/Errors/Dsn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAE3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAiB,MAAM,2BAA2B,CAAC;AAiFhE,MAAM,CAAC,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAM,wBAAwB,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAClC,GAAG,EACH,MAAM,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAwB,EAAE,OAAoB;IAC3F,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,YAAY,CAAC;IACzC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC;IACzB,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,IAAI,CAAA,0BAA0B,WAAW,GAAG,CAAC;QAC9D,oGAAoG;QACpG,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,GAA0B,EAAE;KACvD,CAAC,CAAC;IACH,IAAI,UAAU,CAAC,mBAAmB,EAAE,CAAC;QACnC,qEAAqE;QACrE,uEAAuE;QACvE,6DAA6D;QAC7D,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAsC,CAAC;QAC1E,MAAM,UAAU,GAAI,UAAyE;aAC1F,OAAO,EAAE,GAAG,CAAC;QAChB,IAAI,GAAG,KAAK,SAAS,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC;YAC7E,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
3
|
+
import type { Providers } from "../Providers.ts";
|
|
4
|
+
import * as Errors from "../sdk/services/errors.ts";
|
|
5
|
+
/** Props of {@link JiraIntegration}: the integration to take over, and the settings to apply. */
|
|
6
|
+
export interface JiraIntegrationProps extends Omit<Errors.UpdateErrorsJiraIntegrationRequest, "id" | "teamId">, TeamProp {
|
|
7
|
+
/**
|
|
8
|
+
* The id of the Jira integration to take over: one connected in the Better
|
|
9
|
+
* Stack web app (Errors → Integrations → Jira), from
|
|
10
|
+
* [List Jira integrations](https://betterstack.com/docs/errors/api/integrations/jira/list/).
|
|
11
|
+
* Changing it takes over that integration instead; the previous one keeps
|
|
12
|
+
* its settings.
|
|
13
|
+
*/
|
|
14
|
+
integrationId: string;
|
|
15
|
+
}
|
|
16
|
+
/** Attributes of {@link JiraIntegration}: the integration as the API returns it. */
|
|
17
|
+
export interface JiraIntegrationAttributes extends Omit<Errors.ErrorsJiraIntegration, "applications"> {
|
|
18
|
+
/** Applications whose errors this integration posts, each with its environments (ids as strings). */
|
|
19
|
+
applications?: Errors.UpdateErrorsJiraIntegrationRequestApplicationsList | undefined;
|
|
20
|
+
}
|
|
21
|
+
/** Props for {@link JiraIntegration.lookup}. */
|
|
22
|
+
export interface JiraIntegrationLookup {
|
|
23
|
+
/** The integration's id. */
|
|
24
|
+
id: string;
|
|
25
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
26
|
+
teamId?: string;
|
|
27
|
+
}
|
|
28
|
+
export type JiraIntegration = Resource<"BetterStack.Errors.JiraIntegration", JiraIntegrationProps, JiraIntegrationAttributes, never, Providers, JiraIntegrationLookup>;
|
|
29
|
+
/**
|
|
30
|
+
* An Error tracking Jira integration: which errors are filed as Jira work
|
|
31
|
+
* items, in which Jira space, and with which work type and fields.
|
|
32
|
+
*
|
|
33
|
+
* The API cannot create or delete one: connect Jira in the Better Stack web
|
|
34
|
+
* app first (it needs Atlassian's OAuth consent), then this resource **takes
|
|
35
|
+
* over** the integration named by `integrationId` and applies the settings
|
|
36
|
+
* you declare. Destroying the resource only forgets it; the integration and
|
|
37
|
+
* its settings stay in Better Stack. A missing `integrationId` fails the
|
|
38
|
+
* deploy.
|
|
39
|
+
*
|
|
40
|
+
* `applications` and `tagFilter` are replaced as a whole on update;
|
|
41
|
+
* `notifications` changes only the toggles sent, and only the toggles you
|
|
42
|
+
* declare are compared with what the API answers. Changing `jiraProjectKey`
|
|
43
|
+
* needs `jiraIssueTypeId` in the same deploy, and clears `jiraFields` unless
|
|
44
|
+
* they are declared too.
|
|
45
|
+
*
|
|
46
|
+
* @see https://betterstack.com/docs/errors/api/integrations/jira/update/
|
|
47
|
+
*
|
|
48
|
+
* ### Configuring a connected Jira integration
|
|
49
|
+
* **Example:** File production errors of one application as Jira bugs
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const errors = yield* BetterStack.Errors.Application("api-errors", {
|
|
52
|
+
* platform: "bun_errors",
|
|
53
|
+
* });
|
|
54
|
+
* yield* BetterStack.Errors.JiraIntegration("jira", {
|
|
55
|
+
* integrationId: "12345",
|
|
56
|
+
* applications: [{ applicationId: errors.id, environments: ["production"] }],
|
|
57
|
+
* jiraProjectKey: "OPS",
|
|
58
|
+
* jiraIssueTypeId: "10004",
|
|
59
|
+
* occurrenceThresholdCount: 10,
|
|
60
|
+
* occurrenceThresholdInterval: "hour",
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @resource
|
|
65
|
+
* @product Errors
|
|
66
|
+
*/
|
|
67
|
+
export declare const JiraIntegration: import("alchemy/Resource").ResourceClass<JiraIntegration>;
|
|
68
|
+
export declare const JiraIntegrationProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<JiraIntegration>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
69
|
+
//# sourceMappingURL=JiraIntegration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JiraIntegration.d.ts","sourceRoot":"","sources":["../../src/Errors/JiraIntegration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,iGAAiG;AACjG,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,MAAM,CAAC,kCAAkC,EAAE,IAAI,GAAG,QAAQ,CAAC,EAAE,QAAQ;IAClF;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,oFAAoF;AACpF,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CACrD,MAAM,CAAC,qBAAqB,EAC5B,cAAc,CACf;IACC,qGAAqG;IACrG,YAAY,CAAC,EAAE,MAAM,CAAC,kDAAkD,GAAG,SAAS,CAAC;CACtF;AAED,gDAAgD;AAChD,MAAM,WAAW,qBAAqB;IACpC,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,eAAe,GAAG,QAAQ,CACpC,oCAAoC,EACpC,oBAAoB,EACpB,yBAAyB,EACzB,KAAK,EACL,SAAS,EACT,qBAAqB,CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,eAAe,2DAAkE,CAAC;AAO/F,eAAO,MAAM,uBAAuB,iJAehC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { stringifyApplicationIds } from "../internal/applicationIds.js";
|
|
3
|
+
import { crud } from "../internal/crud.js";
|
|
4
|
+
import { mapItems, mapOutput } from "../internal/ops.js";
|
|
5
|
+
import * as Errors from "../sdk/services/errors.js";
|
|
6
|
+
/**
|
|
7
|
+
* An Error tracking Jira integration: which errors are filed as Jira work
|
|
8
|
+
* items, in which Jira space, and with which work type and fields.
|
|
9
|
+
*
|
|
10
|
+
* The API cannot create or delete one: connect Jira in the Better Stack web
|
|
11
|
+
* app first (it needs Atlassian's OAuth consent), then this resource **takes
|
|
12
|
+
* over** the integration named by `integrationId` and applies the settings
|
|
13
|
+
* you declare. Destroying the resource only forgets it; the integration and
|
|
14
|
+
* its settings stay in Better Stack. A missing `integrationId` fails the
|
|
15
|
+
* deploy.
|
|
16
|
+
*
|
|
17
|
+
* `applications` and `tagFilter` are replaced as a whole on update;
|
|
18
|
+
* `notifications` changes only the toggles sent, and only the toggles you
|
|
19
|
+
* declare are compared with what the API answers. Changing `jiraProjectKey`
|
|
20
|
+
* needs `jiraIssueTypeId` in the same deploy, and clears `jiraFields` unless
|
|
21
|
+
* they are declared too.
|
|
22
|
+
*
|
|
23
|
+
* @see https://betterstack.com/docs/errors/api/integrations/jira/update/
|
|
24
|
+
*
|
|
25
|
+
* ### Configuring a connected Jira integration
|
|
26
|
+
* **Example:** File production errors of one application as Jira bugs
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const errors = yield* BetterStack.Errors.Application("api-errors", {
|
|
29
|
+
* platform: "bun_errors",
|
|
30
|
+
* });
|
|
31
|
+
* yield* BetterStack.Errors.JiraIntegration("jira", {
|
|
32
|
+
* integrationId: "12345",
|
|
33
|
+
* applications: [{ applicationId: errors.id, environments: ["production"] }],
|
|
34
|
+
* jiraProjectKey: "OPS",
|
|
35
|
+
* jiraIssueTypeId: "10004",
|
|
36
|
+
* occurrenceThresholdCount: 10,
|
|
37
|
+
* occurrenceThresholdInterval: "hour",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @resource
|
|
42
|
+
* @product Errors
|
|
43
|
+
*/
|
|
44
|
+
export const JiraIntegration = Resource("BetterStack.Errors.JiraIntegration");
|
|
45
|
+
const normalize = ({ applications, ...integration }) => ({
|
|
46
|
+
...integration,
|
|
47
|
+
applications: stringifyApplicationIds(applications),
|
|
48
|
+
});
|
|
49
|
+
export const JiraIntegrationProvider = () => crud(JiraIntegration, {
|
|
50
|
+
ops: {
|
|
51
|
+
read: mapOutput(Errors.getErrorsJiraIntegration, normalize),
|
|
52
|
+
update: Errors.updateErrorsJiraIntegration,
|
|
53
|
+
list: mapItems(Errors.listErrorsJiraIntegration, normalize),
|
|
54
|
+
},
|
|
55
|
+
key: (integration) => ({ id: integration.id }),
|
|
56
|
+
takeOver: (props) => ({ id: props.integrationId }),
|
|
57
|
+
// The API merges `notifications`: only the declared toggles are compared.
|
|
58
|
+
compare: { notifications: "subset" },
|
|
59
|
+
replaceOn: ["integrationId"],
|
|
60
|
+
stables: ["id", "teamId"],
|
|
61
|
+
// Never deleted, so nothing to nuke.
|
|
62
|
+
nuke: { skip: true },
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=JiraIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JiraIntegration.js","sourceRoot":"","sources":["../../src/Errors/JiraIntegration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAyCpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAkB,oCAAoC,CAAC,CAAC;AAE/F,MAAM,SAAS,GAAG,CAAC,EAAE,YAAY,EAAE,GAAG,WAAW,EAAgC,EAAE,EAAE,CAAC,CAAC;IACrF,GAAG,WAAW;IACd,YAAY,EAAE,uBAAuB,CAAC,YAAY,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAC1C,IAAI,CAAC,eAAe,EAAE;IACpB,GAAG,EAAE;QACH,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,wBAAwB,EAAE,SAAS,CAAC;QAC3D,MAAM,EAAE,MAAM,CAAC,2BAA2B;QAC1C,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,yBAAyB,EAAE,SAAS,CAAC;KAC5D;IACD,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC;IAC9C,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC;IAClD,0EAA0E;IAC1E,OAAO,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE;IACpC,SAAS,EAAE,CAAC,eAAe,CAAC;IAC5B,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC;IACzB,qCAAqC;IACrC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
3
|
+
import type { Providers } from "../Providers.ts";
|
|
4
|
+
import * as Errors from "../sdk/services/errors.ts";
|
|
5
|
+
/** Props of {@link LinearIntegration}: the integration to take over, and the settings to apply. */
|
|
6
|
+
export interface LinearIntegrationProps extends Omit<Errors.UpdateErrorsLinearIntegrationRequest, "id" | "teamId">, TeamProp {
|
|
7
|
+
/**
|
|
8
|
+
* The id of the Linear integration to take over: one connected in the Better
|
|
9
|
+
* Stack web app (Errors → Integrations → Linear), from
|
|
10
|
+
* [List Linear integrations](https://betterstack.com/docs/errors/api/integrations/linear/list/).
|
|
11
|
+
* Changing it takes over that integration instead; the previous one keeps
|
|
12
|
+
* its settings.
|
|
13
|
+
*/
|
|
14
|
+
integrationId: string;
|
|
15
|
+
}
|
|
16
|
+
/** Attributes of {@link LinearIntegration}: the integration as the API returns it. */
|
|
17
|
+
export interface LinearIntegrationAttributes extends Omit<Errors.ErrorsLinearIntegration, "applications"> {
|
|
18
|
+
/** Applications whose errors this integration posts, each with its environments (ids as strings). */
|
|
19
|
+
applications?: Errors.UpdateErrorsLinearIntegrationRequestApplicationsList | undefined;
|
|
20
|
+
}
|
|
21
|
+
/** Props for {@link LinearIntegration.lookup}. */
|
|
22
|
+
export interface LinearIntegrationLookup {
|
|
23
|
+
/** The integration's id. */
|
|
24
|
+
id: string;
|
|
25
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
26
|
+
teamId?: string;
|
|
27
|
+
}
|
|
28
|
+
export type LinearIntegration = Resource<"BetterStack.Errors.LinearIntegration", LinearIntegrationProps, LinearIntegrationAttributes, never, Providers, LinearIntegrationLookup>;
|
|
29
|
+
/**
|
|
30
|
+
* An Error tracking Linear integration: which errors are filed as Linear
|
|
31
|
+
* issues, with which issue properties, and how errors and issues are kept in
|
|
32
|
+
* sync.
|
|
33
|
+
*
|
|
34
|
+
* The API cannot create or delete one: connect Linear in the Better Stack web
|
|
35
|
+
* app first (it needs Linear's OAuth consent), then this resource **takes
|
|
36
|
+
* over** the integration named by `integrationId` and applies the settings
|
|
37
|
+
* you declare. Destroying the resource only forgets it; the integration and
|
|
38
|
+
* its settings stay in Better Stack. A missing `integrationId` fails the
|
|
39
|
+
* deploy.
|
|
40
|
+
*
|
|
41
|
+
* `applications`, `tagFilter` and `linearLabelIds` are replaced as a whole on
|
|
42
|
+
* update; `notifications` changes only the toggles sent, and only the toggles
|
|
43
|
+
* you declare are compared with what the API answers. Changing
|
|
44
|
+
* `linearTeamId` clears the status, project and label ids unless they are
|
|
45
|
+
* declared too. The Linear ids are easiest to pick once on the
|
|
46
|
+
* integration's **Configure** page and read back with `lookup`.
|
|
47
|
+
*
|
|
48
|
+
* @see https://betterstack.com/docs/errors/api/integrations/linear/update/
|
|
49
|
+
*
|
|
50
|
+
* ### Configuring a connected Linear integration
|
|
51
|
+
* **Example:** File errors as Linear issues that resolve with the error
|
|
52
|
+
* ```typescript
|
|
53
|
+
* const errors = yield* BetterStack.Errors.Application("api-errors", {
|
|
54
|
+
* platform: "bun_errors",
|
|
55
|
+
* });
|
|
56
|
+
* yield* BetterStack.Errors.LinearIntegration("linear", {
|
|
57
|
+
* integrationId: "12345",
|
|
58
|
+
* applications: [{ applicationId: errors.id, environments: ["production"] }],
|
|
59
|
+
* linearTeamId: "9cfb482a-81e3-4154-b5b9-2c805e70a02d",
|
|
60
|
+
* autoResolve: true,
|
|
61
|
+
* autoReopen: true,
|
|
62
|
+
* syncComments: true,
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @resource
|
|
67
|
+
* @product Errors
|
|
68
|
+
*/
|
|
69
|
+
export declare const LinearIntegration: import("alchemy/Resource").ResourceClass<LinearIntegration>;
|
|
70
|
+
export declare const LinearIntegrationProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<LinearIntegration>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
71
|
+
//# sourceMappingURL=LinearIntegration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinearIntegration.d.ts","sourceRoot":"","sources":["../../src/Errors/LinearIntegration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,mGAAmG;AACnG,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,MAAM,CAAC,oCAAoC,EAAE,IAAI,GAAG,QAAQ,CAAC,EAAE,QAAQ;IACpF;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,sFAAsF;AACtF,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CACvD,MAAM,CAAC,uBAAuB,EAC9B,cAAc,CACf;IACC,qGAAqG;IACrG,YAAY,CAAC,EAAE,MAAM,CAAC,oDAAoD,GAAG,SAAS,CAAC;CACxF;AAED,kDAAkD;AAClD,MAAM,WAAW,uBAAuB;IACtC,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CACtC,sCAAsC,EACtC,sBAAsB,EACtB,2BAA2B,EAC3B,KAAK,EACL,SAAS,EACT,uBAAuB,CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,iBAAiB,6DAE7B,CAAC;AAOF,eAAO,MAAM,yBAAyB,mJAelC,CAAC"}
|