@pouchy_ai/admin-sdk 0.26.0 → 0.26.1
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/CHANGELOG.md +16 -0
- package/README.md +6 -3
- package/dist/index.d.ts +7 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@pouchy_ai/admin-sdk` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.26.1 — 2026-08-09
|
|
6
|
+
|
|
7
|
+
- **Docs-only.** No type, method or signature moves. `extractJson`'s failure
|
|
8
|
+
table now says which arm each 400 can come from: `schema_invalid` is
|
|
9
|
+
reachable only on a **strict** call, because `strict: false` sends
|
|
10
|
+
`{type:'json_object'}` and the schema never reaches the wire. A provider
|
|
11
|
+
rejection of a schema-less call — JSON mode refusing a custom `system`
|
|
12
|
+
prompt that never contains the word "json" is the common one — is
|
|
13
|
+
`request_invalid`, the code that already meant "the provider rejected the
|
|
14
|
+
request itself". Server-side change; both codes are 400 and neither is
|
|
15
|
+
retryable, so no client logic that branches on retry direction is affected.
|
|
16
|
+
- `schemaName: ''` is accepted again as "unset" (it falls back to the
|
|
17
|
+
documented `extraction` default). The 0.24.x-era identifier-grammar check
|
|
18
|
+
400'd it with a charset message that named characters the empty string does
|
|
19
|
+
not have.
|
|
20
|
+
|
|
5
21
|
## 0.26.0 — 2026-08-09
|
|
6
22
|
|
|
7
23
|
- **New methods `importAgentPlugin` / `exportAgentPlugin`** (additive; nothing
|
package/README.md
CHANGED
|
@@ -147,9 +147,12 @@ const { data } = await admin.extractJson<{ items: { kind: string; summary: strin
|
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
Failures are typed rather than prose, so the recoveries are distinguishable:
|
|
150
|
-
`schema_invalid` (400 — fix the schema; retrying verbatim cannot help
|
|
151
|
-
|
|
152
|
-
`
|
|
150
|
+
`schema_invalid` (400 — fix the schema; retrying verbatim cannot help; only
|
|
151
|
+
reachable on a **strict** call, since `strict: false` never puts a schema on the
|
|
152
|
+
wire), `request_invalid` (400 — the provider rejected the request itself: an
|
|
153
|
+
unknown `model`, a parameter outside the provider's validation, or any rejection
|
|
154
|
+
of a schema-less `strict: false` call — for example JSON mode refusing a custom
|
|
155
|
+
`system` prompt that never says "json"; fix the request),
|
|
153
156
|
`unavailable` (5xx — transient, back off), and `invalid_json` (502 — a
|
|
154
157
|
completion arrived but did not parse or satisfy the schema; the error carries
|
|
155
158
|
`raw`, the text actually returned). Tokens roll into the project's month usage
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ADMIN_SDK_VERSION = "0.26.
|
|
1
|
+
export declare const ADMIN_SDK_VERSION = "0.26.1";
|
|
2
2
|
export declare const DEFAULT_BASE_URL = "https://pouchy.ai/v1/admin";
|
|
3
3
|
/** Deadline for the routes whose server handler declares `maxDuration: 300` —
|
|
4
4
|
* the server's own ceiling plus headroom, so a client abort can only ever mean
|
|
@@ -678,9 +678,12 @@ export interface AdminClient {
|
|
|
678
678
|
* validation.
|
|
679
679
|
*
|
|
680
680
|
* Failures are typed rather than prose, which is the point:
|
|
681
|
-
* `schema_invalid` (400 — fix the schema, retrying verbatim cannot help
|
|
682
|
-
*
|
|
683
|
-
*
|
|
681
|
+
* `schema_invalid` (400 — fix the schema, retrying verbatim cannot help;
|
|
682
|
+
* only reachable on a STRICT call, because `strict: false` never puts a
|
|
683
|
+
* schema on the wire), `request_invalid` (400 — the provider rejected the
|
|
684
|
+
* request itself: an unknown `model`, a parameter outside the provider's
|
|
685
|
+
* validation, or any rejection of a schema-less `strict: false` call, such
|
|
686
|
+
* as JSON mode refusing a `system` prompt that never says "json";
|
|
684
687
|
* fix the request, retrying verbatim cannot help), `unavailable` (5xx —
|
|
685
688
|
* transient, back off), `invalid_json` (502 — a completion arrived but
|
|
686
689
|
* did not parse or did not satisfy the schema; the error carries `raw`,
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// import { createAdminClient } from '@pouchy_ai/admin-sdk';
|
|
9
9
|
// const admin = createAdminClient({ adminKey: process.env.POUCHY_ADMIN_KEY! });
|
|
10
10
|
// const { agents } = await admin.listAgents();
|
|
11
|
-
export const ADMIN_SDK_VERSION = '0.26.
|
|
11
|
+
export const ADMIN_SDK_VERSION = '0.26.1';
|
|
12
12
|
export const DEFAULT_BASE_URL = 'https://pouchy.ai/v1/admin';
|
|
13
13
|
/** Default per-request timeout (ms). A hung upstream otherwise never rejects. */
|
|
14
14
|
const DEFAULT_TIMEOUT_MS = 30_000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pouchy_ai/admin-sdk",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "Typed TypeScript client for the Pouchy Admin API \u2014 manage agents, keys, end users, knowledge, skills, channels, schedules, webhooks and credentials headlessly, with a project Admin key.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|