@kortex-hub/kortex-cli-api
v0.1.5
Published
TypeScript types for the kortex-cli
Downloads
1,080
Readme
kortex-cli Types
TypeScript type definitions for the kortex-cli, providing complete type safety when interacting with JSON output returned by the CLI.
Installation
npm install @kortex-hub/kortex-cli-apiOr with your preferred package manager:
# pnpm
pnpm add @kortex-hub/kortex-cli-api
# yarn
yarn add @kortex-hub/kortex-cli-api
# bun
bun add @kortex-hub/kortex-cli-apiUsage
import type { paths, components } from '@kortex-hub/kortex-cli-api';
// Type for agents list response
type AgentsListResponse = paths['/list']['get']['responses']['200']['content']['application/json'];
// Type for a single server
type Server = components['schemas']['AgentsList'];License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
