@hypothesi/azure-devops-api

A typed Azure DevOps REST API client for browsers and Node.js, generated from the Azure DevOps OpenAPI documents.

Install

npm install @hypothesi/azure-devops-api zod

Quick start

Import from the entry point for your product. /services is for Azure DevOps Services. /server-2022 is for Azure DevOps Server 2022. The compatibility page lists all entry points.

import { createClient, wit } from '@hypothesi/azure-devops-api/services';

const ado = createClient({ organization: 'acme', auth: { type: 'pat', token: process.env.AZURE_DEVOPS_PAT ?? '' } });

const workItem = await wit.workItemsGetWorkItem({ client: ado, path: { project: 'Web', id: 42 } });