diff --git a/.github/workflows/drift.yml b/.github/workflows/drift.yml new file mode 100644 index 0000000..75dad37 --- /dev/null +++ b/.github/workflows/drift.yml @@ -0,0 +1,31 @@ +name: Drift CI + +on: + pull_request: + branches: [main] + +permissions: + contents: read + pull-requests: write + +jobs: + drift: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + + - uses: oven-sh/setup-bun@v2 + + - name: Install Drift CLI + run: bun install -g @driftdev/cli + + - name: Run drift ci + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: drift ci diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index 3744333..44f3d92 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -1,3 +1,14 @@ export { StreamsClient } from "./client.ts"; export type { StreamsClientOptions } from "./client.ts"; export { ApiError } from "./errors.ts"; + +/** Current SDK version string. */ +export const SDK_VERSION = "0.2.0"; + +/** Health check response from the API. */ +export interface HealthStatus { + /** Whether the API is operational. */ + healthy: boolean; + /** ISO timestamp of the check. */ + checkedAt: string; +}