@klex/agent-admin-api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.d.ts +2012 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @klex/agent-admin-api
|
|
2
|
+
|
|
3
|
+
Shared types for the Klex Agent Admin API.
|
|
4
|
+
|
|
5
|
+
The package exports the routed Hono application type through `AdminApi` and
|
|
6
|
+
`AdminApiServer`, plus the `OpenAPIHono` type used to build RPC clients.
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { hc } from 'hono/client';
|
|
10
|
+
import type { AdminApi } from '@klex/agent-admin-api';
|
|
11
|
+
|
|
12
|
+
const client = hc<AdminApi>('https://agent.example');
|
|
13
|
+
const health = await client.v1.health.$get();
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Install `hono` and `@hono/zod-openapi` as peer dependencies.
|