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,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A bounded waiter for asynchronous Better Stack resources (Cloud servers,
|
|
3
|
+
* databases, clusters): poll a read until a success predicate holds, fail
|
|
4
|
+
* fast on a failure predicate, and give up with a typed {@link WaitTimeout}
|
|
5
|
+
* after the resource's time budget. Never waits unbounded (Speed doctrine).
|
|
6
|
+
*/
|
|
7
|
+
import * as Clock from "effect/Clock";
|
|
8
|
+
import * as Data from "effect/Data";
|
|
9
|
+
import * as Duration from "effect/Duration";
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
/** A resource did not reach the state it was waited for within its budget. */
|
|
12
|
+
export class WaitTimeout extends Data.TaggedError("WaitTimeout") {
|
|
13
|
+
}
|
|
14
|
+
/** A resource reached a state the wait policy says it never recovers from (e.g. `destroyed`). */
|
|
15
|
+
export class WaitFailed extends Data.TaggedError("WaitFailed") {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Poll `read` until `policy.until` holds. Returns the last polled state.
|
|
19
|
+
* `read` returns `undefined` for an object that is gone.
|
|
20
|
+
*
|
|
21
|
+
* The budget is wall-clock time from the `Clock` (not a number of polls):
|
|
22
|
+
* a slow read (a loaded process, a slow API) uses up the budget, it never
|
|
23
|
+
* stretches it. The last sleep is cut to the time left, the state is read
|
|
24
|
+
* once more at the deadline, and a wait never gives up before its second
|
|
25
|
+
* read. Under
|
|
26
|
+
* `TestClock`, `TestClock.adjust` drives the wait.
|
|
27
|
+
*/
|
|
28
|
+
export const waitFor = (read, policy, context) => Effect.gen(function* () {
|
|
29
|
+
const timeout = Duration.fromInputUnsafe(policy.timeout ?? "10 minutes");
|
|
30
|
+
const interval = Math.max(1, Duration.toMillis(Duration.fromInputUnsafe(policy.interval ?? "5 seconds")));
|
|
31
|
+
const deadline = (yield* Clock.currentTimeMillis) + Duration.toMillis(timeout);
|
|
32
|
+
// At least two reads before giving up: one slow read under load (a busy process,
|
|
33
|
+
// a slow API) must not use up a budget the object would have met on the next poll.
|
|
34
|
+
for (let reads = 1;; reads++) {
|
|
35
|
+
const last = yield* read;
|
|
36
|
+
if (policy.until(last))
|
|
37
|
+
return last;
|
|
38
|
+
if (last !== undefined && policy.failWhen?.(last)) {
|
|
39
|
+
return yield* new WaitFailed({
|
|
40
|
+
message: `${context.resourceType}: ${context.phase} reached a failed state`,
|
|
41
|
+
...context,
|
|
42
|
+
last,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const left = deadline - (yield* Clock.currentTimeMillis);
|
|
46
|
+
if (left <= 0 && reads >= 2) {
|
|
47
|
+
return yield* new WaitTimeout({
|
|
48
|
+
message: `${context.resourceType}: ${context.phase} did not finish within ${Duration.format(timeout)}`,
|
|
49
|
+
...context,
|
|
50
|
+
last,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
yield* Effect.sleep(Duration.millis(Math.max(0, Math.min(interval, left))));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=wait.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait.js","sourceRoot":"","sources":["../../src/internal/wait.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,8EAA8E;AAC9E,MAAM,OAAO,WAAY,SAAQ,IAAI,CAAC,WAAW,CAAC,aAAa,CAQ7D;CAAG;AAEL,iGAAiG;AACjG,MAAM,OAAO,UAAW,SAAQ,IAAI,CAAC,WAAW,CAAC,YAAY,CAK3D;CAAG;AAcL;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,IAAwC,EACxC,MAAqB,EACrB,OAAkE,EACH,EAAE,CACjE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,IAA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AAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
2
|
+
import * as Context from "effect/Context";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as Redacted from "effect/Redacted";
|
|
6
|
+
/** Base URL per Better Stack API. */
|
|
7
|
+
export interface Endpoints {
|
|
8
|
+
/** Uptime / incident management API. Default `https://uptime.betterstack.com`. */
|
|
9
|
+
readonly incidents: string;
|
|
10
|
+
/** Telemetry (logs, metrics, dashboards) API. Default `https://telemetry.betterstack.com`. */
|
|
11
|
+
readonly telemetry: string;
|
|
12
|
+
/** Error tracking API. Default `https://errors.betterstack.com`. */
|
|
13
|
+
readonly errors: string;
|
|
14
|
+
/** Account / team management API. Default `https://betterstack.com`. */
|
|
15
|
+
readonly account: string;
|
|
16
|
+
/** URL template; `{availability_zone}` is replaced per request. */
|
|
17
|
+
readonly cloud: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const DEFAULT_ENDPOINTS: Endpoints;
|
|
20
|
+
export interface Config {
|
|
21
|
+
readonly apiToken: Redacted.Redacted<string>;
|
|
22
|
+
/** Team to act in, such as "t123". Needed when the token can reach several teams (a global API token). */
|
|
23
|
+
readonly teamId?: string | undefined;
|
|
24
|
+
readonly endpoints: Endpoints;
|
|
25
|
+
/**
|
|
26
|
+
* Default Cloud availability zone, such as "us-west-2a", for Cloud calls
|
|
27
|
+
* that don't pass `availabilityZone` themselves (the call's value wins).
|
|
28
|
+
*/
|
|
29
|
+
readonly availabilityZone?: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
declare const Credentials_base: Context.ServiceClass<Credentials, "BetterStackCredentials", Effect.Effect<Config, never, never>>;
|
|
32
|
+
export declare class Credentials extends /*@__PURE__*/ Credentials_base {
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Layer from a redacted API token, an optional team, optional endpoint
|
|
36
|
+
* overrides and an optional default Cloud availability zone.
|
|
37
|
+
*/
|
|
38
|
+
export declare const fromApiToken: (config: {
|
|
39
|
+
readonly apiToken: Redacted.Redacted<string>;
|
|
40
|
+
readonly teamId?: string | undefined;
|
|
41
|
+
readonly endpoints?: Partial<Endpoints> | undefined;
|
|
42
|
+
readonly availabilityZone?: string | undefined;
|
|
43
|
+
}) => Layer.Layer<Credentials>;
|
|
44
|
+
/**
|
|
45
|
+
* Build {@link Credentials} from environment variables.
|
|
46
|
+
*
|
|
47
|
+
* - `BETTERSTACK_API_TOKEN` (required) -- a team or global API token.
|
|
48
|
+
* - `BETTERSTACK_TEAM_ID` (optional) -- the team to act in with a global token.
|
|
49
|
+
* - `BETTERSTACK_AVAILABILITY_ZONE` (optional) -- default Cloud availability
|
|
50
|
+
* zone, such as `us-west-2a`.
|
|
51
|
+
*
|
|
52
|
+
* The configuration is read once, when the layer is built: a problem there
|
|
53
|
+
* fails the layer with `ConfigError`.
|
|
54
|
+
*/
|
|
55
|
+
export declare const CredentialsFromEnv: Layer.Layer<Credentials, ConfigError>;
|
|
56
|
+
/**
|
|
57
|
+
* What the ingest operations (`services/ingest.ts`) send with: a source's own
|
|
58
|
+
* token and the base URL of its ingesting host. Not the API token: a source
|
|
59
|
+
* token can only send data into its source.
|
|
60
|
+
*/
|
|
61
|
+
export interface IngestConfig {
|
|
62
|
+
/** The source's ingestion token (a source's `token`). Sent as `Authorization: Bearer`. */
|
|
63
|
+
readonly token: Redacted.Redacted<string>;
|
|
64
|
+
/** Base URL of the source's ingesting host, such as `https://s123.eu-nbg-2.betterstackdata.com`. */
|
|
65
|
+
readonly endpoint: string;
|
|
66
|
+
}
|
|
67
|
+
declare const IngestCredentials_base: Context.ServiceClass<IngestCredentials, "BetterStackIngestCredentials", Effect.Effect<IngestConfig, never, never>>;
|
|
68
|
+
export declare class IngestCredentials extends /*@__PURE__*/ IngestCredentials_base {
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The base URL for an `ingesting_host`: the host as the API returns it
|
|
72
|
+
* (`s123.eu-nbg-2.betterstackdata.com`) gets `https://`; a URL (a test stub's
|
|
73
|
+
* `http://127.0.0.1:1234`) is kept, without a trailing slash.
|
|
74
|
+
*/
|
|
75
|
+
export declare const ingestEndpoint: (ingestingHost: string) => string;
|
|
76
|
+
/**
|
|
77
|
+
* Layer for a source's data plane, from the source's `token` and
|
|
78
|
+
* `ingesting_host` (both on `Telemetry.getSource` / `createSource`).
|
|
79
|
+
* `ingestingHost` may also be a full URL, which is how a test points it at
|
|
80
|
+
* a stub.
|
|
81
|
+
*/
|
|
82
|
+
export declare const fromSource: (config: {
|
|
83
|
+
readonly token: Redacted.Redacted<string>;
|
|
84
|
+
readonly ingestingHost: string;
|
|
85
|
+
}) => Layer.Layer<IngestCredentials>;
|
|
86
|
+
/**
|
|
87
|
+
* {@link IngestCredentials} from the environment:
|
|
88
|
+
*
|
|
89
|
+
* - `BETTERSTACK_SOURCE_TOKEN` (required) -- the source's token.
|
|
90
|
+
* - `BETTERSTACK_INGESTING_HOST` (required) -- the source's `ingesting_host`,
|
|
91
|
+
* or a URL.
|
|
92
|
+
*
|
|
93
|
+
* Read and checked when the layer is built; a problem fails it with `ConfigError`.
|
|
94
|
+
*/
|
|
95
|
+
export declare const IngestCredentialsFromEnv: Layer.Layer<IngestCredentials, ConfigError>;
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/sdk/credentials.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,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AChD,KAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CASxB,CAAC;AAsBJ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAuBpE,CAAC;AAMF;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1C,oGAAoG;IACpG,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;;AAED,qBAAa,iBACX,SAAQ,aAAa,CAAC,sBAErB;CAAG;AAEN;;;;GAIG;AACH,eAAO,MAAM,cAAc,kBAAmB,MAAM,KAAG,MAGtD,CAAC;AAKF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,WAAY;IACjC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC,KAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAI9B,CAAC;AAWJ;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,WAAW,CAwB9E,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Better Stack credentials -- hand-written.
|
|
3
|
+
*
|
|
4
|
+
* The `Credentials` service holds an *effect* that resolves the current
|
|
5
|
+
* credentials on every request (the protocol resolves it per request on the
|
|
6
|
+
* calling fiber), the same shape distilled's SDKs use.
|
|
7
|
+
*/
|
|
8
|
+
import * as EffectConfig from "@distilled.cloud/core/config";
|
|
9
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
10
|
+
import * as Context from "effect/Context";
|
|
11
|
+
import * as Effect from "effect/Effect";
|
|
12
|
+
import * as Layer from "effect/Layer";
|
|
13
|
+
import * as Option from "effect/Option";
|
|
14
|
+
import * as Redacted from "effect/Redacted";
|
|
15
|
+
export const DEFAULT_ENDPOINTS = {
|
|
16
|
+
incidents: "https://uptime.betterstack.com",
|
|
17
|
+
telemetry: "https://telemetry.betterstack.com",
|
|
18
|
+
errors: "https://errors.betterstack.com",
|
|
19
|
+
account: "https://betterstack.com",
|
|
20
|
+
cloud: "https://{availability_zone}.betterstackcloud.com",
|
|
21
|
+
};
|
|
22
|
+
export class Credentials extends /*@__PURE__*/ /*@__PURE__*/ Context.Service()("BetterStackCredentials") {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Layer from a redacted API token, an optional team, optional endpoint
|
|
26
|
+
* overrides and an optional default Cloud availability zone.
|
|
27
|
+
*/
|
|
28
|
+
export const fromApiToken = (config) => Layer.succeed(Credentials, Effect.succeed({
|
|
29
|
+
apiToken: config.apiToken,
|
|
30
|
+
teamId: config.teamId,
|
|
31
|
+
endpoints: { ...DEFAULT_ENDPOINTS, ...stripUndefined(config.endpoints) },
|
|
32
|
+
availabilityZone: config.availabilityZone,
|
|
33
|
+
}));
|
|
34
|
+
const stripUndefined = (endpoints) => Object.fromEntries(Object.entries(endpoints ?? {}).filter(([, value]) => value !== undefined));
|
|
35
|
+
const envConfig = /*@__PURE__*/ EffectConfig.all({
|
|
36
|
+
apiToken: /*@__PURE__*/ EffectConfig.option(
|
|
37
|
+
/*@__PURE__*/ EffectConfig.String("BETTERSTACK_API_TOKEN")),
|
|
38
|
+
teamId: /*@__PURE__*/ EffectConfig.option(
|
|
39
|
+
/*@__PURE__*/ EffectConfig.String("BETTERSTACK_TEAM_ID")),
|
|
40
|
+
availabilityZone: /*@__PURE__*/ EffectConfig.option(
|
|
41
|
+
/*@__PURE__*/ EffectConfig.String("BETTERSTACK_AVAILABILITY_ZONE")),
|
|
42
|
+
});
|
|
43
|
+
/** One DNS label: what a zone must be to go into the Cloud host name. */
|
|
44
|
+
const HOST_LABEL = /^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i;
|
|
45
|
+
/**
|
|
46
|
+
* Build {@link Credentials} from environment variables.
|
|
47
|
+
*
|
|
48
|
+
* - `BETTERSTACK_API_TOKEN` (required) -- a team or global API token.
|
|
49
|
+
* - `BETTERSTACK_TEAM_ID` (optional) -- the team to act in with a global token.
|
|
50
|
+
* - `BETTERSTACK_AVAILABILITY_ZONE` (optional) -- default Cloud availability
|
|
51
|
+
* zone, such as `us-west-2a`.
|
|
52
|
+
*
|
|
53
|
+
* The configuration is read once, when the layer is built: a problem there
|
|
54
|
+
* fails the layer with `ConfigError`.
|
|
55
|
+
*/
|
|
56
|
+
export const CredentialsFromEnv = /*@__PURE__*/ Layer.effect(Credentials,
|
|
57
|
+
/*@__PURE__*/ Effect.gen(function* () {
|
|
58
|
+
const missing = () => new ConfigError({ message: "BETTERSTACK_API_TOKEN environment variable is required" });
|
|
59
|
+
const config = yield* envConfig.pipe(Effect.mapError(missing));
|
|
60
|
+
const apiToken = Option.getOrUndefined(config.apiToken);
|
|
61
|
+
if (!apiToken)
|
|
62
|
+
return yield* missing();
|
|
63
|
+
const teamId = Option.getOrUndefined(config.teamId);
|
|
64
|
+
const zone = Option.getOrUndefined(config.availabilityZone);
|
|
65
|
+
if (zone !== undefined && zone !== "" && !HOST_LABEL.test(zone)) {
|
|
66
|
+
return yield* new ConfigError({
|
|
67
|
+
message: `BETTERSTACK_AVAILABILITY_ZONE must be one DNS label, such as us-west-2a; got ${JSON.stringify(zone)}`,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
const resolved = {
|
|
71
|
+
apiToken: Redacted.make(apiToken),
|
|
72
|
+
teamId: teamId === "" ? undefined : teamId,
|
|
73
|
+
endpoints: DEFAULT_ENDPOINTS,
|
|
74
|
+
availabilityZone: zone === "" ? undefined : zone,
|
|
75
|
+
};
|
|
76
|
+
return Effect.succeed(resolved);
|
|
77
|
+
}));
|
|
78
|
+
export class IngestCredentials extends /*@__PURE__*/ /*@__PURE__*/ Context.Service()("BetterStackIngestCredentials") {
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The base URL for an `ingesting_host`: the host as the API returns it
|
|
82
|
+
* (`s123.eu-nbg-2.betterstackdata.com`) gets `https://`; a URL (a test stub's
|
|
83
|
+
* `http://127.0.0.1:1234`) is kept, without a trailing slash.
|
|
84
|
+
*/
|
|
85
|
+
export const ingestEndpoint = (ingestingHost) => {
|
|
86
|
+
const trimmed = ingestingHost.trim().replace(/\/+$/, "");
|
|
87
|
+
return /^https?:\/\//i.test(trimmed) ? trimmed : `https://${trimmed}`;
|
|
88
|
+
};
|
|
89
|
+
/** A source's host as the API returns it, or a URL: what `ingestEndpoint` accepts. */
|
|
90
|
+
const INGEST_HOST = /^(https?:\/\/)?[a-z0-9.-]+(:\d+)?\/?$/i;
|
|
91
|
+
/**
|
|
92
|
+
* Layer for a source's data plane, from the source's `token` and
|
|
93
|
+
* `ingesting_host` (both on `Telemetry.getSource` / `createSource`).
|
|
94
|
+
* `ingestingHost` may also be a full URL, which is how a test points it at
|
|
95
|
+
* a stub.
|
|
96
|
+
*/
|
|
97
|
+
export const fromSource = (config) => Layer.succeed(IngestCredentials, Effect.succeed({ token: config.token, endpoint: ingestEndpoint(config.ingestingHost) }));
|
|
98
|
+
const ingestEnvConfig = /*@__PURE__*/ EffectConfig.all({
|
|
99
|
+
token: /*@__PURE__*/ EffectConfig.option(
|
|
100
|
+
/*@__PURE__*/ EffectConfig.String("BETTERSTACK_SOURCE_TOKEN")),
|
|
101
|
+
host: /*@__PURE__*/ EffectConfig.option(
|
|
102
|
+
/*@__PURE__*/ EffectConfig.String("BETTERSTACK_INGESTING_HOST")),
|
|
103
|
+
});
|
|
104
|
+
/**
|
|
105
|
+
* {@link IngestCredentials} from the environment:
|
|
106
|
+
*
|
|
107
|
+
* - `BETTERSTACK_SOURCE_TOKEN` (required) -- the source's token.
|
|
108
|
+
* - `BETTERSTACK_INGESTING_HOST` (required) -- the source's `ingesting_host`,
|
|
109
|
+
* or a URL.
|
|
110
|
+
*
|
|
111
|
+
* Read and checked when the layer is built; a problem fails it with `ConfigError`.
|
|
112
|
+
*/
|
|
113
|
+
export const IngestCredentialsFromEnv =
|
|
114
|
+
/*@__PURE__*/ Layer.effect(IngestCredentials,
|
|
115
|
+
/*@__PURE__*/ Effect.gen(function* () {
|
|
116
|
+
const missing = () => new ConfigError({
|
|
117
|
+
message: "BETTERSTACK_SOURCE_TOKEN and BETTERSTACK_INGESTING_HOST environment variables are required",
|
|
118
|
+
});
|
|
119
|
+
const config = yield* ingestEnvConfig.pipe(Effect.mapError(missing));
|
|
120
|
+
const token = Option.getOrUndefined(config.token);
|
|
121
|
+
const host = Option.getOrUndefined(config.host);
|
|
122
|
+
if (!token || !host)
|
|
123
|
+
return yield* missing();
|
|
124
|
+
if (!INGEST_HOST.test(host.trim())) {
|
|
125
|
+
return yield* new ConfigError({
|
|
126
|
+
message: `BETTERSTACK_INGESTING_HOST must be a host name or URL, got ${JSON.stringify(host)}`,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
const resolved = {
|
|
130
|
+
token: Redacted.make(token),
|
|
131
|
+
endpoint: ingestEndpoint(host),
|
|
132
|
+
};
|
|
133
|
+
return Effect.succeed(resolved);
|
|
134
|
+
}));
|
|
135
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/sdk/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAA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
|
4
|
+
* Every failed response becomes a typed, tagged error, picked by status:
|
|
5
|
+
*
|
|
6
|
+
* | status | tag | retried by `Retry.transient` |
|
|
7
|
+
* | --- | --- | --- |
|
|
8
|
+
* | 400 | `BadRequest` | no |
|
|
9
|
+
* | 401 | `Unauthorized` | no |
|
|
10
|
+
* | 403 | `Forbidden` | no |
|
|
11
|
+
* | 404 | `NotFound` | no |
|
|
12
|
+
* | 409 | `Conflict` | no |
|
|
13
|
+
* | 422 | `UnprocessableEntity` | no |
|
|
14
|
+
* | 423 | `Locked` | yes |
|
|
15
|
+
* | 429 | `TooManyRequests` | yes (throttling) |
|
|
16
|
+
* | 500, 502, 503, 504, other 5xx | `InternalServerError`, `BadGateway`, `ServiceUnavailable`, `GatewayTimeout` | yes |
|
|
17
|
+
* | any other status | `UnknownBetterStackError` | no |
|
|
18
|
+
*
|
|
19
|
+
* The statuses an operation documents (403, 404, 409, 422, ...) are classes
|
|
20
|
+
* of the generated service module with the same `_tag` as the classes here,
|
|
21
|
+
* so `Effect.catchTag("NotFound", ...)` works against either. Their `body` is
|
|
22
|
+
* typed with the API's error document (`IncidentsError` / `TelemetryError`:
|
|
23
|
+
* `errors`, `invalidAttributes`, `requiredAttributes`, `allowedValues`,
|
|
24
|
+
* `unauthorizedAttributes`), mapped to camelCase. `message` is the API's
|
|
25
|
+
* human-readable `errors` text.
|
|
26
|
+
*/
|
|
27
|
+
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, InvalidInput, SdkError, } from "@distilled.cloud/core/errors";
|
|
28
|
+
export type { DefaultErrors } from "@distilled.cloud/core/errors";
|
|
29
|
+
import * as Schema from "@distilled.cloud/core/schema-lite-typed";
|
|
30
|
+
declare const UnknownBetterStackError_base: Schema.TaggedErrorClass<"UnknownBetterStackError", {
|
|
31
|
+
status: import("effect/Schema").Number;
|
|
32
|
+
code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
33
|
+
message: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
34
|
+
body: import("effect/Schema").Unknown;
|
|
35
|
+
}>;
|
|
36
|
+
/** A failure nothing else matched (a non-5xx status no class stands for). */
|
|
37
|
+
export declare class UnknownBetterStackError extends /*@__PURE__*/ UnknownBetterStackError_base {
|
|
38
|
+
}
|
|
39
|
+
declare const BetterStackParseError_base: Schema.TaggedErrorClass<"BetterStackParseError", {
|
|
40
|
+
readonly body: import("effect/Schema").Unknown;
|
|
41
|
+
readonly cause: import("effect/Schema").Unknown;
|
|
42
|
+
}> & (new (...args: any[]) => {
|
|
43
|
+
"@distilled.cloud/error/categories": {
|
|
44
|
+
ParseError: true;
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* A 2xx body the SDK could not read: not JSON for an output with secrets, or
|
|
49
|
+
* (under `ResponseValidation.strict` / `.additionalProperties`) not the
|
|
50
|
+
* documented shape. `body` is `"[REDACTED]"` when the output holds secrets.
|
|
51
|
+
*/
|
|
52
|
+
export declare class BetterStackParseError extends /*@__PURE__*/ BetterStackParseError_base {
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The errors declared on every Better Stack service: any operation can
|
|
56
|
+
* return them, and every generated operation lists them as its
|
|
57
|
+
* `serviceErrors`. Core's status classes (401, 403, 404, 409, 422, 429, 5xx).
|
|
58
|
+
*/
|
|
59
|
+
export declare const BetterStackServiceErrors: readonly [typeof import("@distilled.cloud/core/errors").Unauthorized, typeof import("@distilled.cloud/core/errors").Forbidden, typeof import("@distilled.cloud/core/errors").NotFound, typeof import("@distilled.cloud/core/errors").BadRequest, typeof import("@distilled.cloud/core/errors").Conflict, typeof import("@distilled.cloud/core/errors").UnprocessableEntity, typeof import("@distilled.cloud/core/errors").TooManyRequests, typeof import("@distilled.cloud/core/errors").Locked, typeof import("@distilled.cloud/core/errors").InternalServerError, typeof import("@distilled.cloud/core/errors").BadGateway, typeof import("@distilled.cloud/core/errors").ServiceUnavailable, typeof import("@distilled.cloud/core/errors").GatewayTimeout];
|
|
60
|
+
export type BetterStackServiceError = InstanceType<(typeof BetterStackServiceErrors)[number]>;
|
|
61
|
+
declare const QuotaExceeded_base: Schema.TaggedErrorClass<"QuotaExceeded", {
|
|
62
|
+
readonly message: import("effect/Schema").String;
|
|
63
|
+
}> & (new (...args: any[]) => {
|
|
64
|
+
"@distilled.cloud/error/categories": {
|
|
65
|
+
QuotaError: true;
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
/** 402: the free plan quota or the spending limit has been reached. Not retried. */
|
|
69
|
+
export declare class QuotaExceeded extends /*@__PURE__*/ QuotaExceeded_base {
|
|
70
|
+
}
|
|
71
|
+
declare const NotAcceptable_base: Schema.TaggedErrorClass<"NotAcceptable", {
|
|
72
|
+
readonly message: import("effect/Schema").String;
|
|
73
|
+
}> & (new (...args: any[]) => {
|
|
74
|
+
"@distilled.cloud/error/categories": {
|
|
75
|
+
BadRequestError: true;
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
/** 406: the body is not valid JSON (or MessagePack). */
|
|
79
|
+
export declare class NotAcceptable extends /*@__PURE__*/ NotAcceptable_base {
|
|
80
|
+
}
|
|
81
|
+
declare const PayloadTooLarge_base: Schema.TaggedErrorClass<"PayloadTooLarge", {
|
|
82
|
+
readonly message: import("effect/Schema").String;
|
|
83
|
+
}> & (new (...args: any[]) => {
|
|
84
|
+
"@distilled.cloud/error/categories": {
|
|
85
|
+
BadRequestError: true;
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
/** 413: the request is over 10 MiB. Split the batch. */
|
|
89
|
+
export declare class PayloadTooLarge extends /*@__PURE__*/ PayloadTooLarge_base {
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The errors declared on the ingest service: core's status classes plus the
|
|
93
|
+
* three statuses above. An invalid source token is a 403 (`Forbidden`), not a
|
|
94
|
+
* 401; 429 and 5xx are retried by `Retry.transient` and the default policy.
|
|
95
|
+
*/
|
|
96
|
+
export declare const IngestServiceErrors: readonly [typeof import("@distilled.cloud/core/errors").Unauthorized, typeof import("@distilled.cloud/core/errors").Forbidden, typeof import("@distilled.cloud/core/errors").NotFound, typeof import("@distilled.cloud/core/errors").BadRequest, typeof import("@distilled.cloud/core/errors").Conflict, typeof import("@distilled.cloud/core/errors").UnprocessableEntity, typeof import("@distilled.cloud/core/errors").TooManyRequests, typeof import("@distilled.cloud/core/errors").Locked, typeof import("@distilled.cloud/core/errors").InternalServerError, typeof import("@distilled.cloud/core/errors").BadGateway, typeof import("@distilled.cloud/core/errors").ServiceUnavailable, typeof import("@distilled.cloud/core/errors").GatewayTimeout, typeof QuotaExceeded, typeof NotAcceptable, typeof PayloadTooLarge];
|
|
97
|
+
export type IngestServiceError = InstanceType<(typeof IngestServiceErrors)[number]>;
|
|
98
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/sdk/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,EACV,YAAY,EACZ,QAAQ,GACT,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAIlE,OAAO,KAAK,MAAM,MAAM,yCAAyC,CAAC;;;;;;;AAGlE,6EAA6E;AAC7E,qBAAa,uBACX,SAAQ,aAAa,CAAC,4BAGrB;CAAG;;;;;;;;;AAEN;;;;GAIG;AACH,qBAAa,qBACX,SAAQ,aAAa,CAAC,0BAGU;CAAG;AAErC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,+tBAAa,CAAC;AACnD,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;;;;;;;;AAS9F,oFAAoF;AACpF,qBAAa,aACX,SAAQ,aAAa,CAAC,kBAKrB;CAAG;;;;;;;;AAEN,wDAAwD;AACxD,qBAAa,aACX,SAAQ,aAAa,CAAC,kBAKrB;CAAG;;;;;;;;AAEN,wDAAwD;AACxD,qBAAa,eACX,SAAQ,aAAa,CAAC,oBAKrB;CAAG;AAEN;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,myBAKtB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Better Stack errors -- hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Every failed response becomes a typed, tagged error, picked by status:
|
|
5
|
+
*
|
|
6
|
+
* | status | tag | retried by `Retry.transient` |
|
|
7
|
+
* | --- | --- | --- |
|
|
8
|
+
* | 400 | `BadRequest` | no |
|
|
9
|
+
* | 401 | `Unauthorized` | no |
|
|
10
|
+
* | 403 | `Forbidden` | no |
|
|
11
|
+
* | 404 | `NotFound` | no |
|
|
12
|
+
* | 409 | `Conflict` | no |
|
|
13
|
+
* | 422 | `UnprocessableEntity` | no |
|
|
14
|
+
* | 423 | `Locked` | yes |
|
|
15
|
+
* | 429 | `TooManyRequests` | yes (throttling) |
|
|
16
|
+
* | 500, 502, 503, 504, other 5xx | `InternalServerError`, `BadGateway`, `ServiceUnavailable`, `GatewayTimeout` | yes |
|
|
17
|
+
* | any other status | `UnknownBetterStackError` | no |
|
|
18
|
+
*
|
|
19
|
+
* The statuses an operation documents (403, 404, 409, 422, ...) are classes
|
|
20
|
+
* of the generated service module with the same `_tag` as the classes here,
|
|
21
|
+
* so `Effect.catchTag("NotFound", ...)` works against either. Their `body` is
|
|
22
|
+
* typed with the API's error document (`IncidentsError` / `TelemetryError`:
|
|
23
|
+
* `errors`, `invalidAttributes`, `requiredAttributes`, `allowedValues`,
|
|
24
|
+
* `unauthorizedAttributes`), mapped to camelCase. `message` is the API's
|
|
25
|
+
* human-readable `errors` text.
|
|
26
|
+
*/
|
|
27
|
+
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, InvalidInput, SdkError, } from "@distilled.cloud/core/errors";
|
|
28
|
+
import * as Category from "@distilled.cloud/core/category";
|
|
29
|
+
import { API_ERRORS, UnknownErrorFields } from "@distilled.cloud/core/errors";
|
|
30
|
+
import * as Schema from "@distilled.cloud/core/schema-lite-typed";
|
|
31
|
+
import { applyErrorMatchers } from "@distilled.cloud/core/trait";
|
|
32
|
+
/** A failure nothing else matched (a non-5xx status no class stands for). */
|
|
33
|
+
export class UnknownBetterStackError extends /*@__PURE__*/ /*@__PURE__*/ Schema.TaggedError()("UnknownBetterStackError", UnknownErrorFields) {
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A 2xx body the SDK could not read: not JSON for an output with secrets, or
|
|
37
|
+
* (under `ResponseValidation.strict` / `.additionalProperties`) not the
|
|
38
|
+
* documented shape. `body` is `"[REDACTED]"` when the output holds secrets.
|
|
39
|
+
*/
|
|
40
|
+
export class BetterStackParseError extends /*@__PURE__*/ /*@__PURE__*/ Schema.TaggedError()("BetterStackParseError", {
|
|
41
|
+
body: Schema.Unknown,
|
|
42
|
+
cause: Schema.Unknown,
|
|
43
|
+
}).pipe(Category.withParseError) {
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The errors declared on every Better Stack service: any operation can
|
|
47
|
+
* return them, and every generated operation lists them as its
|
|
48
|
+
* `serviceErrors`. Core's status classes (401, 403, 404, 409, 422, 429, 5xx).
|
|
49
|
+
*/
|
|
50
|
+
export const BetterStackServiceErrors = API_ERRORS;
|
|
51
|
+
// ---------------------------------------------------------------------------
|
|
52
|
+
// Ingest (data plane): the statuses the ingest endpoints document that core
|
|
53
|
+
// has no class for. Their bodies are plain text (`Quota exceeded`,
|
|
54
|
+
// `Couldn't parse JSON content.`, `payload reached size limit`), which
|
|
55
|
+
// becomes `message`. https://betterstack.com/docs/logs/ingesting-data/http/logs/
|
|
56
|
+
// ---------------------------------------------------------------------------
|
|
57
|
+
/** 402: the free plan quota or the spending limit has been reached. Not retried. */
|
|
58
|
+
export class QuotaExceeded extends /*@__PURE__*/ /*@__PURE__*/ applyErrorMatchers(
|
|
59
|
+
/*@__PURE__*/ Schema.TaggedError()("QuotaExceeded", {
|
|
60
|
+
message: Schema.String,
|
|
61
|
+
}).pipe(Category.withQuotaError), [{ status: 402 }]) {
|
|
62
|
+
}
|
|
63
|
+
/** 406: the body is not valid JSON (or MessagePack). */
|
|
64
|
+
export class NotAcceptable extends /*@__PURE__*/ /*@__PURE__*/ applyErrorMatchers(
|
|
65
|
+
/*@__PURE__*/ Schema.TaggedError()("NotAcceptable", {
|
|
66
|
+
message: Schema.String,
|
|
67
|
+
}).pipe(Category.withBadRequestError), [{ status: 406 }]) {
|
|
68
|
+
}
|
|
69
|
+
/** 413: the request is over 10 MiB. Split the batch. */
|
|
70
|
+
export class PayloadTooLarge extends /*@__PURE__*/ /*@__PURE__*/ applyErrorMatchers(
|
|
71
|
+
/*@__PURE__*/ Schema.TaggedError()("PayloadTooLarge", {
|
|
72
|
+
message: Schema.String,
|
|
73
|
+
}).pipe(Category.withBadRequestError), [{ status: 413 }]) {
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The errors declared on the ingest service: core's status classes plus the
|
|
77
|
+
* three statuses above. An invalid source token is a 403 (`Forbidden`), not a
|
|
78
|
+
* 401; 429 and 5xx are retried by `Retry.transient` and the default policy.
|
|
79
|
+
*/
|
|
80
|
+
export const IngestServiceErrors = [
|
|
81
|
+
...API_ERRORS,
|
|
82
|
+
QuotaExceeded,
|
|
83
|
+
NotAcceptable,
|
|
84
|
+
PayloadTooLarge,
|
|
85
|
+
];
|
|
86
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/sdk/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,EACV,YAAY,EACZ,QAAQ,GACT,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,6EAA6E;AAC7E,MAAM,OAAO,uBACX,SAAQ,aAAa,CAAb,aAAa,CAAC,MAAM,CAAC,WAAW,EAA2B,CACjE,yBAAyB,EACzB,kBAAkB,CACnB;CAAG;AAEN;;;;GAIG;AACH,MAAM,OAAO,qBACX,SAAQ,aAAa,CAAb,aAAa,CAAC,MAAM,CAAC,WAAW,EAAyB,CAAC,uBAAuB,EAAE;IACzF,IAAI,EAAE,MAAM,CAAC,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC,OAAO;CACtB,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;CAAG;A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+
*
|
|
4
|
+
* `./services/<api>.ts` is generated by `scripts/sdk/generate.ts` (distilled's
|
|
5
|
+
* codegen) from the OpenAPI documents in `spec/`; everything else in this
|
|
6
|
+
* folder is hand-written. This root exports the shared runtime only. Import
|
|
7
|
+
* each API's operations from its own module, so a program loads only the
|
|
8
|
+
* APIs it calls.
|
|
9
|
+
*
|
|
10
|
+
* The management APIs (`incidents`, `telemetry`, `errors`, `cloud`,
|
|
11
|
+
* `account`) authenticate with `Credentials` (the API token). The data plane
|
|
12
|
+
* has its own: `services/ingest.ts` (logs, metrics, OTLP into one source)
|
|
13
|
+
* with `IngestCredentials` (`fromSource` / `IngestCredentialsFromEnv`), and
|
|
14
|
+
* `services/heartbeat.ts` (heartbeat pings) with nothing but the heartbeat's
|
|
15
|
+
* URL.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import * as Effect from "effect/Effect";
|
|
20
|
+
* import * as Layer from "effect/Layer";
|
|
21
|
+
* import * as Stream from "effect/Stream";
|
|
22
|
+
* import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
23
|
+
* import * as BetterStack from "betterstack-alchemy/sdk/index";
|
|
24
|
+
* import * as Incidents from "betterstack-alchemy/sdk/services/incidents";
|
|
25
|
+
*
|
|
26
|
+
* const program = Effect.gen(function* () {
|
|
27
|
+
* const monitor = yield* Incidents.createMonitor({
|
|
28
|
+
* url: "https://example.com/health",
|
|
29
|
+
* monitorType: "status",
|
|
30
|
+
* checkFrequency: 60,
|
|
31
|
+
* });
|
|
32
|
+
* const all = yield* Stream.runCollect(Incidents.listMonitor.items({}));
|
|
33
|
+
* yield* Incidents.deleteMonitor({ id: monitor.id });
|
|
34
|
+
* return all;
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* program.pipe(
|
|
38
|
+
* Effect.provide(Layer.mergeAll(FetchHttpClient.layer, BetterStack.CredentialsFromEnv)),
|
|
39
|
+
* Effect.runPromise,
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export * from "./credentials.ts";
|
|
44
|
+
export * from "./errors.ts";
|
|
45
|
+
export * as T from "./traits.ts";
|
|
46
|
+
export { AccountProtocol, CloudProtocol, ErrorsProtocol, IncidentsProtocol, TelemetryProtocol, HeartbeatProtocol, IngestProtocol, AVAILABILITY_ZONE_MEMBER, HEARTBEAT_URL_MEMBER, errorEnvelope, errorMessageOf, unwrapEnvelope, withStatusCode, withTeam, type BetterStackOpContext, type BetterStackOpError, type HeartbeatOpContext, type HeartbeatOpError, type IngestOpContext, type IngestOpError, } from "./protocol.ts";
|
|
47
|
+
export { paginateNextPage, paginatePageTotal } from "./pagination.ts";
|
|
48
|
+
export * as Retry from "./retry.ts";
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,eAAe,EACf,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,cAAc,EACd,cAAc,EACd,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
|
package/lib/sdk/index.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Effect-native Better Stack SDK.
|
|
3
|
+
*
|
|
4
|
+
* `./services/<api>.ts` is generated by `scripts/sdk/generate.ts` (distilled's
|
|
5
|
+
* codegen) from the OpenAPI documents in `spec/`; everything else in this
|
|
6
|
+
* folder is hand-written. This root exports the shared runtime only. Import
|
|
7
|
+
* each API's operations from its own module, so a program loads only the
|
|
8
|
+
* APIs it calls.
|
|
9
|
+
*
|
|
10
|
+
* The management APIs (`incidents`, `telemetry`, `errors`, `cloud`,
|
|
11
|
+
* `account`) authenticate with `Credentials` (the API token). The data plane
|
|
12
|
+
* has its own: `services/ingest.ts` (logs, metrics, OTLP into one source)
|
|
13
|
+
* with `IngestCredentials` (`fromSource` / `IngestCredentialsFromEnv`), and
|
|
14
|
+
* `services/heartbeat.ts` (heartbeat pings) with nothing but the heartbeat's
|
|
15
|
+
* URL.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import * as Effect from "effect/Effect";
|
|
20
|
+
* import * as Layer from "effect/Layer";
|
|
21
|
+
* import * as Stream from "effect/Stream";
|
|
22
|
+
* import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
23
|
+
* import * as BetterStack from "betterstack-alchemy/sdk/index";
|
|
24
|
+
* import * as Incidents from "betterstack-alchemy/sdk/services/incidents";
|
|
25
|
+
*
|
|
26
|
+
* const program = Effect.gen(function* () {
|
|
27
|
+
* const monitor = yield* Incidents.createMonitor({
|
|
28
|
+
* url: "https://example.com/health",
|
|
29
|
+
* monitorType: "status",
|
|
30
|
+
* checkFrequency: 60,
|
|
31
|
+
* });
|
|
32
|
+
* const all = yield* Stream.runCollect(Incidents.listMonitor.items({}));
|
|
33
|
+
* yield* Incidents.deleteMonitor({ id: monitor.id });
|
|
34
|
+
* return all;
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* program.pipe(
|
|
38
|
+
* Effect.provide(Layer.mergeAll(FetchHttpClient.layer, BetterStack.CredentialsFromEnv)),
|
|
39
|
+
* Effect.runPromise,
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export * from "./credentials.js";
|
|
44
|
+
export * from "./errors.js";
|
|
45
|
+
export * as T from "./traits.js";
|
|
46
|
+
export { AccountProtocol, CloudProtocol, ErrorsProtocol, IncidentsProtocol, TelemetryProtocol, HeartbeatProtocol, IngestProtocol, AVAILABILITY_ZONE_MEMBER, HEARTBEAT_URL_MEMBER, errorEnvelope, errorMessageOf, unwrapEnvelope, withStatusCode, withTeam, } from "./protocol.js";
|
|
47
|
+
export { paginateNextPage, paginatePageTotal } from "./pagination.js";
|
|
48
|
+
export * as Retry from "./retry.js";
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,eAAe,EACf,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,cAAc,EACd,cAAc,EACd,QAAQ,GAOT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
|