@kevinmichaelchen/distilled-vertex
v0.2.0
Published
Effect 4-native Vertex Tax Calculation, GIS, and Tax Configuration SDK generated by Distilled
Readme
distilled-vertex
An Effect 4-native Vertex O Series Tax Calculation, Tax GIS, and Tax Configuration SDK generated from Vertex's official OpenAPI 3.0 document through Distilled's OpenAPI-to-Smithy production pipeline.
Tax Configuration v2.1 is exported under Configuration, with its own
ConfigurationCredentials layer and required VERTEX_CONFIGURATION_API_URL.
Keeping it separate prevents the Calculation/GIS and Configuration products
from being flattened into one misleading base URL or authentication model.
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
import { CredentialsFromEnv } from "@kevinmichaelchen/distilled-vertex";
import { doesTransactionExists } from "@kevinmichaelchen/distilled-vertex/transaction";
const VertexLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);
await Effect.runPromise(
Effect.provide(
doesTransactionExists({ transactionid: "transaction-id" }),
VertexLive,
),
);VERTEX_ACCESS_TOKEN is stored as an Effect Redacted value and sent as a
Bearer token. Override VERTEX_API_URL for your O Series environment. Tax
Configuration uses its separate configuration URL and credential layer.
Releases use guarded npm trusted publishing from main.
Verification
With the distilled repository checked out beside this repository, run
bun run verify. The gate packs the exact adjacent core, regenerates twice,
checks direct-to-Smithy parity, typechecks, tests, builds, dry-runs the package,
and restores the dependency manifest and lockfile.
