feat(hetzner): add Effect-based Cloud and DNS API clients#309
Open
codeagencybe wants to merge 1 commit into
Open
feat(hetzner): add Effect-based Cloud and DNS API clients#309codeagencybe wants to merge 1 commit into
codeagencybe wants to merge 1 commit into
Conversation
Adds typed HTTP client infrastructure for the Hetzner Cloud and DNS APIs following the Neon api.ts pattern. Code Agency AI review agent
Contributor
|
Did you mean to create resources? This looks like an API client, not an alchemy resource provider. Did you mean to create the sdk over here https://github.com/alchemy-run/distilled? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the Hetzner Cloud and DNS HTTP client infrastructure for the v2 (
alchemy-effect) codebase, following theNeon/api.tsEffect pattern.Files added
packages/alchemy/src/Hetzner/Cloud/Credentials.ts—Context.Service-based credential service that readsHCLOUD_TOKENfrom env; exposesfromTokenandfromEnvlayerspackages/alchemy/src/Hetzner/Cloud/Client.ts— typedget/post/put/patch/delhelpers wrappingHttpClient; base URLhttps://api.hetzner.cloud/v1;HetznerApiErrorwithData.TaggedError; auto-retry 429/5xx withSchedule.exponentialpackages/alchemy/src/Hetzner/Cloud/DnsCredentials.ts— same pattern for DNS; readsHETZNER_DNS_API_TOKENpackages/alchemy/src/Hetzner/Cloud/DnsClient.ts— DNS client; base URLhttps://dns.hetzner.com/api/v1; usesAuth-API-Tokenheader;HetznerDnsApiErrorUsage