@kevinmichaelchen/distilled-jira
v0.3.0
Published
Effect 4-native JIRA Cloud Platform SDK generated from Atlassian OpenAPI
Readme
distilled-jira
An Effect-native JIRA Cloud Platform SDK generated from Atlassian's official REST API v3 document.
The SDK groups operations into service modules. Runtime schemas, protocol
traits, typed errors, retry support, and streaming pagination come from
@kevinmichaelchen/distilled; authentication and JIRA's HTTP behavior are
defined by this package.
Set JIRA_BASE_URL, JIRA_EMAIL, and JIRA_API_TOKEN.
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
import {
CredentialsFromEnv,
Services,
} from "@kevinmichaelchen/distilled-jira";
const JiraLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);
const issue = await Effect.runPromise(
Services.issues.getIssue({ issueIdOrKey: "PROJ-123" }).pipe(
Effect.provide(JiraLive),
),
);Run bun run generate after updating the pinned specification. Generated
service modules under src/services must not be edited by hand.
