@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 CHANGED
@@ -7,7 +7,7 @@ description: |
7
7
 
8
8
  # Augur API Client - Agent Guide
9
9
 
10
- TypeScript client library for 27 Augur microservices via a unified API.
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 class with all resources
139
- ├── resources/*.ts # Resource implementations
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
- ## Zod Schemas
197
+ ## Types and Validation
197
198
 
198
- All request params and response data use Zod schemas:
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 { InvMastListParams, InvMast } from '@simpleapps-com/augur-api';
204
+ import type { ItemsTypes } from '@simpleapps-com/augur-api';
202
205
 
203
206
  // Type-safe params
204
- const params: InvMastListParams = { limit: 10, offset: 0 };
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
- for (const item of response.data) {
209
- console.log(item.itemId); // IDE autocomplete works
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 | Zod | Pydantic v2 |
225
+ | Validation | Valibot | Pydantic v2 |