@pouchy_ai/admin-sdk 0.24.0 → 0.24.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 CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to `@pouchy_ai/admin-sdk` are documented here.
4
4
 
5
+ ## 0.24.1 — 2026-08-08
6
+
7
+ - **Docs-only correction for `synthesizeSpeech`** (no code change): the rate
8
+ limit on `/v1/admin/utility/tts` is the shared **per-IP** utility bucket,
9
+ not per-project — the 0.24.0 notes (and the README/docstring) claimed
10
+ per-project keying the server never had (CR-404). Also documents that
11
+ `unavailable` (503) now additionally covers a temporarily unreachable voice
12
+ catalog (retry), and that a `model` from the other provider's namespace is
13
+ silently ignored in favour of the provider default (server-side CR-404/
14
+ CR-410 fixes; an unknown model within the right namespace still surfaces as
15
+ `provider_error` 502).
16
+
5
17
  ## 0.24.0 — 2026-08-08
6
18
 
7
19
  - **New method `synthesizeSpeech`** (additive; nothing renamed or removed):
@@ -15,7 +27,8 @@ All notable changes to `@pouchy_ai/admin-sdk` are documented here.
15
27
  (`voice_not_found`, `text_too_long`, `unsupported_format`, `unavailable`,
16
28
  `provider_error`). Synthesis bills on your provider account like the other
17
29
  voice planes — no separate platform credit rate; bounded by an input cap +
18
- a per-project rate limit.
30
+ a rate limit (documented at release as per-project; corrected in 0.24.1 —
31
+ the bucket keys per client IP).
19
32
 
20
33
  ## 0.23.0 — 2026-08-08
21
34
 
package/README.md CHANGED
@@ -177,9 +177,10 @@ restricted to enabled catalog rows plus the built-in OpenAI roster — so the Op
177
177
  sample and the live call use one authoritative voice. Only `mp3` is produced in
178
178
  v1. Failures are typed: `voice_not_found` (404), `text_too_long` (413),
179
179
  `unsupported_format` (400), `unavailable` (503 — no TTS provider configured for
180
- that voice), `provider_error` (502). Synthesis bills on your provider account
180
+ that voice, or the voice catalog is temporarily unreachable; retry),
181
+ `provider_error` (502). Synthesis bills on your provider account
181
182
  like the other voice planes — there is no separate platform credit rate; it is
182
- bounded by an input cap and a per-project rate limit.
183
+ bounded by an input cap and the shared per-IP utility rate limit.
183
184
 
184
185
  Every skill knob (`setSkillRate`, `setSkillDailyCap`, `grantSkill`) returns
185
186
  `SkillKnobResult<T>` — the knob you set plus `reprovisioned` (instances the new
@@ -335,6 +336,7 @@ Reads (`GET`) are not covered by that bucket. `retryAfter` is available from
335
336
  | Data capabilities | `listCapabilities` (heads + MASKED signing status) · `publishCapability` (TYPED `CapabilityDeclaration`; immutable next version, idempotent on content) · `setCapabilityDisabled` (per-capability live revoke) · `listCapabilityVersions` (history; rollback = republish an old declaration) · `testReadCapability` · `testActionCapability({ confirmDuplicates: true, … })` (REAL deliveries incl. intentional duplicates — 428 without consent) · `listActionExecutions` (the durable Action journal, incl. `authorizedBy: 'automation'`) · `listEventReceipts` (receipts + wake trail) |
336
337
  | Webhooks | `listWebhooks` · `createWebhook` · `updateWebhook` · `rotateWebhookSecret` · `deleteWebhook` · `testWebhook` · `redeliverWebhook` |
337
338
  | Reporting | `getUsage` · `getUsageHistory` · `getBilling` · `getTracesSummary` · `getRecentTraces` · `getLogs` · `getProject` · `updateProject` |
339
+ | Utilities | `extractJson` (structured JSON from prose, schema-shaped) · `synthesizeSpeech` (short TTS clip in a catalog voice, base64 mp3) |
338
340
  | Escape hatch | `request(method, path, body?)` — any endpoint not yet typed |
339
341
 
340
342
  Channel types are checked at compile time: `createChannel` takes a
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const ADMIN_SDK_VERSION = "0.24.0";
1
+ export declare const ADMIN_SDK_VERSION = "0.24.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
@@ -725,11 +725,12 @@ export interface AdminClient {
725
725
  *
726
726
  * Failures are typed, not audio: `voice_not_found` (404),
727
727
  * `text_too_long` (413), `unsupported_format` (400), `unavailable` (503 —
728
- * no TTS provider configured for that voice), `provider_error` (502).
728
+ * no TTS provider configured for that voice, or the voice catalog is
729
+ * temporarily unreachable; retry), `provider_error` (502).
729
730
  *
730
731
  * Synthesis bills on your provider account (like the platform voice
731
- * planes), bounded by an input cap and a per-project rate limit — there is
732
- * no separate platform credit rate. */
732
+ * planes), bounded by an input cap and the shared per-IP utility rate
733
+ * limit — there is no separate platform credit rate. */
733
734
  synthesizeSpeech(input: {
734
735
  text: string;
735
736
  voice: string;
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.24.0';
11
+ export const ADMIN_SDK_VERSION = '0.24.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.24.0",
3
+ "version": "0.24.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",