@simpleapps-com/augur-api 2026.9.4 → 2026.9.6
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/SKILL.md +17 -13
- package/dist/client-BdaR6MZK.d.mts +9057 -0
- package/dist/client-BdaR6MZK.d.ts +9057 -0
- package/dist/index.d.mts +18 -4
- package/dist/index.d.ts +18 -4
- package/dist/index.js +11392 -11387
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11338 -11333
- package/dist/index.mjs.map +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +5 -4
- package/dist/client-B7ZsMUeZ.d.mts +0 -9017
- package/dist/client-B7ZsMUeZ.d.ts +0 -9017
package/SKILL.md
CHANGED
|
@@ -7,7 +7,7 @@ description: |
|
|
|
7
7
|
|
|
8
8
|
# Augur API Client - Agent Guide
|
|
9
9
|
|
|
10
|
-
TypeScript client library for
|
|
10
|
+
TypeScript client library for 26 Augur microservices via a unified API.
|
|
11
11
|
|
|
12
12
|
## Ecosystem Entry Point
|
|
13
13
|
|
|
@@ -135,11 +135,12 @@ agr-site → api.agrSite
|
|
|
135
135
|
|
|
136
136
|
```
|
|
137
137
|
src/services/{service}/
|
|
138
|
-
├── client.ts # {Service}Client
|
|
139
|
-
|
|
140
|
-
└── schemas/*.ts # Zod validation schemas
|
|
138
|
+
├── client.ts # Generated {Service}Client (proxy-backed resources)
|
|
139
|
+
└── generated/*.ts # Generated endpoints, types, and valibot schemas
|
|
141
140
|
```
|
|
142
141
|
|
|
142
|
+
Every client also inherits `healthCheck`, `ping`, and `whoami` (each with a `…Data` twin, called as `.get()`) from `BaseServiceClient` in `src/core/base-client.ts`.
|
|
143
|
+
|
|
143
144
|
**To verify exact property names:** Read `src/services/{service}/client.ts`
|
|
144
145
|
|
|
145
146
|
## Strategy for Agents
|
|
@@ -193,20 +194,23 @@ response.message // Status message
|
|
|
193
194
|
response.status // HTTP status code
|
|
194
195
|
```
|
|
195
196
|
|
|
196
|
-
##
|
|
197
|
+
## Types and Validation
|
|
197
198
|
|
|
198
|
-
|
|
199
|
+
Request params and responses are validated with Valibot schemas. Types are exported per service as
|
|
200
|
+
a namespace (`{Service}Types`): params are `{Chain}{Action}Params`, request bodies
|
|
201
|
+
`{Chain}{Action}Body`, response data `{Chain}{Action}Data`.
|
|
199
202
|
|
|
200
203
|
```typescript
|
|
201
|
-
import {
|
|
204
|
+
import type { ItemsTypes } from '@simpleapps-com/augur-api';
|
|
202
205
|
|
|
203
206
|
// Type-safe params
|
|
204
|
-
const params:
|
|
205
|
-
const response = await api.items.invMast.list(params);
|
|
207
|
+
const params: ItemsTypes.InvMastFaqListParams = { limit: 10, offset: 0 };
|
|
208
|
+
const response = await api.items.invMast.faq.list(invMastUid, params);
|
|
206
209
|
|
|
207
|
-
// Type-safe response
|
|
208
|
-
|
|
209
|
-
|
|
210
|
+
// Type-safe response data
|
|
211
|
+
const faqs: ItemsTypes.InvMastFaqListData = response.data;
|
|
212
|
+
for (const faq of faqs) {
|
|
213
|
+
console.log(faq.question); // IDE autocomplete works
|
|
210
214
|
}
|
|
211
215
|
```
|
|
212
216
|
|
|
@@ -218,4 +222,4 @@ for (const item of response.data) {
|
|
|
218
222
|
| Service: brand-folder | api.brandFolder | api.brand_folder |
|
|
219
223
|
| Resource: inv-mast | .invMast | .inv_mast |
|
|
220
224
|
| Method: invMastUid | invMastUid | inv_mast_uid |
|
|
221
|
-
| Validation |
|
|
225
|
+
| Validation | Valibot | Pydantic v2 |
|