@distilled.cloud/s2
v1.0.0-rc.13
Published
Keywords
Readme
@distilled.cloud/s2
Effect-native SDK for s2.
Installation
npm install @distilled.cloud/s2 effectQuick start
import { Effect, Layer } from "effect";
import * as FetchHttpClient from "effect/http/FetchHttpClient";
import * as S2 from "@distilled.cloud/s2";
const program = Effect.gen(function* () {
const result = yield* S2.streams.listStreams({});
return result;
});
const Live = Layer.mergeAll(
FetchHttpClient.layer,
S2.CredentialsFromEnv,
S2.S2Protocol,
);
program.pipe(Effect.provide(Live), Effect.runPromise);Auth
Required: S2_ACCESS_TOKEN, S2_BASIN. Optional: S2_ACCOUNT_ENDPOINT, S2_BASIN_ENDPOINT. Sent as Authorization: Bearer.
