@@ -12,6 +12,7 @@ Official TypeScript SDK for the [FoxNose](https://foxnose.net/?utm_source=github
1212- ** Async-only API** built on native ` fetch ` (Node 18+)
1313- ** Automatic retries** with exponential backoff and Retry-After support
1414- ** Four auth strategies** — Anonymous, JWT, Simple key, and Secure (ECDSA P-256)
15+ - ** Flux introspection** — discover route contracts with ` /_router ` and ` /_schema `
1516- ** Zero dependencies** — uses only Node.js built-in modules
1617- ** Dual output** — ESM and CommonJS builds with full ` .d.ts ` declarations
1718
@@ -87,9 +88,32 @@ const results = await client.search('articles', {
8788 size: 10 ,
8889});
8990
91+ // Discover available routes for this API prefix
92+ const router = await client .getRouter ();
93+ console .log (router .routes .length );
94+
95+ // Get live schema metadata for a folder route
96+ const schema = await client .getSchema (' articles' );
97+ console .log (schema .searchable_fields );
98+
9099client .close ();
91100```
92101
102+ ### API Folder Route Descriptions
103+
104+ You can configure per-route descriptions when connecting a folder to an API.
105+ These descriptions are returned by Flux ` /_router ` introspection.
106+
107+ ``` typescript
108+ await managementClient .addApiFolder (api .key , folder .key , {
109+ allowedMethods: [' get_many' , ' get_one' ],
110+ descriptionGetOne: ' Get one article by key' ,
111+ descriptionGetMany: ' List published articles' ,
112+ descriptionSearch: ' Search published articles' ,
113+ descriptionSchema: ' Read article schema' ,
114+ });
115+ ```
116+
93117## Authentication
94118
95119The SDK supports four authentication strategies:
0 commit comments